@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* Elegant Dark Slate & Steel color scheme (subdued and professional) */
    --bg-main: #0b0f19;
    --bg-card: rgba(19, 27, 46, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-nav: rgba(11, 15, 25, 0.85);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Refrained accents: muted Orange and deep Sky Blue */
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-blue: #0284c7;
    --color-blue-dark: #0369a1;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Utility */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(2, 132, 199, 0.15);
    --shadow-glow-orange: 0 0 20px rgba(249, 115, 22, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

/* --- LIGHT THEME STYLES --- */
body.light-theme, html.light-theme {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.94);
    --border-color: rgba(15, 23, 42, 0.12);
    --border-hover: rgba(15, 23, 42, 0.25);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Background 3D Canvas Opacity in Light Mode */
body.light-theme #threejs-container canvas {
    opacity: 0.35;
    filter: invert(0.85) hue-rotate(180deg);
}

/* Header & Navigation in Light Mode */
body.light-theme header#site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.light-theme .nav-links a {
    color: #334155;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #ea580c;
}

/* Titles & Headings in Light Mode */
body.light-theme .section-title,
body.light-theme .hero-title,
body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme h4 {
    color: #0f172a !important;
}

body.light-theme .section-title span,
body.light-theme .hero-title span {
    background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .section-subtitle,
body.light-theme .hero-subtitle,
body.light-theme p {
    color: #334155;
}

/* Cards in Light Mode */
body.light-theme .card-glass,
body.light-theme .project-card,
body.light-theme .service-card,
body.light-theme .stat-card,
body.light-theme .value-card,
body.light-theme .tech-card,
body.light-theme .faq-card,
body.light-theme .testimonial-card,
body.light-theme .contact-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}

body.light-theme .card-glass:hover,
body.light-theme .project-card:hover,
body.light-theme .service-card:hover,
body.light-theme .stat-card:hover,
body.light-theme .value-card:hover,
body.light-theme .tech-card:hover,
body.light-theme .faq-card:hover,
body.light-theme .testimonial-card:hover {
    background: #ffffff !important;
    border-color: var(--color-blue) !important;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme .project-card:hover h3,
body.light-theme .service-card:hover h3,
body.light-theme .card-glass:hover h3,
body.light-theme .project-card:hover h4,
body.light-theme .card-glass:hover h4 {
    color: #0f172a !important;
}

body.light-theme .project-card:hover p,
body.light-theme .service-card:hover p,
body.light-theme .card-glass:hover p {
    color: #334155 !important;
}

body.light-theme .project-card:hover .project-cat {
    color: #0284c7 !important;
}

body.light-theme .project-card:hover .card-action-btn,
body.light-theme .service-card:hover .card-action-btn,
body.light-theme .card-glass:hover .card-action-btn {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

body.light-theme .project-card:hover .card-action-btn i,
body.light-theme .service-card:hover .card-action-btn i,
body.light-theme .card-glass:hover .card-action-btn i {
    color: #ffffff !important;
}

body.light-theme .project-card:hover .card-action-btn i.fa-arrow-right,
body.light-theme .service-card:hover .card-action-btn i.fa-arrow-right,
body.light-theme .card-glass:hover .card-action-btn i.fa-arrow-right {
    color: #ff7a00 !important;
}

/* Filter Tab Buttons in Light Mode */
body.light-theme .tab-btn {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-theme .tab-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

body.light-theme .tab-btn.active {
    background: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
}

/* Buttons in Light Mode */
body.light-theme .btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

body.light-theme .btn-secondary:hover {
    background: #e2e8f0;
    border-color: rgba(15, 23, 42, 0.3);
}

body.light-theme .btn-outline-blue {
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(2, 132, 199, 0.04);
}

body.light-theme .btn-outline-blue:hover {
    background: rgba(2, 132, 199, 0.12);
    border-color: #0284c7;
}

/* Form Controls & Inputs in Light Mode */
body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .newsletter-form input {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .newsletter-form input:focus {
    border-color: var(--color-blue) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme .form-group label {
    color: #1e293b !important;
}

/* Footer in Light Mode */
body.light-theme footer {
    background: #e2e8f0 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #334155 !important;
}

body.light-theme .footer-col h3 {
    color: #0f172a !important;
}

body.light-theme .footer-col p,
body.light-theme .footer-col ul a {
    color: #475569 !important;
}

body.light-theme .footer-col ul a:hover {
    color: #ea580c !important;
}

body.light-theme .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.1) !important;
    color: #64748b !important;
}

/* Modals & Overlays in Light Mode */
body.light-theme .modal-overlay .card-glass {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
    color: #0f172a !important;
}

body.light-theme .modal-overlay h2 {
    color: #0f172a !important;
}

body.light-theme #modal-view-logo-box,
body.light-theme #modal-view-portfolio-logo-box {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}

/* Graphic Cards & Animations in Light Mode */
body.light-theme .about-graphic-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.light-theme .service-detail-graphic {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .graphic-software {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .window-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .window-title {
    color: #64748b !important;
}

body.light-theme .code-line-2 {
    color: #0f172a !important;
}

body.light-theme .browser-layer {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.light-theme .browser-layer .layer-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .wire-card, body.light-theme .wire-strip {
    background: #e2e8f0 !important;
}

body.light-theme .orbit-ring {
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body.light-theme .orbit-node {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .project-image {
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .currency-select-box {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
}

body.light-theme .modal-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
}

body.light-theme .modal-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    color: #0f172a !important;
}

body.light-theme .modal-close-btn {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

body.light-theme .modal-close-btn:hover {
    background: #e2e8f0 !important;
    color: #ea580c !important;
}

body.light-theme .modal-logo-box {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .glowing-frame::after {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .stats-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(2, 132, 199, 0.04) 50%, var(--bg-main) 100%) !important;
}

body.light-theme .project-image-fallback {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

body.light-theme .badge-pill-overlay {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

/* Base Modal Components */
.modal-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-close-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(2, 132, 199, 0.2);
    border-color: var(--color-blue);
    transform: scale(1.05);
}

.modal-logo-box {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-pill-overlay {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    outline: none;
}

body.light-theme .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--color-orange);
    color: var(--color-orange);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

li {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- STRUCTURE --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
    position: relative;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 1.6rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-blue);
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.badge-orange {
    color: var(--color-orange);
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.15);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title span {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- GLASSMOPHISM CARDS --- */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition-normal);
}

.card-glass:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline-blue {
    background: transparent;
    color: var(--color-blue);
    border: 1px solid rgba(2, 132, 199, 0.4);
}

.btn-outline-blue:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-normal);
}

header.scrolled .nav-container {
    height: 65px;
}

/* Custom SVG Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo svg {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-blue));
    transition: var(--transition-normal);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 38px;
    height: 38px;
    padding: 10px 8px;
    cursor: pointer;
    z-index: 1005;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Nav Backdrop Overlay */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

#threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* let touch and mouse events pass through transparent background */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content h1 span.gradient-text-orange {
    background: linear-gradient(135deg, #f97316 0%, #fdba74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span.gradient-text-blue {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-btns {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.hero-badges-strip {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- TYPEWRITER HEADLINE ANIMATION --- */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.gradient-typed-text {
    background: linear-gradient(135deg, var(--color-orange) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.type-cursor {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
    font-weight: 400;
    margin-left: 2px;
    animation: cursorBlink 0.8s step-end infinite;
    display: inline;
}

body.light-theme .gradient-typed-text {
    background: linear-gradient(135deg, #ea580c 0%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.light-theme .type-cursor {
    color: #ea580c !important;
    -webkit-text-fill-color: #ea580c !important;
}

/* --- CODMINDS LAB ANIMATED HERO VISUAL --- */
@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes floatCore {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.04); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes pulseWave {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

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

.lab-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--shadow-glow-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-normal);
    overflow: hidden;
}

.lab-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-blue);
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.25), 0 0 30px rgba(249, 115, 22, 0.15);
}

.lab-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.08) 0%, rgba(249, 115, 22, 0.05) 40%, transparent 70%);
    pointer-events: none;
    animation: spinClockwise 30s linear infinite;
}

.lab-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: liveBlink 1.8s ease-in-out infinite;
}

.divider {
    color: var(--color-orange);
    margin: 0 0.1rem;
}

.lab-orbital-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lab-orbit-outer {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1.5px dashed rgba(2, 132, 199, 0.4);
    border-radius: 50%;
    animation: spinClockwise 22s linear infinite;
}

.lab-node {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #38bdf8;
    transition: var(--transition-fast);
}

.node-top { top: -19px; left: calc(50% - 19px); }
.node-right { top: calc(50% - 19px); right: -19px; color: #f97316; border-color: rgba(249, 115, 22, 0.3); }
.node-bottom { bottom: -19px; left: calc(50% - 19px); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.node-left { top: calc(50% - 19px); left: -19px; color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }

.lab-node i {
    animation: spinCounterClockwise 22s linear infinite;
}

.lab-orbit-inner {
    position: absolute;
    width: 145px;
    height: 145px;
    border: 2px solid rgba(249, 115, 22, 0.45);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinCounterClockwise 12s linear infinite;
}

.lab-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--color-blue);
    pointer-events: none;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation: pulseWave 3s ease-out infinite;
}

.ring-2 {
    width: 100px;
    height: 100px;
    animation: pulseWave 3s ease-out 1.5s infinite;
}

.lab-core {
    position: relative;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e293b 0%, #0b0f19 100%);
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.35), 0 0 15px rgba(249, 115, 22, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: floatCore 4s ease-in-out infinite alternate;
}

.lab-core-icon i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #f97316 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.5));
}

