/* --- Base Colors & Variables --- */
:root {
    --bg-dark: #0a0a0a; /* Premium deep black */
    --color-cyan: #d4af37; /* Warm Gold */
    --color-magenta: #ffffff; /* White */
    --color-purple: #c5a059; /* Soft Gold */
    --color-orange: #ffd700; /* Bright Gold */
    --text-main: #f5f5f7;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15); /* Gold tinted glass border */
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.6); }

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-main);
    cursor: none;
}

/* --- Preloader --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader-content { text-align: center; }
.preloader-text {
    font-size: 2.5rem; font-family: var(--font-heading); font-weight: 700;
    margin-top: 1rem; letter-spacing: 2px;
}
.loading-bar {
    width: 200px; height: 2px; background: rgba(255,255,255,0.1);
    margin: 20px auto; border-radius: 2px; position: relative; overflow: hidden;
}
.loading-progress {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--color-cyan); box-shadow: 0 0 10px var(--color-cyan);
    animation: load-progress 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes load-progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}
.cursor-outline {
    width: 40px; height: 40px; border: 2px solid var(--color-cyan);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* --- Background Effects --- */
#tsparticles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; pointer-events: none;
}



/* --- Typography Effects --- */
.gradient-text {
    background: linear-gradient(to right, var(--color-cyan), #ffffff);
    -webkit-background-clip: text; color: transparent; display: inline-block;
}

.gradient-text-animated {
    background: linear-gradient(270deg, var(--color-cyan), #ffffff, var(--color-purple), var(--color-cyan));
    background-size: 300% 300%;
    -webkit-background-clip: text; color: transparent;
    animation: gradient-flow 6s ease infinite;
    padding-bottom: 0.1em; /* Extra padding to prevent clipping of descenders */
    display: inline-block;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glow-text {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 35px; background: linear-gradient(45deg, var(--color-cyan), var(--color-purple));
    color: #000 !important; font-family: var(--font-body); font-weight: 600;
    border-radius: 4px; /* More squared for luxury */
    border: none; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
    position: relative; overflow: hidden; z-index: 1; transition: var(--transition);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #ffffff, var(--color-cyan));
    z-index: -1; transition: opacity 0.4s ease; opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5); }

.btn-secondary {
    display: inline-block; padding: 12px 30px; background: transparent;
    color: var(--color-cyan); border: 1px solid var(--color-cyan);
    border-radius: 4px; font-family: var(--font-body); font-weight: 400;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1); color: #fff;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); z-index: 999;
    transition: transform 0.3s;
}
.floating-whatsapp:hover { transform: scale(1.1) rotate(10deg); color: white; }

.sticky-cta {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 1rem 5%;
}
.logo { font-size: 1.8rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); }

/* Logo Image & Colorization */
.logo-wrapper {
    position: relative;
    display: inline-block;
    width: 320px; 
    height: 65px;
    overflow: hidden;
}
.logo-img {
    position: absolute;
    top: 50%;
    left: 45%;
    width: 420px;
    height: auto;
    transform: translate(-50%, -50%);
    max-width: none;
}
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a.nav-item {
    font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem;
    position: relative; padding: 5px 0; color: #fff;
}
.nav-links a.nav-item::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--color-cyan); transition: var(--transition);
}
.nav-links a.nav-item:hover::before { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 30px; height: 2px; background: var(--color-cyan); transition: 0.4s; }

