:root {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-color: #026ca8; /* Corporate Blue */
    --accent-hover: #035282;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Header */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 500; /* Lower than modal */
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(-100%); /* Hidden initially to avoid flash */
}

/* Class to show header after modal is closed */
header.visible {
    transform: translateY(0);
}

.logo img {
    height: 28px; /* Reduced size */
    filter: brightness(0); /* Black logo for light theme */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), 
                url('images/details-quality-stack.jpg');
    background-size: cover;
    background-position: center;
    text-align: left;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

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

/* Divisions/Services */
.services {
    padding: 8rem 5%;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Clients Ticker */
.clients {
    padding: 6rem 0;
    background-color: var(--surface-color);
    overflow: hidden;
}

.ticker {
    display: flex;
    gap: 5rem;
    align-items: center;
    animation: slide 25s linear infinite;
    width: max-content;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker img {
    height: 60px;
    opacity: 0.7;
    filter: grayscale(1) contrast(1.2);
    transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}

.ticker img:hover {
    opacity: 1;
    filter: grayscale(0) contrast(1);
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 4rem 5%;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* Modal & Entry Selection */
#entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow-y: auto; /* Ensures scrollability on extremely small screens */
    padding: 1rem;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem; /* Reduced padding */
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    animation: modalPop 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    margin: auto;
}

@keyframes modalPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    font-size: 2.2rem; /* Reduced from 3rem */
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem; /* Reduced from 3rem */
}

.select-btn {
    padding: 1.5rem 1rem; /* Considerably reduced to save vertical space */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #f8f9fa;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.select-btn:hover {
    border-color: var(--accent-color);
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(2, 108, 168, 0.1);
}

.select-btn img {
    height: 28px; /* Reduced */
    margin-bottom: 0.2rem;
    filter: brightness(0);
}

.select-btn span {
    font-weight: 800;
    font-size: 1.1rem; /* Reduced */
    letter-spacing: 1px;
}

.select-btn small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Advantage Section */
.advantage {
    padding: 6rem 10%;
    background: linear-gradient(to right, var(--surface-color), var(--bg-color));
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.advantage h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.advantage p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.advantage ul {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.advantage li {
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.advantage li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* About Section */
.about {
    padding: 8rem 10%;
    background-color: var(--bg-color);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.about-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.about-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.philosophy-list {
    margin-top: 2rem;
    list-style: none;
}

.philosophy-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.philosophy-list i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .lang-switch {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--border-color);
        padding-top: 0.5rem;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
        margin-top: 5rem; /* Give space for the expanded mobile header */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about {
        padding: 4rem 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 2rem;
    }

    .select-btn {
        padding: 2rem 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 1rem;
    }
}

.select-btn span {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.select-btn small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
