/* ===================== EXPENSIVE-LOOKING SMOOTH ANIMATIONS CSS ===================== */
:root {
    --bg: #0f1115;
    --card: #0e1114;
    --muted: #9aa4b2;
    --accent: #6ee7b7;
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 18px;
    --smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #e9eef5;
    background: linear-gradient(180deg, #07080a 0%, #0f1115 60%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

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

/* NAV */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.6s var(--smooth)
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.5s var(--smooth)
}

.brand {
    font-weight: 800;
    letter-spacing: 0.4px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    transition: color 0.4s var(--smooth)
}

.nav a {
    margin-left: 22px;
    opacity: 0.95;
    transition: opacity 0.4s var(--smooth)
}

.nav nav a {
    color: var(--muted)
}

.nav nav a.cta {
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.12), rgba(110, 231, 183, 0.06));
    color: var(--accent);
    font-weight: 600;
    transition: background 0.5s var(--smooth), transform 0.4s var(--smooth)
}

.nav nav a.cta:hover {
    transform: translateY(-2px)
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 20px 36px
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 48px;
    align-items: center
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 48px;
    margin: 0 0 16px;
    line-height: 1.02;
    transition: all 1s var(--smooth)
}

.hero .lead {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 22px;
    transition: opacity 1s var(--smooth)
}

.accent {
    color: var(--accent);
    transition: color 0.8s var(--smooth)
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), #41c18a);
    color: #041014;
    font-weight: 700;
    transition: transform 0.5s var(--smooth), box-shadow 0.6s var(--smooth)
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(110, 231, 183, 0.35)
}

.link {
    margin-left: 14px;
    color: var(--muted);
    transition: color 0.4s var(--smooth)
}

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

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

.device {
    width: 420px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--smooth)
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 30px 60px rgba(3, 6, 10, 0.85);
    overflow: hidden;
    transition: transform 0.8s var(--smooth)
}

.mockup {
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%
}

.mockup-top {
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    margin-bottom: 14px;
    transition: background 0.6s var(--smooth)
}

.mockup-body {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.mockup-panel {
    flex: 1;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.8s var(--smooth)
}

.mockup-panel.small {
    width: 80px;
    height: 64px;
    border-radius: 10px
}

.glow {
    position: absolute;
    left: 30px;
    top: -20px;
    width: 420px;
    height: 360px;
    border-radius: 50%;
    filter: blur(68px);
    opacity: 0.16;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: all 1s var(--smooth)
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    opacity: 0.6;
    transition: all 1s var(--smooth)
}

.hero-wave path {
    fill: rgba(255, 255, 255, 0.02)
}

/* SECTION GRID */
.section-grid {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px
}

.section-head h2 {
    font-size: 28px;
    margin: 0 0 8px;
    transition: all 0.7s var(--smooth)
}

.section-head p {
    color: var(--muted);
    margin: 0 0 24px;
    transition: opacity 0.7s var(--smooth)
}

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

.project {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    transform: translateY(22px);
    opacity: 0;
    transition: opacity 0.8s var(--smooth), transform 0.8s var(--smooth), box-shadow 0.6s var(--smooth)
}

.project.inview {
    transform: translateY(0);
    opacity: 1
}

.project:focus {
    outline: 2px solid rgba(110, 231, 183, 0.12)
}

.project:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 40px 90px rgba(3, 6, 10, 0.65)
}

.project-media {
    width: 42%;
    min-height: 110px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.8s var(--smooth)
}

.project:hover .thumb {
    transform: translateY(-6px) scale(1.03);
    filter: saturate(1.08);
    transition: transform 0.8s var(--smooth), filter 0.8s var(--smooth)
}

.project-info h3 {
    margin: 0;
    font-size: 20px;
    transition: all 0.8s var(--smooth)
}

.project-info p {
    color: var(--muted);
    margin: 8px 0 12px;
    transition: opacity 0.8s var(--smooth)
}

.project-link {
    font-weight: 600;
    color: var(--accent);
    transition: color 0.6s var(--smooth)
}

.project-link:hover {
    color: #3bdc9c
}

/* ABOUT */
.section-bleed {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.02)
}

.about-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    transform: translateY(22px);
    opacity: 0;
    transition: opacity 0.8s var(--smooth), transform 0.8s var(--smooth)
}

.about-inner.inview {
    transform: translateY(0);
    opacity: 1
}

.skills {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 18px;
    color: var(--muted);
    transition: all 0.6s var(--smooth)
}

/* CONTACT */
.contact {
    padding: 48px 20px
}

.contact-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    transition: all 0.8s var(--smooth)
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 16px
}

.contact-form input,
.contact-form textarea {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 16px;
    color: inherit;
    transition: all 0.6s var(--smooth)
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.25)
}

/* FOOTER */
.footer {
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.6s var(--smooth)
}

.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    transition: all 0.6s var(--smooth)
}

/* RESPONSIVENESS */
@media (max-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr 380px
    }

    .projects {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:720px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .device {
        width: 320px;
        height: 240px;
        margin: 0 auto
    }

    .projects {
        grid-template-columns: 1fr
    }

    .nav-inner {
        padding: 14px
    }

    .hero {
        padding: 48px 14px
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}


/* ------- PHOTO TILE (Apple-style) ------- */

.photo-tile {
    width: 360px;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px) saturate(140%);
    transform-style: preserve-3d;
    margin-inline: auto;
}

.photo-tile {
    position: relative;
}

.photo-tile::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(255, 255, 255, 0.25),
        rgba(0, 0, 0, 0)
    );
    filter: blur(45px);
    opacity: 0.9;
    z-index: -1;
    transition: opacity .4s ease;
}

.photo-tile:hover::before {
    opacity: 1;
}


.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

/* Subtle entry animation */
@keyframes fadeUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.add-project-btn {
    margin: 40px auto 0;
    display: block;
    padding: 14px 26px;
    font-size: 1.2rem;
    font-weight: 600;
    background: #ffffff10;
    border: 1px solid #ffffff30;
    color: #fff;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: 0.3s ease;
}

.add-project-btn:hover {
    background: #ffffff20;
    transform: translateY(-3px);
}

