/* =========================================
   CINEMATIC DARK / PREMIUM GLASS THEME
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --accent-gold: #D4AF37;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1200px;

    /* Typography */
    /* --font-heading: 'Playfair Display', serif; */
    /* --font-body: 'Inter', sans-serif; */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.text-gold {
    background: linear-gradient(to right, #c6a87c, #f3e6d5, #c6a87c);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.text-center {
    text-align: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   ANIMATIONS & MAGIC UI EFFECTS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes shimmer {
    to {
        left: 200%;
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

.delay-5 {
    animation-delay: 1.2s;
}

/* Shimmer Button Effect */
.magic-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(198, 168, 124, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.magic-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
    transform: skewX(-20deg);
}

.magic-shimmer:hover::before {
    animation: shimmer 1.5s infinite;
}

/* =========================================
   SECTION: HERO
   ========================================= */
/* =========================================
   HERO SECTION (MAGIC MCP STYLE)
   ========================================= */
.magic-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    padding-top: 80px;
}

.magic-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    background-image:
        linear-gradient(to right, #555 1px, transparent 1px),
        linear-gradient(to bottom, #555 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
}

.hero-title-main {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 14vw, 11rem);
    /* Massive responsive font */
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    position: relative;
}

.hero-title-main .outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: -1;
    opacity: 0.5;
}

.hero-roles-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hero-roles-bar span {
    position: relative;
}

.hero-roles-bar span::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

.hero-desc-box {
    margin: 4rem auto 0;
    max-width: 600px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   SECTION: GRID GALLERY
   ========================================= */
.grid-gallery-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-dark);
    background: radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.5), var(--bg-dark) 80%);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.gallery-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(198, 168, 124, 0.3);
}

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

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    border-radius: 12px;
}

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

.item-overlay h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-overlay p {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-gold);
}

.prev-lightbox,
.next-lightbox {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
}

.prev-lightbox {
    left: 1.5rem;
}

.next-lightbox {
    right: 1.5rem;
}

.prev-lightbox:hover,
.next-lightbox:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

/* =========================================
   FOOTER AVATAR
   ========================================= */
.footer-avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(198, 168, 124, 0.4);
    box-shadow: 0 0 30px rgba(198, 168, 124, 0.15);
    transition: all 0.4s ease;
}

.footer-avatar-container:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 40px rgba(198, 168, 124, 0.3);
}

.footer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.footer-avatar-container:hover .footer-avatar {
    filter: grayscale(0%);
}

/* Gallery Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-gallery-section {
        padding: 4rem 0;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .prev-lightbox,
    .next-lightbox {
        padding: 0.8rem 1rem;
        font-size: 1.4rem;
    }
}

/* =========================================
   SECTION: SERVICES (Glass Cards)
   ========================================= */
.services-section {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, rgba(198, 168, 124, 0.05), transparent 40%);
}

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

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

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

/* --- MAGIC UI: SPOTLIGHT CARD --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.1),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: rgba(212, 175, 55, 0.3);
    /* Gold hint on hover */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- MAGIC UI: METEORS --- */
.meteor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.meteor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4));
    transform: rotate(-45deg);
    animation: meteor 5s linear infinite;
    opacity: 0;
}

@keyframes meteor {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    100% {
        transform: rotate(-45deg) translateX(-1000px);
        opacity: 0;
    }
}

/* Service Icons */
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spotlight-card:hover .service-icon {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.1);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================================
   SECTION: CTA & CONTACT (UPDATED)
   ========================================= */
.footer-cta {
    padding: 6rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-main), #111);
    border-top: 1px solid var(--border-glass);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* Telegram */
.telegram-btn {
    background: rgba(42, 171, 238, 0.1);
    border: 1px solid rgba(42, 171, 238, 0.3);
    color: #2AABEE;
}

.telegram-btn:hover {
    background: #2AABEE;
    color: white;
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4);
}

/* WhatsApp */
.whatsapp-btn {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.social-links-footer {
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .glass-card {
        padding: 2rem;
    }

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

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}