/* ==========================================================================
   SANNING WEB DESIGNS DESIGN SYSTEM
   Theme: Premium Modern High-Tech Studio
   Author: Antigravity AI
   ========================================================================== */

/* --- Root Variables --- */
:root {
    /* Colors */
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.45);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow-cyan: rgba(0, 242, 254, 0.25);
    --border-glow-purple: rgba(139, 92, 246, 0.25);
    --border-glow-pink: rgba(236, 72, 153, 0.25);
    
    --primary-cyan: #00f2fe;
    --primary-cyan-rgb: 0, 242, 254;
    --primary-purple: #8b5cf6;
    --primary-purple-rgb: 139, 92, 246;
    --primary-pink: #ec4899;
    --primary-pink-rgb: 236, 72, 153;
    
    --text-white: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Unbounded', sans-serif;
    
    /* Transitions & Borders */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* --- Global Reset & Base Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Custom Cursor Styling (Desktop Only) */
.custom-cursor-dot, .custom-cursor-ring {
    display: none;
}

@media (pointer: fine) {
    /* Hide default cursor only if custom cursor has loaded successfully */
    .custom-cursor-enabled,
    .custom-cursor-enabled a,
    .custom-cursor-enabled button,
    .custom-cursor-enabled select,
    .custom-cursor-enabled textarea,
    .custom-cursor-enabled input,
    .custom-cursor-enabled .project-card,
    .custom-cursor-enabled .filter-btn,
    .custom-cursor-enabled .nav-link,
    .custom-cursor-enabled .btn {
        cursor: none !important;
    }
    
    /* Position and format custom cursor elements */
    .custom-cursor-dot, .custom-cursor-ring {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        opacity: 0;
        border-radius: 50%;
        transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
    }
    
    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background-color: var(--primary-cyan);
    }
    
    .custom-cursor-ring {
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(0, 242, 254, 0.35);
    }
    
    /* Hover scale and color shifts */
    .custom-cursor-dot.cursor-hover {
        transform: translate(-50%, -50%) scale(1.5);
        background-color: var(--primary-purple);
    }
    
    .custom-cursor-ring.cursor-hover {
        width: 48px;
        height: 48px;
        border-color: var(--primary-purple);
        background-color: rgba(139, 92, 246, 0.05);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.4);
}

/* --- Ambient Background Systems --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.01) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 242, 254, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -3;
    pointer-events: none;
}
.grid-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 80%);
    pointer-events: none;
}

/* Glowing Ambient Orbs */
.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.22;
}
.glow-sphere.color-1 {
    top: -10%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, transparent 70%);
    animation: drift-slow 25s infinite alternate ease-in-out;
}
.glow-sphere.color-2 {
    bottom: -15%;
    right: 15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    animation: drift-slow-reverse 30s infinite alternate ease-in-out;
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 90px) scale(1.15); }
}
@keyframes drift-slow-reverse {
    0% { transform: translate(0, 0) scale(1.15); }
    100% { transform: translate(-90px, -120px) scale(0.9); }
}

/* --- Utility/Structural classes --- */
.section-padding {
    padding: 100px 0;
}
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.text-center {
    text-align: center;
}
.text-glow {
    text-shadow: 0 0 15px currentColor;
}
.text-cyan { color: var(--primary-cyan); }
.text-purple { color: var(--primary-purple); }
.text-pink { color: var(--primary-pink); }
.text-green { color: #10b981; }

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-purple);
    display: inline-block;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 60px;
}

/* Glassmorphism General Card Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform var(--transition-smooth), border var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Scroll reveal class setup (only applies if JS loads successfully) */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-enabled .revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons CSS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    color: var(--bg-dark);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-glass);
    color: var(--text-white);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    transform: translateY(-3px);
}
.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: calc(var(--border-radius-sm) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.btn-glow:hover::after {
    opacity: 0.6;
    filter: blur(8px);
}
.btn-block {
    width: 100%;
}
.btn-nav-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-white);
}
.btn-nav-cta:hover {
    background: var(--text-white);
    color: var(--bg-dark);
    transform: translateY(-1.5px);
}

/* --- Header & Navigation Bar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--transition-fast), height var(--transition-fast);
}
.header.scrolled {
    height: 70px;
    background: rgba(3, 7, 18, 0.85);
}
.header-container {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
}
.logo-text {
    color: var(--text-white);
    letter-spacing: -0.4px;
}
.logo-accent {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: -0.4px;
}

/* Custom CSS Geometric Logo Mark */
.logo-mark {
    position: relative;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mark-diamond-1,
.mark-diamond-2 {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-cyan);
    border-radius: 2px;
    transform: rotate(45deg);
    transition: transform var(--transition-bounce), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity var(--transition-smooth);
}
.mark-diamond-2 {
    border-color: var(--primary-purple);
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 0.65;
}

