/* ==========================================================================
   SolutionByHour — Design System & Stylesheet (CSS)
   Aesthetic: Deep Obsidian, Neon Violet/Teal accents, Glassmorphism
   ========================================================================== */

/* Design Tokens */
:root {
    /* Colors */
    --bg-base: hsl(220, 24%, 7%);
    --bg-base-rgb: 11, 13, 19;
    --bg-surface: hsla(220, 24%, 12%, 0.6);
    --bg-surface-opaque: hsl(220, 24%, 12%);
    --border-color: hsla(220, 20%, 20%, 0.4);
    --border-hover: hsla(263, 90%, 65%, 0.5);
    
    --primary: hsl(263, 90%, 65%);
    --primary-glow: hsla(263, 90%, 65%, 0.15);
    --teal: hsl(180, 80%, 50%);
    --teal-glow: hsla(180, 80%, 50%, 0.15);
    --blue: hsl(210, 100%, 55%);
    --blue-glow: hsla(210, 100%, 55%, 0.15);

    --text-primary: hsl(0, 0%, 96%);
    --text-muted: hsl(220, 12%, 72%);
    --text-dark: hsl(220, 20%, 10%);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-pill: 50px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: hsla(220, 20%, 25%, 0.6);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Radial Interactive Cursor Glow Background */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(138, 75, 243, 0.06), transparent 70%);
    transition: background 0.1s ease;
}

/* Ambient Glow Blobs */
.glow-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -200px;
    right: -100px;
    background: var(--primary);
}

.blob-2 {
    bottom: 10%;
    left: -200px;
    background: var(--teal);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 80px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Typography Utilities */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: hsl(263, 90%, 70%);
    box-shadow: 0 4px 30px hsla(263, 90%, 65%, 0.4);
    transform: translateY(-2px);
}

/* Glassmorphic Components */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px fill var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

/* Navigation Header */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: hsla(220, 24%, 7%, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Layout Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 80px 24px;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 100px;
}

.hero-content {
    max-width: 760px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(138, 75, 243, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: hsla(263, 90%, 65%, 0.1);
    transform: translateY(-2px);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Shared Sections Header */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Projects Section */
.projects-section {
    margin-bottom: 100px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-tab:hover, .filter-tab.active {
    color: var(--text-primary);
    border-color: var(--primary);
    background: hsla(263, 90%, 65%, 0.08);
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
    transform: translateY(-4px);
}

/* Dynamic Hover Spotlight Card Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(350px circle at var(--x, 0px) var(--y, 0px), rgba(138, 75, 243, 0.09), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-header {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.project-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-base);
    border: 1px solid var(--border-color);
}

.purple-glow { color: var(--primary); border-color: hsla(263, 90%, 65%, 0.3); }
.teal-glow { color: var(--teal); border-color: hsla(180, 80%, 50%, 0.3); }
.blue-glow { color: var(--blue); border-color: hsla(210, 100%, 55%, 0.3); }

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.purple { color: var(--primary); }
.teal { color: var(--teal); }
.blue { color: var(--blue); }

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tech-pill {
    background: hsla(220, 20%, 20%, 0.3);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.card-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.card-link.secondary {
    color: var(--text-muted);
}

.card-link.secondary:hover {
    color: var(--text-primary);
}

.status-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--teal);
    box-shadow: 0 0 10px var(--teal);
}

/* Philosophy Section */
.philosophy-section {
    margin-bottom: 100px;
}

.philosophy-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.philosophy-block {
    display: flex;
    flex-direction: column;
}

.block-heading {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

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

.philosophy-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.philosophy-card {
    padding: 36px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.philosophy-title, .philosophy-card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.philosophy-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px;
    border: 1px solid var(--border-color);
    margin-bottom: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-title {
    font-size: 2.2rem;
}

.about-paragraph {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-highlights-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: hsla(220, 20%, 5%, 0.4);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: var(--radius-md);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.highlight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.highlight-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
}

.highlight-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--border-color);
    background: hsla(220, 24%, 5%, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

/* Enterprise Work Section */
.work-section {
    margin-bottom: 100px;
}

.work-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.work-card-large {
    position: relative;
    padding: 48px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.work-card-large:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
    transform: translateY(-2px);
}

.work-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(138, 75, 243, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card-large:hover .work-card-glow {
    opacity: 1;
}

.work-grid-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.work-description-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.work-meta-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: hsla(220, 20%, 5%, 0.4);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    justify-content: center;
}

.work-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.work-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--teal);
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.btn-secondary-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.btn-secondary-outline:hover {
    border-color: var(--primary);
    background: hsla(263, 90%, 65%, 0.08);
    transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .work-grid-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .work-card-large {
        padding: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid, .philosophy-grid-three {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .main-content {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile Navigation Drawer Overlay */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: var(--transition-smooth);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 10, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.4rem;
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--text-primary);
    }

    /* Responsive Cards Padding */
    .work-card-large {
        padding: 24px;
    }

    .project-card {
        padding: 24px;
    }

    .philosophy-card {
        padding: 24px;
    }

    /* About Section Responsive */
    .about-section {
        padding: 32px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-highlights-box {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }

    .highlight-item {
        flex: 1 1 calc(50% - 16px);
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-bottom: 0;
        padding-right: 16px;
    }

    .highlight-item:last-child, .highlight-item:nth-child(2) {
        border-right: none;
    }

    /* Horizontal scroll for Filter Tabs on Mobile */
    .filter-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 12px;
        max-width: 100%;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
        margin-top: 8px;
    }

    .highlight-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
        padding-right: 0;
    }

    .highlight-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