/* --- Hero Section --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: flex-start;
    padding: 0 5%; position: relative;
    background: transparent;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%), url('../images/hero_bg.png') no-repeat center center/cover;
    z-index: -3; /* Ensures this stays behind tsparticles (z-index: -2) */
}
.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero-content .tagline {
    font-size: 1.2rem; color: var(--color-cyan); text-transform: uppercase;
    letter-spacing: 5px; margin-bottom: 1.5rem; display: block; font-weight: 400;
}
.hero-content h1 {
    font-size: 5rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 700;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    padding-bottom: 10px; /* Prevents text clipping for descenders */
}
.hero-subtext {
    font-size: 1.2rem; color: #eee; margin-bottom: 2.5rem;
    max-width: 600px; line-height: 1.8;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.hero-buttons { display: flex; gap: 1.5rem; }

/* --- Shared Sections --- */
.glass-section {
    position: relative; margin: 6rem 5%; border-radius: 12px;
    background: #050505;
    padding: 7rem 5%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}
.glass-section::before {
    content: ''; position: absolute;
    top: -100%; left: -50%; width: 200%; height: 300%;
    background: conic-gradient(from 0deg, transparent 75%, rgba(0, 255, 255, 0.1) 90%, rgba(0, 255, 255, 1) 100%);
    animation: snake-border 10s linear infinite;
    z-index: 0; pointer-events: none;
}
.glass-section::after {
    content: ''; position: absolute;
    inset: 2px;
    background: #0a0a0a; /* Solid dark background to cover the internal gradient */
    border-radius: 10px;
    z-index: 0; pointer-events: none;
}
.glass-section > * {
    position: relative; z-index: 1;
}
@keyframes snake-border {
    0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
    100% { transform: rotate(360deg); filter: hue-rotate(360deg); }
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; font-weight: 700; }
.separator-animated {
    width: 80px; height: 2px; margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}
.section-header p { color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* --- About Section --- */
.about-content {
    display: flex; flex-direction: column; gap: 2rem; align-items: center;
    text-align: center; max-width: 900px; margin: 0 auto;
}
.about-content p {
    font-size: 1.2rem; color: #ddd; line-height: 1.9; font-weight: 300;
}

/* --- Features Grid (Solutions & Why Choose Us) --- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem;
}
.feature-card {
    background: #111111; /* Very dark clay, matching the black/gold theme */
    padding: 4rem 2.5rem; 
    border-radius: 24px; /* Clay UI */
    border: 2px solid var(--color-orange); /* Shining orange-gold border */
    text-align: center;
    position: relative; 
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.35), /* Shining glow effect */
        15px 15px 35px rgba(0,0,0,0.95), 
        -5px -5px 15px rgba(255,255,255,0.02),
        inset 2px 2px 8px rgba(255,255,255,0.04), 
        inset -4px -4px 10px rgba(0,0,0,0.8);
}
.card-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    opacity: 0; transition: 0.5s; z-index: 1; pointer-events: none; transform: translateZ(0px);
}
.feature-card:hover { 
    transform: translateY(-15px);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6), /* Stronger glow on hover */
        20px 20px 40px rgba(0,0,0,1), 
        -5px -5px 20px rgba(255,255,255,0.03),
        inset 2px 2px 10px rgba(212, 175, 55, 0.3), /* Warm Gold Inner Highlight */
        inset -4px -4px 10px rgba(0,0,0,0.8);
}
.feature-card:hover .card-glow { opacity: 1; }
.feature-card .icon { 
    font-size: 3rem; 
    width: 90px; height: 90px; 
    margin: 0 auto 2rem; 
    background: #111; 
    border-radius: 24px; /* Rounded square (Squircle) */
    display: flex; justify-content: center; align-items: center;
    border: none;
    position: relative; z-index: 1; 
    box-shadow: 
        10px 10px 20px rgba(0,0,0,0.9), 
        -5px -5px 15px rgba(255,255,255,0.03), 
        inset 0px 0px 30px rgba(212, 175, 55, 0.12),
        inset 2px 2px 5px rgba(255,255,255,0.05); /* Soft inner glow + edge highlight */
    transform: translateZ(30px); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.feature-card:hover .icon {
    transform: translateZ(50px) scale(1.1);
    box-shadow: 
        15px 15px 25px rgba(0,0,0,0.95), 
        -6px -6px 16px rgba(255,255,255,0.04), 
        inset 0px 0px 50px rgba(212, 175, 55, 0.3),
        inset 2px 2px 5px rgba(255,255,255,0.1);
}
.feature-card h3 { 
    font-family: var(--font-body); font-size: 1.4rem; font-weight: 600; color: #fff; 
    position: relative; z-index: 1; transform: translateZ(20px); transition: transform 0.3s ease; 
}

/* --- How We Work (Timeline) --- */
.timeline-container {
    display: flex; justify-content: space-between; align-items: flex-start;
    position: relative; padding: 2rem 0; overflow-x: auto; gap: 2rem;
    scrollbar-width: none;
}
.timeline-container::-webkit-scrollbar { display: none; }
.timeline-line {
    position: absolute; top: 50px; left: 5%; right: 5%; height: 1px;
    background: rgba(212, 175, 55, 0.2); z-index: 0;
}
.timeline-step {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
    min-width: 150px; text-align: center; flex: 1;
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-dark);
    border: 2px solid var(--color-cyan); display: flex; justify-content: center; align-items: center;
    font-weight: 600; color: var(--color-cyan); margin-bottom: 1.5rem; font-family: var(--font-heading);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); transition: var(--transition);
}
.timeline-step:hover .step-number { background: var(--color-cyan); color: #000; transform: scale(1.1); }
.step-title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; color: #fff; }

/* --- Our Clients (Grid) --- */
.clients-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
    align-items: center; justify-items: center;
}
.client-logo {
    padding: 2rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px; width: 100%; text-align: center; transition: var(--transition);
    font-family: var(--font-heading); font-size: 1.2rem; color: #aaa; letter-spacing: 2px;
}
.client-logo:hover {
    background: rgba(212, 175, 55, 0.05); border-color: rgba(212, 175, 55, 0.3); color: var(--color-cyan);
    transform: translateY(-5px);
}

