/* ==========================================================================
   ADSD Engineering & Technical Solutions - Global Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Syncopate:wght@700&display=swap');

:root {
    /* Theme Light (Default - Blue and White Corporate) */
    --bg-main: #ffffff;
    --bg-alt: #f4f7fc;
    --bg-card: #ffffff;
    --bg-footer: #0a1128;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --primary: #0052cc;
    --primary-hover: #0043a4;
    --primary-glow: rgba(0, 82, 204, 0.15);
    --secondary: #00c6ff;
    --accent: #0a2540;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 82, 204, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 82, 204, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

[data-theme="dark"] {
    /* Theme Dark (Futuristic Neon Cyberpunk) */
    --bg-main: #020617;
    --bg-alt: #0b1329;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-footer: #01040a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --primary: #00f2fe;
    --primary-hover: #00d2ff;
    --primary-glow: rgba(0, 242, 254, 0.25);
    --secondary: #4facfe;
    --accent: #f472b6;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px rgba(0, 242, 254, 0.15);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Base Elements
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Vanta BG */
#vanta-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled .nav-bar {
    padding: 12px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.55rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
    display: block;
    color: var(--text-secondary);
    line-height: 1;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 280px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: grid;
    gap: 8px;
    z-index: 1010;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-alt);
}

.dropdown-item i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.dropdown-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle-btn .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .fa-moon {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: 1px solid var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-content h1 span.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract corporate shapes with gradients */
.hero-shape-container {
    width: 100%;
    height: 450px;
    position: relative;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
}

.hero-cube {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.8) 0%, rgba(0, 198, 255, 0.4) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(5px);
    animation: rotateShape 20s infinite linear;
}

.hero-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    animation: spinRing 25s infinite linear;
}

.hero-ring-inner {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    animation: spinRingInner 15s infinite linear reverse;
}

.hero-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

.dot-1 { top: 20%; left: 20%; animation: floatDot 6s infinite ease-in-out; }
.dot-2 { bottom: 25%; right: 15%; animation: floatDot 8s infinite ease-in-out 1.5s; }
.dot-3 { top: 65%; left: 10%; animation: floatDot 7s infinite ease-in-out 3s; }

