* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInPage 0.2s ease-in forwards;
}

body.page-transition-out {
    animation: fadeOutPage 0.15s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutPage {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Header Styles */
.header {
    background-color: #000000;
    padding: 30px 0;
    top: 0;
    left: 0;
    right: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    max-width: none;
    padding: 0 200px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    gap: 60px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 200;
    font-size: 18px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #C3081F;
}



/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero .container {
    margin: 0;
    max-width: none;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 100%;
    padding-left: 200px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 100px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-word {
    display: block;
    color: #ffffff;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
}

.cta-button {
    background-color: #C3081F;
    color: #ffffff;
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: rgb(129, 21, 21);
}



/* Accreditation Section */
.accreditation {
    background-color: #000000;
    padding: 60px 0;
    text-align: center;
}

.accreditation-title {
    font-size: 40px;
    font-weight: 200;
    color: #ffffff;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.accreditation-logos {
    display: flex;
    justify-content: center;
    gap: 150px;
    align-items: center;
    margin-bottom: -20px;
}

.accreditation-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accreditation-logo-img {
    max-height: 150px;
    max-width: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}



/* Feature Sections */
.feature-section {
    min-height: 500px;
    max-height: 700px;
    height: clamp(500px, 60vh, 700px);
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: clamp(450px, 50vh, 600px);
    width: 100%;
}

.feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.feature-title {
    font-family: 'Oswald', sans-serif;
    font-size: 96px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
}

.prepared .feature-text,
.precise .feature-text {
    background-color: #C3081F;
}

.resilient .feature-text {
    background-color: #C3081F;
    order: 2;
}

.resilient .feature-content {
    grid-template-columns: 2fr 1fr;
}

.feature-image {
    position: relative;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
    z-index: 1;
}

.feature-image.animate-in {
    transform: translateX(0);
}

.prepared .feature-image,
.precise .feature-image {
    transform: translateX(-100%);
}

.prepared .feature-image.animate-in,
.precise .feature-image.animate-in {
    transform: translateX(0);
}

.feature-text {
    position: relative;
    z-index: 2;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.feature-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.prepared .feature-description,
.precise .feature-description {
    text-align: left;
    left: 10%;
    transform: translateY(-50%);
}

.resilient .feature-description {
    text-align: right;
    left: 20%;
    transform: translateY(-50%);
}

.feature-description h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.feature-description p {
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
}



/* Footer */
.footer {
    background-color: #000000;
    padding: 40px 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: -30px;
}

.footer-logo-img {
    height: 180px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;

    margin-top: 30px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 200;
    font-size: 20px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding-left: 10px;
}

.footer-link:hover {
    color: #C3081F;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 8px;
}

@media (min-width: 769px) {
    .social-icon:hover {
        background-color: #C3081F;
    }
    
    .social-icon:hover .social-icon-img {
        filter: brightness(0);
    }
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}



/* Responsive Design */
/* Tablet styles (iPads, Android tablets) */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 30px;
    }
    
    .hero-content {
        max-width: 80%;
        padding-left: 30px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    /* Feature Sections - Vertical Layout for Tablets */
    .feature-content {
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
        height: auto;
    }
    
    .feature-text {
        height: 600px;
        order: 1;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-title {
        font-size: 54px;
        writing-mode: vertical-rl;
        letter-spacing: -20px;
        text-orientation: upright;
    }
    
    .feature-image {
        height: 600px;
        order: 2;
    }
    
    .feature-description h3 {
        font-size: 24px;
    }
    
    .feature-description p {
        font-size: 16px;
    }
    
    .resilient .feature-description {
        transform: translateY(-50%);
        left: 5%;
    }

    .precise .feature-description,
    .prepared .feature-description {
        left: 5%;
    }
    
    /* Override desktop grid settings for tablets */
    .feature-section.prepared .feature-content,
    .feature-section.precise .feature-content {
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
    }
    
    .feature-section.resilient .feature-content {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
    }
    
    /* Feature animations for tablets */
    .feature-image {
        transform: translateX(100%);
        transition: transform 0.8s ease-in-out;
    }
    
    .feature-image.animate-in {
        transform: translateX(0);
    }
    
    .prepared .feature-image,
    .precise .feature-image {
        transform: translateX(-100%);
    }
    
    .prepared .feature-image.animate-in,
    .precise .feature-image.animate-in {
        transform: translateX(0);
    }
    
    .accreditation-logos {
        flex-direction: row;
        gap: 45px;
    }

    .accreditation-logo-img {
        max-height: 100px;
        max-width: 190px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}


/* Landscape tablets and short screens (like Nest Hub) */
@media (max-width: 1024px) and (max-height: 700px) {
    .feature-section {
        height: auto;
        min-height: auto;
    }
    
    .feature-content {
        height: auto;
    }
    
    .feature-text {
        height: 400px;
    }
    
    .feature-image {
        height: 400px;
    }
    
    .feature-title {
        font-size: 38px;
        letter-spacing: -16px;
    }
}


@media (max-width: 600px) {
    /* Header */
    .header .container {
        padding: 0 20px;
    }

    .logo-img {
        height: 50px;
        width: auto;
        margin-top: -5px;
    }

    .nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }


    /* Hero Section */
    .hero {
        height: 85vh;
    }

    .hero-content {
        max-width: 90%;
        padding-left: 20px;
    }
    
    .hero-title {
        font-size: 60px;
        line-height: 1.5;
    }
    


    /* Accreditation Section */
        .accreditation-logos {
        flex-direction: row;
        gap: 30px;
        margin-bottom: -40px;
    }

    .accreditation-logo-img {
        max-height: 100px;
        max-width: 150px;
    }
    

    /* Feature Sections */
    .feature-section {
        margin-bottom: 0;
    }
    
    .feature-content {
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
        height: auto;
    }
    
    .feature-text {
        height: 500px;
        order: 1;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-title {
        font-size: 40px;
        writing-mode: vertical-rl;
        letter-spacing: -18px;
        text-orientation: upright;
    }
    
    .feature-description h3 {
        font-size: 18px;
    }
    
    .feature-description p {
        font-size: 12px;
    }
    
    .resilient .feature-description {
        transform: translateY(-50%);
        left: 0%;
    }

    .precise .feature-description,
    .prepared .feature-description {
        left: 0%;
    }
    
    .feature-image {
        height: 500px;
        order: 2;
        transform: translateX(100%);
        transition: transform 0.8s ease-in-out;
    }
    
    .feature-image.animate-in {
        transform: translateX(0);
    }
    
    .prepared .feature-image,
    .precise .feature-image {
        transform: translateX(-100%);
    }
    
    .prepared .feature-image.animate-in,
    .precise .feature-image.animate-in {
        transform: translateX(0);
    }
    
    /* Override desktop grid settings for mobile */
    .feature-section.prepared .feature-content,
    .feature-section.precise .feature-content {
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
    }
    
    .feature-section.resilient .feature-content {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
    }
    
    .feature-title {
        font-size: 38px;
    }
    

    /* Footer */
    .footer {
        margin-top: 60px;
        position: relative;
    }

    .footer-logo-img {
        height: 140px;
        width: auto;
    }

    .footer-logo {
        margin-bottom: 25px;
    }

}
