/* VARIABLES & RESET */
:root {
    --bg-dark: #050507;
    --bg-darker: #020203;
    --primary: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    /* Deep Purple */
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1400px;
    --anim-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--anim-speed);
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono-label {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section {
    padding: 6rem 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary);
}

/* Glow Card Effect */
.glow-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    /* Border width */
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(59, 130, 246, 0.4),
            transparent 40%);
    z-index: 0;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glow-card:hover::before {
    opacity: 1;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* GLASSMORPHISM */
.glass {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-symbol {
    color: var(--primary);
    font-size: 1.4rem;
}

.highlight {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Nav height */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(20, 20, 40, 0.4) 0%, var(--bg-dark) 70%);
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.6;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* SERVICES SECTION */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features li {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* CASE STUDIES SECTION */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ... (rest of CSS) ... */

/* RESPONSIVE */
@media (max-width: 768px) {

    .services-grid,
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card,
    .service-card,
    .case-card {
        padding: 1rem;
        /* Compact padding for 2-column mobile */
    }

    .grid-2,
    .contact-split {
        grid-template-columns: 1fr;
    }

    /* Adjust font size for 2-column fit */
    .service-card h3,
    .case-card h3 {
        font-size: 1rem;
    }

    .service-features li {
        font-size: 0.8rem;
    }

    /* ... Rest of mobile styles ... */

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-form-wrapper {
        padding: 1rem !important;
    }

    .calendar-container {
        height: 650px !important;
    }

    /* Mobile "Show More" Logic */
    .mobile-hidden,
    .mobile-hidden-service {
        display: none;
    }

    .mobile-show-more-container {
        display: block;
        text-align: center;
        margin-top: 2rem;
    }

    /* COMPACT MOBILE CARDS (Tiles) */
    .case-card .case-tags,
    .case-card .case-metric,
    .case-card .btn-text,
    .case-card .case-outcome {
        display: none !important;
    }

    .case-card .case-content {
        padding: 0.75rem !important;
        text-align: center;
    }

    .case-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2;
    }

    .case-image-placeholder {
        height: 100px !important;
        /* Smaller height for tiles */
    }

    .generated-logo i {
        font-size: 1.8rem !important;
        margin-bottom: 0.25rem !important;
    }

    .generated-logo span {
        font-size: 0.8rem !important;
    }

    /* COMPACT SERVICE TILES */
    .service-card p,
    .service-card .service-features {
        display: none !important;
    }

    .service-card {
        padding: 1rem !important;
        text-align: center;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        /* Ensure uniform height */
    }

    .service-card .card-icon {
        margin-bottom: 0.75rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.25rem !important;
    }

    .service-card h3 {
        margin-bottom: 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.3;
    }
}

@media (min-width: 769px) {
    .mobile-show-more-container {
        display: none;
    }
}

.case-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    group: relative;
}

.case-card:hover {
    border-color: var(--accent);
}

.case-image-placeholder {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.generated-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.generated-logo i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.generated-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.gradient-1 {
    background: linear-gradient(135deg, #1e293b, #3b82f6);
}

.gradient-2 {
    background: linear-gradient(135deg, #1e293b, #10b981);
}

.gradient-3 {
    background: linear-gradient(135deg, #1e293b, #ef4444);
}

.gradient-4 {
    background: linear-gradient(135deg, #1e293b, #f59e0b);
}

.gradient-5 {
    background: linear-gradient(135deg, #1e293b, #8b5cf6);
}

.gradient-6 {
    background: linear-gradient(135deg, #1e293b, #ec4899);
}


.case-content {
    padding: 2rem;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

.case-card h3 {
    margin-bottom: 0.5rem;
}

.case-outcome {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.case-metric {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.case-metric .val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.case-metric .lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.btn-text:hover {
    gap: 0.8rem;
}

/* METHODOLOGY */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-light);
}

.step {
    padding-left: 4rem;
    position: relative;
    margin-bottom: 3rem;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--primary);
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

/* ABOUT */
.about-panel {
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content .lead {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack-row {
    font-size: 2rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.6;
}

/* CONTACT */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-checklist li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-checklist i {
    color: var(--primary);
}

.contact-form-wrapper {
    padding: 3rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-heading);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Fix for Select Dropdown Options */
.input-group select option {
    background-color: #050507;
    /* Matches --bg-dark */
    color: #fff;
    padding: 10px;
}

/* FOOTER */
.footer {
    padding: 4rem 0;
    background: #000;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #0a0a0c;
    border: 1px solid var(--border-light);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .grid-2,
    .contact-split {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-form-wrapper {
        padding: 1rem !important;
    }

    .calendar-container {
        height: 650px !important;
    }
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none !important;
}

/* Custom Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:checked::after {
    content: '\2713';
    /* Unicode checkmark */
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}