/* Modern Photography Studio - Complete Redesign */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-bg: #1a1a1a;
    --accent: #ffffff;
    --accent-dim: #cccccc;
    --accent-muted: #666666;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.8);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

/* Prevent text overflow on all elements */
* {
    max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6, span, div, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: var(--darker-bg);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    transition: var(--transition);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.logo {
    margin-bottom: 4rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.2;
}

.logo .name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--accent-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Navigation */
.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu li {
    margin-bottom: 1.5rem;
}

.nav-menu a {
    color: var(--accent-dim);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition-fast);
    transform: translateY(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
    padding-left: 1rem;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 20px;
}

/* Contact Info */
.contact-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-info p {
    color: var(--accent-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    display: block;
    word-break: break-all;
}

.contact-info a:hover {
    color: var(--accent-dim);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-toggle:hover {
    color: var(--accent-dim);
}

/* Main Content */
.main-content {
    margin-left: 320px;
    min-height: 100vh;
    transition: var(--transition);
}

.main-content.expanded {
    margin-left: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: var(--transition);
}

/* Desktop hero positioning - home.jpg (1000x664) */
.hero-image {
    background-position: center 40%;
}

/* Tablet hero positioning */
@media (max-width: 1024px) {
    .hero-image {
        background-position: center 35%;
    }
}

/* Mobile hero positioning */
@media (max-width: 768px) {
    .hero-image {
        background-position: center 30%;
    }
}

/* Small mobile hero positioning */
@media (max-width: 480px) {
    .hero-image {
        background-position: center 25%;
    }
}

/* Advanced image optimization for different screen densities */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* High contrast mode for better accessibility */
@media (prefers-contrast: high) {
    .portfolio-item img {
        filter: grayscale(0%) contrast(1.3);
    }
    
    .portfolio-item:hover img {
        filter: grayscale(0%) contrast(1.5);
    }
}

/* Touch device detection - remove hover effects */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .portfolio-item:hover {
        transform: none;
    }
    
    .portfolio-item:hover img {
        filter: grayscale(100%) contrast(1.1);
        transform: none;
    }
    
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
    }
    
    .hero-cta:hover {
        transform: none;
    }
    
    .hero-cta:hover::before {
        left: -100%;
    }
    
    .about-image:hover {
        filter: grayscale(100%) contrast(1.1);
    }
    
    nav a:hover {
        color: #666;
        padding-left: 0;
        background-color: transparent;
    }
    
    nav a:hover::before {
        width: 0;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .portfolio-item img {
        transition: none;
    }
    
    .portfolio-item:hover img {
        transform: none;
    }
    
    .portfolio-item:hover {
        transform: none;
    }
    
    .hero-cta {
        animation: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 100;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero .name {
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--accent-dim);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--dark-bg);
}

.hero-cta:hover::before {
    left: 0;
}

/* Portfolio Grid */
.portfolio {
    padding: 6rem 4rem;
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the last item span full width */
.portfolio-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    background: var(--light-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    filter: grayscale(100%) contrast(1.1);
}

.portfolio-item:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

/* Desktop-specific image positioning based on actual image content */
.portfolio-item[data-category="babies"] img { /* babies.jpg - 738x490 (3:2 ratio) */
    object-position: center 30%;
}

.portfolio-item[data-category="kids"] img { /* kids.jpg - 738x490 (3:2 ratio) */
    object-position: center 20%;
}

.portfolio-item[data-category="families"] img { /* families.jpg - 738x490 (3:2 ratio) */
    object-position: center 25%;
}

.portfolio-item[data-category="maternity"] img { /* maternity.jpg - 738x490 (3:2 ratio) */
    object-position: center 15%;
}

.portfolio-item[data-category="seniors"] img { /* seniors.jpg - 738x490 (3:2 ratio) */
    object-position: center 30%;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.portfolio-title {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    margin: 0;
}

/* About Section */
.about {
    padding: 8rem 4rem;
    background: var(--dark-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    color: var(--accent-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.about-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: var(--transition-fast);
}

.about-content a:hover {
    color: var(--accent-dim);
    border-bottom-color: var(--accent-dim);
}

.about-image {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

.about-image:hover {
    filter: grayscale(0%) contrast(1);
}

/* About image positioning - about.jpg (1000x664) */
.about-image {
    background-position: center 30%;
}

/* Responsive about image positioning */
@media (max-width: 1024px) {
    .about-image {
        background-position: center 25%;
    }
}

@media (max-width: 768px) {
    .about-image {
        background-position: center 20%;
    }
}

@media (max-width: 480px) {
    .about-image {
        background-position: center 15%;
    }
}

/* Pricing Section */
.pricing {
    padding: 6rem 4rem;
    background: var(--light-bg);
    text-align: center;
}

.pricing h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.pricing-card {
    background: var(--darker-bg);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 2rem;
    color: var(--accent);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
}

.pricing-card li {
    color: var(--accent-dim);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 4rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--accent-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    
    .portfolio-item {
        aspect-ratio: 3/2;
    }
    
    /* Tablet-specific image positioning */
    .portfolio-item[data-category="babies"] img { /* babies */
        object-position: center 25%;
    }
    
    .portfolio-item[data-category="kids"] img { /* kids */
        object-position: center 15%;
    }
    
    .portfolio-item[data-category="families"] img { /* families */
        object-position: center 20%;
    }
    
    .portfolio-item[data-category="maternity"] img { /* maternity */
        object-position: center 10%;
    }
    
    .portfolio-item[data-category="seniors"] img { /* seniors */
        object-position: center 25%;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        padding: 0 1.5rem;
        min-height: 100vh;
    }
    
    .hero-content {
        white-space: normal;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        line-height: 1.1;
        white-space: normal;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .portfolio,
    .about,
    .pricing {
        padding: 3rem 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .portfolio-item {
        aspect-ratio: 3/2 !important;
        min-height: 200px;
        max-height: 300px;
        width: 100%;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
    }
    
    /* Mobile landscape-specific image positioning */
    .portfolio-item[data-category="babies"] img { /* babies */
        object-position: center 20%;
    }
    
    .portfolio-item[data-category="kids"] img { /* kids */
        object-position: center 10%;
    }
    
    .portfolio-item[data-category="families"] img { /* families */
        object-position: center 15%;
    }
    
    .portfolio-item[data-category="maternity"] img { /* maternity */
        object-position: center 5%;
    }
    
    .portfolio-item[data-category="seniors"] img { /* seniors */
        object-position: center 20%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }
    
    .about h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-image {
        aspect-ratio: 16/9;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .mobile-toggle {
        top: 1rem;
        left: 1rem;
        font-size: 1.2rem;
    }
    
    .sidebar {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .logo .tagline {
        font-size: 0.8rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .hero {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
        white-space: normal;
    }
    
    .hero p {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .portfolio,
    .about,
    .pricing {
        padding: 2rem 1rem;
    }
    
    .portfolio h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-item {
        aspect-ratio: 3/4;
        max-height: 400px;
        border-radius: 12px;
    }
    
    /* Small mobile portrait-specific image positioning */
    .portfolio-item[data-category="babies"] img { /* babies */
        object-position: center 15%;
    }
    
    .portfolio-item[data-category="kids"] img { /* kids */
        object-position: center 5%;
    }
    
    .portfolio-item[data-category="families"] img { /* families */
        object-position: center 10%;
    }
    
    .portfolio-item[data-category="maternity"] img { /* maternity */
        object-position: center 0%;
    }
    
    .portfolio-item[data-category="seniors"] img { /* seniors */
        object-position: center 15%;
    }
    
    .about h2,
    .pricing h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-image {
        aspect-ratio: 4/3;
        max-height: 250px;
        border-radius: 12px;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.2rem;
    }
    
    .pricing-card .price {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .portfolio h2,
    .about h2,
    .pricing h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .about p {
        font-size: 0.9rem;
    }
    
    .contact-content p {
        font-size: 1rem;
    }
    
    .contact-email a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
    background: #1a1a1a;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: #ffffff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

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

.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

.portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.3s; }
.portfolio-item:nth-child(5) { animation-delay: 0.4s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}