/* ============================================
   Melodic Development - Site Styles
   ============================================ */

/* ---- Design Tokens ---- */
:root {
    --color-black: #0a0a0b;
    --color-gray-900: #18181b;
    --color-gray-800: #27272a;
    --color-gray-700: #3f3f46;
    --color-gray-600: #52525b;
    --color-gray-500: #71717a;
    --color-gray-400: #a1a1aa;
    --color-gray-300: #d4d4d8;
    --color-gray-200: #e4e4e7;
    --color-gray-100: #f4f4f5;
    --color-gray-50: #fafafa;
    --color-white: #ffffff;

    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #5b21b6;
    --color-accent: #06b6d4;
    --color-accent-light: #67e8f9;

    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(180deg, #18181b 0%, #0a0a0b 100%);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --font-logo: 'Montserrat', system-ui, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    text-decoration: none;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }

/* ---- Utility Classes ---- */
.page {
    display: flex;
    flex-direction: column;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-header {
    max-width: 640px;
    margin: 3rem auto;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1rem;
}

.section-header p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
    background: var(--color-white);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-200);
}

.btn-ghost:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-melodic {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gray-900);
}

.logo-development {
    font-family: var(--font-logo);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--color-gray-900);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gray-600);
    cursor: pointer;
    padding: 0.5rem;
}

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

.nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-600);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav a:hover {
    color: var(--color-gray-900);
    background: var(--color-gray-100);
}

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

.nav-projects {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--color-gray-200);
}