.lab-hud-strip {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
    z-index: 2;
}

.lab-hud-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.lab-hud-pill.orange {
    border-color: rgba(249, 115, 22, 0.2);
}

.lab-hud-pill:hover {
    border-color: var(--color-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Light Theme overrides for CODMINDS LAB */
body.light-theme .lab-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 25px rgba(2, 132, 199, 0.12) !important;
}

body.light-theme .lab-live-badge {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .lab-node {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .lab-core {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f1f5f9 100%) !important;
    border-color: rgba(2, 132, 199, 0.4) !important;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.2), 0 0 15px rgba(249, 115, 22, 0.15) !important;
}

body.light-theme .lab-hud-pill {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* --- SERVICES SUMMARY SECTION --- */
.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.service-card-icon i {
    font-size: 1.5rem;
    color: var(--color-blue);
    transition: var(--transition-normal);
}

.service-card:hover .service-card-icon {
    background: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: var(--shadow-glow-blue);
}

.service-card:hover .service-card-icon i {
    color: #fff;
}

/* Specific styling for custom software card */
.service-card.orange-theme:hover .service-card-icon {
    background: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-glow-orange);
}

.service-card.orange-theme .service-card-icon i {
    color: var(--color-orange);
}

.service-card.orange-theme:hover .service-card-icon i {
    color: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* --- STATS SECTION WITH LIVE BACKGROUND ANIMATED CARDS --- */
.stats-section {
    position: relative;
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.7) 50%, var(--bg-main) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 0;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* --- STAT CARD WITH CONTINUOUS LIVE FULL CARD WAVE GLOW --- */
.stat-item {
    position: relative;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 2.2rem 1.4rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(249, 115, 22, 0.15);
}

/* Continuous Animated Border Light Beam (Active Without Hovering) */
.stat-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.7), rgba(6, 182, 212, 0.6), rgba(99, 102, 241, 0.7), rgba(249, 115, 22, 0.7));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.85;
    animation: statBorderBeam 4s linear infinite;
    pointer-events: none;
}

/* Continuous Full Card Wave Glow Ambient Background (Active Without Hovering) */
.stat-bg-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    border-radius: 22px;
}

.stat-bg-ambient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.28) 0%, rgba(6, 182, 212, 0.22) 35%, rgba(99, 102, 241, 0.18) 65%, transparent 85%);
    background-size: 200% 200%;
    animation: statFullCardWave 6s ease-in-out infinite alternate;
    opacity: 0.9;
}

.stat-bg-ambient::after {
    content: '';
    position: absolute;
    inset: -30%;
    background: linear-gradient(115deg, transparent 20%, rgba(249, 115, 22, 0.18) 40%, rgba(6, 182, 212, 0.22) 50%, rgba(99, 102, 241, 0.18) 60%, transparent 80%);
    background-size: 300% 300%;
    animation: statLinearWave 5s linear infinite;
    opacity: 0.85;
}

/* Staggered Wave Delays for Smooth Flowing Grid Effect */
.stat-item:nth-child(1) .stat-bg-ambient::before { animation-delay: 0s; }
.stat-item:nth-child(2) .stat-bg-ambient::before { animation-delay: -1.5s; }
.stat-item:nth-child(3) .stat-bg-ambient::before { animation-delay: -3s; }
.stat-item:nth-child(4) .stat-bg-ambient::before { animation-delay: -4.5s; }

