:root {
    --bg-color: #05080e;
    --surface-color: #0d1320;
    --surface-hover: #162032;
    --primary-color: #0891B2;
    --primary-glow: rgba(8, 145, 178, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --metallic-grey: #6B7280;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --glass-bg: rgba(13, 19, 32, 0.6);
    --glass-border: rgba(8, 145, 178, 0.2);
}

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

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

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

body {
    background: radial-gradient(circle at top left, #0d1320 0%, #05080e 50%, #010204 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation */
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
}

.edge-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: 95%;
    max-width: 1100px;
}

.logo a {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    display: block;
}

.logo a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0 auto; /* Center links in desktop */
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.get-started-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
}

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

.btn:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

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

/* Cards (Services / Portfolio) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    border-color: var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Admin Dashboard */
.admin-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: var(--bg-color);
    color: var(--primary-color);
    font-weight: 600;
}

tr:hover {
    background: var(--surface-hover);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.status-contacted { background: rgba(77, 242, 214, 0.2); color: var(--primary-color); }

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    color: var(--text-secondary);
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50%; height: 3px; background: var(--primary-color); }

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.alert-success { background: rgba(77, 242, 214, 0.2); border: 1px solid var(--primary-color); color: var(--primary-color); }
.alert-error { background: rgba(244, 67, 54, 0.2); border: 1px solid #f44336; color: #f44336; }

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    min-width: 250px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    top: 150%; 
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(77, 242, 214, 0.08);
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-glow);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

/* Pill Heading */
.pill-heading {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(77, 242, 214, 0.05);
    border: 1px solid rgba(77, 242, 214, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 25px;
    box-shadow: inset 0 0 10px rgba(77, 242, 214, 0.05);
    backdrop-filter: blur(5px);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(77, 242, 214, 0.05);
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.setup-card {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.setup-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.setup-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.setup-card h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.setup-card .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ==================================================
   NEW PREMIUM HOMEPAGE AESTHETICS (Lovable Style)
   ================================================== */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(90deg, #4DF2D6, #9b51e0, #ff61a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Services Grid Enhancements */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(77, 242, 214, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    border: 1px solid rgba(77, 242, 214, 0.2);
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(155, 81, 224, 0.5); /* Purple hint on hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(155, 81, 224, 0.05);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

/* Timeline / How It Works */
.timeline-container {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #9b51e0, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.timeline-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Contact Split Grid */
.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 800px) {
    .contact-split-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-panel {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
}

.contact-info-panel h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    border-color: var(--primary-color);
    background: rgba(77, 242, 214, 0.05);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4DF2D6, #9b51e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-form-panel {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
}

.contact-form-panel .form-control {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-form-panel .form-control:focus {
    border-color: #9b51e0;
    box-shadow: 0 0 10px rgba(155,81,224,0.3);
}

/* ==================================================
   MOBILE RESPONSIVENESS
   ================================================== */
@media (max-width: 900px) {
    .nav-links {
        display: none; /* Hide standard nav on small screens, can implement hamburger later */
    }
    nav {
        justify-content: center;
        padding: 15px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero {
        min-height: 60vh;
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    /* Make stats flex box wrap neatly */
    .container > div[style*="display: flex; justify-content: center; gap: 60px;"] {
        flex-direction: column;
        gap: 30px !important;
        text-align: center;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-split-grid {
        grid-template-columns: 1fr;
    }
    /* Setup Grid inside Modals */
    .setup-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pill-heading {
        font-size: 0.75rem;
        padding: 6px 18px;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    .hero-content > div[style*="display: flex"] {
        flex-direction: column;
        gap: 10px !important;
    }
}

/* =========================================
   ADVANCED AGENCY UPGRADES
   ========================================= */

/* 1. Scroll Animations (Intersection Observer) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Featured Work / Case Studies */
.featured-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.featured-card > div:first-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(77, 242, 214, 0.4);
}
.featured-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.featured-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}
.featured-metrics span {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 3. Why HxD Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.why-card {
    background: transparent;
    border-left: 2px solid var(--primary-color);
    padding: 20px 30px;
    transition: all 0.3s ease;
}
.why-card:hover {
    background: linear-gradient(90deg, rgba(77, 242, 214, 0.05) 0%, transparent 100%);
    transform: translateX(10px);
}

/* 4. Technologies Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.tech-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tech-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}
.tech-card svg, .tech-card img {
    width: 40px;
    height: 40px;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
}
.tech-card:hover svg {
    fill: var(--primary-color);
}
.tech-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.tech-card:hover span {
    color: var(--text-primary);
}

/* 5. Testimonials Marquee */
.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: scrollX 60s linear infinite;
}
.marquee-track.reverse {
    animation: scrollXReverse 60s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

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

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    width: 400px;
    flex-shrink: 0;
    white-space: normal;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 242, 214, 0.4);
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.initial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1;
}
.testimonial-author div h4 {
    color: var(--text-primary);
    font-size: 1rem;
}
.testimonial-author div span {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* 6. Advanced CTA Footer Style */
.cta-section {
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--bg-color) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 100px 20px;
    text-align: center;
}

/* 7. Enterprise Footer */
.enterprise-footer {
    padding: 80px 20px 40px;
    background: var(--bg-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-column p {
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--metallic-grey);
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.aura-btn:hover { box-shadow: 0 0 35px rgba(77,242,214,0.8) !important; transform: scale(1.02); }

/* Premium Animations */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(77,242,214,0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0; /* Below content */
}

.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 86px, 0); }
    5% { clip: rect(70px, 9999px, 86px, 0); }
    10% { clip: rect(31px, 9999px, 86px, 0); }
    15% { clip: rect(100px, 9999px, 86px, 0); }
    20% { clip: rect(11px, 9999px, 86px, 0); }
    25% { clip: rect(40px, 9999px, 86px, 0); }
    30% { clip: rect(20px, 9999px, 86px, 0); }
    100% { clip: rect(20px, 9999px, 86px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 11px, 0); }
    100% { clip: rect(1px, 9999px, 11px, 0); }
}

.stat-box {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(77,242,214,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(77,242,214,0.3);
    border-color: rgba(77,242,214,0.4);
}
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-glow);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================================================
   RESPONSIVE BREAKPOINTS & MEDIA QUERIES
   ================================================== */

/* Tablet & Mobile (up to 768px) */
@media (max-width: 768px) {
    .edge-nav {
        padding: 15px 20px; 
    }

    .get-started-btn {
        display: none; /* Hide on mobile to save space */
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2001;
        margin-left: 20px;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Hamburger Animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Fix standard nav links for mobile slider */
    .nav-links {
        position: fixed;
        top: 90px; /* Below pill header */
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(13, 19, 32, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        width: max(85vw, 280px) !important;
        padding: 20px !important;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-split-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem !important;
    }
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Portfolio Specific Styles
   ========================================================================== */

/* Progress Bars (Skills) */
.skill-wrap {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.skill-wrap:hover {
    transform: translateY(-5px);
}

.progress-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%; /* Initial state for animation */
    border-radius: 20px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Portfolio Project Card Hover Effects */
.project-portfolio-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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