/*
Theme Name: VER5E
Theme URI: https://ver5e.com
Author: VER5E
Author URI: https://ver5e.com
Description: A clean, elegant portfolio theme perfect for creatives, models, and personal brands
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ver5e
*/

/* ========================================
   CSS RESET & BASE
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-header.scrolled .site-logo img {
    filter: none;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .site-title {
    color: #333;
    text-shadow: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.site-header.scrolled .main-nav a {
    color: #333;
    text-shadow: none;
}

.main-nav a:hover {
    opacity: 0.8;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.site-header.scrolled .main-nav a::after {
    background: #000;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .menu-toggle span {
    background: #333;
    box-shadow: none;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* For portrait images - adjust to show subject better */
@media (max-aspect-ratio: 3/4) {
    .hero-image {
        object-fit: cover;
        object-position: center 20%;
    }
}

/* For landscape images */
@media (min-aspect-ratio: 16/9) {
    .hero-image {
        object-fit: cover;
        object-position: center center;
    }
}

/* ========================================
   ABOUT SECTION
======================================== */

.about-section {
    padding: 6rem 2rem;
    background: #fff;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #000;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-top: 1rem;
    border: 2px solid #000;
    transition: all 0.3s ease;
}

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

/* ========================================
   GALLERY SECTION
======================================== */

.gallery-section {
    padding: 4rem 2rem;
    background: #f8f8f8;
}

.gallery-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background: #e5e5e5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   LATEST WORK SECTION
======================================== */

.latest-work-section {
    padding: 6rem 2rem;
    background: #fff;
    text-align: center;
}

.latest-work-inner {
    max-width: 900px;
    margin: 0 auto;
}

.latest-work-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 3rem;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.work-item {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

/* ========================================
   NEWSLETTER SECTION
======================================== */

.newsletter-section {
    padding: 6rem 2rem;
    background: #000;
    color: #fff;
    text-align: center;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    padding: 3rem 2rem;
    background: #f8f8f8;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #000;
}

.footer-text {
    font-size: 0.9rem;
    color: #666;
}

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

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-section {
        height: 100vh;
    }
    
    .hero-image {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        transition: right 0.3s ease;
        padding: 6rem 2rem 2rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        color: #333;
        text-shadow: none;
    }
    
    .main-nav a::after {
        background: #000;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-image {
        height: 100%;
        object-fit: cover;
        /* On mobile, prioritize showing the subject even if it means cropping */
        object-position: center 30%;
    }
    
    .site-header {
        padding: 1rem 0;
    }
    
    .site-header.scrolled {
        padding: 0.75rem 0;
    }
    
    .site-logo img {
        height: 35px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

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