:root {
    /* Base Colors */
    --bg-color: #000000;
    --text-color: #E2E8F0;
    --text-muted: #94A3B8;
    
    /* Primary Accent - Champagne Gold */
    --accent-color: #D4AF37;
    --accent-hover: #F0CC5C;
    
    /* Glassmorphism Configuration */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.6);
    
    /* Background Gradient */
    --bg-gradient: radial-gradient(ellipse at top right, #0f172a 0%, #000000 60%), radial-gradient(ellipse at bottom left, #080b12 0%, #000000 60%);
}

[data-theme="light"] {
    --bg-color: #F8FAFC;
    --text-color: #0F172A;
    --text-muted: #475569;
    
    --accent-color: #C09B2A;
    --accent-hover: #9E7D1C;
    
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.05);
    
    --bg-gradient: radial-gradient(ellipse at top right, #e2e8f0 0%, #F8FAFC 60%), radial-gradient(ellipse at bottom left, #cbd5e1 0%, #F8FAFC 60%);
}

[data-theme="light"] .step-number {
    background: #fff;
}
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .logo {
    color: #0F172A;
}
[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.9));
}
[data-theme="light"] .service-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(212, 175, 55, 0.1);
}
[data-theme="light"] footer {
    background: #F1F5F9;
}
[data-theme="light"] footer .logo {
    color: #0F172A;
}
[data-theme="light"] .footer-col h4 {
    color: #0F172A;
}
[data-theme="light"] .step {
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .step:hover {
    background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .step h3 {
    color: #0F172A;
}
[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.95);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.glass:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
    will-change: transform, box-shadow;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-glass {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 400;
    transition: color 0.3s;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 5px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
.header-cta {
    display: flex;
    align-items: center;
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title span {
    background: linear-gradient(135deg, #F0CC5C, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}

/* Ambient glow removed in favor of dynamic-bg */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero .eyebrow {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 300;
}

.hero h1 span {
    color: var(--accent-color);
    font-style: italic;
}

.typed-cursor {
    animation: blink 0.8s infinite;
    color: var(--accent-color);
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Glass Card */
.hero-card.glass {
    position: absolute;
    bottom: 10%;
    right: 10%;
    padding: 30px;
    display: flex;
    gap: 40px;
    z-index: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat .number {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 300;
}

.stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    flex: 1 1 320px;
    max-width: 450px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.service-card::after, .step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.15), transparent 80%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after, .step:hover::after {
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    color: var(--accent-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(212, 175, 55, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
    color: #ccc;
    transition: all 0.3s;
}

.service-card:hover .tag {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--accent-hover);
    background: rgba(212, 175, 55, 0.05);
}

/* How We Work Timeline (Branch Design) */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Main Trunk */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color) 10%, var(--accent-hover) 50%, rgba(212, 175, 55, 0.2) 90%, transparent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 0;
    border-radius: 3px;
}

.step {
    position: relative;
    z-index: 1;
    width: calc(50% - 60px);
    text-align: left;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: visible;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Branch connectors */
.step::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(212, 175, 55, 0.2));
    z-index: -1;
    transition: all 0.5s ease;
}

.step:nth-child(odd) {
    align-self: flex-start;
    border-right: 3px solid transparent;
}

.step:nth-child(odd)::before {
    right: -60px;
    background: linear-gradient(270deg, var(--accent-color), rgba(212, 175, 55, 0));
}

.step:nth-child(even) {
    align-self: flex-end;
    border-left: 3px solid transparent;
}

.step:nth-child(even)::before {
    left: -60px;
    background: linear-gradient(90deg, var(--accent-color), rgba(212, 175, 55, 0));
}

.step:nth-child(odd):hover {
    transform: translateX(-15px) scale(1.02);
    border-right: 3px solid var(--accent-color);
}

.step:nth-child(even):hover {
    transform: translateX(15px) scale(1.02);
    border-left: 3px solid var(--accent-color);
}

.step:hover {
    background: rgba(30, 30, 30, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.05);
}

.step:hover::before {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #000;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--accent-color);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Step Node positioned on the trunk */
.step:nth-child(odd) .step-number {
    right: -90px;
}

.step:nth-child(even) .step-number {
    left: -90px;
}

.step:hover .step-number {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    transform: translateY(-50%) scale(1.2);
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #fff;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step:hover h3 {
    color: var(--accent-hover);
}

.step p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0;
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    padding: 80px 40px;
    margin: 40px auto;
    max-width: 950px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0.5;
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-banner:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(212, 175, 55, 0.1);
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contact Form */
.contact-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 50px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 160px;
}

/* Footer */
footer {
    background: #000000;
    padding: 80px 5% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

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

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Utilities */
.hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-card.glass {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.4s ease-out;
        gap: 15px;
    }
    
    .nav-links.active-menu {
        clip-path: circle(150% at 100% 0);
    }
    
    .nav-links a {
        text-align: center;
        padding: 10px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .header-cta {
        display: flex;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .header-cta .btn-primary {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline {
        padding-left: 0;
        gap: 50px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .step::before {
        display: none;
    }
    
    .step {
        width: 100%;
        padding: 55px 30px 30px;
        align-self: center !important;
        border: 1px solid var(--glass-border) !important;
    }
    
    .step-number {
        left: 50% !important;
        right: auto !important;
        top: 0 !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .step:nth-child(odd):hover,
    .step:nth-child(even):hover {
        transform: translateY(-10px) !important;
    }
    
    .step:nth-child(odd):hover .step-number,
    .step:nth-child(even):hover .step-number {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg) !important;
    }
    
    .cta-banner h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
}

/* Dynamic Background & Effects */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-gradient);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out alternate;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -10%) scale(0.95); }
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 0;
    will-change: transform;
    margin-left: -250px;
    margin-top: -250px;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.5), var(--accent-color));
    z-index: 9999;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    border-radius: 0 2px 2px 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader.fade-out {
    opacity: 0;
    transform: scale(1.1);
    visibility: hidden;
}

.preloader-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    opacity: 0;
    animation: preloaderAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes preloaderAnim {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Custom Cursor */
@media (pointer: fine) {
    body, body *:not(input):not(textarea) {
        cursor: none !important;
    }
}

@media (max-width: 768px), (pointer: coarse) {
    .custom-cursor-circle, .custom-cursor-dot {
        display: none !important;
    }
}

.custom-cursor-circle, .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999999;
    border-radius: 50%;
    will-change: transform;
    opacity: 0;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.3s, margin-top 0.3s, background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.custom-cursor-circle {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    margin-left: -22px;
    margin-top: -22px;
}

.custom-cursor-circle::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px dashed rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: spinCursor 10s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes spinCursor {
    100% { transform: rotate(360deg); }
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    margin-left: -4px;
    margin-top: -4px;
    animation: pulseDot 1.5s infinite alternate;
}

    @keyframes pulseDot {
        0% { box-shadow: 0 0 4px var(--accent-color); opacity: 0.8; }
        100% { box-shadow: 0 0 12px var(--accent-color), 0 0 20px var(--accent-color); opacity: 1; }
    }

    .custom-cursor-circle.hovered {
        width: 65px;
        height: 65px;
        margin-left: -32.5px;
        margin-top: -32.5px;
        background-color: rgba(212, 175, 55, 0.15);
        border-color: rgba(212, 175, 55, 0.8);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .custom-cursor-circle.hovered::before {
        border: 2px dotted rgba(212, 175, 55, 0.9);
        animation: spinCursor 5s linear infinite;
    }
    
    .custom-cursor-dot.hovered {
        opacity: 0;
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}
.floating-wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Page Transition */
body {
    transition: opacity 0.4s ease-out;
}
body.page-transitioning {
    opacity: 0;
}

/* Advanced Text Reveals */
.reveal-element, .section-title, .service-card, .step, .glass, .portfolio-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.show-reveal, .section-title.show-reveal, .service-card.show-reveal, .step.show-reveal, .glass.show-reveal, .portfolio-item.show-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.portfolio-item {
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}
.portfolio-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}
.portfolio-img div {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item:hover .portfolio-img div {
    transform: scale(1.08);
}
.portfolio-content {
    padding: 30px;
}
.portfolio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.portfolio-content p {
    color: var(--text-muted);
}

/* Extra Mobile Optimizations */
@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    .service-card, .portfolio-item {
        margin-bottom: 15px;
    }
    .cta-banner {
        padding: 40px 20px !important;
    }
    .cta-banner h2 {
        font-size: 1.6rem !important;
    }
    .cta-banner .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        justify-content: center;
    }
    .cta-banner > div {
        flex-direction: column !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
    .portfolio-img {
        height: 200px !important;
    }
    .contact-container {
        padding: 20px 15px !important;
    }
}


