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

:root {
    --navy: #1a3a5c;
    --navy-light: #2a4a6c;
    --navy-dark: #0f2940;
}

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

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 58, 92, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 58, 92, 0.015) 0%, transparent 50%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 58, 92, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 40px;
    border-bottom: none;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 12px 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.99) 0%, rgba(26, 58, 92, 0.025) 100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    color: #999999;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    position: relative;
    padding: 2px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--navy-light);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #ffffff;
}

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

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    width: 100%;
}

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

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

/* Mobile/Desktop hero visibility */
.mobile-hero {
    display: none;
}

.desktop-hero {
    display: block;
}

.mobile-hero-logo {
    width: 300px;
    height: auto;
    max-width: 75vw;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 58, 92, 0.02) 50%, #000000 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-logo-wrapper {
    width: 120px;
    height: auto;
    margin: 0 auto 2rem;
    position: relative;
    opacity: 0;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-transform: uppercase;
    opacity: 0;
}

/* ===================================
   LOADING ANIMATIONS
   =================================== */

.fade-up {
    animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-up-delay {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.fade-up-delay-2 {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

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

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:nth-child(1).revealed { transition-delay: 0.1s; }
.gallery-item:nth-child(2).revealed { transition-delay: 0.2s; }
.gallery-item:nth-child(3).revealed { transition-delay: 0.3s; }
.gallery-item:nth-child(4).revealed { transition-delay: 0.4s; }
.gallery-item:nth-child(5).revealed { transition-delay: 0.5s; }
.gallery-item:nth-child(6).revealed { transition-delay: 0.6s; }

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: #999999;
    font-weight: 300;
    text-transform: uppercase;
    opacity: 0;
}

.scroll-indicator {
    margin-top: 4rem;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    color: rgba(26, 58, 92, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0;
}

.scroll-indicator:hover {
    color: rgba(26, 58, 92, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

.about {
    background: linear-gradient(180deg, #000000 0%, rgba(26, 58, 92, 0.02) 30%, rgba(26, 58, 92, 0.02) 70%, #000000 100%);
    padding: 120px 40px 100px;
    scroll-margin-top: 60px;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 58, 92, 0.015) 60%, #000000 100%);
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    border: 1px solid rgba(26, 58, 92, 0.2);
    padding: 20px;
    background: linear-gradient(135deg, #000000 0%, rgba(26, 58, 92, 0.02) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(52, 73, 94, 0.15);
    pointer-events: none;
}

.portrait-image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
}

.about-content {
    flex: 1;
}

.about-title {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 58, 92, 0.3), transparent);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* ===================================
   SOCIAL LINKS
   =================================== */

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(26, 58, 92, 0.3);
    color: #999999;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover {
    border-color: var(--navy-light);
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(26, 58, 92, 0.1);
}

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

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

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

.gallery {
    background: linear-gradient(135deg, #000000 0%, rgba(26, 58, 92, 0.025) 50%, #000000 100%);
    padding: 120px 20px 100px;
    scroll-margin-top: 60px;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 58, 92, 0.015) 60%, #000000 100%);
    pointer-events: none;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
}

.divider-center {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 58, 92, 0.3), transparent);
    margin: 0 auto 2rem;
}

.gallery-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #444444;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    border: 1px solid rgba(26, 58, 92, 0.15);
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, rgba(26, 58, 92, 0.015) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(26, 58, 92, 0.08);
    border-color: rgba(26, 58, 92, 0.3);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.knife-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #000000;
    padding: 0;
    box-sizing: border-box;
}

.knife-image.main-image {
    opacity: 1;
    z-index: 1;
}

.knife-image.hover-image {
    opacity: 0;
    z-index: 2;
}

.gallery-item:hover .knife-image.main-image:not(.clicked),
.gallery-item .knife-image.main-image.clicked {
    opacity: 0;
}

.gallery-item:hover .knife-image.hover-image:not(.clicked),
.gallery-item .knife-image.hover-image.clicked {
    opacity: 1;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: linear-gradient(180deg, #000000 0%, rgba(26, 58, 92, 0.02) 30%, rgba(26, 58, 92, 0.02) 70%, #000000 100%);
    padding: 120px 20px 100px;
    scroll-margin-top: 60px;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 58, 92, 0.015) 60%, #000000 100%);
    pointer-events: none;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
}