.stat-item:nth-child(1)::before { animation-delay: 0s; }
.stat-item:nth-child(2)::before { animation-delay: -1s; }
.stat-item:nth-child(3)::before { animation-delay: -2s; }
.stat-item:nth-child(4)::before { animation-delay: -3s; }

/* Card Hover Accent Elevation */
.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 25px 50px -15px rgba(249, 115, 22, 0.35), 0 10px 25px -10px rgba(6, 182, 212, 0.25);
}

/* Content Layer Isolation */
.stat-content-wrapper {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
}

.stat-number span {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
    text-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* Light Theme Enhancements for Stat Cards */
body.light-theme .stats-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(241, 245, 249, 0.85) 50%, var(--bg-main) 100%) !important;
    border-color: rgba(226, 232, 240, 0.8);
}

body.light-theme .stat-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.3) !important;
}

body.light-theme .stat-item:hover {
    background: #ffffff !important;
    border-color: rgba(249, 115, 22, 0.6) !important;
    box-shadow: 0 20px 40px -12px rgba(249, 115, 22, 0.3) !important;
}

body.light-theme .stat-number {
    background: linear-gradient(135deg, #0f172a 40%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none !important;
}

body.light-theme .stat-label {
    color: #475569 !important;
}

body.light-theme .stat-bg-ambient::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(6, 182, 212, 0.14) 35%, transparent 75%) !important;
}

/* KEYFRAME ANIMATIONS FOR LIVE FULL CARD WAVE & BORDER BEAM */
@keyframes statBorderBeam {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes statFullCardWave {
    0% {
        transform: translate(-10%, -10%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(8%, 8%) rotate(180deg) scale(1.15);
    }
    100% {
        transform: translate(-10%, -10%) rotate(360deg) scale(1);
    }
}

@keyframes statLinearWave {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* --- WHY CHOOSE US SECTION --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-us-item {
    display: flex;
    gap: 1.5rem;
}

.why-us-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.2);
    line-height: 1;
    margin-top: 0.2rem;
    transition: var(--transition-normal);
}

.why-us-item:hover .why-us-num {
    color: var(--color-blue);
}

.why-us-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- PROCESS SECTION (HOW WE DELIVER ANIMATED LINE & CIRCLES) --- */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3.25rem; /* 52px */
    transition: all 0.3s ease;
}

/* Static Base Guide Line (Center at 21.5px) */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    z-index: 1;
    transition: all 0.3s ease;
}

body.light-theme .process-timeline::before {
    background: rgba(15, 23, 42, 0.12);
}

/* Animated Glowing Gradient Left Side Line (Center at 21.5px) */
.process-timeline::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(56, 189, 248, 0.2) 0%, 
        #0284c7 25%, 
        #38bdf8 50%, 
        #ea580c 75%, 
        #f97316 100%);
    background-size: 100% 200%;
    border-radius: 4px;
    animation: lineGlowFlow 4s ease-in-out infinite alternate;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), 0 0 22px rgba(249, 115, 22, 0.4);
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.light-theme .process-timeline::after {
    background: linear-gradient(180deg, 
        rgba(2, 132, 199, 0.3) 0%, 
        #0284c7 30%, 
        #38bdf8 55%, 
        #ea580c 80%, 
        #f97316 100%);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.4), 0 0 18px rgba(234, 88, 12, 0.3);
}

/* Side Line Hover Effects (Thickening & Intensive Glow on Hover) */
.process-timeline:hover::after {
    width: 5px;
    left: 19px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.95), 0 0 45px rgba(249, 115, 22, 0.8);
}

body.light-theme .process-timeline:hover::after {
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.8), 0 0 35px rgba(234, 88, 12, 0.7);
}

@keyframes lineGlowFlow {
    0% {
        background-position: 0% 0%;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.5), 0 0 20px rgba(2, 132, 199, 0.3);
    }
    100% {
        background-position: 0% 100%;
        box-shadow: 0 0 18px rgba(249, 115, 22, 0.8), 0 0 35px rgba(234, 88, 12, 0.5);
    }
}

/* Animated Traveling Laser Beam along the Left Line (Center at 21.5px) */
.process-timeline-beam {
    position: absolute;
    left: 17px;
    top: 10px;
    width: 9px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(180deg, transparent, #38bdf8, #f97316, transparent);
    box-shadow: 0 0 15px #38bdf8, 0 0 25px #f97316;
    animation: laserBeamTravel 6s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

body.light-theme .process-timeline-beam {
    background: linear-gradient(180deg, transparent, #0284c7, #ea580c, transparent);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.8), 0 0 25px rgba(234, 88, 12, 0.7);
}

.process-timeline:hover .process-timeline-beam {
    animation-duration: 3.5s;
    height: 55px;
}

@keyframes laserBeamTravel {
    0% {
        top: 10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 50px);
        opacity: 0;
    }
}

.process-step {
    position: relative;
    margin-bottom: 2.8rem;
    transition: transform 0.35s ease;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* Local Side Line Highlight Bar on Hovering Step */
.process-step::before {
    content: '';
    position: absolute;
    left: -3.25rem;
    top: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, transparent);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 4;
}

.process-step:hover::before {
    width: 1.8rem;
    opacity: 1;
}

/* Animated Circle (Dot) - Center aligned to 21.5px line with solid background mask */
.process-dot {
    position: absolute;
    left: -44.5px; /* Center at 21.5px (52px - 44.5px + 14px = 21.5px) */
    top: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b0f19; /* Solid background masks vertical line underneath */
    border: 3px solid var(--color-blue);
    z-index: 5; /* Higher than vertical line to hide line */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 0 5px #0b0f19, 0 0 15px rgba(2, 132, 199, 0.6); /* 5px solid mask ring hides line touching circle */
}

body.light-theme .process-dot {
    background: #ffffff; /* Solid white background masks vertical line in light mode */
    border-color: #0284c7;
    box-shadow: 0 0 0 5px #ffffff, 0 4px 15px rgba(2, 132, 199, 0.3);
}

.process-step:nth-child(even) .process-dot {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 5px #0b0f19, 0 0 15px rgba(249, 115, 22, 0.6);
}

body.light-theme .process-step:nth-child(even) .process-dot {
    border-color: #ea580c;
    box-shadow: 0 0 0 5px #ffffff, 0 4px 15px rgba(234, 88, 12, 0.3);
}

/* Outer Pulsing Radar Ring around Circle */
.process-dot::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid var(--color-blue);
    opacity: 0.6;
    animation: circlePulseRing 2.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

body.light-theme .process-dot::before {
    border-color: #0284c7;
}

.process-step:nth-child(even) .process-dot::before {
    border-color: var(--color-orange);
    animation-delay: 0.6s;
}

body.light-theme .process-step:nth-child(even) .process-dot::before {
    border-color: #ea580c;
}

/* Inner Core Glowing Point inside Circle */
.process-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-blue);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--color-blue);
}

