/* ===== Design System ===== */
:root {
    --white: #ffffff;
    --cream: #faf8f5;
    --sand: #f0ece6;
    --charcoal: #1a1a1a;
    --slate: #3d3d3d;
    --grey: #6b6b6b;
    --light-grey: #9a9a9a;
    --accent: #e85d3a;
    --accent-light: #ff7a54;
    --accent-bg: rgba(232, 93, 58, 0.08);
    --accent-border: rgba(232, 93, 58, 0.2);
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s var(--ease);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 93, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ===== Layout ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.35s var(--ease);
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--charcoal);
}

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

/* Desktop Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey);
    border-radius: var(--radius-full);
    transition: all 0.25s var(--ease);
}

.main-nav-link:hover {
    color: var(--charcoal);
}

.main-nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
}

/* Menu Button */
.menu-btn {
    display: none;
    padding: 8px;
    color: var(--charcoal);
}

.menu-line {
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.menu-btn.active .line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active .line-2 {
    opacity: 0;
}

.menu-btn.active .line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease);
}

.mobile-nav-link:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 140px 28px 80px;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    width: fit-content;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--charcoal);
}

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

.hero-text {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 480px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(232, 93, 58, 0.25);
}

.cta-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 58, 0.35);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--charcoal);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--border-strong);
    transition: all 0.3s var(--ease);
}

.cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.stat-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -1px;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-desc {
    width: 100%;
    font-size: 0.78rem;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: -2px;
}

/* Hero Graphic - Orbit */
.hero-graphic {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 65%;
    height: 65%;
}

.ring-2 {
    width: 82%;
    height: 82%;
    border-style: dashed;
    animation: spin 40s linear infinite;
}

.ring-3 {
    width: 100%;
    height: 100%;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(232, 93, 58, 0.3);
}

.orbit-icon {
    position: absolute;
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    animation: float-icon 4s ease-in-out infinite;
}

.icon-1 { top: 8%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.icon-2 { top: 50%; right: 2%; transform: translateY(-50%); animation-delay: 1s; }
.icon-3 { bottom: 8%; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.icon-4 { top: 50%; left: 2%; transform: translateY(-50%); animation-delay: 3s; }

@keyframes float-icon {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: var(--shadow-md); transform: translateY(-4px); }
}

.icon-1:nth-child(4) { animation-name: float-icon; }

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--grey);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 48px;
}

/* ===== About ===== */
.about {
    background: var(--white);
}

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

.about-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.about-text {
    color: var(--grey);
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
}

.skill-pill:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm);
    transform: translateX(6px);
}

.pill-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.skill-pill strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
}

.skill-pill span {
    font-size: 0.8rem;
    color: var(--light-grey);
}

/* ===== Work Section ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.35s var(--ease);
}

.work-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.work-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.work-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.work-badge-tech {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.work-card p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.work-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--slate);
    background: var(--sand);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ===== Services ===== */
.services {
    background: var(--white);
}

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

.service-block {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-block:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm);
}

.service-block:hover::after {
    transform: scaleX(1);
}

.service-num {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 16px;
}

.service-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-block p {
    color: var(--grey);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-block ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-block li {
    font-size: 0.82rem;
    color: var(--slate);
    padding-left: 16px;
    position: relative;
}

.service-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== Contact ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease);
}

.contact-item:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-xs);
}

.contact-icon-wrap {
    width: 42px;
    height: 42px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-grey);
    margin-bottom: 2px;
}

.contact-item a {
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

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

.contact-item p {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.5;
}

/* Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

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

.input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-family: var(--font);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--charcoal);
    outline: none;
    transition: all 0.25s var(--ease);
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 58, 0.08);
    background: var(--white);
}

.input-wrap label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 0.88rem;
    color: var(--light-grey);
    pointer-events: none;
    transition: all 0.25s var(--ease);
    background: var(--cream);
    padding: 0 4px;
}

.input-wrap input:focus + label,
.input-wrap input:valid + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:valid + label {
    top: -9px;
    left: 12px;
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--white);
}

.input-wrap textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
    font-family: var(--font);
    cursor: pointer;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .logo-mark {
    background: var(--accent);
}

.footer-about .logo-text {
    color: white;
}

.footer-about p {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-nav h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-nav a,
.footer-nav span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: color 0.25s var(--ease);
}

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

.footer-nav i {
    font-size: 0.8rem;
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Scroll Reveal ===== */
.sr {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Policy Pages ===== */
.policy-section {
    padding: 140px 0 80px;
}

.policy-header {
    margin-bottom: 40px;
}

.policy-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -1px;
}

.policy-header h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 12px;
}

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

.policy-content p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.policy-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 32px;
    margin-bottom: 10px;
}

.policy-content a {
    color: var(--accent);
    font-weight: 500;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding-top: 120px;
    }

    .hero-wrapper {
        align-items: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-graphic {
        max-width: 340px;
    }

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

    .about-info {
        text-align: center;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

    .menu-btn {
        display: block;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        min-height: auto;
        padding: 110px 28px 60px;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-graphic {
        max-width: 280px;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        padding: 0 18px;
    }

    .hero {
        padding: 100px 18px 50px;
    }

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

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .work-card,
    .service-block {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .orbit-icon {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .center-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
