:root[data-theme='light'] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #0ea5e9;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.1);
}

:root[data-theme='dark'] {
    --bg: #020617;
    --surface: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --nav-bg: rgba(2, 6, 23, 0.9);
    --border: rgba(255, 255, 255, 0.1);
}

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

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

nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 8%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1.5px;
    text-decoration: none;
    color: inherit;
    z-index: 1001;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
    margin-right: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

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

.theme-toggle {
    color: var(--text-main);
    opacity: 0.7;
    transition: 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    opacity: 1;
    color: var(--accent);
}

.slider-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 20;
    max-width: 900px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.slide-content h1 span {
    color: var(--accent);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent);
    width: 35px;
    border-radius: 20px;
}

.stats-bar {
    padding: 80px 8%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent);
    font-weight: 900;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 100px 8%;
}

.service-card {
    background: var(--surface);
    padding: 50px 30px;
    border-radius: 30px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.4s ease;
}

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

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent);
    transition: 0.4s;
}

.service-card:hover .service-icon-wrapper {
    background: var(--accent);
    color: #fff;
    transform: rotateY(180deg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 50px 8% 100px;
}

.gallery-item {
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

footer {
    background: var(--bg);
    padding: 100px 8% 40px;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(10px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p, .footer-bottom a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.15) rotate(-12deg);
    border-color: var(--accent);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: zoom-out;
    backdrop-filter: blur(10px);
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 15px;
    border: 2px solid var(--border);
    transform: scale(0.9);
    transition: 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox.active img {
    transform: scale(1);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 5%;
        height: 70px;
        justify-content: space-between;
    }

    .nav-links {
        display: none !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .slider-container {
        height: 60vh;
    }

    .slide-content h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .stats-bar {
        padding: 40px 5%;
        flex-direction: column;
        gap: 40px;
    }

    .stat-item {
        width: 100%;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        padding: 40px 5%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 40px 20px;
    }

    .gallery-grid {
        padding: 20px 5% 60px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
        border-radius: 20px;
    }

    footer {
        padding: 60px 5% 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }
}