:root {
    /* Colors based on Figma and previous setup */
    --color-sea-green: #1A494D;
    --color-off-white: #EDF1F1; /* Figma Background color */
    --color-rich-black: #040606; /* Figma Text color */
    --color-cyber-orange: #FF5A02; /* New from Figma */
    --color-light-sea: #A0BCC2;
    --color-grey-text: #686868;
    --color-copyright-text: #404c4e;
    
    /* Fonts */
    --font-heading: "Hanken Grotesk", sans-serif;
    --font-body: "Archivo", sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-rich-black);
    background-color: var(--color-off-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Entrance Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    padding: 5vh 3.33vw; /* Responsive padding based on viewport */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(70, 105, 109, 0.3); /* #46696d with mix-blend-hard-light */
    mix-blend-mode: hard-light;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 0;
}

.logo-container {
    position: absolute;
    top: 5vh; /* Responsive positioning */
    right: 3.33vw;
    z-index: 1; /* Lower z-index so heading can overlap */
    pointer-events: none; /* Allow clicks to pass through if needed */
    animation: fadeIn 0.6s ease-out 0s both;
}

.logo-container .logo {
    height: 6.8vh; /* Responsive logo size */
    width: auto;
    color: white;
}

.logo-container .logo path {
    fill: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 24px; /* Figma */
    padding-top: 0;
    flex: 1;
}

.hero-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    padding-top: 0;
    position: relative;
    z-index: 2; /* Ensure heading can overlap logo */
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 68px); /* Reduced by 4px */
    font-weight: 500; 
    color: white;
    line-height: 1.2;
    letter-spacing: -0.01em; /* Responsive letter spacing */
    max-width: 900px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.info-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 650px;
    width: fit-content;
    
    /* Figma Card Styling */
    background: rgba(26, 73, 77, 0.7);
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    padding: clamp(16px, 1.67vw, 24px); /* Responsive padding */
    border-radius: clamp(16px, 1.67vw, 24px); /* Responsive border radius */
    border: 1.5px solid rgba(237, 241, 241, 0.25); /* Figma */
    color: white;
    align-self: flex-end; 
    margin-bottom: 0;
    gap: clamp(24px, 2.5vh, 36px); /* Responsive spacing between text and buttons */
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-sizing: border-box;
}

.info-card > div:first-child {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vh, 12px); /* Slightly larger spacing between paragraphs */
    width: fit-content;
    min-width: 0; /* Allow flex shrinking */
}

.info-card p {
    margin-bottom: 0; /* No margin, using gap on parent */
    font-size: clamp(14px, 1.25vw, 18px); /* Responsive font size - minimum 14px */
    line-height: 1.6; /* Better line height for readability */
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px; /* Figma */
    margin-top: 0;
}

.btn {
    padding: clamp(8px, 0.7vh, 10px) clamp(20px, 1.67vw, 24px); /* Responsive padding */
    border-radius: 100px; /* Figma */
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: clamp(14px, 1.25vw, 18px); /* Responsive font size */
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-cyber-orange);
    color: white;
    border: 1px solid transparent;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background-color: #e04f02;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1.667px solid #edf1f1;
    color: #edf1f1;
    min-width: 155px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-sea-green);
}


/* Footer Section */
.footer {
    background-color: var(--color-off-white);
    padding: 88.889px 53.333px; /* Figma */
    width: 100%;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.footer-container {
    max-width: 1422px; /* Figma */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px; /* Reduced from 53.333px */
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Reduced from 26.667px */
    max-width: 951px;
    animation: fadeInLeft 0.8s ease-out 0.8s both;
}

.footer h2 {
    font-size: 40px; /* Figma */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--color-rich-black);
    margin: 0;
}

.subtitle {
    color: var(--color-grey-text);
    font-size: 20px; /* Figma */
    margin-bottom: 16px; /* Reduced from 24px */
}

.contact-grid {
    display: flex;
    gap: 32px; /* Reduced from 53.333px */
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8.889px;
}

.contact-item h3 {
    font-size: 20px; /* Figma */
    font-weight: 500;
    color: var(--color-rich-black);
    margin: 0;
    letter-spacing: -0.2px;
}

.contact-item a, 
.contact-item p {
    color: var(--color-rich-black);
    text-decoration: none;
    font-size: 20px; /* Figma */
    line-height: 1.5;
}

