/* ============================================================
   HARSH RANA - Intentional, Refined Dark Portfolio
   ============================================================ */

@font-face {
    font-family: 'AvertaQuibi-Regular';
    src: url('./static/AvertaQuibi-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'AvertaQuibi-Bold';
    src: url('./static/AvertaQuibi-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'AvertaQuibi-Semibold';
    src: url('./static/AvertaQuibi-Semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'PlayfairDisplay-Black';
    src: url('./static/PlayfairDisplay-Black.ttf') format('truetype');
}

:root {
    --bg: #1a1a1a;
    --text: #c9c9c9;
    --text-secondary: #7a7a7a;
    --link: #8a8a8a;
    --link-hover: #88b8ff;
    --border: #2a2a2a;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'PlayfairDisplay-Regular', Georgia, serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8;
    font-size: 1.4rem;
    padding: 0;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.site-header h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-family: 'AvertaQuibi-Semibold', sans-serif;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

main {
    padding: 3rem 2rem 4rem;
    min-height: calc(100vh - 80px);
}

.content {
    max-width: 700px;
    margin: 0 auto;
}

.intro {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 3rem;
    line-height: 1.9;
    font-weight: 400;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1rem;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    color: var(--text);
    font-family: 'PlayfairDisplay-Regular', serif;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

ul {
    list-style: none;
    margin-bottom: 4rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-style: dotted;
    transition: all 0.2s ease;
    text-decoration-color: var(--link);
}

a:hover {
    color: var(--text);
    text-decoration-color: var(--link-hover);
    text-decoration-thickness: 1.5px;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */

.projects-container {
    height: 600px;
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem;
    margin-top: 2rem;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: scrollUp 30s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.project-card {
    position: relative;
    background: rgba(42, 42, 42, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--link);
    background: rgba(42, 42, 42, 0.5);
    text-decoration: none;
}

.project-card-tall {
    grid-row: span 2;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-tall .project-image {
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'AvertaQuibi-Regular', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.2rem;
    color: var(--text);
    font-family: 'PlayfairDisplay-Regular', serif;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'AvertaQuibi-Regular', sans-serif;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--link);
    font-family: 'AvertaQuibi-Regular', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ============================================================
   SUBSCRIBE FORM & FOOTER
   ============================================================ */

.subscribe-section {
    margin-top: 5rem;
    padding: 3rem;
    background: rgba(42, 42, 42, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.subscribe-section h2, .subscribe-section h3 {
    margin-top: 0;
    font-family: 'AvertaQuibi-Semibold', sans-serif;
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.subscribe-form input[type="email"] {
    flex: 1;
    background: #000;
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    color: var(--text);
    font-family: 'AvertaQuibi-Regular', sans-serif;
    font-size: 1rem;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--link);
}

.subscribe-form button {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: 'AvertaQuibi-Semibold', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.subscribe-form button:hover {
    opacity: 0.9;
}

.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-bottom: 0;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'AvertaQuibi-Regular', sans-serif;
    text-decoration: none;
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 1.5rem;
    }

    .site-header h1 {
        font-size: 1.2rem;
    }

    main {
        padding: 2rem 1.5rem 3rem;
    }

    .content {
        max-width: 100%;
    }

    .intro {
        font-size: 1rem;
    }

    h2 {
        font-size: 0.95rem;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    body {
        font-size: 20px;
    }

    .projects-container {
        height: 400px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card-tall {
        grid-row: span 1;
    }

    .project-image,
    .project-card-tall .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }
}
