/* ============================================
   DevZone - Styles
   Color Palette from Logo:
   - Magenta: #D946EF
   - Purple: #8B5CF6  
   - Blue: #0066FF
   ============================================ */

:root {
    /* Primary Gradient Colors */
    --magenta: #D946EF;
    --purple: #8B5CF6;
    --blue: #0066FF;
    
    /* Background & Surface */
    --bg-primary: #050508;
    --bg-secondary: #0a0a10;
    --bg-card: #0f0f18;
    --bg-card-hover: #141420;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Gradient */
    --gradient: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
    --gradient-text: linear-gradient(90deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
    
    /* Glow Effects */
    --glow-magenta: 0 0 60px rgba(217, 70, 239, 0.3);
    --glow-blue: 0 0 60px rgba(0, 102, 255, 0.3);
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1200px;
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    filter: blur(120px);
    animation: glowDrift 18s ease-in-out infinite;
}

body::before {
    background: radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.35), transparent 45%),
                radial-gradient(circle at 80% 30%, rgba(0, 102, 255, 0.25), transparent 50%);
}

body::after {
    background: radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.35), transparent 45%),
                radial-gradient(circle at 70% 70%, rgba(0, 102, 255, 0.2), transparent 50%);
    animation-delay: -6s;
}

/* Three.js Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

section,
.nav,
.footer {
    position: relative;
    z-index: 2;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 24px;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 10px 24px !important;
    background: var(--gradient);
    border-radius: 100px;
    color: var(--text-primary) !important;
}

.nav-cta:hover {
    box-shadow: var(--glow-magenta);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 14px;
    color: var(--purple);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-primary);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-magenta);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
}

.hero-cta .btn {
    min-width: 200px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}

/* Ensure headings stay crisp over the 3D scene */
.section-header {
    position: relative;
    z-index: 2;
}

/* Page layouts */
.page-hero {
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    margin: 16px 0;
    color: #ffffff;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 720px;
}

.admin-badge {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(217, 70, 239, 0.15);
    border: 1px solid rgba(217, 70, 239, 0.35);
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.page-section {
    padding: var(--section-padding) 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.meta {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.pill-card {
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-secondary);
    font-size: 14px;
}

.highlight {
    background: rgba(8, 8, 16, 0.7);
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.info-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.member-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
}

.member-card span {
    display: inline-block;
    margin: 8px 0 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.member-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--text-secondary);
}

.faq-item summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
}

.faq-item p {
    margin-top: 12px;
}

/* Admin */
.admin-page .page-hero {
    padding-bottom: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.admin-card {
    background: rgba(12, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-main);
}

.admin-form label {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

.admin-item button:focus,
.btn:focus,
.nav-links a:focus,
.nav-cta:focus,
.logo-text:focus {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 999;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.admin-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-item p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
}

.admin-thumb {
    width: 100%;
    max-width: 240px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.small-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: auto;
}

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

/* Services Section */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 16px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Mission Section */
.mission {
    padding: var(--section-padding) 0;
    position: relative;
}

.mission::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.6), rgba(5, 5, 8, 0));
    pointer-events: none;
    z-index: 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 44px 36px;
    transition: all 0.4s ease;
}

.mission-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.mission-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mission-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Values Section */
.values {
    padding: var(--section-padding) 0;
}

.values-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 28px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

.value-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--gradient);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
    margin-bottom: 14px;
    letter-spacing: 0.12em;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Workflow */
.workflow {
    padding: var(--section-padding) 0;
    position: relative;
}

.workflow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0), rgba(5, 5, 8, 0.55), rgba(5, 5, 8, 0));
    pointer-events: none;
    z-index: 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.workflow-step {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(15, 15, 24, 0.6);
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.workflow-step span {
    font-family: var(--font-mono);
    color: white;
    font-size: 11px;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.9), rgba(0, 102, 255, 0.9));
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}

/* Stack */
.stack {
    padding: var(--section-padding) 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

/* Gentle floating motion */
.mission-card,
.value-card,
.stack-card,
.workflow-step {
    animation: floatSoft 10s ease-in-out infinite;
}

.mission-card:nth-child(2),
.value-card:nth-child(2),
.stack-card:nth-child(2),
.workflow-step:nth-child(2) { animation-delay: -2s; }

.value-card:nth-child(3),
.stack-card:nth-child(3),
.workflow-step:nth-child(3) { animation-delay: -4s; }

.value-card:nth-child(4),
.stack-card:nth-child(4),
.workflow-step:nth-child(4) { animation-delay: -6s; }

.value-card:nth-child(5) { animation-delay: -8s; }

.stack-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.stack-tags span {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.stack-tags span:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.value-icon {
    color: var(--purple);
    font-size: 10px;
}

/* Tech Stack */
.tech-stack {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
}

.tech-stack h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

/* Why Us Section */
.why-us {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.reason {
    text-align: center;
}

.reason-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--purple);
    margin-bottom: 20px;
}

.reason h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.reason p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.contact-or {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 10px 0 16px;
}

.contact-link {
    margin-top: 8px;
}

.contact-email {
    display: inline-block;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    text-shadow: var(--glow-magenta);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(15, 15, 24, 0.9);
}

/* Inquiry page */
.contact-page .hero,
.contact-page .mission,
.contact-page .values,
.contact-page .workflow,
.contact-page .stack,
.contact-page .contact {
    display: none;
}

.contact-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.contact-hero-content {
    max-width: 720px;
}

.contact-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin: 16px 0;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 560px;
}

.contact-actions {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.contact-orbit span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inquiry {
    padding: var(--section-padding) 0;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.inquiry-form {
    background: rgba(15, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
}

.inquiry-form select {
    appearance: none;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: var(--text-muted);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(10, 10, 18, 1);
}

.inquiry-form button.btn,
.inquiry-form .btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 18px 32px;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.code-panel {
    background: rgba(8, 8, 16, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 24px;
    padding: 32px;
    position: sticky;
    top: 120px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.code-header h3 {
    font-size: 22px;
    margin: 10px 0;
}

.code-header p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.code-block {
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    color: #cbd5ff;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
}

.code-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-note {
    color: var(--text-muted);
    font-size: 13px;
}

.form-note code {
    color: var(--purple);
}

.contact-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 15px;
}

.contact-location svg {
    color: var(--purple);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.footer-logo {
    height: 28px;
    opacity: 0.7;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

@keyframes glowDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .code-panel {
        position: static;
    }

    .highlight-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 24px;
        background: rgba(5, 5, 8, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        min-width: 200px;
    }

    .nav.open .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .page-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.4);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--magenta);
}

