/* web + admin/assets/css/style.css */
:root {
    --primary-color: #ff6a00; /* Deep vibrant orange */
    --hover-color: #ff8c00;
    --bg-color: #0b0d10;     /* Deep dark for backgrounds */
    --bg-secondary: #13171c; /* Slightly lighter dark for contrast */
    --card-bg: rgba(255, 255, 255, 0.03); /* Translucent cards */
    --text-main: #f0f0f0;
    --text-muted: #a0aab2;
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-effect: 0 0 40px rgba(255, 106, 0, 0.2);
    --header-bg: rgba(11, 13, 16, 0.95);
}

/* Light Theme Overrides (High Specificity) */
html[data-theme="light"] {
    --bg-color: #f8fafc;     
    --bg-secondary: #ffffff; 
    --card-bg: #ffffff; 
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glow-effect: 0 10px 40px rgba(255, 106, 0, 0.15);
    --header-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 2; }
.text-primary { color: var(--primary-color) !important; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Background Glows */
.glow-bg {
    position: relative;
    overflow: hidden;
}
.glow-bg::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: 0; pointer-events: none;
}
.glow-bg::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,106,0,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: 0; pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--text-main); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--hover-color); }

/* Buttons */
.btn {
    display: inline-block; padding: 0.9rem 1.8rem;
    border-radius: 6px; font-weight: 600; font-size: 1rem;
    text-align: center; cursor: pointer; transition: all 0.3s ease;
    border: none;
}
.btn-primary { 
    background-color: var(--primary-color); color: #fff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}
.btn-primary:hover { 
    background-color: var(--hover-color); color: #fff;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.6); transform: translateY(-2px);
}
.btn-outline { 
    background-color: transparent; color: var(--text-main);
    border: 1px solid rgba(255,106,0,0.5);
}
.btn-outline:hover { 
    border-color: var(--primary-color); box-shadow: inset 0 0 10px rgba(255,106,0,0.2); 
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; transition: 0.3s;
}
.theme-toggle:hover { background: var(--bg-secondary); color: var(--primary-color); }
[data-theme="light"] .theme-toggle .moon-icon { display: inline-block !important; }
[data-theme="light"] .theme-toggle .sun-icon { display: none !important; }
html[data-theme="dark"] .theme-toggle .moon-icon, 
:root .theme-toggle .moon-icon { display: none !important; }
html[data-theme="dark"] .theme-toggle .sun-icon,
:root .theme-toggle .sun-icon { display: inline-block !important; }

/* Header & Nav */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
    transition: background 0.3s ease;
}
header .container { display: flex; justify-content: space-between; align-items: center; padding: 1rem; }
.logo img { height: 90px; transition: 0.3s; }

/* Dynamic Logo Swapping */
html[data-theme="light"] header .logo img,
html[data-theme="light"] .footer-logo img {
    content: url('../img/logo-dark.png');
}

.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; }

nav ul.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
nav ul.nav-links li a { color: var(--text-main); font-size: 0.95rem; font-weight: 500; }
nav ul.nav-links li a:hover { color: var(--primary-color); }

/* Layout Grids */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.contact-grid { grid-template-columns: 1fr 2fr; gap: 2rem; }

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    background-size: cover;
    background-position: center bottom;
}
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; color: #ffffff !important; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero .lead { font-size: 1.25rem; color: #e2e8f0 !important; max-width: 800px; margin: 0 auto 2.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero .btn-outline { color: #ffffff !important; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.hero-buttons { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem;}

/* Feature Cards (Premium Torkbiz Style) */
.card-feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Elevated roundness */
    padding: 3rem 2rem;
    text-align: left; /* Shift alignment to left for modern feature lists */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.card-feature:hover {
    border-color: rgba(255,106,0,0.4);
    box-shadow: var(--glow-effect);
    transform: translateY(-5px);
}
.card-feature .icon-container {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 106, 0, 0.1); /* Torkbiz translucent pill */
    border-radius: 16px;
}
.card-feature h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.card-feature p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* SVG Waves and Decorators */
.svg-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(1px); /* Avoid subpixel rendering gap */
    z-index: 5;
}
.svg-wave-container svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 90px;
}
.svg-wave-container .shape-fill { fill: var(--bg-color); transition: fill 0.3s ease; }

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    animation: floatShape 6s ease-in-out infinite;
    color: var(--primary-color);
}
.floating-shape.s-1 { top: 15%; left: 5%; animation-duration: 7s; font-size: 2rem; }
.floating-shape.s-2 { top: 60%; right: 10%; animation-duration: 8s; font-size: 1.5rem; animation-delay: 1s;}
.floating-shape.s-3 { top: 80%; left: 15%; animation-duration: 6s; font-size: 2.5rem; animation-delay: 2s;}
.floating-shape.s-4 { top: 25%; right: 20%; animation-duration: 9s; font-size: 2rem; animation-delay: 3s;}
@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(15deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* Overlapping CTA Design */
.cta-overlap-card {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 20;
    margin-bottom: -6rem; /* Pull footer up into the card */
    text-align: center;
}

/* Horizontal Stepper */
.stepper-wrapper {
    display: flex; justify-content: space-between; position: relative;
    margin: 4rem 0;
}
.stepper-wrapper::before {
    content: ''; position: absolute; top: 25px; left: 5%; width: 90%; height: 2px;
    background: var(--border-color); z-index: 1;
}
.step-item {
    position: relative; z-index: 2; text-align: center; flex: 1; padding: 0 1rem;
}
.step-circle {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem; margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(255,106,0,0.4); border: 4px solid var(--bg-secondary);
}
.step-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Standard Sections */
.section { padding: 6rem 0; }
.section.bg-darker { background-color: var(--bg-secondary); }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto 4rem; }

