/* ==========================================================================
   VIZTECH SOFT - MODERN DESIGN SYSTEM & STYLESHEET
   Domain: viztechsoft.online
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-base: #060913;
    --bg-surface: #0c1222;
    --bg-surface-elevated: #111a33;
    --bg-card: rgba(17, 26, 51, 0.65);
    --bg-card-hover: rgba(26, 38, 74, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.35);

    /* Brand Accents */
    --primary: #38bdf8;         /* Cyber Sky Blue */
    --primary-glow: rgba(56, 189, 248, 0.4);
    --accent: #818cf8;          /* Electric Indigo */
    --accent-glow: rgba(129, 140, 248, 0.4);
    --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Feedback Colors */
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Layout & Geometry */
    --container-width: 1240px;
    --header-height: 75px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 10px 30px -5px rgba(56, 189, 248, 0.3);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

ul {
    list-style: none;
}

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

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

/* --------------------------------------------------------------------------
   3. Container & Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--primary);
}

.text-warning {
    color: var(--warning);
}

.text-success {
    color: var(--success);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.18);
}

/* --------------------------------------------------------------------------
   4. Ambient Glowing Orbs & Interactive Particle Canvas
   -------------------------------------------------------------------------- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.35;
}

.glow-1 {
    top: -10%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0) 70%);
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, rgba(129, 140, 248, 0) 70%);
}

.glow-3 {
    bottom: 5%;
    left: 20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.25) 0%, rgba(192, 132, 252, 0) 70%);
}

/* --------------------------------------------------------------------------
   5. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
    filter: brightness(1.08);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 0.98rem;
}

.btn-full {
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* --------------------------------------------------------------------------
   6. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar-wrapper.scrolled {
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    height: 65px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header-logo {
    height: 46px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

.site-header-logo:hover {
    filter: drop-shadow(0 4px 15px rgba(56, 189, 248, 0.45));
    transform: scale(1.02);
}

.site-footer-logo {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.3));
}

.mobile-logo-img {
    height: 40px;
    max-width: 190px;
}

.desktop-nav {
    display: block;
}

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

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

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

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

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2.2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Menu Drawer Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.open {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-surface-elevated);
    border-left: 1px solid var(--border-color);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.mobile-nav-link i {
    width: 22px;
    color: var(--primary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    transform: translateX(5px);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mobile-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.mobile-socials a:hover {
    background: var(--primary);
    color: var(--bg-base);
}

/* --------------------------------------------------------------------------
   7. Section Headers & Generic Elements (Clean Compact Spacing)
   -------------------------------------------------------------------------- */
.section {
    padding: 3.25rem 0;
    position: relative;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 2.25rem auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    background: rgba(56, 189, 248, 0.08);
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 0.85rem;
}

.section-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Hero Section (Balanced Spacing)
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 2.5rem;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1.15rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 1.15rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Code Visual Card */
.hero-visual {
    position: relative;
}