body.light-theme .process-dot::after {
    background: #0284c7;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.5);
}

.process-step:nth-child(even) .process-dot::after {
    background: var(--color-orange);
    box-shadow: 0 0 8px var(--color-orange);
}

body.light-theme .process-step:nth-child(even) .process-dot::after {
    background: #ea580c;
    box-shadow: 0 0 6px rgba(234, 88, 12, 0.5);
}

@keyframes circlePulseRing {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.6);
        opacity: 0.35;
    }
    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

/* Hover & Active Step Interactions */
.process-step:hover .process-dot {
    transform: scale(1.42);
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 0 5px #0b0f19, 0 0 25px rgba(56, 189, 248, 0.9), 0 0 45px rgba(249, 115, 22, 0.7);
}

body.light-theme .process-step:hover .process-dot {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 0 0 5px #ffffff, 0 0 25px rgba(2, 132, 199, 0.85);
}

.process-step:nth-child(even):hover .process-dot {
    border-color: #f97316;
}

body.light-theme .process-step:nth-child(even):hover .process-dot {
    background: #ea580c;
    border-color: #ea580c;
    box-shadow: 0 0 0 5px #ffffff, 0 0 25px rgba(234, 88, 12, 0.85);
}

.process-step:hover .process-dot::after {
    transform: scale(1.3);
    background: #0f172a;
}

body.light-theme .process-step:hover .process-dot::after {
    background: #ffffff;
}

.process-step:hover .process-content {
    transform: translateX(10px);
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15);
}

body.light-theme .process-step:hover .process-content {
    border-color: rgba(2, 132, 199, 0.4) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 0 20px rgba(2, 132, 199, 0.15);
}

.process-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(2, 132, 199, 0.15);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h5 {
    font-size: 1rem;
    font-weight: 600;
}

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

/* --- SERVICES DETAIL PAGE --- */
.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-detail-item:nth-child(even) {
    direction: rtl;
}

.service-detail-item:nth-child(even) .service-detail-content {
    direction: ltr;
}

.service-detail-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-check i {
    color: var(--color-orange);
}

.service-detail-item:nth-child(even) .feature-check i {
    color: var(--color-blue);
}