/* Footer Professional Mega-Footer */
footer {
    background-color: var(--bg-color); padding: 8rem 0 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem; position: relative;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center bottom;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}
footer .container { position: relative; z-index: 2; }
.footer-logo img { height: 90px; margin-bottom: 1rem; }
.footer-text { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 300px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-color); }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: #fff;
    margin-right: 10px; font-size: 1.2rem; border: 1px solid transparent;
}
.social-icons a:hover {
    background: var(--primary-color); border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255,106,0,0.4); transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 50px;
    background-color: #25d366; color: #FFF;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999; text-decoration: none;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128C7E; color: #fff; transform: scale(1.1);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Admin/App Cards & Forms */
.card { background: var(--bg-secondary); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.app-portal {
    max-width: 900px; margin: 4rem auto; position: relative; z-index: 5;
    background: var(--bg-secondary); border: 1px solid var(--border-color); 
    border-radius: 12px; padding: 3rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.app-portal.card { border: 1px solid var(--primary-color); box-shadow: var(--glow-effect); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.8rem 1rem; border-radius: 4px;
    background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-main);
    font-family: inherit; font-size: 1rem; transition: 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr !important; }
    .stepper-wrapper { flex-direction: column; gap: 2rem; }
    .mockup-body { grid-template-columns: 1fr; }
    .mockup-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .mockup-menu-item { margin: 0; flex: 1; min-width: 120px; text-align: center; }
    .stepper-wrapper::before { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    header .container { position: relative; }
    .menu-toggle { display: block; }
    nav ul.nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--bg-color);
        padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    nav ul.nav-links.active { display: flex; }
    
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .mobile-stack { flex-direction: column !important; gap: 1rem !important; text-align: center; }
}

/* Trust Badges */
.trust-bar { font-family: 'Inter', sans-serif; }
.trust-item { padding: 0.5rem 1rem; border-radius: 4px; display: inline-flex; align-items: center; background: rgba(255,255,255,0.03); font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }

/* Impact Counters */
.impact-card { background: var(--bg-color); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.impact-number { font-family: 'Outfit', sans-serif; line-height: 1; margin-bottom: 0.5rem; font-weight: 800; font-size: 4rem; color: var(--primary-color); text-shadow: 0 0 20px rgba(255,106,0,0.3); }
.impact-label { font-weight: bold; color: var(--text-main); font-size: 1.2rem; }

/* Dashboard Mockup UI */
.mockup-window { background: rgba(15, 20, 25, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05); overflow: hidden; }
.mockup-header { background: rgba(11, 13, 16, 0.9); padding: 0.8rem 1rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mockup-header .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.mockup-title { flex: 1; text-align: center; color: var(--text-muted); font-size: 0.85rem; font-family: monospace; letter-spacing: 0.5px; opacity: 0.7; }
.mockup-body { min-height: 300px; display: grid; grid-template-columns: 220px 1fr; }
.mockup-sidebar { background: rgba(0,0,0,0.2); padding: 1.5rem 1rem; border-right: 1px solid rgba(255,255,255,0.05); }
.mockup-menu-item { padding: 0.6rem 1rem; color: var(--text-muted); border-radius: 6px; margin-bottom: 0.5rem; font-size: 0.9rem; transition: 0.2s; cursor: default; }
.mockup-menu-item.active { background: rgba(255,106,0,0.1); color: var(--primary-color); border-left: 3px solid var(--primary-color); }
.mockup-menu-item i { margin-right: 10px; width: 16px; text-align: center; }
.mockup-content { padding: 2rem; }
.mockup-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 1rem 0 0.5rem; overflow: hidden; }
.mockup-progress-fill { height: 100%; background: var(--primary-color); border-radius: 3px; box-shadow: 0 0 10px var(--primary-color); animation: loadProgress 2s ease-out forwards; }
.mockup-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 1.5rem; display: inline-block; min-width: 250px; }
@keyframes loadProgress { 0% { width: 0%; } 100% { width: 75%; } }

/* Testimonials Carousel */
.testimonial-wrapper { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0 3rem; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.testimonial-wrapper::-webkit-scrollbar { display: none; }
.testimonial-card { flex: 0 0 350px; scroll-snap-align: center; text-align: left; background: var(--bg-secondary); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-color); position: relative; }
.quote-icon { font-size: 2rem; color: var(--primary-color); opacity: 0.3; position: absolute; top: 1.5rem; right: 1.5rem; }
.testimonial-card p { font-size: 1.05rem; line-height: 1.7; color: var(--text-main); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Vertical Timeline */
.vertical-timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.vertical-timeline::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 0; width: 3px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-number { position: absolute; left: -2rem; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-color); border: 3px solid var(--primary-color); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; transform: translateX(-50%); box-shadow: 0 0 15px rgba(255,106,0,0.3); }
.timeline-content { background: var(--bg-secondary); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.timeline-content h4 { color: var(--text-main); font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-muted); font-size: 1rem; margin: 0; }
