/*
 * Main Theme Stylesheet - High-end Soft UI / Glassmorphic Theme
 * Implements the exact layout and style shown in ClassiAds/Modern soft design:
 * - Floating 3D gradient spheres (fixed parallax background)
 * - Bright Electric Blue accents
 * - Deep navy titles and soft slate descriptions
 * - High border-radius components (pill buttons, high-rounded cards)
 * - Clean, soft shadows
 */

/* ==========================================================================
   1. CSS Variables & Theme Globals
   ========================================================================== */
:root {
    /* Color Palette Constants */
    --color-bg-primary-val: #0A0F1D;
    --color-accent-primary: #0066FF; /* Bright Electric Blue matching screenshot */
    --color-accent-secondary: #4F46E5; /* Indigo */
    --color-accent-light: #06B6D4; /* Cyan */
    
    /* Layout Constants */
    --font-heading: 'Space Grotesk', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 10px;
    --border-radius-md: 20px; /* High rounded cards */
    --border-radius-lg: 30px; /* High rounded sections and containers */
    --shadow-glow: 0 10px 30px rgba(0, 102, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Default Semantic Theme Tokens (Light Mode - Standard) */
    --color-bg-body: #F4F7FC; /* Soft slate/blue light background */
    --color-bg-card: #FFFFFF; /* Pure white cards */
    --color-border-card: rgba(0, 0, 0, 0.05);
    --color-text-body: #475569;
    --color-text-title: #0F172A; /* Deep navy title text */
    --color-text-desc: #94A3B8;
    --color-bg-section-alt: #FFFFFF;
    --color-bg-nav: rgba(255, 255, 255, 0.9);
    --color-shadow-card: rgba(15, 23, 42, 0.06); /* Soft diffuse card shadow */
    --color-input-bg: #F8FAFC;
    --color-input-border: rgba(15, 23, 42, 0.08);
    --color-sphere-opacity: 0.55;
}

body.dark-theme .sphere-bg {
    opacity: 0.7;
}
body:not(.dark-theme) .sphere-bg {
    opacity: 0.55;
}

/* Dark Theme Variables Override (Toggled via body.dark-theme) */
body.dark-theme {
    --color-bg-body: var(--color-bg-primary-val);
    --color-bg-card: #151C2C;
    --color-border-card: rgba(255, 255, 255, 0.04);
    --color-text-body: #94A3B8;
    --color-text-title: #FFFFFF;
    --color-text-desc: #64748B;
    --color-bg-section-alt: #0D1325;
    --color-bg-nav: rgba(10, 15, 29, 0.9);
    --color-shadow-card: rgba(0, 0, 0, 0.4);
    --color-input-bg: #1B2336;
    --color-input-border: rgba(255, 255, 255, 0.08);
    --color-sphere-opacity: 0.7;
}

/* Base resets & layout rules */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   2. Floating 3D Spheres (Screenshot Style Accent)
   ========================================================================== */
.sphere-bg {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: var(--color-sphere-opacity);
    transition: opacity 0.4s ease;
}

.sphere-1 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, #0066FF, #0044CC);
    top: 15%;
    left: -40px;
    filter: blur(1px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.25);
    animation: floatSphereY 12s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #06B6D4, #0891B2);
    top: 55%;
    right: -20px;
    filter: blur(1px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.25);
    animation: floatSphereX 10s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at 30% 30%, #4F46E5, #3730A3);
    bottom: 8%;
    left: 4%;
    filter: blur(1px);
    box-shadow: 0 18px 35px rgba(79, 70, 229, 0.25);
    animation: floatSphereY 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatSphereY {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes floatSphereX {
    0% { transform: translateX(0px) translateY(0px); }
    100% { transform: translateX(-25px) translateY(-15px); }
}

/* ==========================================================================
   3. Typography & Semantics
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-text-title);
    transition: color 0.4s ease;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-body);
    transition: color 0.4s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }
.text-secondary { color: var(--color-text-desc); opacity: 1; }

/* Focus States for Accessibility */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 4px;
}

/* Screen reader class */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   4. Theme Containers & Layout Grids
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padding {
    padding: 110px 0;
    transition: background-color 0.4s ease;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ==========================================================================
   5. Buttons & Pill Elements (Screenshot Style)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px; /* Perfect pill button */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-title);
    border: 1.5px solid var(--color-border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
}

body.light-theme .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.03);
}