/* Logo Hover Interactions */
.logo-link:hover .mark-diamond-1,
.logo:hover .mark-diamond-1 {
    transform: rotate(225deg) scale(1.1);
    border-color: var(--primary-purple);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}
.logo-link:hover .mark-diamond-2,
.logo:hover .mark-diamond-2 {
    transform: rotate(-135deg) translate(0, 0) scale(1.1);
    border-color: var(--primary-cyan);
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: width var(--transition-smooth), left var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Nav Toggle hamburger for mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
}
.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* --- Hero Section Styling --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-container {
    width: 90%;
    max-width: 850px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}
.tag-badge {
    color: var(--primary-cyan);
    font-size: 0.8rem;
    font-weight: 600;
}
.tag-divider {
    color: var(--border-glass);
    font-size: 0.85rem;
}
.tag-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.25rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-white) 40%, rgba(243, 244, 246, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-typing-container {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.typing-prefix {
    color: var(--text-muted);
}
.typing-text {
    color: var(--primary-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.cursor-char {
    animation: blink-char 1s infinite steps(2);
    color: var(--primary-cyan);
}
@keyframes blink-char {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Services / Capabilities Grid --- */
.services-section {
    position: relative;
    border-top: 1px solid var(--border-glass);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border var(--transition-smooth), box-shadow var(--transition-smooth);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow-cyan);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
}
.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}
.service-card:nth-child(2):hover {
    border-color: var(--border-glow-purple);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.08);
}
.service-card:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
}
.service-card:nth-child(3):hover {
    border-color: var(--border-glow-pink);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.08);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-cyan);
    margin-bottom: 24px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}
.service-card:nth-child(2) .service-icon {
    color: var(--primary-purple);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}
.service-card:nth-child(3) .service-icon {
    color: var(--primary-pink);
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 16px;
}
.service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    height: 100px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}
.service-features li {
    font-size: 0.85rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-features li i {
    font-size: 0.85rem;
    color: var(--primary-cyan);
}
.service-card:nth-child(2) .service-features li i {
    color: var(--primary-purple);
}
.service-card:nth-child(3) .service-features li i {
    color: var(--primary-pink);
}

/* --- Portfolio Gallery Section --- */
.gallery-section {
    position: relative;
    border-top: 1px solid var(--border-glass);
    background: rgba(3, 7, 18, 0.3);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    transition: all var(--transition-smooth);
}
.project-card:hover {
    border-color: var(--border-glow-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
}
.project-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

/* Fallback High-Tech Gradient Placeholders */
.project-gradient-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform var(--transition-smooth);
}
.project-gradient-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(3, 7, 18, 0.6) 100%);
    pointer-events: none;
}
.creative-placeholder {
    background: linear-gradient(135deg, #7c3aed 0%, #00f2fe 100%);
}
.webapp-placeholder {
    background: linear-gradient(135deg, #00f2fe 0%, #db2777 100%);
}
.ecommerce-placeholder {
    background: linear-gradient(135deg, #d97706 0%, #db2777 100%);
}
.creative-placeholder-2 {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.placeholder-icon {
    font-size: 3.5rem;
    color: var(--text-white);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}
.placeholder-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    background: rgba(3, 7, 18, 0.6);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover overlay sliders */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    padding: 30px;
}
.project-overlay-content {
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
    width: 100%;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-card:hover .project-overlay-content {
    transform: translateY(0);
}
.project-card:hover .project-gradient-placeholder {
    transform: scale(1.05);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.project-tag-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    margin-bottom: 12px;
}
.project-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.view-project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-fast);
}
.project-card:hover .view-project-link {
    gap: 14px;
}

/* Filter sorting animation states */
.project-card.filter-hide {
    display: none;
}
.project-card.filter-show {
    animation: scale-up 0.5s ease forwards;
}

@keyframes scale-up {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Project Detail Modal Styling --- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.05);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-smooth);
    z-index: 10;
}
.project-modal.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 20;
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}
.modal-media {
    height: 100%;
    min-height: 380px;
}
.modal-gradient-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-white);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.modal-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-purple);
    margin-bottom: 8px;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}