.contact-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666666;
    margin-bottom: 3rem;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #000000 0%, rgba(26, 58, 92, 0.01) 100%);
    border: 1px solid rgba(26, 58, 92, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: linear-gradient(135deg, #000000 0%, rgba(26, 58, 92, 0.02) 100%);
    box-shadow: 0 0 0 1px rgba(26, 58, 92, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--navy) 0%, rgba(26, 58, 92, 0.8) 100%);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 0;
    display: none;
}

.form-status.success {
    display: block;
    color: #66bb6a;
    background-color: rgba(102, 187, 106, 0.1);
    border: 1px solid rgba(102, 187, 106, 0.3);
}

.form-status.error {
    display: block;
    color: #ef5350;
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

/* ===================================
   GALLERY MODAL
   =================================== */

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.gallery-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-image {
    max-width: 45%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(26, 58, 92, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal responsive design */
@media (max-width: 768px) {
    .modal-images {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-image {
        max-width: 100%;
        max-height: 40vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
}

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

.footer {
    background: linear-gradient(180deg, rgba(26, 58, 92, 0.02) 0%, #000000 100%);
    padding: 60px 20px 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, #000000 100%);
    pointer-events: none;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-email a {
    color: #999999;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.footer-email a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(26, 58, 92, 0.2);
    border-radius: 50%;
    color: #999999;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover {
    border-color: var(--navy);
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(26, 58, 92, 0.1);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 58, 92, 0.3), transparent);
    margin: 0 auto 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #666666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-powered {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: #333333;
    margin-top: 0.5rem;
    opacity: 0.5;
    text-transform: uppercase;
}

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

@media (min-width: 1400px) {
    .navbar {
        padding: 15px 60px;
    }
    
    .navbar.scrolled {
        padding: 12px 60px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .navbar.scrolled {
        padding: 12px 30px;
    }
    
    .hero-logo {
        width: 80px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
    }
    
    .about-container {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar.scrolled {
        padding: 12px 20px;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    /* Show mobile hero for all mobile devices */
    .desktop-hero {
        display: none;
    }
    
    .mobile-hero {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
    
    .mobile-hero-logo {
        width: 350px;
        max-width: 85vw;
        height: auto;
    }
    
    .hero {
        padding: 0;
        padding-top: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .portrait-container {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .about-title,
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
    }
    
    .about,
    .gallery {
        padding: 60px 20px;
    }
    
    .contact {
        padding: 80px 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Ensure no horizontal overflow on small screens */
@media (max-width: 480px) {
    /* Prevent horizontal overflow */
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Adjust mobile logo size for smaller screens */
    .mobile-hero-logo {
        width: 280px;
        max-width: 85vw;
    }
    
    .navbar {
        padding: 10px 8px;
        width: 100%;
    }
    
    .navbar.scrolled {
        padding: 10px 10px;
    }
    
    .nav-logo-img {
        height: 28px;
    }
    
    .nav-links {
        gap: 3px;
        margin-left: auto;
    }
    
    .nav-link {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        padding: 5px 4px;
        white-space: nowrap;
    }
    
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
    }
    
    .about {
        padding: 60px 15px;
        scroll-margin-top: 50px;
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 10px;
    }
    
    .portrait-container {
        max-width: 85%;
        margin: 0 auto;
    }
    
    .portrait-frame {
        padding: 15px;
    }
    
    .portrait-image {
        max-width: 100%;
        height: auto;
    }
    
    .gallery {
        padding: 60px 10px;
        scroll-margin-top: 50px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .gallery-subtitle {
        font-size: 0.8rem;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
        max-width: 100%;
    }
    
    .gallery-item {
        aspect-ratio: 3/4;
        width: 100%;
    }
    
    .contact {
        padding: 60px 15px;
        scroll-margin-top: 50px;
    }
    
    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 0 5px;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 40px 15px 30px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-email a {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-logo {
        width: 50px;
        margin-bottom: 15px;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        padding: 0 20px;
        text-align: center;
        line-height: 1.4;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .mobile-hero-logo {
        width: 200px;
    }
    
    .nav-link {
        font-size: 0.55rem;
        padding: 4px 3px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 40px;
        min-height: 100vh;
    }
    
    .mobile-hero-logo {
        width: 150px;
        height: auto;
    }
}

