/* ============================================
   KENAN KARA - PORTFOLIO WEBSITE
   Minimal Editorial Design
   ============================================ */

/* --------------------------------------------
   CSS CUSTOM PROPERTIES (VARIABLES)
   -------------------------------------------- */
:root {
    /* Colors */
    --color-background: #f5f5f3;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #888888;
    --color-text-muted: #a0a0a0;
    --color-border: #e5e5e5;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.75rem;      /* 12px */
    --text-base: 0.875rem;   /* 14px */
    --text-lg: 1rem;         /* 16px */
    --text-xl: 1.125rem;     /* 18px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2.5rem;      /* 40px */
    --text-4xl: 3.5rem;      /* 56px */
    --text-5xl: 4.5rem;      /* 72px */
    
    /* Spacing */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    
    /* Layout */
    --header-height: 80px;
    --container-padding: 64px;
    --grid-gap: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* --------------------------------------------
   CSS RESET & BASE STYLES
   -------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 1;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* --------------------------------------------
   HEADER / NAVIGATION
   -------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--container-padding);
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.header__logo a {
    font-family: var(--font-sans);
    font-size: 0.9375rem;    /* 15px */
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-primary);
}

.header__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-list a {
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.header__nav-list a:hover {
    opacity: 0.6;
}

.header__social {
    display: flex;
    align-items: center;
}

.header__instagram {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

.header__instagram:hover {
    opacity: 0.6;
}

.header__arrow {
    font-size: var(--text-lg);
    line-height: 1;
}


/* --------------------------------------------
   MAIN CONTENT
   -------------------------------------------- */
main {
    padding-top: var(--header-height);
}


/* --------------------------------------------
   PORTFOLIO GRID SECTION
   -------------------------------------------- */
.portfolio {
    padding: 0 var(--container-padding);
    padding-bottom: var(--space-3xl);
}

.portfolio__grid {
    display: flex;
    gap: var(--grid-gap);
}

.portfolio__column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
}

.portfolio__column--left {
    /* Left column starts at top */
}

.portfolio__column--right {
    /* Right column can have offset if needed */
}

.portfolio__item {
    position: relative;
    overflow: hidden;
}

.portfolio__link {
    display: block;
    position: relative;
    cursor: default;
}

.portfolio__figure {
    position: relative;
    margin: 0;
}

.portfolio__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

/* Caption - hidden by default, shown on hover */
.portfolio__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portfolio__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
}

/* Hover effects */
.portfolio__link:hover .portfolio__image {
    transform: scale(1.02);
}

.portfolio__link:hover .portfolio__caption {
    opacity: 1;
}


/* --------------------------------------------
   ABOUT SECTION
   -------------------------------------------- */
.about {
    padding: var(--space-3xl) var(--container-padding);
    border-top: 1px solid var(--color-border);
}

.about__container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3xl);
    max-width: 1400px;
}

.about__image-wrapper {
    flex: 0 0 auto;
    width: 42%;
    max-width: 520px;
}

.about__image {
    width: 100%;
    height: auto;
}

.about__content {
    flex: 1;
    padding-top: var(--space-lg);
}

.about__heading {
    font-family: var(--font-serif);
    font-size: 4rem;         /* 64px - matching reference */
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
}

.about__heading-line {
    display: block;
}

/* "Fashion &" - BLACK */
.about__heading-line--regular {
    color: var(--color-text-primary);
}

/* "Advertising" - GREY + ITALIC */
.about__heading-line--italic {
    font-style: italic;
    color: #b0b0b0;
}

/* "Photographer." - BLACK */
.about__heading-line--dark {
    color: var(--color-text-primary);
}

.about__description {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 520px;
}


/* --------------------------------------------
   CONTACT SECTION
   -------------------------------------------- */
.contact {
    padding: var(--space-3xl) var(--container-padding);
    padding-bottom: var(--space-xl);
}

.contact__container {
    display: flex;
    gap: var(--space-3xl);
}