.meta-item {
    display: flex;
    flex-direction: column;
}
.meta-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.meta-val {
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-desc-container {
    margin-bottom: 24px;
}
.modal-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.modal-tech-pill {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 4px 12px;
    border-radius: 50px;
}

.modal-actions {
    margin-top: auto;
}

/* --- Pricing Card Section Styling --- */
.pricing-section {
    position: relative;
    border-top: 1px solid var(--border-glass);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 45px 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), border var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Hover Glowing shadows behind each card */
.card-accent-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-md);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.card-accent-glow.glow-blue {
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
}
.card-accent-glow.glow-purple {
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}
.card-accent-glow.glow-pink {
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

.pricing-card:hover {
    transform: translateY(-8px);
}
.pricing-card:hover .card-accent-glow {
    opacity: 1;
}

/* Border Glow on Card Actions */
.pricing-card[data-package="core"]:hover { border-color: var(--border-glow-cyan); }
.pricing-card[data-package="advanced"]:hover { border-color: var(--border-glow-purple); }
.pricing-card[data-package="quantum"]:hover { border-color: var(--border-glow-pink); }

/* Selected/Active card (Advanced) */
.pricing-card.active-card {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(17, 24, 39, 0.65);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.05);
}
.pricing-card.active-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    z-index: -2;
    pointer-events: none;
}
.pricing-card.active-card .card-accent-glow {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.package-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.package-price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 12px;
}
.package-price .currency {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.package-price .price-val {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
}
.package-price .price-val.text-call {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-white) 40%, rgba(243, 244, 246, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 8px 0;
    line-height: 1.2;
}
.package-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 40px;
}
.pricing-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pricing-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}
.pricing-features li i {
    margin-top: 4px;
    font-size: 0.8rem;
}
.pricing-features li.disabled {
    color: var(--text-dark);
}
.pricing-features li.disabled i {
    color: var(--text-dark);
}

.pricing-footer {
    margin-top: auto;
}

/* --- Contact Section Styling --- */
.contact-section {
    position: relative;
    border-top: 1px solid var(--border-glass);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
}

/* Contact Info Dashboard panel */
.contact-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}
.info-header {
    margin-bottom: 30px;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-panel-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-intro-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 16px 0;
}

.contact-direct-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.direct-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.direct-item .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.direct-item:hover .icon {
    border-color: var(--primary-cyan);
    color: var(--bg-dark);
    background: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}
.direct-item .details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.direct-item .label {
    font-size: 0.7rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 600;
}
.direct-item .value {
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-all;
}

/* Contact Form Card panel */
.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-purple);
}
.form-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.form-control::placeholder {
    color: var(--text-dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 40px;
}
select.form-control option {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.form-error-msg {
    font-size: 0.7rem;
    font-weight: 500;
    color: #ef4444;
    position: absolute;
    bottom: -18px;
    left: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}
.form-group.has-error .form-control {
    border-color: #ef4444;
}
.form-group.has-error .form-error-msg {
    opacity: 1;
}

/* Submit transmission styling elements */
.form-status-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.form-status-container.active {
    display: flex;
}
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: width 0.05s ease-out;
}
.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Success Card Overlay */
.form-success-container {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.form-success-container.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 3.5rem;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    margin-bottom: 20px;
}
.success-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.success-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 360px;
}

/* --- Footer Section Styling --- */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(3, 7, 18, 0.9);
    padding: 80px 0 30px;
    position: relative;
}
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .brand-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    max-width: 380px;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover {
    color: var(--text-white);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.footer-meta {
    font-weight: 500;
}

/* --- Responsive Adaptations (Media Queries) --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    .pricing-card.active-card {
        order: -1;
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Logo Mobile Scale */
    .logo {
        font-size: 1.05rem;
        letter-spacing: -0.4px;
    }
    .logo-mark {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    .mark-diamond-1,
    .mark-diamond-2 {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    .mark-diamond-2 {
        transform: rotate(45deg) translate(3px, 3px);
    }
    
    /* General spacing */
    .section-padding {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation Hamburger Menu trigger activation */
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform var(--transition-smooth), opacity var(--transition-smooth);
        pointer-events: none;
        border-top: 1px solid var(--border-glass);
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    .nav-cta-wrapper {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* Grids to single columns */
    .services-grid, 
    .gallery-grid, 
    .pricing-grid, 
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.active-card {
        grid-column: span 1;
    }

    /* Contact panel adjustments for narrow viewports */
    .contact-info-panel, 
    .contact-form-panel {
        padding: 24px;
    }
    .direct-item .value {
        font-size: 0.9rem;
    }
    
    /* Modal details layout collapse */
    .modal-content-grid {
        grid-template-columns: 1fr;
    }
    .modal-media {
        min-height: 200px;
        height: 200px;
    }
    .modal-details {
        padding: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .direct-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 0.95rem;
    }
}


