:root {
    --primary-blue: #1A5F7A; 
    --secondary-blue: #0F3D59;
    --light-blue: #E0F2FE;
    
    --text-dark: #1E293B;
    --text-gray: #475569;
    --text-white: #FFFFFF;
    
    --bg-main: #E2E8F0; /* Slightly darker than white */
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Background setup */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at top right, #CBD5E1 0%, var(--bg-main) 50%, var(--bg-main) 100%);
}

/* Navbar - Island Gray-Glass Style */
.dark-navbar {
    background: rgba(30, 41, 59, 0.6); /* Dark gray glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: fixed;
    width: 90%;
    max-width: 950px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--light-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

.btn-primary-light {
    background: var(--light-blue);
    color: var(--secondary-blue);
}
.btn-primary-light:hover {
    background: #ffffff;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10rem !important; /* compensate for island navbar */
    padding-bottom: 0;
    gap: 2rem;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

/* Text Highlight Panel */
.hero-text-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.hero-logo {
    max-width: 350px;
    margin: 0 auto 2rem auto;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-right {
    flex: 1.2; /* Larger image */
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-team-photo {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.medal-text {
    position: absolute;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.top-text { top: -20px; left: 50%; transform: translateX(-50%); }
.bottom-text { bottom: -10px; left: 50%; transform: translateX(-50%); }
.left-text { left: -30px; top: 50%; transform: translateY(-50%); }
.right-text { right: -30px; top: 50%; transform: translateY(-50%); }

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-card p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.principles {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.principle {
    background: var(--light-blue);
    color: var(--secondary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Common Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    color: var(--secondary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Grid layout for services */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* Portfolio Stats */
.stats-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-num {
    display: block;
    font-size: 4.5rem;
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-weight: 600;
}

.stat-desc {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    font-size: 1.15rem;
}

/* Partners - Slide 9 List Layout */
.partners-list-card {
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.partner-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.partner-list-item:first-child {
    padding-top: 0;
}

.partner-list-logo {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-list-logo img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.partner-list-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-left: 3rem;
}

.text-logo {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Footer */
.glass-footer {
    background: var(--secondary-blue);
    color: var(--text-white);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255,255,255,0.8);
}

.footer-contacts a {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--light-blue);
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
    }
    .hero-left, .hero-right {
        max-width: 100%;
    }
    .hero-team-photo {
        max-width: 100%;
    }
}

/* Modal for Services */
.modal-overlay {
    visibility: hidden; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: rgba(248, 250, 252, 0.95);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: var(--secondary-blue);
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* Service card hover pointer and animation */
.service-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar */
    .dark-navbar {
        width: 95%;
        border-radius: 30px;
    }
    .nav-container {
        padding: 0.5rem 1rem;
    }
    .nav-links {
        display: none; /* Hide links on mobile to save space */
    }
    .logo {
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero-split.section-container {
        padding-top: 100px !important;
        text-align: center;
    }
    .hero-logo {
        max-width: 50% !important;
        margin: 0 auto 1rem !important;
        display: block;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .hero-left p {
        font-size: 0.9rem;
        margin: 0 auto 1.5rem;
    }
    .medal-text {
        font-size: 0.75rem;
    }
    .medal-text.top-text { top: -15px; }
    .medal-text.bottom-text { bottom: -15px; }
    .medal-text.left-text { left: -5px; }
    .medal-text.right-text { right: -5px; }

    /* Portfolio Stats */
    .stat-num {
        font-size: 2.2rem;
        line-height: 1.15;
    }
    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .stat-desc {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .stat-item {
        margin-bottom: 1rem;
    }

    /* General Typography & Sections */
    .section-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .section-container {
        padding: 1rem 0.5rem !important;
    }
    .glass-card {
        padding: 0.8rem !important;
    }

    /* Team Photos Centering */
    .team-section {
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
    }
    .team-text h2 {
        text-align: center !important;
    }
    .team-text p[style*="font-size: 1.3rem"] {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    .team-text p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    .team-text p[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    .team-photo {
        margin: 0 auto;
        width: 100%;
    }
    .team-photo img {
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
    }
    
    /* Dynamic Inline Styling Overrides for Mobile */
    h2[style*="font-size: 4rem"] {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
    h2[style*="font-size: 2.2rem"] {
        font-size: 1.1rem !important;
    }
    .glass-card h3[style*="font-size: 2rem"],
    .glass-card h3[style*="font-size: 2.2rem"],
    .glass-card p[style*="font-size: 2rem"] {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    .glass-card p[style*="font-size: 1.4rem"] {
        font-size: 0.9rem !important;
    }
    .glass-card p[style*="font-size: 1.25rem"] {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    .glass-card p[style*="font-size: 1.3rem"], 
    .philosophy-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    h3[style*="font-size: 2.2rem"] {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    .glass-card h4[style*="font-size: 1.5rem"] {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    .glass-card p[style*="font-size: 1.15rem"] {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Grid Layouts Overrides */
    div[style*="minmax(400px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
    }

    /* Proposal Step Numbers */
    div[style*="font-size: 3.5rem"] {
        font-size: 1.5rem !important;
        min-width: 20px !important;
    }

    /* Partners List */
    .partners-list-card {
        flex-direction: row !important;
        padding: 0.8rem !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    .partners-list-card > div:first-child {
        flex: 0 0 35% !important;
        width: 35% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .partners-list-card img {
        width: 100% !important;
    }
    .partners-list-card > div:last-child {
        flex: 1;
        min-height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .partners-list-card > div:last-child > div {
        font-size: 0.8rem !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        display: flex;
        align-items: center;
    }

    /* Modal */
    .modal-content {
        padding: 1rem !important;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .close-modal {
        top: 0.2rem;
        right: 0.5rem;
        font-size: 2rem;
    }
    #modal-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    #modal-body {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    #modal-body p[style*="font-size: 1.5rem"] {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    #modal-body p[style*="font-size: 1.8rem"] {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    #modal-body a {
        flex-wrap: wrap;
        word-break: break-word;
    }
    #modal-body svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