.service-detail-graphic {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    background: #080c15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.service-detail-graphic:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* BOX 1: Software Code Window Animation */
.graphic-software {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 280px;
    background: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
}

body.light-theme .graphic-software {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

.window-header {
    height: 38px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-left: auto;
}

.window-body {
    padding: 1.4rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #38bdf8;
    height: 100%;
    position: relative;
}

.code-line {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    min-height: 1.2rem;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #38bdf8;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* BOX 2: Website Development Centered Mockup */
.graphic-website-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem;
}

.browser-mockup-window {
    width: 100%;
    max-width: 420px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

body.light-theme .browser-mockup-window {
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.browser-header-bar {
    height: 38px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
}

.browser-url-pill {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.25rem 0.9rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: monospace;
}

.browser-body-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
}

.web-preview-hero {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.web-hero-badge {
    width: 60px;
    height: 8px;
    background: rgba(249, 115, 22, 0.6);
    border-radius: 4px;
}

.web-hero-title {
    width: 80%;
    height: 14px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-blue));
    border-radius: 4px;
    animation: heroBarGlow 3s infinite ease-in-out;
}

@keyframes heroBarGlow {
    0%, 100% { opacity: 0.85; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.02); }
}

.web-hero-subtitle {
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.web-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.web-card {
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.web-card:nth-child(1) { animation: webCardPulse 4s infinite ease-in-out 0s; }
.web-card:nth-child(2) { animation: webCardPulse 4s infinite ease-in-out 1.3s; }
.web-card:nth-child(3) { animation: webCardPulse 4s infinite ease-in-out 2.6s; }

@keyframes webCardPulse {
    0%, 100% { transform: translateY(0); border-color: var(--border-color); }
    50% { transform: translateY(-3px); border-color: var(--color-blue); }
}

.wire-bar-pulse {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    animation: shimmerLine 2.5s infinite;
}

@keyframes shimmerLine {
    100% { left: 100%; }
}

/* Animated Cursor Pointer in Web Mockup */
.web-cursor-pointer {
    position: absolute;
    top: 45%;
    left: 20%;
    color: #ff7a00;
    font-size: 0.95rem;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    animation: cursorMove 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cursorMove {
    0% { top: 75%; left: 80%; opacity: 0; transform: scale(0.8); }
    15% { opacity: 1; transform: scale(1); }
    40% { top: 40%; left: 30%; transform: scale(1); }
    45% { transform: scale(0.85); }
    50% { transform: scale(1); }
    75% { top: 65%; left: 70%; transform: scale(1); }
    90% { opacity: 1; }
    100% { top: 75%; left: 80%; opacity: 0; transform: scale(0.8); }
}

.floating-chip {
    position: absolute;
    padding: 0.4rem 0.8rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 5;
    animation: floatChip 4s ease-in-out infinite alternate;
}

.chip-left {
    bottom: 12px;
    left: 8px;
}

.chip-right {
    top: 48px;
    right: 8px;
    animation-delay: 1.8s;
}

.chip-bottom {
    bottom: 44px;
    right: 14px;
    animation-delay: 3.2s;
}

@keyframes floatChip {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-7px) scale(1.03); }
}

/* Light Mode Overrides for Web Development Animation Mockup */
body.light-theme .browser-mockup-window {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 16px 40px rgba(2, 132, 199, 0.12) !important;
}

body.light-theme .browser-header-bar {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .browser-url-pill {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .web-preview-hero {
    background: rgba(2, 132, 199, 0.06) !important;
    border-color: rgba(2, 132, 199, 0.18) !important;
}

body.light-theme .web-hero-subtitle {
    background: rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .web-card {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .wire-bar-pulse {
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.25), transparent) !important;
}

body.light-theme .floating-chip {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}

/* BOX 3: Interactive Bespoke System Architecture Workflow Pipeline Window */
.graphic-custom-engine {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem;
}

.pipeline-canvas-window {
    width: 100%;
    max-width: 510px;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

body.light-theme .pipeline-canvas-window {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.12) !important;
}

.pipeline-header-bar {
    height: 38px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.9rem;
}

body.light-theme .pipeline-header-bar {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 2s infinite;
}

.hud-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    font-family: monospace;
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hud-pill.orange {
    background: rgba(249, 115, 22, 0.12);
    color: var(--color-orange);
    border-color: rgba(249, 115, 22, 0.3);
}

.pipeline-body {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    position: relative;
    min-height: 180px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    z-index: 2;
}

.step-source .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

body.light-theme .step-source .step-icon {
    background: #fff3eb !important;
}

.step-info .step-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.step-info .step-sub {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Central Microchip Core Engine */
.step-core {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.step-core:hover {
    transform: scale(1.06);
}

.core-gear-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border: 2px solid var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.core-icon {
    font-size: 1.4rem;
    color: var(--color-orange);
    animation: microchipPulse 3s infinite ease-in-out;
}

@keyframes microchipPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.9)); }
}

/* Flowing Laser Line Connectors */
.laser-connector {
    flex: 1;
    height: 2px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

body.light-theme .laser-connector {
    background: rgba(15, 23, 42, 0.15) !important;
}

.laser-pulse {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff7a00, #38bdf8, transparent);
    box-shadow: 0 0 8px #ff7a00;
    animation: laserFlow 2s infinite linear;
}

.laser-pulse.delay {
    animation-delay: 1s;
}

@keyframes laserFlow {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Destination Modules Cards Column */
.pipeline-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    z-index: 2;
}

.dest-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dest-card:hover, .dest-card.active {
    background: rgba(2, 132, 199, 0.12);
    border-color: var(--color-blue);
    transform: translateX(3px);
}

body.light-theme .dest-card {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .dest-card:hover, body.light-theme .dest-card.active {
    background: #ffffff !important;
    border-color: var(--color-blue) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}

.dest-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dest-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dest-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.chip-pipe-top {
    top: 15px;
    right: 35px;
}

.chip-pipe-bottom {
    bottom: -12px;
    left: 30px;
}

.web-tags-row {
    display: contents;
}

/* Responsive Service Animation Board Rules for Tablet & Mobile */
@media (max-width: 992px) {
    .graphic-website-container,
    .graphic-custom-engine {
        padding: 0.8rem 0.2rem;
    }
    
    .chip-left { left: 5px; bottom: -8px; }
    .chip-right { right: 5px; top: 10px; }
    .chip-bottom { right: 5px; bottom: 10px; }
    
    .chip-pipe-top { right: 15px; top: 10px; }
    .chip-pipe-bottom { left: 15px; bottom: -8px; }
}

@media (max-width: 640px) {
    .graphic-website-container,
    .graphic-custom-engine {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.6rem 0.2rem !important;
        gap: 0.4rem !important;
    }
    
    .graphic-website-container .web-tags-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .graphic-website-container .floating-chip {
        display: inline-flex !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: 0.58rem !important;
        padding: 0.22rem 0.35rem !important;
        white-space: nowrap !important;
        flex: 1 !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .graphic-custom-engine .floating-chip {
        display: inline-flex !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: 0.68rem !important;
        padding: 0.25rem 0.65rem !important;
        margin: 0.25rem 0.2rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        z-index: 10 !important;
    }
    
    .pipeline-canvas-window,
    .browser-mockup-window {
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    .pipeline-header-bar {
        padding: 0 0.5rem !important;
    }
    
    .hud-title {
        font-size: 0.62rem !important;
    }
    
    .hud-pill {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.4rem !important;
    }
    
    .pipeline-body {
        padding: 0.8rem 0.4rem !important;
        gap: 0.2rem !important;
    }
    
    .step-source .step-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .core-gear-box {
        width: 42px !important;
        height: 42px !important;
    }
    
    .core-icon {
        font-size: 1.1rem !important;
    }
    
    .step-info .step-name {
        font-size: 0.68rem !important;
    }
    
    .step-info .step-sub {
        font-size: 0.58rem !important;
    }
    
    .dest-card {
        padding: 0.25rem 0.45rem !important;
        gap: 0.35rem !important;
    }
    
    .dest-title {
        font-size: 0.65rem !important;
    }
    
    .dest-sub {
        font-size: 0.55rem !important;
    }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.06); }
}

.orbit-center-core i {
    font-size: 2.2rem;
    color: var(--color-orange);
    transition: var(--transition-normal);
    animation: pulseSlow 3s infinite ease-in-out;
}

.service-detail-graphic:hover .orbit-center-core {
    transform: scale(1.08);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: var(--shadow-glow-orange);
}

.service-detail-graphic:hover .orbit-center-core i {
    color: #fff;
    transform: rotate(45deg);
}

.service-detail-graphic:hover .ring-outer {
    animation-duration: 12s;
    border-color: rgba(2, 132, 199, 0.15);
}

.service-detail-graphic:hover .ring-inner {
    animation-duration: 8s;
    border-color: rgba(249, 115, 22, 0.15);
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4)); }
}


/* Tech Stack Interactive Grid & Horizontal Scrollable Tabs */
.tech-tabs-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-scroll-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-scroll-btn:hover {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

body.light-theme .tech-scroll-btn {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .tech-scroll-btn:hover {
    background: #ea580c;
    color: #ffffff;
}

.tech-tabs {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.4rem 0.8rem 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) rgba(255, 255, 255, 0.05);
    cursor: grab;
}

.tech-tabs.active-drag {
    cursor: grabbing;
    user-select: none;
}

.tech-tabs::-webkit-scrollbar {
    height: 6px;
}

.tech-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.tech-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-orange), #38bdf8);
    border-radius: 10px;
}

.tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    color: var(--text-primary);
    border-color: var(--color-orange);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.tech-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: center;
    gap: 1.5rem;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.tech-card i {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.tech-card:hover i {
    color: var(--color-orange);
}

.tech-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- INTERACTIVE PROJECT ESTIMATOR MULTI-STEP WIZARD --- */
.estimator-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem 2rem;
}

.step-progress-track {
    position: absolute;
    top: 47px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%) !important;
    z-index: 1;
    border-radius: 2px;
}

body.light-theme .step-progress-track {
    background: rgba(15, 23, 42, 0.1);
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), var(--color-blue));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    border-color: var(--color-orange);
    background: rgba(249, 115, 22, 0.18);
    color: var(--color-orange);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.4);
}