@keyframes rotateShape {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.05); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinRingInner {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.services-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.services-tab-btn.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.services-panel {
    display: none;
}

.services-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    animation: fadeInTab 0.5s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.service-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* ==========================================================================
   Industry Solutions Section
   ========================================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.industry-card:hover {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.industry-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.industry-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Live Demo Section (With Mock Iframe Interface)
   ========================================================================== */
.demo-section {
    padding: 100px 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 50px;
    align-items: flex-start;
}

.demo-selector-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-selector-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-selector-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.demo-selector-item.active {
    background: var(--bg-alt);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.demo-selector-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.demo-selector-item.active .demo-selector-icon {
    background: var(--primary);
    color: var(--text-light);
}

.demo-selector-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.demo-selector-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Mock System Windows Frame */
.demo-browser-frame {
    background: #0f172a;
    border-radius: var(--radius-lg);
    border: 8px solid #1e293b;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.browser-header {
    height: 48px;
    background: #1e293b;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.browser-address-bar {
    background: #0f172a;
    border-radius: var(--radius-sm);
    padding: 4px 16px;
    flex-grow: 1;
    margin: 0 24px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-view {
    flex-grow: 1;
    background: #0f172a;
    position: relative;
}

.browser-view iframe {
    width: 100%;
    height: 472px;
    border: none;
    background: transparent;
    transition: var(--transition);
}

.mobile-frame-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.mobile-frame-wrapper .browser-view iframe {
    width: 320px;
    height: 500px;
    border: 10px solid #334155;
    border-radius: 20px;
}

.demo-static-image {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
}

/* ==========================================================================
   Project Requirement Calculator (Wizard Form)
   ========================================================================== */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.wizard-step.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 10px var(--primary-glow);
}

.wizard-step.completed {
    border-color: var(--primary);
    background: var(--bg-alt);
    color: var(--primary);
}

.wizard-panel {
    display: none;
    animation: slideInPanel 0.4s ease forwards;
}

.wizard-panel.active {
    display: block;
}

@keyframes slideInPanel {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.wizard-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-box {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.option-box:hover {
    border-color: var(--primary-hover);
    background: var(--bg-alt);
}

.option-box.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.option-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.option-box h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.option-box p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Calculator Form Controls */
.wizard-form-group {
    margin-bottom: 20px;
}

.wizard-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.wizard-form-group input,
.wizard-form-group select,
.wizard-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.wizard-form-group input:focus,
.wizard-form-group select:focus,
.wizard-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Interactive Estimation display */
.estimation-box {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px dashed var(--primary);
}

.est-val {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}

/* ==========================================================================
   Development Timeline (Animated & Responsive)
   ========================================================================== */
.timeline-track {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-track::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-main);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-step:hover::after {
    transform: scale(1.3);
    background-color: var(--primary);
}

.left-step {
    left: 0;
}

.right-step {
    left: 50%;
}

.right-step::after {
    left: -10px;
}

.timeline-content {
    padding: 30px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timeline-number {
    position: absolute;
    top: -15px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-glow);
    font-family: 'Outfit', sans-serif;
}

.left-step .timeline-number { right: 20px; }
.right-step .timeline-number { left: 20px; }

.timeline-content h3 {
    margin-top: 10px;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Technology Stack Section
   ========================================================================== */
.tech-tabs-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-tab-btn.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.tech-pane {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    animation: fadeInTab 0.5s ease;
}

.tech-pane.active {
    display: grid;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.tech-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   Consultation Booking (Calendar Widget)
   ========================================================================== */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.booking-info h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.booking-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.booking-features {
    list-style: none;
}

.booking-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.booking-features li i {
    color: var(--primary);
}

/* Slot selection calendar styling */
.calendar-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-picker-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.date-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-main);
    transition: var(--transition);
}

.date-btn:hover {
    border-color: var(--primary);
}

.date-btn.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.date-btn span {
    display: block;
}

.date-btn .date-day { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.date-btn.selected .date-day { color: rgba(255, 255, 255, 0.7); }
.date-btn .date-num { font-size: 1.25rem; font-weight: 700; }

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.slot-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--bg-main);
    transition: var(--transition);
}

.slot-btn:hover {
    border-color: var(--primary);
}

.slot-btn.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 16px;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-arrow:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-info-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

/* ==========================================================================
   WhatsApp Floating Widget
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: sans-serif;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-popup.active {
    display: block;
}

.whatsapp-header {
    background-color: #075e54;
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.whatsapp-header-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.whatsapp-header-info p {
    font-size: 0.7rem;
    opacity: 0.8;
    margin: 0;
}

.whatsapp-body {
    background: #ece5dd;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

[data-theme="dark"] .whatsapp-body {
    background: #111827;
}

.whatsapp-msg {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #000;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-footer {
    padding: 12px;
    background: var(--bg-card);
    display: flex;
    gap: 8px;
}

.whatsapp-input {
    flex-grow: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
}

.whatsapp-send {
    background-color: #075e54;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-graphics {
        order: -1;
    }
    
    .hero-shape-container {
        height: 300px;
    }
    
    .hero-cube {
        width: 180px;
        height: 180px;
    }
    
    .hero-ring {
        width: 240px;
        height: 240px;
    }
    
    .hero-ring-inner {
        width: 130px;
        height: 130px;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Collapse nav menu at 1024px breakpoint */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-card {
        padding: 24px;
    }
    
    .timeline-track::after {
        left: 31px;
    }
    
    .timeline-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-step::after {
        left: 21px;
        right: auto;
    }
    
    .right-step {
        left: 0;
    }
    
    .left-step .timeline-number,
    .right-step .timeline-number {
        left: 20px;
        right: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .services-tabs-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tech-tabs-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .date-picker-group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Option Details Modal Styling
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeInModal 0.25s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideInModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.175);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-alt);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
