:root {
    /* Dark Theme (Default) */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --card-bg: #1a1a1a;
    --accent-color: #00aaff;
    --accent-hover: #0088cc;
    --gradient-primary: linear-gradient(135deg, #001f3f, #000);
    --gradient-card: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    --nav-bg: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

.light-mode {
    /* Light Theme */
    --bg-color: #f4f7f6;
    --text-color: #111111;
    --text-muted: #555555;
    --card-bg: #ffffff;
    --accent-color: #0077cc;
    --accent-hover: #005fa3;
    --gradient-primary: linear-gradient(135deg, #e0eafc, #89f7fe);
    /* Soft blue/white */
    --gradient-card: linear-gradient(135deg, #ffffff, #f0f0f0);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo svg {
    /* Ensure logo is visible in both modes if it's black/white, might need filter */
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-btn {
    display: none;
}

/* Sections */
.section {
    padding: 100px 5%;
    text-align: center;
}

/* Home / Hero */
.home {
    min-height: 90vh;
    /* Almost full viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    /* Fallback */
    /* Add a subtle mesh gradient or blob later for "Premium" feel */
}

/* Premium Text Styling */
.home h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--accent-color), #88d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.home p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    background: var(--accent-color);
    color: white;
    /* Always white text on button */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-color);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-color);
}

/* Services */
.services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Team */
.team {
    background: var(--bg-color);
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.team-card {
    width: 350px;
    /* Slight increase */
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.team-image {
    height: 350px;
    /* Taller image */
    width: 100%;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    /* Pushes content down if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-info h3 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.team-info .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}


.team-links {
    margin-top: auto;
    /* Push to bottom of card if needed, or just keep margin-top */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertical center */
    gap: 20px;
    width: 100%;
}

.team-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.team-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.team-links a img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter, brightness(0) invert(1));
    display: block;
    /* Remove inline-block gaps */
}

/* In light mode, social icons usually need to look standard (black) or colored.
   But here we are using images. We need to handle this via CSS variables or filters. */
.light-mode .team-links a img {
    filter: invert(0);
    /* Black icons for light mode */
}

/* Ensure dark mode icons are white */
body:not(.light-mode) .team-links a img {
    filter: invert(1);
}


/* Portfolio */
.portfolio {
    background: var(--bg-color);
}

.portfolio-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.coming-soon-box {
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.coming-soon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.coming-soon-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.coming-soon-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 40px 5%;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-color);
    }

    .home h1 {
        font-size: 2.5rem;
    }
}