.btn-accent {
    background: var(--color-accent-light);
    color: var(--color-bg-primary-val);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Category Badge (Yellow/Blue tags in screenshot) */
.badge-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 102, 255, 0.1);
    color: var(--color-accent-primary);
    margin-bottom: 12px;
}

body.light-theme .badge-pill {
    background: rgba(0, 102, 255, 0.08);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

/* ==========================================================================
   6. Global Sticky Header & Responsive Navbar
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: var(--color-bg-nav);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-card);
    padding: 14px 0;
    box-shadow: 0 10px 30px var(--color-shadow-card);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.nav-menu-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.primary-menu a {
    color: var(--color-text-body);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-text-title);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: var(--transition-smooth);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-title);
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-card);
    cursor: pointer;
    color: var(--color-text-title);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px var(--color-shadow-card);
}

.theme-toggle-btn:hover {
    color: var(--color-accent-primary);
    transform: rotate(15deg);
    border-color: var(--color-accent-primary);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Conditional icon visibility based on body class */
body.dark-theme .theme-toggle-btn .sun-icon {
    display: block;
}
body.dark-theme .theme-toggle-btn .moon-icon {
    display: none;
}

body:not(.dark-theme) .theme-toggle-btn .sun-icon {
    display: none;
}
body:not(.dark-theme) .theme-toggle-btn .moon-icon {
    display: block;
}

/* ==========================================================================
   7. Homepage Sections Styles
   ========================================================================== */

/* A. Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--color-accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-graphic-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-glow-back {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.22) 0%, rgba(79, 70, 229, 0.15) 50%, rgba(0,0,0,0) 75%);
    filter: blur(45px);
    z-index: 1;
    animation: pulseGlow 10s infinite alternate;
}

/* B. Trust Section */
.trust-highlights {
    margin-top: 45px;
}

.highlight-item {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    padding: 30px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -15px var(--color-shadow-card);
}

.highlight-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* C. Services Section */
.services-section {
    background-color: var(--color-bg-section-alt);
    color: var(--color-text-body);
    border-top: 1px solid var(--color-border-card);
    border-bottom: 1px solid var(--color-border-card);
}

.service-card {
    background: var(--color-bg-body);
    border: 1.5px solid var(--color-border-card);
    padding: 40px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px var(--color-shadow-card);
    border-color: var(--color-accent-primary);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 102, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent-primary);
}

.service-features-list {
    list-style: none;
    margin: 20px 0 30px;
}

.service-features-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
    color: var(--color-text-body);
    opacity: 0.9;
    font-size: 0.95rem;
}

.service-features-list li::before {
    content: "✓";
    color: var(--color-accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-cta-link {
    font-weight: 600;
    color: var(--color-accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-cta-link:hover {
    gap: 12px;
}

/* D. Why Choose Us Section */
.why-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    padding: 35px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-color: var(--color-accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -15px var(--color-shadow-card);
}

/* E. Timeline / Process Section */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary), var(--color-accent-light));
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-bg-body);
    border: 2.5px solid var(--color-accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.process-step:hover .step-number {
    border-color: var(--color-accent-secondary);
    transform: scale(1.1);
}

/* F. Portfolio Section (Beautiful clean cards matching screenshot styling) */
.portfolio-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 30px 60px -15px var(--color-shadow-card);
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: rgba(0, 0, 0, 0.03);
    margin: 15px;
    border-radius: var(--border-radius-sm);
}

body:not(.light-theme) .portfolio-thumb {
    background: rgba(255, 255, 255, 0.03);
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 0 25px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-meta {
    font-size: 0.8rem;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.portfolio-info p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* G. Results Section */
.results-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-top: 1px solid var(--color-border-card);
    border-bottom: 1px solid var(--color-border-card);
}

.result-card {
    text-align: center;
    padding: 30px;
}

.result-num {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* H. Testimonial Section */
.testimonials-grid {
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    padding: 40px;
    border-radius: var(--border-radius-md);
    position: relative;
    box-shadow: 0 20px 40px var(--color-shadow-card);
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6rem;
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-accent-primary);
    border: 1px solid var(--color-border-card);
}

.author-details h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.author-details span {
    font-size: 0.85rem;
    color: var(--color-text-desc);
}

/* I. Blog Archive Card */
.blog-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 25px 50px -15px var(--color-shadow-card);
}

.blog-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    margin: 15px;
    border-radius: var(--border-radius-sm);
}

