:root {
    /* Color Palette */
    --color-bg: #0A0A0A;
    --color-gold: #C9A84C;
    --color-gold-hover: #e0be5b;
    --color-text: #F5F0E8;
    --color-text-muted: rgba(245, 240, 232, 0.7);
    --color-surface: #111111;
    --color-surface-hover: #161616;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover #cursor {
    width: 0;
    height: 0;
    background-color: transparent;
}

.cursor-hover #cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--color-gold);
    background-color: rgba(201, 168, 76, 0.1);
    backdrop-filter: blur(2px);
}

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

.logo-reveal {
    font-family: var(--font-heading);
    font-size: 3rem;
    overflow: hidden;
}

.logo-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-reveal span.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-reveal .tech {
    color: var(--color-gold);
    font-style: italic;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-bg);
    border: 1px solid var(--color-gold);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-text);
    background-color: rgba(245, 240, 232, 0.05);
}

.btn-gold-small {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.btn-gold-small:hover {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--color-text);
    letter-spacing: 1px;
}

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

.nav-links a:not(.btn-gold-small) {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-links a:not(.btn-gold-small)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn-gold-small):hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--color-text);
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.scroll-down span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--color-surface);
    padding: 3rem 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(201, 168, 76, 0.05), transparent);
    transform: translateY(100%);
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    background-color: var(--color-surface-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    transform: translateY(0);
}

.card-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let tilt work on the card */
}

/* Tilt effect handling in JS */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Why Us Section */
.dark-section {
    background-color: #050505;
    position: relative;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Process Section */
.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--color-gold);
    transition: width 1s ease;
}

.process-timeline.active .timeline-line::after {
    width: 100%;
}

.process-step {
    position: relative;
    z-index: 2;
    background-color: var(--color-bg);
    padding: 0 1rem;
    text-align: center;
    width: 30%;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 auto 2rem;
    transition: var(--transition-smooth);
}

.process-step:hover .step-number {
    background-color: var(--color-gold);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background-color: var(--color-surface);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-gold);
    line-height: 0;
    position: absolute;
    top: 3rem;
    left: 2rem;
    opacity: 0.2;
}

.quote {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.client-info h4 {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
}

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

.section-subtitle {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-top: -1rem;
}

#contact-form {
    background-color: var(--color-surface);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

input::placeholder, textarea::placeholder {
    color: rgba(245, 240, 232, 0.3);
}

.w-100 {
    width: 100%;
    margin-top: 1rem;
    cursor: none;
}

.email-direct {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.email-direct a {
    color: var(--color-gold);
}

.email-direct a:hover {
    text-decoration: underline;
}

/* Footer */
#footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    background-color: #050505;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--color-gold);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icon:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* simple hidden for mobile, in real app add hamburger */
    }
    
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .timeline-line {
        top: 0;
        left: 50%;
        width: 1px;
        height: 100%;
        transform: translateX(-50%);
    }
    
    .timeline-line::after {
        width: 1px;
        height: 0;
        transition: height 1s ease;
    }
    
    .process-timeline.active .timeline-line::after {
        height: 100%;
        width: 1px;
    }
    
    .process-step {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #contact-form {
        padding: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* For hoverable elements */
a, button, input, textarea {
    cursor: none; /* override default pointer since we have custom cursor */
}