.nav-projects a {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-projects a:hover {
    background: var(--color-gray-100);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.625rem 1.25rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* ---- Main ---- */
.main {
    flex: 1;
}

/* ---- Footer ---- */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-brand .logo-melodic {
    color: var(--color-white);
}

.footer-brand .logo-development {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-gray-800);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    padding: 0.375rem 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-meta {
    font-size: 0.875rem !important;
    color: var(--color-gray-500) !important;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ---- Hero Section (reusable) ---- */
.hero-section {
    background: var(--color-gray-50);
    padding: 2rem;
    text-align: center;
}

.hero-section-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.hero-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1.5rem;
}

.hero-section-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

/* ---- CTA Sections ---- */
.cta-dark {
    background: var(--gradient-dark);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-dark .cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-dark h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.cta-dark p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    margin: 0 0 2rem;
}

.cta-light {
    background: var(--color-gray-50);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-light .cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-light h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1rem;
}

.cta-light p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-gray-900);
    margin: 0 0 1.5rem;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 480px;
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-card-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.hero-code {
    margin: 0;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    overflow-x: auto;
}

.hero-code .keyword { color: #c084fc; }
.hero-code .string { color: #86efac; }
.hero-code .function { color: #60a5fa; }
.hero-code .property { color: #fbbf24; }
.hero-code .boolean { color: #f472b6; }

/* Framework / Components / PHP sections */
.framework { padding: 6rem 2rem; background: var(--color-white); }
.components { padding: 6rem 2rem; background: var(--color-gray-50); }
.php-section { padding: 6rem 2rem; background: var(--color-white); }

.framework-inner,
.components-inner,
.php-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.framework-content h2,
.components-content h2,
.php-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1rem;
}

.framework-content > p,
.components-content > p,
.php-content > p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

.framework-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.framework-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--color-gray-700);
}

.framework-features svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.framework-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.framework-code-wrapper {
    display: flex;
    justify-content: flex-end;
}

.framework-card {
    width: 100%;
    max-width: 500px;
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.framework-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.file-name {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.framework-code {
    margin: 0;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    overflow-x: auto;
}

.framework-code .decorator { color: #fbbf24; }
.framework-code .keyword { color: #c084fc; }
.framework-code .string { color: #86efac; }
.framework-code .function { color: #60a5fa; }
.framework-code .property { color: #93c5fd; }
.framework-code .class { color: #67e8f9; }
.framework-code .number { color: #f472b6; }
.framework-code .tag { color: #f87171; }
.framework-code .attr { color: #a5b4fc; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.offerings {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(340px, 1fr));
    gap: 1.5rem;
}

.offering-card {
    position: relative;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
}

.offering-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.offering-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.offering-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 0.75rem;
}

.offering-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

/* Specialties */
.specialties {
    background: var(--color-gray-900);
    padding: 2rem;
}

.specialties-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.specialties .section-header { margin-bottom: 3rem; }
.specialties .section-label { color: var(--color-accent-light); }

.specialties h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.specialties .section-header p {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin: 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.specialty-item {
    background: var(--color-gray-800);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-700);
}

.specialty-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 0.5rem;
}

.specialty-item p {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    margin: 0;
}

/* Process */
.process { padding: 6rem 2rem; }

.process-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.process .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.process h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step { text-align: center; }

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.75rem;
}

.step p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
}

.project-card.featured {
    grid-column: 1 / -1;
    padding: 2.5rem;
    background: var(--gradient-dark);
    border: none;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.project-icon.small {
    width: 40px;
    height: 40px;
}

.project-card.featured .project-icon {
    width: 56px;
    height: 56px;
    background: none;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
}

.project-link:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
}

.project-card.featured .project-link {
    background: var(--color-gray-800);
    color: var(--color-gray-400);
}

.project-card.featured .project-link:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.project-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.5rem;
}

.project-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    margin: 0 0 1.5rem;
}

.project-card > p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0 0 1.25rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-stats .stat {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
    padding: 0.5rem 1rem;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

.project-card.featured .project-tech span {
    background: var(--color-gray-800);
    color: var(--color-gray-300);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.story { padding: 6rem 2rem; }

.story-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1.5rem;
}

.story-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin: 0 0 1.25rem;
}

.story-content p:last-child { margin-bottom: 0; }

.story-content .signature {
    font-style: italic;
    margin-top: 1.5rem;
}

.story-content .signature-name {
    font-weight: 600;
    color: var(--color-gray-900);
    margin-top: 0.5rem;
}

.story-values h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.value {
    padding: 1.25rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
}

.value h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 0.5rem;
}

.value p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-gray-600);
    margin: 0;
}

/* Team */
.team {
    background: var(--color-gray-50);
    padding: 6rem 2rem;
}

.team-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    justify-content: center;
}

.team-member {
    text-align: center;
    max-width: 480px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-white);
}

.team-member h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 0.25rem;
}

.member-role {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.team-member p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0 0 1rem;
    text-align: left;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.member-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-gray-500);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.member-links a:hover {
    color: var(--color-gray-900);
    border-color: var(--color-gray-300);
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.connect-link:hover {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
}

.testimonial-card.featured {
    grid-column: 1 / -1;
    background: var(--gradient-dark);
    border: none;
    padding: 3rem;
}

.quote-icon {
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
    flex: 1;
}

.testimonial-card.featured blockquote {
    font-size: 1.375rem;
    color: var(--color-gray-300);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-card.featured .author-avatar {
    background: var(--color-gray-800);
    color: var(--color-primary-light);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-gray-900);
}

.testimonial-card.featured .author-name {
    color: var(--color-white);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.testimonial-card.featured .author-title {
    color: var(--color-gray-400);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact { padding: 6rem 2rem; }

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0 0 1.5rem;
}

.required-indicator {
    color: var(--color-primary);
    font-weight: 700;
}

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

.form-row .form-group { min-width: 0; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-sizing: border-box;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin: 0.5rem 0 0;
}

.form-status { font-size: 0.875rem; margin: 0.75rem 0 0; }
.form-status--success { color: #15803d; }
.form-status--error { color: #dc2626; }

.contact .btn-lg { width: 100%; }

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.75rem;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-400);
    margin: 0 0 1.5rem;
}

.info-card .btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-gray-600);
}

.info-card .btn-ghost:hover {
    background: var(--color-gray-800);
    border-color: var(--color-gray-500);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}

.detail a,
.detail p {
    font-size: 1rem;
    color: var(--color-gray-900);
    margin: 0;
}

.detail a {
    color: var(--color-primary);
    font-weight: 500;
}

.detail a:hover {
    text-decoration: underline;
}

/* ============================================
   WORK PAGE
   ============================================ */
.work-disclaimer {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    font-size: 0.9375rem;
    color: var(--color-gray-600);
}

.cases {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}

.case-card:nth-child(even) { direction: rtl; }
.case-card:nth-child(even) > * { direction: ltr; }

.case-image {
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.case-image.fintech { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%); }
.case-image.healthcare { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.case-image.logistics { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.case-image.languagebird { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.case-image.saas { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }

.case-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
}

.case-card:nth-child(even) .case-content {
    padding: 2.5rem 0 2.5rem 2.5rem;
}

.case-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.case-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1rem;
}

.case-content > p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin: 0 0 1.5rem;
}

.case-results {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.result { display: flex; flex-direction: column; }

.result-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.result-label {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.case-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.case-link:hover {
    text-decoration: underline;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: calc(100vh - 200px);
}

.error-content {
    max-width: 480px;
}

.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 1rem;
}

.error-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav { display: none; }
    .mobile-nav-toggle { display: block; }

    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .hero-visual { display: none; }

    .framework-inner,
    .components-inner,
    .php-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .framework-code-wrapper { justify-content: center; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .offerings-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 900px) {
    .story-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .case-card,
    .case-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .case-image { min-height: 200px; }

    .case-content,
    .case-card:nth-child(even) .case-content {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .header-inner { padding: 0.875rem 1.25rem; }

    .hero { padding: 3rem 1.25rem; }

    .framework,
    .components,
    .php-section {
        padding: 4rem 1.25rem;
    }

    .cta-dark,
    .cta-light {
        padding: 4rem 1.25rem;
    }

    .hero-section { padding: 4rem 1.25rem; }

    .offerings,
    .specialties,
    .process {
        padding: 4rem 1.25rem;
    }

    .process-steps { grid-template-columns: 1fr; }

    .projects { padding: 4rem 1.25rem; }

    .project-card.featured { padding: 2rem; }

    .project-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .story,
    .team {
        padding: 4rem 1.25rem;
    }

    .values-grid { grid-template-columns: 1fr; }

    .testimonials { padding: 4rem 1.25rem; }
    .testimonial-card.featured { padding: 2rem; }

    .contact { padding: 4rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem; }

    .cases { padding: 4rem 1.25rem; }

    .case-results {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-inner { padding: 3rem 1.25rem; }

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

    .footer-bottom-inner { padding: 1.25rem; }
}

/* ---- Mobile Nav Overlay ---- */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 200;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
}

.nav.mobile-open .nav-projects {
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.nav.mobile-open a {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-600);
    cursor: pointer;
}
