* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-brand {
    color: #00ADB5;
}

.logo-dark {
    color: #111;
    margin-left: 5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #00ADB5;
}

.btn-navbar {
    background-color: #00ADB5;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 173, 181, 0.2);
}

.btn-navbar:hover {
    background-color: #008A91;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 173, 181, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #111;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.navbar.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.navbar.active .hamburger span:nth-child(2) {
    opacity: 0;
}
.navbar.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    height: calc(100vh - 80px); /* Exactly full screen minus navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: min(30px, 4vh) 5%;
    gap: min(30px, 4vh);
    overflow: hidden;
}

.hero-text-container {
    color: white;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-text-container h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: min(15px, 2vh);
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-text-container p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Accordion Container */
.accordion-container {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 1300px;
    flex: 1; /* Takes up remaining height dynamically */
    min-height: 0; /* Ensures it can shrink properly */
    margin: 0 auto;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    background-color: #111; /* fallback */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card.active {
    flex: 5;
    cursor: default;
    transform: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
    transition: background 0.6s ease;
}

.card:not(.active) .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.collapsed-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    color: white;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.6s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card.active .collapsed-title {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
}

.expanded-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%, 30px);
    width: 90%;
    max-width: 600px;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    pointer-events: none;
}

.card.active .expanded-content {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.expanded-content h2 {
    font-size: clamp(1.5rem, 3vw, 38px);
    font-weight: 800;
    margin-bottom: min(15px, 2vh);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.expanded-content p {
    font-size: clamp(0.9rem, 1.2vw, 17px);
    line-height: 1.5;
    margin-bottom: min(20px, 3vh);
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-incele {
    display: inline-block;
    background-color: #00ADB5;
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-incele:hover {
    background-color: #008A91;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 1200px) {
    /* Kept empty as flex handles height now */
}

@media (max-width: 992px) {
    .expanded-content {
        bottom: 30px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 15px 5%;
    }
    .hamburger {
        display: flex;
    }
    nav, .btn-navbar {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
    .navbar.active nav {
        display: flex;
        justify-content: center;
    }
    .navbar.active .btn-navbar {
        display: inline-block;
        margin-top: 15px;
    }
    .navbar.active nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .hero-section {
        padding: 30px 5%;
        height: auto;
        min-height: calc(100vh - 80px);
        overflow: visible;
    }
    .accordion-container {
        flex-direction: column;
        height: 60vh; /* Approximate height for mobile flex column */
        min-height: 600px;
        flex: none;
        gap: 10px;
    }
    .card {
        flex: 1;
        border-radius: 15px;
    }
    .card.active {
        flex: 4;
    }
    .collapsed-title {
        transform: translate(-50%, -50%) rotate(0deg);
        font-size: 18px;
    }
    .card.active .collapsed-title {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    }
    .expanded-content h2 {
        font-size: 24px;
    }
    .expanded-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Sub-page Styles */
.subpage-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.subpage-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75);
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 5%;
    animation: fadeInUp 0.8s ease forwards;
}

.subpage-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.subpage-hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
    line-height: 1.6;
}

.corporate-intro {
    padding: 80px 5%;
    background-color: #fff;
    text-align: center;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: #444;
    font-weight: 400;
}

.solutions-section {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.solutions-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-item {
    background: #fff;
    padding: 40px;
    border-left: 5px solid #00ADB5;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.solution-item h3 {
    font-size: 1.5rem;
    color: #1E293B;
    margin-bottom: 15px;
    font-weight: 700;
}

.solution-item p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.stats-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #00ADB5;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn-back-container {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f9fa;
}

.btn-back {
    display: inline-block;
    color: #00ADB5;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #00ADB5;
    padding: 12px 35px;
    border-radius: 30px;
}

.btn-back:hover {
    background-color: #00ADB5;
    color: white;
}

/* Single Page Sections Styles */
.about-section {
    padding: 120px 5%;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.section-subtitle {
    color: #00ADB5;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.section-title-left {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00ADB5;
    font-family: 'Montserrat', sans-serif;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

.about-visual {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #00ADB5;
    color: white;
    padding: 30px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 173, 181, 0.4);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-top: 5px;
}

.contact-section {
    padding: 100px 5%;
    background-color: #0F172A;
    color: white;
    text-align: center;
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    .experience-badge {
        bottom: 20px;
        left: 20px;
    }
}
