:root {
    /* Main Theme Variables */
    --bg: #071127;
    --accent: #00ffd1;
    --card: #0f2038;
    --text-color: #ffffff;
    --light-grey: #a0a0a0;
    --radius: 14px;
    /* Footer Specific Variables */
    --footer-bg: #000000;
    --dark-grey: #1a1a1a;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header {
    background-color: var(--bg);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

.nav-links a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Expertise Page Specific Styles */
.expertise-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-heading {
    font-size: 3em;
    text-align: center;
    font-weight: 700;
    margin: 60px 0 40px;
    color: var(--accent);
}

.expertise-nav-container {
    background-color: var(--card);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.expertise-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.expertise-nav a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.expertise-nav a:hover {
    background-color: var(--accent);
    color: var(--bg);
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.expertise-nav::-webkit-scrollbar {
    height: 8px;
}

.expertise-nav::-webkit-scrollbar-track {
    background: var(--card);
    border-radius: 10px;
}

.expertise-nav::-webkit-scrollbar-thumb {
    background-color: var(--dark-grey);
    border-radius: 10px;
    border: 2px solid var(--card);
}

.expertise-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 0;
    border-bottom: 1px solid var(--card);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.expertise-section:last-of-type {
    border-bottom: none;
}

.expertise-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.expertise-section-left {
    flex-direction: row;
}

.expertise-section-right {
    flex-direction: row-reverse;
}

.expertise-content {
    flex: 1;
}

.expertise-image-container {
    flex: 1;
}

.expertise-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.expertise-image-container img:hover {
    transform: scale(1.02);
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
}

.section-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--light-grey);
}

/* Footer Styles */
.creative-footer {
    background-color: var(--footer-bg);
    color: var(--light-grey);
    padding-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
    border-bottom: 1px solid var(--dark-grey);
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-logo {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--light-grey);
    font-size: 1.2em;
    width: 35px;
    height: 35px;
    background-color: var(--dark-grey);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--footer-bg);
    background-color: var(--accent);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-cta-btn i {
    margin-right: 15px;
    font-size: 1.2em;
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--text-color);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.email-btn {
    background-color: var(--accent);
    color: var(--footer-bg);
}

.email-btn:hover {
    background-color: #00e6b8;
    transform: translateY(-3px);
}

.phone-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.phone-btn:hover {
    background-color: var(--accent);
    color: var(--footer-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.copyright {
    font-size: 0.85em;
    color: var(--light-grey);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .page-heading {
        font-size: 2.5em;
    }

    .expertise-section {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 0;
    }

    .expertise-image-container {
        margin-top: 20px;
    }

    .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 60%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        background-color: var(--card);
        padding-top: 100px;
        transform: translateX(100%);
        z-index: 150;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--text-color);
        font-size: 1.2em;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-container {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-cta-btn {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-links a:hover {
        transform: none;
    }
}