@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --card-border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #475569;
    --muted-light: #94a3b8;
    --primary: #ff7a18;
    --primary-dark: #ff5f00;
    --secondary: #2563eb;
    --shadow-sm: 0 6px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

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

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

a:hover {
    color: var(--primary);
}

.container {
    width: min(1120px, 94vw);
    margin: 0 auto;
}

.section {
    padding: clamp(4rem, 6vw, 6rem) 0;
}

.section-heading {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-heading .eyebrow,
.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.section-description {
    max-width: 560px;
    margin: 0.75rem auto 0;
    color: var(--text-muted);
}

.highlight {
    position: relative;
    color: var(--primary);
}

.highlight::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: -6px;
    height: 6px;
    background: rgba(255, 122, 24, 0.25);
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--surface);
    box-shadow: 0 18px 36px rgba(255, 122, 24, 0.22);
}

.btn.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.btn.outline {
    border-color: var(--card-border);
    background: var(--surface);
    color: var(--text);
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.text {
    color: var(--primary);
    padding-inline: 0.25rem;
}

.btn.text i {
    transition: transform 0.3s ease;
}

.btn.text:hover i {
    transform: translateX(4px);
}

.btn-loader {
    display: none;
    gap: 0.45rem;
    align-items: center;
}

.btn.primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.brand-logo {
    height: 36px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 32px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 999px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav.open {
    transform: scaleY(1);
    opacity: 1;
}

.mobile-nav.open a {
    color: var(--text);
}

/* Hero */
.hero-section {
    padding-top: clamp(6rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    background: var(--surface);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    line-height: 1.1;
}

.hero-copy .lead {
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tech-stack span {
    font-size: 0.9rem;
    color: var(--muted-light);
}

.stack-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.stack-icons span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-gallery {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
}

.hero-photo {
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    width: 100%;
}

.hero-photo.primary {
    width: 260px;
    height: 360px;
}

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

.hero-photo.secondary {
    width: 180px;
    height: 168px;
}

/* Services */
.services-section {
    background: var(--surface-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

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

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

.inline-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-link i {
    transition: transform 0.3s ease;
}

.inline-link:hover i {
    transform: translateX(4px);
}

/* Works */
.works-section {
    background: var(--surface);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.work-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.work-figure {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.work-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

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

.tag {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted-light);
    font-size: 0.75rem;
    font-weight: 600;
}

.work-card.highlight {
    justify-content: center;
}

.work-card.highlight .work-body {
    gap: 1.2rem;
}

.centered {
    text-align: center;
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* About */
.about-section {
    background: var(--surface-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.about-copy p {
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
}

.about-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.about-photo {
    border-radius: 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    background: var(--surface);
}

.about-photo.main {
    width: 100%;
    height: 360px;
}

.about-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-gallery .about-photo {
    width: 180px;
    height: 150px;
}

.values {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.value-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 1.9rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 122, 24, 0.15);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.2rem;
}

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

/* Contact */
.contact-section {
    background: var(--surface);
    position: relative;
}

.contact-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 60px;
    bottom: 60px;
    width: 180px;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    align-items: start;
}

.contact-form-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    padding: clamp(2.2rem, 4vw, 2.8rem);
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 122, 24, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-message {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.form-message.error {
    display: block;
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.contact-intro {
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: clamp(2.2rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1.75rem;
}

.contact-details {
    display: grid;
    gap: 1.3rem;
}

.detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 122, 24, 0.12);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.detail span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted-light);
}

.detail p,
.detail a {
    color: var(--text);
    margin-top: 0.35rem;
    font-weight: 500;
}

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

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.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;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--card-border);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

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

.newsletter-form {
    display: grid;
    gap: 0.75rem;
}

.newsletter-form input {
    background: var(--surface);
    border: 1px solid var(--card-border);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}

[data-animate="in"] {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

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

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

    .about-media {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .about-gallery {
        flex-direction: row;
    }

    .about-gallery .about-photo {
        width: 150px;
    }

    .contact-section::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .stack-icons {
        gap: 0.5rem;
    }

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

    .hero-gallery {
        gap: 0.75rem;
    }

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

    .hero-photo.primary {
        width: 220px;
        height: 300px;
    }

    .hero-photo.secondary {
        width: 150px;
        height: 140px;
    }

    .about-photo.main {
        height: 320px;
    }

    .about-gallery {
        gap: 0.75rem;
    }

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

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

    .hero-gallery {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-photo.primary {
        width: 100%;
        max-width: 280px;
        height: 320px;
    }

    .hero-photo.secondary {
        width: 100%;
        max-width: 220px;
        height: 160px;
    }

    .about-photo.main {
        width: 100%;
        height: auto;
        max-width: 320px;
    }

    .about-gallery {
        flex-direction: column;
        align-items: center;
    }

    .about-gallery .about-photo {
        width: 100%;
        max-width: 200px;
    }
}