.contact-item a {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-rich-black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-item a:hover::after {
    transform: scaleX(1);
}

.footer-logo {
    width: 164.444px;
    height: 97.803px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 1s both;
}

.footer-logo .logo {
    height: 98px;
    width: auto;
    color: var(--color-sea-green);
}

.footer-logo .logo path {
    fill: var(--color-sea-green);
}

.divider {
    height: 1px;
    background-color: rgba(4, 6, 6, 0.15);
    width: 100%;
}

.copyright {
    color: var(--color-copyright-text);
    font-size: 15.556px; /* Figma */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 4vh 4vw;
    }
    
    .hero-content {
        flex-direction: column;
        padding-top: 0;
        gap: 0; /* Remove fixed gap */
        justify-content: space-between; /* Push items to top and bottom */
        align-items: stretch;
    }
    
    .hero-text {
        flex: 0 0 auto;
        margin-bottom: 0; /* Remove margin, spacing is automatic */
        width: 100%;
        align-self: flex-start; /* Align to top */
    }
    
    .info-card {
        align-self: flex-end; /* Align to bottom */
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        margin-bottom: 0;
        margin-top: auto; /* Push to bottom */
    }

    .hero-text h1 {
        font-size: clamp(28px, 6vw, 44px); /* Larger on tablet */
        max-width: 100%;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-grid {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        /* Minimum 95vh on mobile, but can grow if content is taller */
        height: auto;
        min-height: 95vh;
        padding: 3vh 12px 12px; /* 12px left and right padding */
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-content {
        gap: 0; /* Remove fixed gap */
        min-height: 0; /* Allow flex shrinking */
        justify-content: space-between; /* Push items to top and bottom */
    }
    
    .hero-text {
        align-self: flex-start; /* Align to top */
        margin-bottom: 0;
    }
    
    .info-card {
        align-self: flex-end; /* Align to bottom */
        margin-top: auto; /* Push to bottom */
    }
    
    .logo-container {
        top: 3vh;
        right: 4vw;
    }
    
    .logo-container .logo {
        height: clamp(40px, 5vh, 60px);
        width: auto;
    }

    .hero-text {
        margin-bottom: 16px;
    }

    .hero-text h1 {
        font-size: 32px; /* Fixed 32px on mobile */
        line-height: 1.15;
        max-width: 100%;
        word-break: break-word;
    }
    
    .hero-content {
        align-items: flex-end;
    }
    
    .info-card {
        /* Tighter padding on mobile: 12px all around */
        padding: 12px;
        gap: 20px; /* Gap between text and button */
        max-width: 100%;
        width: 100%; /* Full width on mobile for proper wrapping */
        box-sizing: border-box;
    }
    
    .info-card > div:first-child {
        gap: clamp(8px, 1.5vh, 12px);
        width: 100%; /* Full width on mobile */
        min-width: 0;
    }
    
    .info-card p {
        font-size: 16px; /* Fixed 16px on mobile */
        line-height: 1.6;
        width: 100%; /* Full width on mobile for wrapping */
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .btn {
        font-size: clamp(14px, 1.5vw, 18px); /* Minimum 14px */
        padding: clamp(10px, 1.2vh, 12px) clamp(20px, 4vw, 24px);
        white-space: normal; /* Allow button text to wrap if needed */
        width: 100%;
        max-width: 100%;
    }
    
    .button-group {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer h2 {
        font-size: clamp(28px, 5vw, 36px);
    }
    
    .footer-logo {
        width: clamp(100px, 25vw, 164px);
        height: clamp(60px, 15vw, 98px);
    }
    
    .footer-logo .logo {
        height: clamp(60px, 15vw, 98px);
        width: auto;
    }
    
    .contact-item h3,
    .contact-item a,
    .contact-item p {
        font-size: clamp(16px, 2.5vw, 20px); /* Larger on mobile - minimum 16px */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero {
        /* Minimum 95vh on very small screens, but can grow if content is taller */
        min-height: 95vh;
        padding: 2.5vh 12px 12px; /* 12px left and right padding */
    }
    
    .hero-text h1 {
        font-size: 32px; /* Fixed 32px on very small screens */
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-card p {
        font-size: 16px; /* Fixed 16px on very small screens */
    }
    
    .btn {
        font-size: 14px; /* Fixed minimum 14px */
    }
    
    .footer-logo {
        width: 80px;
        height: 48px;
    }
    
    .footer-logo .logo {
        height: 48px;
        width: auto;
    }
    
    .contact-item h3,
    .contact-item a,
    .contact-item p {
        font-size: 18px; /* Even larger on very small screens */
    }
}