.step-item.completed .step-circle {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.step-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Step Panels */
.step-panel {
    display: none;
    animation: fadeInStep 0.3s ease forwards;
}

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

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

/* Stepper Navigation Bar */
.stepper-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Multi-Step Estimator Mobile Responsiveness */
@media (max-width: 768px) {
    .estimator-stepper {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.3rem !important;
        padding: 1rem 0.5rem !important;
    }
    
    .step-item {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.3rem !important;
    }

    .step-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    .step-label {
        font-size: 0.6rem !important;
    }

    .step-title {
        font-size: 0.72rem !important;
    }

    .step-progress-track {
        top: 32px !important;
        left: 12.5% !important;
        right: 12.5% !important;
    }

    .stepper-nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .stepper-nav-bar button {
        width: 100%;
        justify-content: center;
    }

    #stepper-step-counter {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .estimator-stepper {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.2rem !important;
        padding: 0.8rem 0.3rem !important;
    }

    .step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }

    .step-title {
        display: none !important;
    }
}

.estimator-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
}

.estimator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.estimator-group {
    margin-bottom: 2.5rem;
}

.estimator-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.estimator-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.option-badge {
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
    position: relative;
    transform: none !important;
}

.option-badge:hover {
    transform: none !important;
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.option-badge i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    transform: none !important;
}

.option-badge:hover i {
    transform: none !important;
    color: var(--color-orange);
}

.option-badge.selected {
    background: rgba(249, 115, 22, 0.08);
    border-color: var(--color-orange);
    color: var(--text-primary);
    transform: none !important;
}

.option-badge.selected i {
    color: var(--color-orange);
    transform: none !important;
}

.option-badge.blue-select.selected {
    background: rgba(2, 132, 199, 0.08);
    border-color: var(--color-blue);
    transform: none !important;
}

.option-badge.blue-select.selected i {
    color: var(--color-blue);
    transform: none !important;
}

body.light-theme .option-badge {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    transform: none !important;
}

body.light-theme .option-badge:hover {
    border-color: var(--color-orange);
    background: #f8fafc;
    transform: none !important;
}

body.light-theme .option-badge.selected {
    background: rgba(249, 115, 22, 0.1) !important;
    border-color: #ea580c !important;
    transform: none !important;
}

body.light-theme .option-badge.blue-select.selected {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: #0284c7 !important;
    transform: none !important;
}

/* Timeline slider */
.slider-container {
    padding: 0.5rem 0;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-orange);
    cursor: pointer;
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Estimator Sidebar */
.estimator-summary {
    position: sticky;
    top: 120px;
}

.summary-cost-box {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cost-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.cost-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.cost-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- PORTFOLIO --- */
.portfolio-filters {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.6rem 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) rgba(255, 255, 255, 0.04);
    cursor: grab;
}

@media (min-width: 768px) {
    .portfolio-filters {
        justify-content: center;
    }
}

.portfolio-filters.active-drag {
    cursor: grabbing;
    user-select: none;
}

.portfolio-filters::-webkit-scrollbar {
    height: 6px;
}

.portfolio-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.portfolio-filters::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-orange), #38bdf8);
    border-radius: 10px;
}

.portfolio-filters .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
}

.project-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.12);
}

.project-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.2rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #131b2e 0%, #080c14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
}

.project-image img {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    object-position: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Disable 3D tilt rotation on all popup modal cards & ensure compact popup geometry */
.modal-overlay .card-glass, #product-view-modal .card-glass, #portfolio-view-modal .card-glass, #edit-modal .card-glass {
    transform: none !important;
    perspective: none !important;
    transform-style: flat !important;
    max-width: 620px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-cat {
    font-size: 0.78rem;
    color: var(--color-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.3em;
}

.project-card .card-action-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: var(--transition-normal);
}

.project-card:hover .card-action-btn {
    background: rgba(2, 132, 199, 0.2);
    border-color: var(--color-blue);
    color: #ffffff;
}

.project-card:hover .card-action-btn i.fa-arrow-right {
    transform: translateX(4px);
    color: var(--color-orange);
}

/* --- ABOUT PAGE --- */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-graphic {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 16/11;
}

.about-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-card {
    text-align: center;
}

.value-icon {
    width: 65px;
    height: 65px;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon i {
    font-size: 1.6rem;
    color: var(--color-orange);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* --- ABOUT PAGE ANIMATED SHOWCASE & TIMELINE --- */
.about-orbital-card {
    width: 360px;
    height: 360px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-brain {
    font-size: 2.8rem;
    color: var(--color-orange);
    animation: brainFloat 3.5s ease-in-out infinite alternate;
}

@keyframes brainFloat {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4)); }
    100% { transform: translateY(-10px) scale(1.08); filter: drop-shadow(0 0 25px rgba(249, 115, 22, 0.8)); }
}

.timeline-card {
    transition: var(--transition-normal);
}

.timeline-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.15);
}

.timeline-num {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-color);
    opacity: 0.5;
    font-family: monospace;
}

.timeline-card:hover .timeline-num {
    color: var(--color-orange);
    opacity: 0.9;
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.2rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    font-size: 1.1rem;
}

.contact-item-detail h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-item-detail p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.form-group select, select {
    padding: 0.65rem 2.2rem 0.65rem 1rem !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22293%22%20height%3D%22293%22%3E%3Cpath%20fill%3D%22%230f172a%22%20d%3D%22M236%20129L146%20219l-90-90%2022-22%2068%2068%2068-68z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.8rem center !important;
    background-size: 0.75rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: var(--transition-normal);
}

.form-group select option, select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.04);
}

.form-group select:focus {
    border-color: var(--color-blue) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* 3D INTERACTIVE TILT EFFECTS */
.card-glass, .service-card, .project-card, .value-card, .tech-card, .contact-item {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Success Card */
.alert-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-card.success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.alert-card.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.alert-card.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* --- FOOTER --- */
footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

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

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

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.cookie-settings-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
}

.cookie-settings-btn:hover {
    color: var(--color-orange);
}

.footer-link-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.blog-card-img-preview img,
.blog-featured-img-box img {
    transform: none !important;
    transition: opacity 0.2s ease !important;
}

body.light-theme .blog-card-img-preview,
body.light-theme .blog-featured-img-box {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes morphingBlob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%;
    }
    100% {
        border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    }
}

/* --- ESTIMATOR ZERO-MOVEMENT STATIC HOVER RULES --- */
#estimator,
#estimator *,
.estimator-layout,
.estimator-layout *,
.estimator-card,
.estimator-card *,
.estimator-summary,
.estimator-summary *,
.summary-cost-box,
.summary-cost-box *,
.cost-amount {
    transform: none !important;
}

