/**
 * Aleeza Jahan - Personal Website
 * Stylesheet
 */

/* ======================
   Fonts
   ====================== */
@font-face {
    font-family: 'Gambetta';
    src: url('fonts/Gambetta-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Gambetta';
    src: url('fonts/Gambetta-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

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

@font-face {
    font-family: 'Gambetta';
    src: url('fonts/Gambetta-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    font-style: italic;
}

/* ======================
   Reset & Base
   ====================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #FAF8F5;
    --color-bg-dark: #000;
    --color-text: #1a1a1a;
    --color-text-muted: #8B7355;
    --color-accent: #E63946;
    --color-link: #B8956B;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Gambetta', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* ======================
   Preloader
   ====================== */
.preloader {
    position: fixed;
    inset: 0;
    background: #1a2744;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.slide-up {
    transform: translateY(-100%);
}

.preloader-logo {
    width: clamp(120px, 20vw, 180px);
    height: auto;
}

.preloader-logo path {
    fill: transparent;
    stroke: #fff;
    stroke-width: 0.3;
}

/* ======================
   Custom Cursor
   ====================== */
.cursor {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor.hover {
    width: 40px;
    height: 40px;
}

@media (hover: none) {
    body { cursor: auto; }
    .cursor { display: none; }
}

/* ======================
   Navigation
   ====================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nav.revealed {
    opacity: 1;
}

.nav-logo {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-hero {
    mix-blend-mode: difference;
}

.nav-hero .nav-logo,
.nav-hero .nav-links a {
    color: #fff;
}

.nav-hero .nav-links a:hover {
    opacity: 0.7;
}

.nav-light .nav-logo,
.nav-light .nav-links a {
    color: var(--color-text);
}

.nav-light .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* ======================
   Hero
   ====================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-btn {
    padding: 0.6rem 1.75rem;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* ======================
   About Section
   ====================== */
.about {
    background: var(--color-bg);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-intro {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.about-intro-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-intro-content {
    max-width: 450px;
}

.about-intro-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 500;
    font-style: normal;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.about-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-hint {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e8edf5;
    color: #1a2744;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    border: 1px solid #b8c4d4;
    border-radius: 6px;
}

/* About Subsections */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 0;
}

.about-section-reverse .photo-cluster {
    order: -1;
}

.about-section .about-content {
    padding-right: 1rem;
}

.about-section-reverse .about-content {
    padding-left: 1rem;
    padding-right: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.about-list {
    list-style: disc;
    padding-left: 1.25rem;
}

.about-list li {
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text);
}

.about-list a {
    color: var(--color-link);
}

.about-list a:hover {
    text-decoration: underline;
}

/* ======================
   Photo Clusters
   ====================== */
.photo-cluster {
    position: relative;
    width: 100%;
    height: 400px;
    cursor: pointer;
    perspective: 1000px;
}

.polaroid {
    position: absolute;
    background: #f5f4f0;
    padding: 12px 12px 44px 12px;
    border-radius: 2px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease-out;
    width: 220px;
}

.polaroid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* Stacked positions (default) */
.polaroid-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    z-index: 4;
}

.polaroid-2 {
    top: 50%;
    left: 50%;
    transform: translate(-55%, -45%) rotate(3deg);
    z-index: 3;
}

.polaroid-3 {
    top: 50%;
    left: 50%;
    transform: translate(-45%, -55%) rotate(-4deg);
    z-index: 2;
}

.polaroid-4 {
    top: 50%;
    left: 50%;
    transform: translate(-52%, -48%) rotate(5deg);
    z-index: 1;
}

/* Spread positions - 2x2 grid layout */
.photo-cluster.spread .polaroid-1 { 
    top: 0; 
    left: 0; 
    transform: rotate(-3deg); 
}
.photo-cluster.spread .polaroid-2 { 
    top: 0; 
    left: 50%; 
    transform: rotate(2deg); 
}
.photo-cluster.spread .polaroid-3 { 
    top: 50%; 
    left: 0; 
    transform: rotate(-2deg); 
}
.photo-cluster.spread .polaroid-4 { 
    top: 50%; 
    left: 50%; 
    transform: rotate(3deg); 
}

/* ======================
   Footer
   ====================== */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 4rem 5%;
    text-align: center;
}

.footer-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #fff;
    opacity: 1;
}

/* ======================
   Page Utilities
   ====================== */
.page-section {
    padding-top: 6rem;
}

.page-light {
    background: var(--color-bg);
}

.page-light .nav-logo {
    color: var(--color-text);
}

/* ======================
   Contact Page
   ====================== */
.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5%;
}

.contact-content {
    max-width: 600px;
    text-align: center;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    font-style: normal;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.contact-link-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link-value {
    font-size: 1rem;
    color: var(--color-text);
}

/* ======================
   Work Page
   ====================== */
.work-page {
    background: var(--color-bg);
    padding: 4rem 5%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f0f0f0;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-link {
    display: block;
    color: var(--color-text);
}

.project-link:hover {
    opacity: 1;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Work Page Tagline */
.work-tagline {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

.work-tagline h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.5;
}

.work-tagline .underline {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
}

.work-tagline em {
    font-style: italic;
}

/* Other Works Section */
.other-works {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.other-works-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.other-works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.other-work-card {
    transition: transform 0.3s ease;
}

.other-work-card:hover {
    transform: translateY(-5px);
}

.other-work-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

.other-work-card a {
    display: block;
    color: var(--color-text);
}

.other-work-card a:hover {
    opacity: 1;
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    background: #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.laptop-mockup img,
.laptop-mockup video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-intro-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-intro-content {
        max-width: 100%;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .photo-cluster {
        height: 300px;
    }

    .polaroid {
        width: 180px;
        padding: 10px 10px 36px 10px;
    }

    .polaroid img {
        height: 150px;
    }

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

    .other-works-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-link {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