/* --- Testimonials --- */
.testimonials { padding: 5rem 0; overflow: hidden; }
.testimonial-marquee {
    display: inline-flex; gap: 3rem; animation: scroll-left 40s linear infinite; padding-left: 3rem;
}
.testimonial-marquee:hover { animation-play-state: paused; }
.testimonial-card {
    width: 450px; flex-shrink: 0; 
    background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(5,5,5,0.95)); 
    padding: 4rem 3rem;
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    transition: var(--transition);
}
.testimonial-card::before {
    content: '""';
    position: absolute; top: 20px; right: 30px;
    font-size: 8rem; font-family: serif; color: rgba(212, 175, 55, 0.05);
    line-height: 1; pointer-events: none;
}
.testimonial-card:hover { 
    border-color: rgba(212, 175, 55, 0.4); 
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15); 
    transform: translateY(-10px); 
}
.stars { color: var(--color-cyan); font-size: 1.2rem; margin-bottom: 1.5rem; letter-spacing: 3px; }
.quote { font-style: italic; font-size: 1.1rem; color: #ddd; margin-bottom: 2rem; line-height: 1.8; }
.author { font-family: var(--font-body); font-weight: 600; color: var(--color-cyan); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* Reuse scroll left */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* --- Team Section --- */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem;
}
.team-card {
    text-align: center;
}
.team-img-wrap {
    width: 200px; height: 200px; margin: 0 auto 1.5rem;
    border-radius: 50%; overflow: hidden;
    padding: 6px; background: linear-gradient(135deg, var(--color-cyan), transparent, var(--color-cyan));
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.team-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; 
    border-radius: 50%; filter: grayscale(40%); transition: var(--transition);
}
.team-card:hover .team-img-wrap img { filter: grayscale(0%); transform: scale(1.05); }
.team-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; }
.team-card p { color: var(--color-cyan); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Contact --- */
.contact-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.contact-info p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; margin-top: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.input-group { position: relative; }
.input-group input, .input-group textarea {
    width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px; color: #fff; font-family: var(--font-body); font-size: 1rem;
    border-radius: 4px; resize: none; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: var(--color-cyan); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.input-group label {
    position: absolute; top: 15px; left: 20px; color: var(--text-muted); pointer-events: none; transition: 0.3s;
}
.input-group input:focus ~ label, .input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px; left: 10px; font-size: 0.85rem; color: var(--color-cyan); background: var(--bg-dark); padding: 0 5px;
}

/* --- Footer --- */
footer { padding: 4rem 5% 2rem; background: #050505; border-top: 1px solid rgba(212, 175, 55, 0.1); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.copyright-row { 
    display: flex; justify-content: center; width: 100%; color: var(--text-muted); 
    font-size: 0.9rem; flex-wrap: wrap; gap: 3rem; padding-top: 2rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
.dev-link {
    text-decoration: none; display: inline-flex; 
    align-items: center; gap: 0.5rem; transition: var(--transition);
    font-weight: 700; letter-spacing: 1px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbow-shift 3s linear infinite;
}
.dev-link svg {
    stroke: var(--color-cyan); /* Explicitly set stroke color since currentColor is transparent */
    transition: var(--transition);
}
.dev-link:hover svg {
    stroke: #fff;
}
.dev-link:hover { 
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}
@keyframes rainbow-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* --- Scroll Animations --- */
.reveal-up { opacity: 0; transform: translateY(60px); transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; margin-top: 100px; height: auto; padding-bottom: 5rem; gap: 4rem; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .contact-container { grid-template-columns: 1fr; }
    .timeline-line { display: none; }
    .timeline-container { flex-direction: column; gap: 3rem; align-items: flex-start; padding-left: 20px; border-left: 2px solid rgba(212, 175, 55, 0.2); overflow-x: visible; margin-left: 25px; }
    .timeline-step { flex-direction: row; gap: 2rem; text-align: left; }
    .step-number { margin-bottom: 0; margin-left: -41px; background: var(--bg-dark); flex-shrink: 0; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; transition: 0.5s;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; z-index: 1001; }
    .hero-content h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
    .glass-section { padding: 4rem 1.5rem; margin: 3rem 2%; }
    .sticky-cta { display: none; }
    
    /* Fix Mobile Layout Overflows */
    .logo-wrapper { width: 220px; height: 45px; }
    .logo-img { width: 290px; }
}
