/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --accent: #00cec9;
    --bg-dark: #0a0a1a;
    --bg-section: #0f0f2a;
    --bg-card: #1a1a3e;
    --text: #e0e0f0;
    --text-muted: #8888aa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { color: var(--accent); font-size: 1.2rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a:focus { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(0, 206, 201, 0.08) 0%, transparent 50%);
    z-index: 1;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4); }

.btn-outline {
    border: 2px solid rgba(108, 92, 231, 0.5);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* === Sections === */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* === Services === */
.services {
    padding: 100px 0;
    background: var(--bg-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 206, 201, 0.3);
}

.service-icon { font-size: 2.5rem; margin-bottom: 16px; }

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === About === */
.about { padding: 100px 0; }

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
}

.stats { display: flex; gap: 48px; flex-wrap: wrap; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* === Contact === */
.contact {
    padding: 100px 0;
    background: var(--bg-section);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; }

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(108, 92, 231, 0.12);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* === Gallery === */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(108, 92, 231, 0.12);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
    border-color: rgba(0, 206, 201, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-loading, .gallery-empty {
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
    padding: 48px 0;
    font-size: 1.05rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--white);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* === Mobile === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    }
    .nav-links.active { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .stats { gap: 24px; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}
