@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg: #1f2937;
    --surface: #161d27;
    --surface-2: #111827;
    --text: #f5f5f5;
    --text-soft: #dbdbdb;
    --text-muted: #9ca3af;
    --accent: #004268;
    --accent-light: #57c5e8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --radius: 20px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --max-width: 1800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Epilogue', sans-serif;
    background: var(--bg);
    color: var(--text);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a,
button,
input,
textarea {
    font: inherit;
}

section {
    padding: 50px clamp(20px, 6vw, 100px);
}

.content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.heading {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subheading {
    color: var(--text-soft);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 200;
    line-height: 1.5;
}

/* Header */
header {
    font-family: 'Urbanist', sans-serif;
    background: var(--surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    padding: 20px clamp(20px, 6vw, 100px);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header h1 {
    font-weight: 400;
    color: var(--text-soft);
    font-size: clamp(0.9rem, 3vw, 1.5rem);
}

header nav {
    margin-left: auto;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

header nav ul li a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition);
}

header nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--text-soft);
    transition: width var(--transition);
}

header nav ul li a.active {
    font-weight: 600;
}

header nav ul li a.active::after,
header nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-soft);
    margin: 6px 0;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Shared CTA */
.cta {
    margin-top: 30px;
    padding: 12px 22px;
    background: var(--text);
    color: var(--surface);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: transform var(--transition), gap var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.cta:hover {
    transform: translateY(-2px);
    gap: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Hero */
section.hero {
    padding-top: 50px;
}

section.hero .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-left,
.hero-right {
    flex: 1;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--text);
    margin-top: 7%;
    line-height: 0.95;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-title span:nth-child(1) {
    animation: slideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.hero-title span:nth-child(2) {
    animation: slideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.7s;
}

.hero-title span:nth-child(3) {
    animation: slideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1s;
}

.hero-title span:nth-child(4) {
    animation: slideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.4s;
}

.hero-description {
    margin-top: 20px;
    color: var(--text-soft);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 40%;
    line-height: 1.6;
    font-style: italic;
    font-weight: 200;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 2s;
}

section.hero .cta {
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 3s;
}

/* Signature */
.signature-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18%;
    overflow: hidden;
    opacity: 0;
    animation: sigFade 0.6s ease forwards;
    animation-delay: 0.6s;
}

.signature-wrap svg {
    width: clamp(320px, 35vw, 600px);
    height: auto;
    transform: rotate(-20deg);
    transform-origin: center center;
    transform-box: fill-box;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    animation: sigReveal 2.2s ease forwards;
    animation-delay: 0.6s;
}

#signature path {
    fill: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.12));
}

/* Projects */
section.projects {
    margin-top: 50px;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 320px;
    background: #2a2a2a;
    border-radius: 12px;
    object-fit: cover;
}

.project-title {
    font-weight: 600;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: var(--text);
    text-transform: uppercase;
    line-height: 1.1;
}

.project-desc {
    color: var(--text-soft);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

/* About */
section.about {
    margin-top: 50px;
}

.about-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.about-left {
    flex: 1;
}

.about-description {
    margin-top: 10px;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.about-image {
    width: clamp(200px, 30vw, 450px);
    border-radius: 20px;
    object-fit: cover;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(15px);
    user-select: none;
}

.badge:hover {
    border-color: var(--accent-light);
    color: var(--text-soft);
}

.badge.highlight {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.about-badges.show .badge:nth-child(1) { animation: badgeFade 0.5s ease forwards; animation-delay: 0.6s; }
.about-badges.show .badge:nth-child(2) { animation: badgeFade 0.5s ease forwards; animation-delay: 0.9s; }
.about-badges.show .badge:nth-child(3) { animation: badgeFade 0.5s ease forwards; animation-delay: 1.2s; }
.about-badges.show .badge:nth-child(4) { animation: badgeFade 0.5s ease forwards; animation-delay: 1.5s; }
.about-badges.show .badge:nth-child(5) { animation: badgeFade 0.5s ease forwards; animation-delay: 1.8s; }
.about-badges.show .badge:nth-child(6) { animation: badgeFade 0.5s ease forwards; animation-delay: 2.1s; }

/* Contact */
section.contact {
    margin-top: 50px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.contact-left {
    flex: 1;
    max-width: 500px;
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
}

.badge-link {
    transition: var(--transition);
}

.badge-link:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.contact-card {
    width: 100%;
    max-width: 850px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #8a8a8a;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(87, 197, 232, 0.15);
}

.input-group textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: var(--accent-light);
    color: white;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: translateY(-2px);
    gap: 16px;
    box-shadow: 0 10px 25px rgba(87, 197, 232, 0.25);
}

/* Footer */
footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #121923 0%, #0d141d 100%);
    border-top: 1px solid var(--border);
    padding: 0 clamp(20px, 6vw, 100px);
}

.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 40px;
}

.footer-brand h2,
.footer-links h3,
.footer-contact h3 {
    font-family: 'Urbanist', sans-serif;
}

.footer-brand h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 14px;
    color: var(--text);
}

.footer-brand p {
    max-width: 440px;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.98rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    margin: 14px 0 24px;
    color: var(--text-soft);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sigReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes sigFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .project-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-img {
        height: 280px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .contact-row {
        flex-direction: column;
        gap: 30px;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-right {
        width: 100%;
        justify-content: flex-start;
    }

    .contact-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 20px;
    }

    header nav.show {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
    }

    header nav ul li a {
        font-size: 20px;
    }

    section.hero {
        padding: 20px;
    }

    section.hero .content,
    .about-row {
        flex-direction: column;
    }

    .hero-description {
        max-width: 100%;
    }

    .signature-wrap {
        display: none;
    }

    .signature-wrap svg {
        width: min(100%, 480px);
    }

    .about-image {
        width: 100%;
        max-width: 260px;
    }

    section.about {
        padding: 30px;
    }

    .contact-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-badge {
        font-size: 0.8rem;
        padding: 9px 14px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .project-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 16px;
    }

    .project-img {
        height: 220px;
    }
}