/* ==========================================================================
   Variables & Theme
   ========================================================================== */
:root, .dark-theme {
    --bg-primary: #0A0A0F;
    --bg-secondary: #0D0D14;
    --bg-tertiary: #161622;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #666677;
    
    --accent-blue: #4F8EF7;
    --accent-blue-hover: #3A70D1;
    --accent-cyan: #00D4FF;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --container-width: 1200px;
    --container-padding: 2rem;
    
    --rgb-inv: 255, 255, 255;
}

body.light-theme {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F4F8;
    --bg-tertiary: #E1E8F0;
    --text-primary: #05101A;
    --text-secondary: #334A60;
    --text-muted: #6B8A9D;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --accent-cyan: #0284C7;
    
    --rgb-inv: 0, 10, 20; /* Very dark blue-gray instead of pure black for better modern borders */
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100vw; }
body {
    font-family: var(--font-body);
    background-color: transparent !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent-blue); text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: 8rem 0; }
.bg-secondary { background-color: rgba(15, 15, 22, 0.6) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.text-center { text-align: center; }

/* 3D Canvas */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
.section-header { text-align: center; margin-bottom: 5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header p { font-size: 1.125rem; }

/* ==========================================================================
   Galaxy Cursor Canvas
   ========================================================================== */
#galaxy-cursor {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

/* Restore normal cursor inside modals */
body.modal-open * { cursor: auto !important; }
body.modal-open #galaxy-cursor { display: none !important; }

.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    pointer-events: none; z-index: 9999; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.magnetic { display: inline-block; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    border: 1px solid transparent; text-align: center; position: relative; overflow: hidden;
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-primary:hover { background: var(--accent-blue-hover); }

.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border-color: rgba(var(--rgb-inv),0.1); }
.btn-secondary:hover { background: rgba(var(--rgb-inv), 0.1); }

.btn-outline { background: transparent; color: var(--text-primary); border-color: rgba(var(--rgb-inv), 0.3); }
.btn-outline:hover { border-color: var(--text-primary); background: rgba(var(--rgb-inv), 0.05); }

.glow { box-shadow: 0 0 20px rgba(79, 142, 247, 0.4); }
.glow:hover { box-shadow: 0 0 30px rgba(79, 142, 247, 0.7); }

.btn-text { color: var(--accent-cyan); font-weight: 600; font-family: var(--font-heading); display: inline-flex; align-items: center; gap: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.875rem; border: none; background: none; }
.btn-text:hover { color: var(--accent-blue); gap: 1rem; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition-normal); padding: 1.5rem 0; }
.header.scrolled { padding: 1rem 0; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(var(--rgb-inv), 0.05); }

.header-container { display: flex; align-items: center; }
.logo { margin-right: auto; }
.logo a { display: inline-block; text-decoration: none; }
.header-logo { height: 65px; width: auto; display: block; }
.logo-tagline { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* Preloader logo */
.preloader-logo { height: 110px; width: auto; margin: 0 auto 2rem; display: block; }

/* Footer logo */
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo-img { height: 70px; width: auto; display: block; }

.header-utils { display: flex; align-items: center; gap: 1rem; margin-right: 2.5rem; }
.btn-icon { background: rgba(var(--rgb-inv),0.05); color: var(--text-primary); border: 1px solid rgba(var(--rgb-inv),0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; }
.btn-icon:hover { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }
body.light-theme .btn-icon { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
body.light-theme .btn-icon:hover { background: var(--accent-cyan); color: #fff; }

.main-nav ul { display: flex; gap: 2.5rem; align-items: center; }
.main-nav a { color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--accent-cyan); transition: width 0.3s; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.btn { border-radius: 100px; }
.main-nav a.btn::after { display: none; } /* no underline for btn in nav */

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: var(--text-primary); transition: var(--transition-normal); left: 0; }
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

@media (max-width: 992px) {
    .mobile-toggle { display: block; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background: var(--bg-secondary); padding: 6rem 2rem 2rem; transition: right var(--transition-normal); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .main-nav a { font-size: 1.5rem; }
    .mobile-toggle.active .hamburger { background: transparent; }
    .mobile-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .mobile-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { min-height: 100vh; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.hero-bg-effect { display: none; }

.hero-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-title span { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 1.5rem; justify-content: center; align-items: center; margin-bottom: 4rem; flex-wrap: wrap; }
.hero-trust-badge { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 100px; background: rgba(var(--rgb-inv),0.03); border: 1px solid rgba(var(--rgb-inv),0.08); font-size: 0.875rem; color: var(--text-secondary); backdrop-filter: blur(5px); }

/* ==========================================================================
   About Section
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.value-card { background: var(--bg-secondary); padding: 3rem 2rem; border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-inv),0.05); transition: var(--transition-normal); position: relative; z-index: 1; }
.value-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), transparent); opacity: 0; transition: opacity var(--transition-normal); z-index: -1; }
.value-card:hover { transform: translateY(-10px); border-color: rgba(79, 142, 247, 0.3); }
.value-card:hover::before { opacity: 1; }
.value-card .icon { font-size: 2.5rem; margin-bottom: 2rem; background: rgba(79, 142, 247, 0.1); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent-cyan); }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section { width: 100vw; margin-left: calc(-50vw + 50%); overflow: hidden; padding: 4rem 0; background: var(--bg-primary); border-top: 1px solid rgba(var(--rgb-inv),0.03); border-bottom: 1px solid rgba(var(--rgb-inv),0.03); position: relative; display: flex; }
.marquee-track { display: flex; white-space: nowrap; animation: scrollMarquee 30s linear infinite; transform: translateZ(0); }
.marquee-text { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(var(--rgb-inv),0.15); padding-right: 2rem; letter-spacing: 2px; flex-shrink: 0; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 35px; left: 50px; right: 50px; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent); z-index: 0; display: none; }
@media (min-width: 992px) { .process-steps::before { display: block; } }
.step-card { background: var(--bg-secondary); padding: 3rem 2.5rem; border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-inv),0.05); position: relative; z-index: 1; transition: var(--transition-normal); text-align: center; }
.step-card:hover { transform: translateY(-10px); border-color: rgba(0, 212, 255, 0.3); }
.step-number { width: 70px; height: 70px; margin: 0 auto 1.5rem; background: var(--bg-primary); border: 2px solid var(--accent-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; color: var(--accent-cyan); font-size: 1rem; box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); }
.step-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.step-card p { font-size: 1rem; color: var(--text-secondary); }

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: center; margin-bottom: 3rem; }
.pricing-card { background: var(--bg-primary); padding: 3.5rem 2.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(var(--rgb-inv),0.08); display: flex; flex-direction: column; height: 100%; transition: transform 0.4s ease; }
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.popular { border-color: var(--accent-blue); background: linear-gradient(180deg, rgba(79, 142, 247, 0.05) 0%, var(--bg-primary) 100%); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.pricing-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-blue); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 0.35rem 1.25rem; border-radius: 100px; letter-spacing: 0.05em; display: inline-block; white-space: nowrap; }
.pricing-card h3 { text-align: center; font-size: 1.25rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; }
.pricing-card .price { text-align: center; font-size: 3.5rem; font-weight: 700; font-family: var(--font-heading); margin: 1rem 0 2rem; color: var(--text-primary); }
.pricing-card .price.price-devis { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 2.5rem; }
.pricing-card .features { margin-bottom: 3rem; flex-grow: 1; }
.pricing-card .features li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 1.05rem; }
.pricing-card .features li svg { color: var(--accent-cyan); width: 22px; height: 22px; flex-shrink: 0; }
.pricing-guarantee { text-align: center; color: var(--text-muted); font-size: 0.9375rem; }
@media (max-width: 992px) { .pricing-card.popular { transform: none; } .pricing-card.popular:hover { transform: translateY(-5px); } }

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }
.portfolio-item { transition: var(--transition-normal); border-radius: var(--radius-md); overflow: hidden; }
.portfolio-item:hover { transform: translateY(-10px); }
.portfolio-img { height: 400px; overflow: hidden; position: relative; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.mockup-img { width: 100%; height: 100%; transition: transform var(--transition-slow); background-size: cover; background-position: center; }
.portfolio-item:hover .mockup-img { transform: scale(1.05); }

.portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: var(--transition-normal); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: transparent; /* Text hidden visually but element blocks interaction slightly, custom cursor shows the text */ }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.gradient-bg-1 { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.gradient-bg-2 { background: linear-gradient(135deg, #064E3B, #10B981); }
.gradient-bg-3 { background: linear-gradient(135deg, #701A75, #D946EF); }

.portfolio-content h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.portfolio-content .niche { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; }
.portfolio-content .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.portfolio-content .tags span { background: rgba(var(--rgb-inv),0.05); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8125rem; color: var(--accent-cyan); font-weight: 500; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================================
   Testimonials (Horizontal Scroll)
   ========================================================================== */
.testimonials-slider { width: 100%; overflow-x: auto; padding: 1rem 0 3rem; cursor: grab; }
.testimonials-slider:active { cursor: grabbing; }
.testimonials-slider::-webkit-scrollbar { height: 8px; }
.testimonials-slider::-webkit-scrollbar-track { background: rgba(var(--rgb-inv),0.02); border-radius: 10px; }
.testimonials-slider::-webkit-scrollbar-thumb { background: rgba(79, 142, 247, 0.5); border-radius: 10px; transition: background 0.3s; }
.testimonials-slider::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
.testimonials-track { display: flex; gap: 2.5rem; padding: 0 1rem; width: max-content; }
.testimonial-card { width: 400px; background: var(--bg-primary); padding: 3rem; border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-inv),0.05); white-space: normal; flex-shrink: 0; transition: transform 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); border-color: rgba(var(--rgb-inv),0.1); }
.testimonial-card .stars { color: #FBBF24; font-size: 1.25rem; margin-bottom: 1.5rem; letter-spacing: 2px; }
.testimonial-card .quote { color: var(--text-primary); font-size: 1.125rem; font-style: italic; margin-bottom: 2rem; line-height: 1.8; }
.testimonial-card .author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid rgba(var(--rgb-inv),0.1); padding-top: 2rem; }
.testimonial-card .avatar { width: 56px; height: 56px; background: var(--bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent-cyan); font-size: 1.25rem; }
.testimonial-card .author-info strong { display: block; font-size: 1.125rem; }
.testimonial-card .author-info span { font-size: 0.875rem; color: var(--text-secondary); }
.half-star { position: relative; color: transparent; display: inline-block; }
.half-star::before { content: '★'; position: absolute; left: 0; top: 0; color: #FBBF24; overflow: hidden; width: 50%; }
.half-star::after { content: '★'; position: absolute; left: 0; top: 0; color: rgba(var(--rgb-inv),0.1); z-index: -1; }

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats { border-top: 1px solid rgba(var(--rgb-inv),0.05); border-bottom: 1px solid rgba(var(--rgb-inv),0.05); background: var(--bg-primary); padding: 5rem 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(79, 142, 247, 0.05) 0%, transparent 70%); }
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 3rem; position: relative; z-index: 1; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1; }
.stat-number .counter { color: var(--text-primary); }
.stat-number span { color: var(--accent-cyan); } /* the + sign */
.stat-label { text-transform: uppercase; font-size: 0.875rem; letter-spacing: 2px; color: var(--text-secondary); font-weight: 600; }

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.blog-card { background: var(--bg-primary); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(var(--rgb-inv),0.05); transition: transform 0.4s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-10px); border-color: rgba(var(--rgb-inv),0.15); }

.blog-img-wrapper { height: 240px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); filter: grayscale(100%) contrast(1.2); }
.blog-card:hover .blog-img { transform: scale(1.05); filter: grayscale(0%) contrast(1.2); }

.blog-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-content .date { font-size: 0.875rem; color: var(--text-secondary); display: block; margin-bottom: 1rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; }
.blog-content h3 { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.3; }
.blog-content p { margin-bottom: 2rem; flex-grow: 1; }

/* Article Modal */
.article-modal { position: fixed; top: 0; left: 0; border: none; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 100000; width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; overflow-y: auto; color: var(--text-primary); }
.article-modal.open { opacity: 1; pointer-events: auto; }
.article-modal .modal-content { background: var(--bg-secondary); padding: 5rem 4rem; border-radius: var(--radius-md); max-width: 800px; width: 90%; position: relative; transform: translateY(50px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); margin: auto; max-height: 90vh; overflow-y: auto; overflow-x: hidden; }
.article-modal.open .modal-content { transform: translateY(0); }
.modal-close { position: fixed; top: 2rem; right: 2rem; background: rgba(var(--rgb-inv),0.05); color: #fff; border: 1px solid rgba(var(--rgb-inv),0.1); padding: 0.75rem 1.5rem; border-radius: 100px; font-family: var(--font-heading); cursor: pointer; transition: background 0.3s, color 0.3s; z-index: 10001; }
.modal-close:hover { background: var(--accent-cyan); color: #000; }
.modal-date { display: inline-block; padding: 0.25rem 1rem; background: rgba(0, 212, 255, 0.1); color: var(--accent-cyan); border-radius: 100px; font-size: 0.875rem; margin-bottom: 2rem; font-weight: 600; }
.modal-content h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1rem; color: #fff; }
.modal-content h4 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: 1rem; color: var(--accent-cyan); font-family: var(--font-heading); }
.modal-content p { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.modal-content strong { color: var(--text-primary); }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(var(--rgb-inv),0.08); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 2rem 0; font-size: 1.25rem; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); }
.faq-icon { font-size: 1.5rem; font-weight: 400; color: var(--accent-cyan); transition: transform var(--transition-normal); border: 1px solid rgba(0,212,255,0.3); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.faq-question:hover .faq-icon { background: rgba(0,212,255,0.1); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--accent-cyan); color: #000; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; opacity: 0; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 500px; padding-bottom: 2rem; opacity: 1; }
.faq-answer p { font-size: 1.125rem; color: var(--text-secondary); }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; }
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-subtitle { font-size: 1.25rem; margin-bottom: 3rem; color: var(--text-secondary); }
.contact-methods { margin-bottom: 4rem; }
.method { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; font-size: 1.125rem; }
.method svg { color: var(--accent-blue); background: rgba(79, 142, 247, 0.1); width: 50px; height: 50px; padding: 0.75rem; border-radius: 50%; }
.calendly-box { background: var(--bg-primary); padding: 3rem; border-radius: var(--radius-lg); border: 1px solid rgba(var(--rgb-inv),0.05); }
.calendly-box p { font-size: 1.125rem; margin-bottom: 1.5rem; }
.contact-form-wrapper { background: var(--bg-primary); padding: 4rem; border-radius: var(--radius-lg); border: 1px solid rgba(var(--rgb-inv),0.1); }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.75rem; font-weight: 500; font-size: 0.9375rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1.25rem; background: var(--bg-secondary); border: 1px solid rgba(var(--rgb-inv),0.1); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 1.125rem; transition: border-color var(--transition-fast), background var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan); background: var(--bg-tertiary); }
@media (max-width: 992px) { .contact-container { grid-template-columns: 1fr; gap: 3rem; } .contact-form-wrapper { padding: 2rem; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid rgba(var(--rgb-inv),0.05); background: var(--bg-primary); padding: 6rem 0 0; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4rem; margin-bottom: 6rem; }
.footer-brand { max-width: 350px; }
.footer-logo { display: inline-block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.footer-logo span { color: var(--accent-cyan); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { width: 50px; height: 50px; background: rgba(var(--rgb-inv),0.03); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 0.875rem; font-family: var(--font-heading); font-weight: 600; border: 1px solid rgba(var(--rgb-inv),0.08); transition: all 0.3s; }
.social-links a:hover { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.link-group h4 { margin-bottom: 2rem; font-size: 1.25rem; }
.link-group ul li { margin-bottom: 1rem; }
.link-group ul a { color: var(--text-secondary); font-size: 1.05rem; }
.link-group ul a:hover { color: var(--accent-cyan); }
.footer-bottom { border-top: 1px solid rgba(var(--rgb-inv),0.05); padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.9375rem; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: var(--accent-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition-normal); z-index: 99; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { filter: drop-shadow(0 0 10px rgba(0,240,255,0.5)); }
.back-to-top:hover { background: var(--accent-cyan); color: #000; transform: translateY(-5px); }

/* ==========================================================================
   Preloader & Floating CTA
   ========================================================================== */
#preloader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; background: #050508; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
body.light-theme #preloader { background: #EBEBEB; }
body.light-theme #preloader .preloader-content .logo { color: #0A0A0F; }
.preloader-content { text-align: center; color: #fff; }
.preloader-content .logo { font-size: 2.5rem; margin-bottom: 2rem; font-family: var(--font-heading); font-weight: 700; }
.preloader-content .logo span { color: var(--accent-cyan); }
.preloader-bar { width: 250px; height: 2px; background: rgba(var(--rgb-inv),0.1); margin: 0 auto 1.5rem; position: relative; overflow: hidden; border-radius: 2px; }
body.light-theme .preloader-bar { background: rgba(0,0,0,0.1); }
.preloader-progress { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--accent-cyan); transition: width 0.1s linear; }
.preloader-percentage { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent-cyan); }

.floating-cta { position: fixed; bottom: 2rem; right: 2rem; background: var(--accent-blue); color: #fff; padding: 1rem 1.5rem; border-radius: 100px; display: flex; align-items: center; gap: 0.75rem; font-weight: 600; text-decoration: none; z-index: 900; box-shadow: 0 10px 30px rgba(79, 142, 247, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(var(--rgb-inv),0.1); }
.floating-cta:hover { background: var(--accent-cyan); transform: translateY(-5px) scale(1.02); color: #000; box-shadow: 0 15px 40px rgba(0, 240, 255, 0.4); }
body.light-theme .floating-cta { box-shadow: 0 10px 30px rgba(47, 110, 204, 0.3); color: #fff; }
body.light-theme .floating-cta:hover { color: #fff; background: var(--accent-cyan); }

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Reveal text animations (Staggered lines) */
.reveal-text { overflow: hidden; display: inline-block; }
.reveal-text span { display: inline-block; transform: translateY(100%); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.visible .reveal-text span { transform: translateY(0); }

/* Reduce motion preference softened */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll { transform: none; opacity: 1; transition: none; }
    .hero-bg-effect, .noise { animation: none; }
}


/* ==========================================================================
   Contact Form States (Success & Loading)
   ========================================================================== */
.contact-success {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.contact-success h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
}

.contact-success p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Loader dots animation for button */
.loader-dots span {
    animation: blink 1.4s infinite both;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Form disabled state */
.contact-form button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    background: var(--bg-tertiary);
    border-color: rgba(var(--rgb-inv), 0.1);
}

/* ==========================================================================
   RESPONSIVE — Tablet (max 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .section { padding: 5rem 0; }
    .section-header { margin-bottom: 3rem; }
    
    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    
    /* Contact */
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-wrapper { padding: 2rem; }
}

/* ==========================================================================
   RESPONSIVE — Mobile (max 768px) — Main Fix
   ========================================================================== */
@media (max-width: 768px) {
    :root { --container-padding: 1.25rem; }
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header p { font-size: 1rem; }

    /* --- Header --- */
    .header { padding: 1rem 0; }
    .header-utils { margin-right: 1rem; gap: 0.6rem; }
    .btn-icon { width: 34px; height: 34px; font-size: 0.7rem; }
    .header-logo { height: 50px; }
    .logo-tagline { display: none; } /* Hide tagline on mobile */

    /* --- Hero --- */
    .hero { padding-top: 80px; min-height: 100svh; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-ctas { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-ctas .btn { width: 100%; max-width: 340px; }
    .hero-trust-badge { font-size: 0.75rem; padding: 0.6rem 1rem; text-align: center; line-height: 1.4; }

    /* --- About --- */
    .values-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .value-card { padding: 2rem 1.5rem; }

    /* --- Marquee --- */
    .marquee-text { font-size: clamp(1.5rem, 6vw, 2.5rem); }

    /* --- Process --- */
    .process-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .step-card { padding: 2rem 1.5rem; }

    /* --- Pricing --- */
    .pricing-grid { grid-template-columns: 1fr; max-width: 100%; gap: 2rem; }
    .pricing-card { padding: 2.5rem 1.75rem; }
    .pricing-card.popular { transform: none; }
    .pricing-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; padding: 0.35rem 1rem; white-space: nowrap; }
    .pricing-card .price { font-size: 2.75rem; }
    .pricing-card .features li { font-size: 0.95rem; gap: 0.75rem; margin-bottom: 1rem; }

    /* --- Portfolio --- */
    .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
    .portfolio-img { height: 260px; }

    /* --- Testimonials --- */
    .testimonial-card { width: 300px; padding: 2rem; }
    .testimonial-card .quote { font-size: 1rem; }

    /* --- Blog --- */
    .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .blog-content { padding: 1.5rem; }
    .blog-img-wrapper { height: 200px; }

    /* --- FAQ --- */
    .faq-question { font-size: 1.05rem; padding: 1.5rem 0; }
    .faq-icon { width: 34px; height: 34px; font-size: 1.25rem; flex-shrink: 0; }

    /* --- Contact --- */
    .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .contact-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .contact-methods { margin-bottom: 2rem; }
    .method { gap: 1rem; font-size: 1rem; }
    .method svg { width: 40px; height: 40px; padding: 0.6rem; }
    .calendly-box { padding: 1.75rem; }
    .contact-form-wrapper { padding: 1.5rem; }
    .form-group input, .form-group textarea { font-size: 1rem; padding: 1rem; }

    /* --- Footer --- */
    .footer { padding: 4rem 0 0; }
    .footer-container { flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
    .footer-brand { max-width: 100%; }
    .footer-links { gap: 2rem; }

    /* --- Modal --- */
    .article-modal .modal-content { padding: 2rem 1.25rem; width: 95%; }
    .modal-close { top: 1rem; right: 1rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
    .modal-content h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }

    /* --- Back to top / Floating CTA --- */
    .back-to-top { bottom: 5.5rem; right: 1rem; width: 46px; height: 46px; }
    .floating-cta { bottom: 1rem; right: 1rem; }
    .floating-cta span { display: none; }

    /* --- Stats --- */
    .stats-container { gap: 2rem; }
    .stat-number { font-size: 3rem; }
}

/* ==========================================================================
   RESPONSIVE — Small Mobile (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.15; }
    .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .testimonial-card { width: 260px; }
    .pricing-card { padding: 2rem 1.25rem; }
    .contact-form-wrapper { padding: 1.25rem; }
    .form-group input, .form-group textarea { font-size: 1rem; padding: 1rem; }
}