body:not(.light-theme) .blog-thumb {
    background: rgba(255, 255, 255, 0.03);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--color-text-desc);
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-info {
    padding: 0 25px 25px 25px;
}

.blog-info h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-info h3 a:hover {
    color: var(--color-accent-primary);
}

.blog-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.blog-read-more {
    font-weight: 600;
    color: var(--color-accent-primary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more:hover {
    color: var(--color-accent-primary);
    gap: 10px;
}

/* J. Final Call to Action */
.final-cta {
    background: linear-gradient(135deg, var(--color-bg-primary-val) 0%, #151C2C 100%);
    border-top: 1px solid var(--color-border-card);
    position: relative;
    overflow: hidden;
}

body.light-theme .final-cta {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
}

body.light-theme .final-cta h2,
body.light-theme .final-cta p {
    color: #FFFFFF;
}

.final-cta::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   8. Form Controls & Submissions
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    background: var(--color-input-bg);
    border: 1.5px solid var(--color-input-border);
    color: var(--color-text-title);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background: var(--color-input-bg);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.15);
    outline: none;
}

select.form-control {
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

body:not(.light-theme) select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

body.light-theme select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23111827' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.success-alert {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
    text-align: center;
}

.error-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   9. Global Footer System
   ========================================================================== */
.site-footer {
    background-color: #060912;
    border-top: 1px solid var(--color-border-card);
    padding: 85px 0 35px;
    color: #FFFFFF;
}

body.light-theme .site-footer {
    background-color: #0F172A;
}

.footer-widget h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
    color: #FFFFFF;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #94A3B8;
    display: flex;
    gap: 12px;
}

.footer-contact-info a {
    color: #94A3B8;
}

.footer-contact-info a:hover {
    color: #FFFFFF;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94A3B8;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #94A3B8;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   10. Page Templates (About, Contact, Quote, 404, etc.)
   ========================================================================== */

/* Page Headers */
.page-header-section {
    padding: 190px 0 85px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.04) 0%, rgba(0,0,0,0) 100%);
    position: relative;
}

body.light-theme .page-header-section {
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.06) 0%, rgba(244, 247, 252, 0) 100%);
}

.page-header-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-header-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Team Grid Card */
.team-card {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-secondary);
    box-shadow: 0 25px 50px -15px var(--color-shadow-card);
}

.team-photo {
    aspect-ratio: 1/1;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    margin: 15px;
    border-radius: var(--border-radius-sm);
}

body:not(.light-theme) .team-photo {
    background: rgba(255, 255, 255, 0.03);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 0 25px 25px 25px;
}

.team-info h4 {
    margin-bottom: 4px;
}

.team-info p.position {
    color: var(--color-accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-info p.bio {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Contact / Quote Forms Container */
.form-panel {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-card);
    padding: 50px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 30px 60px -15px var(--color-shadow-card);
}

/* Single Blog Post Typography / Content */
.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-meta-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--color-text-desc);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-featured-img {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 50px;
    aspect-ratio: 16/9;
}

.entry-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.8rem;
    color: var(--color-text-body);
}

.entry-content h2, .entry-content h3 {
    margin-top: 40px;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent-primary);
    padding: 10px 0 10px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.25rem;
    opacity: 0.9;
    color: var(--color-text-title);
}

.entry-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   11. Keyframes & Animations
   ========================================================================== */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.08); opacity: 0.95; }
}

/* Transition Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. Media Queries (Responsive Breakpoints)
   ========================================================================== */

/* 1024px and down (Tablets / Laptops) */
@media (max-width: 1024px) {
    h1 { font-size: 2.65rem; }
    h2 { font-size: 2rem; }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    .process-timeline::before {
        display: none;
    }
    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* 768px and down (Mobile / Small Tablets) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -10px 0 40px rgba(0,0,0,0.06);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }

    body.dark-theme .nav-menu-container {
        background: #0A0F1D;
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    }
    
    .nav-menu-container.active {
        right: 0;
    }
    
    .primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .primary-menu a {
        font-size: 1.1rem;
        display: block;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions .btn {
        width: 100%;
    }

    .theme-toggle-btn {
        align-self: center;
        margin-bottom: 15px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-graphic-container {
        order: -1;
        margin-bottom: 20px;
    }

    .form-panel {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* 480px and down */
@media (max-width: 480px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.65rem; }
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-ctas {
        flex-direction: column;
    }
}

/* Respect user's motion settings */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
