/* =========================================
   RESET & VARIABLES
   ========================================= */
:root {
    --bg-color: #0c0e12;
    --card-bg: #15181e;
    --text-main: #f2f2f2;
    --text-muted: #a0a0a0;
    --accent: #eebb4d;
    --accent-hover: #ffda7c;

    --border-subtle: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.3);
    --border-strong: rgba(255, 255, 255, 0.5);

    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --gap: 20px;
    --radius: 16px;
}

/* Include Inter fonts from your existing structure */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    user-select: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--accent);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '→';
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover::after {
    transform: translateX(4px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 80vh;
    min-height: 80dvh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4rem;
    list-style: none;
    padding: 0;
}

.feature-badge {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   SHOWCASE GRID (BENTO STYLE)
   ========================================= */
.showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto 4rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.project-card {
    position: relative;
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--card-bg);
    cursor: default;
    border: solid 1px var(--border-subtle);
}

.card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
}

.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.65) 65%,
            rgba(0, 0, 0, 0.95) 100%);
    transition: opacity 0.3s ease;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.card-header h3,
.card-header p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-header h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.card-header h3 a {
    text-decoration: none;
    color: inherit;
}

.card-header p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 90%;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: all;
    opacity: 0.8;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.btn-outline {
    flex: 1;
    white-space: nowrap;
    text-align: center;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: clamp(0.625rem, 2vw, 0.75rem);
    padding: 0.6rem 0.25rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (hover: hover) {
    .project-card:hover .card-bg img {
        transform: scale(1.05);
        opacity: 0.8;
    }

    .project-card:hover .card-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-main);
}

.footer-email {
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
}

.footer-email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--accent);
    bottom: -4px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .showcase {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 500px;
    }

    .card-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}