#estimator .option-badge:hover,
#estimator .option-badge:active,
#estimator .option-badge.selected,
#estimator .option-badge i:hover,
#estimator .btn:hover,
#estimator .range-slider::-webkit-slider-thumb:hover,
#estimator .range-slider::-webkit-slider-thumb:active {
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile Navigation Cost Calculator Button Default Rule */
.mobile-nav-calc-btn {
    display: none !important;
}

/* Category Badge Info Icon Styling */
.type-info-icon {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
.type-info-icon:hover {
    opacity: 1;
    color: var(--color-orange);
    background: rgba(249, 115, 22, 0.15);
}
.type-badge.selected .type-info-icon {
    opacity: 1;
    color: var(--color-orange);
}

/* Floating Glassmorphic Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 3rem);
    max-width: 860px;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 1.2rem 1.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme #cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cookie-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 260px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    #cookie-consent-banner {
        bottom: 1rem;
        width: calc(100% - 1.5rem);
        padding: 1rem;
    }
    .cookie-banner-content {
        gap: 0.8rem;
    }
    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.4rem;
    }
    .cookie-actions button {
        flex: 1;
    }
}

/* --- COMPREHENSIVE RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-badges-strip {
        justify-content: center;
        flex-wrap: wrap;
    }

    .products-grid, .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.8rem;
    }
    
    .why-us-grid, .service-detail-item {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .service-detail-graphic {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: fit-content !important;
        width: 100% !important;
        max-width: 580px;
        margin: 0 auto;
        overflow: visible !important;
        padding: 0.5rem 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .graphic-software,
    .browser-mockup-window,
    .pipeline-canvas-window {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: fit-content !important;
        overflow: hidden !important;
    }
    
    .service-detail-item:nth-child(even) {
        direction: ltr;
    }
    
    .estimator-layout, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .estimator-summary {
        position: static;
        width: 100%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2.5rem;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-links a {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .nav-links.open {
        right: 0 !important;
    }
    
    .nav-actions {
        gap: 0.5rem !important;
    }

    .desktop-cost-btn {
        display: none !important;
    }

    .mobile-nav-calc-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: flex !important;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        flex-shrink: 0;
        margin-left: 0.2rem;
    }

    .menu-toggle span {
        width: 20px;
    }
    
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .modal-card {
        width: 92%;
        padding: 1.5rem;
        max-height: 90vh;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        text-align: center;
    }

    .footer-col {
        align-items: center !important;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .estimator-card {
        padding: 1.5rem;
    }

    .estimator-options {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .option-badge {
        padding: 0.75rem 0.6rem;
        font-size: 0.85rem;
    }

    .summary-cost-box {
        padding: 1.8rem 1.2rem;
    }

    .cost-amount {
        font-size: 2.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .timeline-grid, .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .estimator-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .option-badge {
        padding: 0.65rem 0.4rem;
        font-size: 0.8rem;
    }

    .option-badge i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 3.5rem 0 1.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        margin-bottom: 3rem;
        text-align: center;
    }

    .footer-col {
        align-items: center !important;
        text-align: center;
    }

    .footer-col p {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col ul {
        align-items: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .newsletter-form input {
        width: 100%;
        text-align: center;
    }

    .newsletter-form button {
        width: 100%;
        padding: 0.75rem !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.8rem;
        padding-top: 1.5rem;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 0.8rem;
    }

    @media (max-width: 480px) {
        .footer-legal-links {
            gap: 0.6rem;
        }

        .footer-link-divider {
            display: inline-block;
            opacity: 0.5;
        }
    }
}

/* --- SCROLL REVEAL ENTRANCE ANIMATIONS --- */
.reveal, 
.reveal-left, 
.reveal-right, 
.reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.js-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
}

body.js-reveal .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

body.js-reveal .reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

body.js-reveal .reveal-scale {
    opacity: 0;
    transform: scale(0.96);
}

body.js-reveal .reveal.active, 
body.js-reveal .reveal-left.active, 
body.js-reveal .reveal-right.active,
body.js-reveal .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Scroll Animation Delay helper variables */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- EXTRA RESPONSIVE ENHANCEMENTS FOR ALL PAGES & DEVICES --- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Admin Dashboard Mobile Table & Grid Controls */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .about-hero, .mission-vision-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .about-orbital-card {
        width: 300px;
        height: 300px;
    }

    .about-orbital-card .ring-outer {
        width: 260px;
        height: 260px;
    }

    .about-orbital-card .ring-inner {
        width: 170px;
        height: 170px;
    }

    .lab-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .lab-orbital-container {
        width: 290px;
        height: 290px;
    }
}

@media (max-width: 600px) {
    .modal-card {
        width: 95%;
        padding: 1.2rem;
        margin: 1rem auto;
    }

    .modal-logo-box {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }

    .hero-badges-strip {
        gap: 0.8rem;
    }

    .hero-badge-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.78rem !important;
    }
}

/* --- COMPLETE ADMIN DASHBOARD ALL PANELS RESPONSIVE SYSTEM --- */
.dashboard-container {
    padding: 1.2rem 1.5rem 3.5rem 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

/* --- UNIVERSAL ADMIN MENUBAR HEADER (PARITY WITH APP.BLADE.PHP) --- */
.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 58vw;
    margin-left: 2.2rem;
    padding: 0.25rem 0.2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.admin-nav-links::-webkit-scrollbar {
    height: 3px;
}
.admin-nav-links::-webkit-scrollbar-track {
    background: transparent;
}
.admin-nav-links::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 4px;
}
.admin-nav-links::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.8);
}

.admin-nav-links .admin-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    outline: none;
}

.admin-nav-links .admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-nav-links .admin-tab.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(2, 132, 199, 0.08) 100%);
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #38bdf8;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

body.light-theme .admin-nav-links .admin-tab {
    color: #475569;
}
body.light-theme .admin-nav-links .admin-tab:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .admin-nav-links .admin-tab.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0.05) 100%);
    border-color: rgba(2, 132, 199, 0.4);
    color: #0284c7;
}

/* Mobile & Tablet View (max-width: 1024px) matching app.blade.php */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 38px !important;
        height: 38px !important;
        padding: 10px 8px !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1005 !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm) !important;
    }

    .menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: var(--text-primary) !important;
        border-radius: 2px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        transform-origin: center !important;
    }

    .menu-toggle.open span:nth-child(1), .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .menu-toggle.open span:nth-child(2), .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }

    .menu-toggle.open span:nth-child(3), .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    .admin-nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 1rem 1rem 2rem 1rem !important;
        gap: 0.45rem !important;
        margin-left: 0 !important;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        max-width: 100% !important;
    }

    body.light-theme .admin-nav-links {
        background: rgba(255, 255, 255, 0.97) !important;
        border-left-color: rgba(15, 23, 42, 0.12) !important;
    }

    .admin-nav-links.open {
        right: 0 !important;
    }

    .admin-nav-links .admin-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1.1rem;
        font-size: 0.92rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.03);
    }
}

