/* ============================================================
   MONTISOFT — Styles
   A modern, original design for a boutique IT consulting agency.
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #06090f;
    --bg-secondary: #0d1117;
    --bg-card: #111820;
    --bg-card-hover: #161d27;
    --bg-nav: rgba(6, 9, 15, 0.85);

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;

    --accent: #29A7F1;
    --accent-hover: #5CBBF4;
    --accent-glow: rgba(41, 167, 241, 0.15);
    --accent-alt: #1B7AB5;
    --accent-alt-glow: rgba(27, 122, 181, 0.15);

    --border: rgba(139, 148, 158, 0.12);
    --border-hover: rgba(139, 148, 158, 0.25);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Archivo', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(4rem, 10vh, 8rem);
    --container-max: 1200px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--accent);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.nav.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

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

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link--cta {
    background: var(--accent);
    color: white !important;
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
}

.nav-link--cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-link.active:not(.nav-link--cta) {
    color: var(--text-primary);
}

.nav-link.active:not(.nav-link--cta)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s var(--ease-out);
        border-left: 1px solid var(--border);
    }

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

    .nav-link {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem var(--container-padding) 4rem;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    background: rgba(41, 167, 241, 0.08);
    border: 1px solid rgba(41, 167, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #7DD3FC 50%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 12px rgba(41, 167, 241, 0.3);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 24px rgba(41, 167, 241, 0.4);
    transform: translateY(-1px);
}

.btn--primary:hover svg {
    transform: translateX(3px);
}

.btn--ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

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

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-glow);
    border-radius: 100px;
    border: 1px solid rgba(41, 167, 241, 0.15);
}

.section-title {
    font-family: var(--font-brand);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

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

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about {
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-text em {
    color: var(--text-primary);
    font-style: italic;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.service-card-tags li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(41, 167, 241, 0.08);
    color: var(--accent);
    border-radius: 100px;
    border: 1px solid rgba(41, 167, 241, 0.1);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Expertise Section --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.expertise-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.expertise-category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.expertise-category-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.skill-bar {
    position: relative;
}

.skill-bar::before {
    content: attr(data-skill);
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.skill-bar-track {
    position: relative;
    height: 6px;
    background: rgba(41, 167, 241, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.skill-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 100px;
    transition: width 1.2s var(--ease-out);
    width: 0;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Industries */
.industries {
    margin-top: clamp(3rem, 6vh, 5rem);
    text-align: center;
}

.industries-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.industry-chip svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.industry-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-glow);
}

/* --- Journey / Timeline Section --- */
.journey {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border) 30%, var(--border) 70%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 0;
    top: 6px;
    width: 42px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--accent);
    z-index: 2;
    line-height: 1.2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-secondary);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s var(--ease-out);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.timeline-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.15rem 0.55rem;
    background: rgba(41, 167, 241, 0.08);
    color: var(--accent);
    border-radius: 100px;
    border: 1px solid rgba(41, 167, 241, 0.1);
}

@media (max-width: 640px) {
    .timeline-line {
        left: 10px;
    }
    .timeline-item {
        padding-left: 36px;
    }
    .timeline-item::before {
        display: none;
    }
    .timeline-item::after {
        left: 6px;
    }
}

/* --- Projects Section --- */
.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.project-card--featured {
    position: relative;
}

.project-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
}

.project-card-visual {
    aspect-ratio: 2/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(41, 167, 241, 0.05), rgba(27, 122, 181, 0.03));
}

.project-illustration {
    width: 100%;
    height: 100%;
}

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

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-card-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.project-card-impact {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

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

.projects-grid-secondary .project-card {
    padding: 1.75rem;
}

.project-card-icon-small {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-card-icon-small svg {
    width: 100%;
    height: 100%;
}

.projects-grid-secondary .project-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.projects-grid-secondary .project-card-text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.projects-grid-secondary .project-card-year {
    font-size: 0.75rem;
}

@media (max-width: 640px) {
    .projects-grid-secondary {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Section --- */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-reveal {
    width: fit-content;
    text-align: left;
}

.contact-protected-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 26rem;
    line-height: 1.7;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 18px;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    min-height: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-status.is-error {
    color: #fca5a5;
}

.form-status.is-success {
    color: #86efac;
}

.contact-form button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

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

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.footer-name {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].visible {
    opacity: 1;
    transform: none;
}

/* Mobile overlay for nav */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Skill bar tooltips */
.skill-bar-tooltip {
    position: absolute;
    right: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.6s 0.4s;
}

.skill-bar.animated .skill-bar-tooltip {
    opacity: 1;
}

/* Form submitted state */
.contact-form.submitted {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.form-success {
    text-align: center;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #22c55e;
}

.form-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Extra ambient effects */
.section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

.services::before {
    top: -150px;
    left: -200px;
    right: auto;
    background: radial-gradient(circle, var(--accent-alt-glow), transparent 70%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
