/* ===================== ROOT VARIABLES ===================== */
:root {
    --primary: #4f46e5;
    --primary-rgb: 79, 70, 229;
    --secondary: #ec4899;
    --accent: #22d3ee;

    --text: #f8fafc;
    --text-dim: #94a3b8;

    --glass-glow: rgba(79, 70, 229, 0.25);

    --radius-xl: 32px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-nav: rgba(248, 250, 252, 0.9);
    --text-white: #0f172a;
    /* Deep charcoal rather than pure black */
    --text-mid: #334155;
    --text-dim: #475569;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(99, 102, 241, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.05);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');
/* ===================== THEME VARIABLES ===================== */
:root {
    /* Dark Mode (Default) */
    --bg-body: #0a0f1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(79, 70, 229, 0.2);
}

[data-theme="light"] {
    /* Light Mode Overrides */
    --bg-body: #f1f5f9;         /* Soft light grey */
    --bg-card: #ffffff;         /* Pure white cards */
    --text-main: #0f172a;       /* Deep charcoal text */
    --text-dim: #475569;        /* Medium grey text */
    --glass-border: #e2e8f0;    /* Light border */
    --glass-glow: rgba(79, 70, 229, 0.05);
}

/* Base Styles using Variables */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: all 0.4s ease;
}

/* ===================== TOGGLE BUTTON CSS ===================== */
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input { display: none; }

.slider {
    background-color: #1e293b;
    bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0;
    transition: .4s; display: flex; justify-content: space-between;
    align-items: center; padding: 0 8px; border-radius: 34px;
}

.slider:before {
    background-color: #fff; bottom: 4px; content: ""; height: 26px; left: 4px;
    position: absolute; transition: .4s; width: 26px; border-radius: 50%; z-index: 2;
}

input:checked + .slider { background-color: #4f46e5; }
input:checked + .slider:before { transform: translateX(26px); }

.fa-sun { color: #facc15; }
.fa-moon { color: #94a3b8; }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 3s linear infinite;
}

/* Custom Cursor Elements */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-color: transparent;
}


/* ===================== SECTION HEADER ===================== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h4.gradient-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 1rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}

/* ===================== SERVICES GRID ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===================== SERVICE CARD ===================== */
.service-card {
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    left: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
    cursor: pointer;
   
}

/* Card Hover Effect */
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Glow Effect */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glass-glow) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Icon */
.service-card i {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Card Title */
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* Card Description */
.service-card p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* ===================== FAQ Section ===================== */
#faq {
    padding: 8rem 2rem;
    background: #0a0f1a;
    /* Dark Background */
}

#faq .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

#faq .section-header h4.gradient-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #4f46e5, #ec4899, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#faq .section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===================== FAQ & GLASS ANIMATION ===================== */
#faq {
    padding: 8rem 2rem;
    background: var(--bg-dark, #0a0f1a);
}

#faq .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

#faq .section-header h4.gradient-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-base);
}

#faq .section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    transition: var(--transition-base);
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* FAQ Item Glass Card */
.faq-item {
    background: var(--glass, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl, 32px);
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Floating Animation */
.faq-item.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Hover Glow */
.faq-item:hover {
    box-shadow: 0 15px 30px var(--glass-glow, rgba(79, 70, 229, 0.25));
    transform: translateY(-6px) scale(1.02);
}

/* Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    transition: var(--transition-base);
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* Answer (hidden) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 0.5rem;
}

.faq-answer p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 1rem;
}

/* Active / Open */
.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Gradient Animation Background (Optional Glow behind card) */
.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    opacity: 0.05;
    z-index: 0;
    border-radius: inherit;
    animation: gradient-x 6s linear infinite;
}


#cursor,
#cursorInner {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: 0.3s ease;
}

#cursorInner {
    width: 10px;
    height: 10px;
    background: var(--primary);
    opacity: 0.5;
    transition: 0.3s ease;
}

/* Responsive */
@media(max-width:768px) {
    #faq .section-header h2 {
        font-size: 2rem;
    }

    .faq-item {
        padding: 1.2rem 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
    }
}

/* ===================== RESPONSIVE ===================== */
@media(max-width:768px) {
    .service-card {
        padding: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}