.hero-mockup-card {
    padding: 1.35rem;
    background: rgba(12, 18, 34, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    position: relative;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

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

.mockup-url {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.code-preview {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-x: auto;
}

.token-kw { color: #f472b6; }
.token-fn { color: #38bdf8; }
.token-str { color: #34d399; }
.token-comment { color: #64748b; font-style: italic; }
.token-var { color: #fbbf24; }

.floating-badge {
    position: absolute;
    background: rgba(17, 26, 51, 0.95);
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-subtle);
    animation: floatAnim 4s ease-in-out infinite;
}

.badge-top-right {
    top: -15px;
    right: -12px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: -15px;
    left: -12px;
    animation-delay: 2s;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* --------------------------------------------------------------------------
   9. Tech Marquee Section
   -------------------------------------------------------------------------- */
.tech-marquee-section {
    padding: 1.15rem 0;
    background: rgba(12, 18, 34, 0.7);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 1.8px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: scrollMarquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.38rem 0.95rem;
    border-radius: var(--radius-full);
}

.tech-item i {
    font-size: 1.05rem;
    color: var(--primary);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-card {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
}

.card-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-icon-bubble.accent-bg {
    background: var(--gradient-brand);
    color: #ffffff;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.about-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.featured-about {
    border-color: var(--border-highlight);
    background: linear-gradient(145deg, rgba(26, 38, 74, 0.8) 0%, rgba(17, 26, 51, 0.7) 100%);
}

.pillars-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    background: rgba(12, 18, 34, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.pillar-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pillar-box i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.15rem;
}

.pillar-box h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pillar-box p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   11. Services Section
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.08) rotate(4deg);
    background: var(--primary);
    color: var(--bg-base);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.service-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.service-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   12. Portfolio Section & Filter Controls
   -------------------------------------------------------------------------- */
.portfolio-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.85rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.portfolio-card.hide {
    display: none;
}

.project-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .project-media img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.project-tags .tag {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-sm);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.project-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. Work Process Section
   -------------------------------------------------------------------------- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
    position: relative;
}

.process-card {
    padding: 1.85rem 1.45rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    line-height: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.process-card h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   14. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.35rem;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.client-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.client-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Contact Section & Interactive Form
   -------------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.25rem;
    align-items: flex-start;
}

.contact-info-card {
    padding: 2.25rem 1.85rem;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.contact-info-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-bottom: 1.85rem;
}

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

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.item-val {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
}

.item-val:hover {
    color: var(--primary);
}

.item-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.contact-social-wrap {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.social-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.65rem;
}

.social-pills {
    display: flex;
    gap: 0.65rem;
}

.social-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-pill:hover {
    background: var(--primary);
    color: var(--bg-base);
    transform: translateY(-2px);
}

/* Contact Form */
.form-container {
    padding: 2.25rem 1.85rem;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

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

.form-group label .req {
    color: var(--danger);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.95rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(12, 18, 34, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem 0.75rem 2.5rem;
    color: #ffffff;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.form-group textarea {
    padding: 0.75rem 0.9rem;
    resize: vertical;
    min-height: 95px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: rgba(17, 26, 51, 0.95);
}

.form-group select option {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.field-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.25rem;
    min-height: 16px;
}

.submit-btn {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    padding: 0.85rem;
}

/* --------------------------------------------------------------------------
   16. Footer (Clean Compact Layout)
   -------------------------------------------------------------------------- */
.footer-wrapper {
    background: #03060c;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem 0;
    margin-top: 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 290px;
}

.footer-links-group h4,
.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-group a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links-group a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-newsletter p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.55;
}

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

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.55rem 0.95rem;
    color: #ffffff;
    font-size: 0.82rem;
    flex-grow: 1;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-domain-link {
    color: var(--primary);
}

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

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

/* --------------------------------------------------------------------------
   17. Floating WhatsApp & Scroll To Top
   -------------------------------------------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.4);
    z-index: 990;
    transition: var(--transition-bounce);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background: #1e293b;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(-4px);
}

.scroll-top-btn {
    position: fixed;
    bottom: 1.75rem;
    left: 1.75rem;
    width: 44px;
    height: 44px;
    background: rgba(17, 26, 51, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: var(--bg-base);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   18. Project Modal Preview
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    transform: scale(0.95);
    transition: var(--transition-bounce);
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--danger);
}

.modal-project-img {
    width: 100%;
    height: 290px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.modal-project-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.modal-project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    background: rgba(12, 18, 34, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1.5rem;
}

.meta-item span {
    display: block;
}

.meta-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.meta-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   19. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    animation: slideInRight 0.35s ease forwards;
}

.toast.toast-success {
    border-left-color: var(--success);
}
.toast.toast-error {
    border-left-color: var(--danger);
}

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

/* --------------------------------------------------------------------------
   20. Responsive Media Queries (Mobile, Tablet, Desktop)
   -------------------------------------------------------------------------- */

/* Large Laptops & Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats-grid {
        max-width: 580px;
        margin: 0 auto;
    }

    .hero-visual {
        max-width: 550px;
        margin: 0 auto;
    }

    .about-grid,
    .services-grid,
    .testimonials-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Tablets & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .desktop-nav,
    .hide-mobile {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: 1.95rem;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .about-grid,
    .services-grid,
    .testimonials-grid,
    .portfolio-grid,
    .process-timeline,
    .pillars-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.85rem;
        text-align: center;
    }

    .floating-badge {
        display: none; /* Avoid overflowing small screens */
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .floating-whatsapp {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .scroll-top-btn {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.75rem 1.35rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }

    .contact-info-card,
    .form-container {
        padding: 1.5rem 1.15rem;
    }

    .modal-card {
        padding: 1.35rem;
    }
}