.contact__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Contact labels - BLACK */
.contact__label {
    font-size: 0.5625rem;    /* ~9px - reduced by 20% */
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

/* Contact links - BLACK */
.contact__link {
    font-family: var(--font-serif);
    font-size: 1.2rem;       /* ~19px - reduced by 20% from 24px */
    font-weight: 400;
    color: var(--color-text-primary);
}

.contact__link:hover {
    opacity: 0.6;
}

.contact__link--instagram {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contact__icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}


/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.footer {
    padding: var(--space-lg) var(--container-padding);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-background);
}

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

.footer__copyright,
.footer__tagline,
.footer__location {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* --------------------------------------------
   TABLET (max-width: 1024px)
   -------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --container-padding: 40px;
        --header-height: 70px;
    }
    
    .header__nav-list {
        gap: var(--space-lg);
    }
    
    .about__heading {
        font-size: 3.25rem;
    }
    
    .about__container {
        gap: var(--space-xl);
    }
    
    .contact__container {
        gap: var(--space-xl);
    }
    
    .contact__link {
        font-size: 1rem;
    }
}


/* --------------------------------------------
   TABLET SMALL (max-width: 900px)
   -------------------------------------------- */
@media (max-width: 900px) {
    .about__container {
        flex-direction: column;
    }
    
    .about__image-wrapper {
        width: 60%;
        max-width: 400px;
    }
    
    .about__content {
        padding-top: 0;
    }
}


/* --------------------------------------------
   MOBILE LANDSCAPE (max-width: 768px)
   -------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --header-height: 60px;
        --grid-gap: 16px;
    }
    
    /* Header */
    .header {
        padding: 0 var(--container-padding);
    }
    
    .header__nav {
        display: none;
    }
    
    .header__instagram span:first-child {
        display: none;
    }
    
    .header__arrow {
        font-size: var(--text-xl);
    }
    
    /* Portfolio */
    .portfolio__grid {
        flex-direction: column;
    }
    
    .portfolio__column {
        width: 100%;
    }
    
    .portfolio__caption {
        padding: var(--space-sm);
    }
    
    .portfolio__title {
        font-size: 1.75rem;
    }
    
    /* About */
    .about {
        padding: var(--space-xl) var(--container-padding);
    }
    
    .about__image-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .about__heading {
        font-size: 2.5rem;
    }
    
    .about__description {
        font-size: var(--text-lg);
        max-width: none;
    }
    
    /* Contact */
    .contact {
        padding: var(--space-xl) var(--container-padding);
    }
    
    .contact__container {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .contact__link {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-md) var(--container-padding);
    }
    
    .footer__container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .footer__tagline {
        order: -1;
    }
}


/* --------------------------------------------
   MOBILE PORTRAIT (max-width: 480px)
   -------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }
    
    .header__logo a {
        font-size: var(--text-sm);
    }
    
    .about__heading {
        font-size: 1.75rem;
    }
    
    .about__description {
        font-size: var(--text-base);
    }
    
    .contact__link {
        font-size: 1rem;
    }
    
    .footer__copyright,
    .footer__tagline,
    .footer__location {
        font-size: 10px;
    }
}


/* --------------------------------------------
   HOVER STATES (for devices that support hover)
   -------------------------------------------- */
@media (hover: hover) {
    .portfolio__link:hover .portfolio__image {
        transform: scale(1.02);
    }
    
    .portfolio__link:hover .portfolio__caption {
        opacity: 1;
    }
}

/* Touch devices - show caption on tap */
@media (hover: none) {
    .portfolio__caption {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    }
}


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


/* --------------------------------------------
   PRINT STYLES
   -------------------------------------------- */
@media print {
    .header {
        position: static;
    }
    
    .header__social {
        display: none;
    }
    
    .portfolio__image {
        break-inside: avoid;
    }
    
    .portfolio__caption {
        opacity: 1;
        background: none;
        color: #000;
    }
    
    .portfolio__title {
        color: #000;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