.grid-forms, 
.blog-grid-forms {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.2rem !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.dashboard-panel {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dashboard-panel .card-glass {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1.5rem;
    box-sizing: border-box !important;
}

.crud-table {
    width: 100% !important;
    border-collapse: collapse;
}

.crud-table th, 
.crud-table td {
    word-break: break-word;
    max-width: 220px;
}

/* Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .grid-forms, 
    .blog-grid-forms {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0.75rem 3rem 0.75rem !important;
    }

    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
    }

    .dashboard-header h1 {
        font-size: 1.55rem !important;
    }

    .admin-tab {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .card-glass {
        padding: 1.15rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .contact-form input, 
    .contact-form select, 
    .contact-form textarea, 
    .form-group input, 
    .form-group select, 
    .form-group textarea,
    .upload-box {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .crud-table {
        min-width: 480px;
    }

    .crud-table th, 
    .crud-table td {
        padding: 0.55rem 0.4rem !important;
        font-size: 0.8rem !important;
    }

    .btn-edit, .btn-delete {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .ql-toolbar.ql-snow {
        padding: 0.4rem !important;
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .ql-container.ql-snow {
        font-size: 0.9rem;
        min-height: 180px !important;
    }
}

/* Extra Small Mobile Screens (max-width: 576px) */
@media (max-width: 576px) {
    .dashboard-container {
        padding: 0.75rem 0.5rem 2rem 0.5rem !important;
    }

    .card-glass {
        padding: 0.95rem !important;
    }

    .modal-card {
        width: 96% !important;
        padding: 1rem !important;
    }

    .crud-table {
        min-width: 420px;
    }

    .crud-table td strong {
        font-size: 0.82rem !important;
    }

    .theme-badge {
        font-size: 0.68rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* --- RESPONSIVE ENHANCEMENTS FOR CONTACT QUERIES, NEWSLETTER & ACCOUNT DETAILS --- */
#panel-contact-inquiries .table-responsive,
#panel-newsletter-subscribers .table-responsive {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#panel-contact-inquiries .crud-table {
    min-width: 680px;
}

#panel-newsletter-subscribers .crud-table {
    min-width: 480px;
}

#panel-admin-credentials .card {
    padding: 2rem;
}

@media (max-width: 768px) {
    #panel-admin-credentials .card {
        padding: 1.25rem !important;
    }
    
    #panel-admin-credentials .contact-form button[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    #panel-admin-credentials .card {
        padding: 1rem !important;
    }

    #panel-admin-credentials .form-group div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    #panel-admin-credentials .form-group input[name="captcha"] {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-top: 0.4rem;
    }

    #reply-inquiry-modal .card-glass {
        padding: 1.25rem !important;
        width: 95% !important;
    }

    #reply-inquiry-modal form div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    #reply-inquiry-modal form div[style*="display: flex"] button {
        width: 100% !important;
    }
}

/* --- LIGHT THEME RULES FOR ALL ADMIN DASHBOARD PANELS & MODALS --- */
body.light-theme select, 
body.light-theme select option,
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
body.light-theme select:focus, 
body.light-theme input:focus, 
body.light-theme textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
body.light-theme .code-textarea {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0284c7 !important;
}
body.light-theme .code-textarea::placeholder {
    color: #94a3b8 !important;
}
body.light-theme .table-responsive {
    border-color: rgba(15, 23, 42, 0.12) !important;
    background: #ffffff !important;
}
body.light-theme .crud-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
body.light-theme .crud-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light-theme .crud-table tr:hover td {
    background: rgba(2, 132, 199, 0.05) !important;
    color: #0f172a !important;
}
body.light-theme .btn-delete {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}
body.light-theme .btn-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}
body.light-theme .btn-edit {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
}
body.light-theme .btn-edit:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
body.light-theme .suggest-badge {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
body.light-theme .suggest-badge:hover {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #38bdf8 !important;
}
body.light-theme .upload-box {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}
body.light-theme .upload-box:hover {
    border-color: #0284c7 !important;
    background: #f0f9ff !important;
}
body.light-theme .picker-icon-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.light-theme .picker-icon-btn:hover,
body.light-theme .picker-icon-btn.selected {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #0284c7 !important;
}
body.light-theme .card-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}
body.light-theme .modal-card,
body.light-theme #edit-modal .card-glass,
body.light-theme #reply-inquiry-modal .card-glass,
body.light-theme #view-inquiry-modal .card-glass {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme #icon-picker-modal,
body.light-theme #icon-picker-tech_modal,
body.light-theme #icon-picker-tech_create,
body.light-theme #icon-picker-create {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}
body.light-theme #icon-search-modal,
body.light-theme #icon-search-tech_modal,
body.light-theme #icon-search-tech_create,
body.light-theme #icon-search-create {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.light-theme #view-modal-message {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}
body.light-theme .inquiry-card-item,
body.light-theme .subscriber-card-item {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .ql-toolbar.ql-snow {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
body.light-theme .ql-container.ql-snow {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.light-theme .ql-editor {
    color: #0f172a !important;
}
body.light-theme .ql-snow .ql-stroke {
    stroke: #334155 !important;
}
body.light-theme .ql-snow .ql-fill {
    fill: #334155 !important;
}
body.light-theme .ql-snow .ql-picker {
    color: #334155 !important;
}

/* Responsive Admin Header SVG Logo */
.admin-logo-svg {
    height: 56px !important;
    width: auto !important;
    max-width: 200px !important;
    transition: all 0.3s ease;
}

.admin-badge-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.15);
    padding: 0.18rem 0.45rem;
    border-radius: 50px;
    border: 1px solid rgba(2, 132, 199, 0.2);
    white-space: nowrap;
    margin-left: -0.15rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .admin-logo-svg {
        height: 30px !important;
        max-width: 110px !important;
    }
    .admin-badge-tag {
        margin-left: -0.5rem !important;
        padding: 0.12rem 0.35rem !important;
        font-size: 0.58rem !important;
    }
}

@media (max-width: 480px) {
    .admin-logo-svg {
        height: 26px !important;
        max-width: 95px !important;
    }
    .admin-badge-tag {
        margin-left: -0.7rem !important;
        padding: 0.1rem 0.3rem !important;
        font-size: 0.54rem !important;
    }
}

