/* ═══════════════════════════════════════════════════════════════════════════
   SAM SALJOOGHI PORTFOLIO - STYLES
   Minimal, bold, brutalist aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Remove default button styles */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hidden honeypot field */
.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fluid typography using clamp() */
:root {
    --font-hero: clamp(3rem, 10vw, 7.5rem);
    --font-section: clamp(2.5rem, 6vw, 4.5rem);
    --font-body: clamp(0.875rem, 2vw, 1.125rem);
    --font-small: clamp(0.75rem, 1.5vw, 0.875rem);
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 4rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Hero background is set directly on .hero element */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--container-padding);
}

.hero-name {
    font-size: var(--font-hero);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS - GENERAL
   ═══════════════════════════════════════════════════════════════════════════ */

.section {
    padding: var(--section-padding) var(--container-padding);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    font-size: var(--font-section);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-item {
    font-size: var(--font-body);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.service-sub {
    opacity: 0.8;
    font-size: var(--font-small);
    letter-spacing: 0.15em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLIENTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
}

.clients-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-name {
    font-size: var(--font-body);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.client-name:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.gallery {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid #333333;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s ease, filter 0.6s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: grayscale(80%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BIO SECTION (PLACEHOLDER)
   ═══════════════════════════════════════════════════════════════════════════ */

.bio-placeholder {
    opacity: 0 !important;
    pointer-events: none;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* When bio is active (remove .bio-placeholder class) */
.bio:not(.bio-placeholder) {
    max-width: 800px;
}

.bio-content {
    font-size: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.contact {
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #000000;
    border: 1px solid #333333;
    color: #FFFFFF;
    font-family: inherit;
    font-size: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFFFFF;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.submit-btn {
    align-self: flex-start;
    padding: 1rem 3rem;
    background-color: #FFFFFF;
    color: #000000;
    font-size: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Button states */
.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    font-size: var(--font-body);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 2px;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FFFFFF;
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: 2rem var(--container-padding);
    border-top: 1px solid #333333;
    text-align: center;
}

.footer p {
    font-size: var(--font-small);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE FIRST
   ═══════════════════════════════════════════════════════════════════════════ */

/* Small devices (phones, 480px and below) */
@media (max-width: 480px) {
    .services-grid,
    .clients-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Medium devices (tablets, 768px and below) */
@media (max-width: 768px) {
    .services-grid,
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Large devices (desktops, 1024px and above) */
@media (min-width: 1024px) {
    .section {
        padding-left: clamp(4rem, 10vw, 10rem);
        padding-right: clamp(4rem, 10vw, 10rem);
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .services-grid,
    .clients-grid {
        max-width: 1000px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   For users who prefer reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-name,
    .hero-tagline {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .submit-btn,
    .social-link::after {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
        background: white;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-name,
    .hero-tagline {
        color: black;
    }
    
    .section {
        opacity: 1;
        transform: none;
        page-break-inside: avoid;
    }
    
    .gallery-item img {
        filter: none;
    }
    
    .contact-form,
    .social-links {
        display: none;
    }
    
    .footer {
        border-top-color: #cccccc;
    }
}
