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

:root {
    --bg: #fafafa;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --border: #e0e0e0;
    --white: #ffffff;
    --black: #0a0a0a;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow: hidden;
}

/* Full-page scroll snap */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.scroll-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--black);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.nav-cta:hover {
    background: #333;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
}

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

.btn-ghost:hover {
    border-color: var(--text);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    position: relative;
}

.hero {
    width: 100%;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

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

/* Code Block Visual */
.code-block {
    background: var(--black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-family: 'JetBrains Mono', monospace;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.code-block pre {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-block code {
    color: #e0e0e0;
}

.code-comment { color: #6a9955; }
.code-keyword { color: #569cd6; }
.code-output { color: #9cdcfe; }
.code-success { color: #4ec9b0; }

/* Metrics */
.metrics-section {
    background: var(--bg);
}

.metrics {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.metric-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header h2 {
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--text);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card.featured {
    background: var(--black);
    color: var(--white);
    border-color: transparent;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.service-card.featured .service-list li {
    color: rgba(255,255,255,0.7);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card.featured > p {
    color: rgba(255,255,255,0.7);
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-card.featured .service-list li::before {
    color: var(--accent);
}

/* Work Section */
.work {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.work-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.work-card.large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.work-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.work-card.large .work-image {
    height: 100%;
    min-height: 300px;
}

.work-info {
    padding: 1.5rem 2rem 2rem;
}

.work-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-info h3 {
    margin: 0.5rem 0;
}

.work-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Your Project card */
.work-card.your-project .work-image {
    position: relative;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.04) 0%, transparent 70%),
        linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
}

.work-card.your-project .work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.your-project-icon {
    font-size: 6rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.3;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
}

.work-card.your-project {
    border-style: dashed;
    border-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-card.your-project:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
}

.work-card.your-project:hover .your-project-icon {
    opacity: 0.6;
    transform: scale(1.1);
    text-shadow: 0 6px 30px rgba(0, 102, 255, 0.3);
}

.work-card.your-project:hover .work-image::before {
    opacity: 0.8;
}

/* Work Mockups */
.work-mockup {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem;
    width: 80%;
    max-width: 300px;
}

.mockup-bar {
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px 4px 0 0;
    margin-bottom: 0.5rem;
}

.mockup-content {
    display: flex;
    gap: 0.5rem;
    height: 120px;
}

.mockup-sidebar {
    width: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.mockup-main {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.5rem;
}

.mockup-chart {
    height: 100%;
    background: linear-gradient(to top, rgba(0,102,255,0.3) 40%, transparent 40%);
    border-radius: 4px;
}

.work-mockup.mobile {
    width: 100px;
    padding: 0.75rem 0.5rem;
    border-radius: 16px;
}

.mockup-notch {
    width: 40px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    margin: 0 auto 0.75rem;
}

.mockup-app {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem;
    height: 140px;
}

.app-header {
    height: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.app-cards {
    height: calc(100% - 24px);
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.15) 0px,
        rgba(255,255,255,0.15) 20px,
        transparent 20px,
        transparent 28px
    );
    border-radius: 4px;
}

.work-mockup.terminal {
    padding: 1rem;
    width: 80%;
}

.term-line {
    height: 8px;
    background: rgba(78, 201, 176, 0.6);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    width: 80%;
}

.term-line.short {
    width: 50%;
}

.term-cursor {
    width: 8px;
    height: 16px;
    background: rgba(255,255,255,0.8);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* About Section */
.about {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content > p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-values {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.value-icon {
    color: var(--accent);
    font-weight: 600;
}

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

.team-placeholder {
    aspect-ratio: 1;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.team-placeholder:first-child {
    grid-column: 1 / 3;
    aspect-ratio: 2/1;
}

.team-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

/* CTA Section */
.cta-section {
    background: var(--black);
}

.cta {
    color: var(--white);
    padding: 2rem;
    width: 100%;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--black);
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

/* Contact Section */
.contact {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact h2 {
    margin-bottom: 2rem;
}

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

.contact-link {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    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(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

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

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.95rem;
    color: var(--text);
    transition: color var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .scroll-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .scroll-container {
        scroll-snap-type: none;
    }

    body {
        overflow: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
    }

    .code-block {
        max-width: 500px;
    }

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

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

    .work-card.large {
        grid-column: 1;
        grid-row: auto;
    }

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

    .about-visual {
        order: -1;
    }

    .team-grid {
        max-width: 400px;
    }

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

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

    .mobile-menu {
        display: flex;
    }

    .hero h1 br,
    .hero-sub br {
        display: none;
    }

    .metrics {
        flex-direction: column;
        gap: 2rem;
    }

    .metric-divider {
        width: 48px;
        height: 1px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero {
        padding: 1rem 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .code-block pre {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .services,
    .work,
    .about,
    .contact {
        padding: 1rem 1.25rem;
    }

    .service-card,
    .contact-form {
        padding: 1.75rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}
