/* ==================== CSS Variables ==================== */
:root {
    /* Colors - Clean & Elegant Palette */
    --color-primary: #FF6B9D;
    --color-primary-dark: #E85D8C;
    --color-secondary: #9B7EBD;
    --color-accent: #6C5CE7;
    --color-accent-2: #00B8A9;
    --color-bg: #FFF5F7;
    --color-bg-alt: #FFFFFF;
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-border: #FED7E2;
    
    /* Typography */
    --font-display: 'Ink Free', 'Caveat', cursive;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --container-padding: 6vw;
    --section-spacing: clamp(80px, 12vw, 160px);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Dimming overlay for background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
    pointer-events: none;
}

/* Dimming overlay for background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==================== Background Decorations ==================== */
.bg-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    border-radius: 50%;
}

.bg-circle-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent-2) 0%, transparent 70%);
    top: 40%;
    right: 5%;
    border-radius: 50%;
}

.bg-line {
    display: none;
}

.paint-stroke {
    display: none;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--color-text) 0%, #1a202c 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.3);
    animation: slideDown 0.6s ease-out;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
}

/* Remove the dimming overlay */
.header::before {
    display: none;
}

/* Ensure header content appears above overlay */
.header-content {
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: clamp(2.5rem, 4vw, 3.5rem);
    height: clamp(2.5rem, 4vw, 3.5rem);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    position: relative;
    -webkit-text-stroke: 1.5px var(--color-primary);
    text-stroke: 1.5px var(--color-primary);
    paint-order: stroke fill;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo::after {
    display: none;
}

.nav {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-left: auto;
}

.nav-link {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    -webkit-text-stroke: 1.5px #000000;
    text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

.contact-link {
    color: white;
    font-weight: 700;
    position: relative;
    cursor: pointer;
}

.email-tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    color: var(--color-text);
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.25);
    border: 2px solid var(--color-primary);
    z-index: 1000;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
    text-transform: none;
    letter-spacing: 0.02em;
}

.email-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.contact-link::after {
    display: none;
}

/* Show tooltip on hover - stays visible when hovering over tooltip */
.contact-link:hover .email-tooltip,
.contact-link.show-tooltip .email-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.email-tooltip:hover {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== Hero Section ==================== */
.hero {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem) 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-label {
    display: inline-block;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-line {
    width: 120px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 1.5rem;
    animation: expandWidth 0.8s ease-out 0.6s both;
    border-radius: 2px;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

/* ==================== About Section ==================== */
.about {
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) 0;
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 0.8vw, 0.5rem);
    align-items: flex-start;
}

.about-header {
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Segoe Script', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.about-text {
    background: var(--color-bg-alt);
    padding: clamp(2.5rem, 4vw, 3.5rem);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.08);
    width: 100%;
    max-width: 100%;
}

.summary-text {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ==================== Work Section ==================== */
.work {
    padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem) 0;
    position: relative;
    z-index: 1;
}

.work-header {
    margin-bottom: 2rem;
}

.work-title {
    font-family: 'Segoe Script', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.work-line {
    width: 120px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 4rem;
}

.gallery-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
}

.gallery-item.show {
    display: block;
    animation: fadeInScale 0.6s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE8F0 0%, #FFF0F5 50%, #FFEBF2 100%);
    aspect-ratio: 1/1;
    cursor: pointer;
    border: 2px solid #2D3748;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.image-wrapper:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    max-width: 100%;
}

/* Prevent image overflow on mobile */
@media (max-width: 768px) {
    .gallery-image {
        object-fit: contain;
        height: 100%;
    }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 107, 157, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.view-icon {
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.image-wrapper:hover .gallery-image {
    transform: scale(1.05);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-wrapper:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

/* ==================== View More Button ==================== */
.view-more-wrapper,
.view-less-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-more-wrapper.hidden,
.view-less-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    display: none;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--color-primary);
    color: white;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary-dark);
    transition: left 0.4s ease;
}

.view-more-btn:hover::before {
    left: 0;
}

.btn-text,
.btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

/* ==================== Lightbox Modal ==================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    display: block;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(135deg, var(--color-text) 0%, #1a202c 100%);
    color: white;
    padding: clamp(1.5rem, 2.5vw, 2rem) 0;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-email {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-email:hover {
    color: var(--color-accent-2);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* ==================== Responsive Design ==================== */

/* Tablet - Medium screens */
@media (max-width: 1024px) {
    :root {
        --container-padding: 5vw;
        --section-spacing: 70px;
    }
    
    .about-header,
    .work-header {
        position: static;
        margin-bottom: 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile - Small screens */
@media (max-width: 768px) {
    :root {
        --container-padding: 5vw;
        --section-spacing: 60px;
    }
    
    .header-content {
        padding: 1.2rem 0;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    /* Mobile: Show email below contact on click/tap */
    .email-tooltip {
        bottom: -70px;
        font-size: 0.75rem;
        padding: 0.8rem 1.2rem;
        max-width: 90vw;
        word-break: break-all;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
    }
    
    .email-tooltip::before {
        left: auto;
        right: 20px;
        transform: translateX(0);
    }
    
    .contact-link:hover .email-tooltip,
    .contact-link.show-tooltip .email-tooltip {
        transform: translateX(0) translateY(0);
    }
    
    .hero {
        padding: 1rem 0 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-label {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-line {
        margin-top: 1.5rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Keep images square on mobile */
    .image-wrapper {
        aspect-ratio: 1/1;
    }
    
    .view-more-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .footer-copyright {
        text-align: left;
    }
    
    .bg-line {
        display: none;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .logo-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .logo-wrapper {
        gap: 0.6rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 1.2rem 0 1.2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-label {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .summary-text {
        font-size: 1rem;
    }
    
    .view-more-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .contact-link::before {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Large desktop - optimize for big screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 3rem;
    }
}
