/* CSS Variables & Reset */
:root {
    /* Refined Palette: Sophisticated Pastels & Deep Accents */
    --bg-color: #fdfbf7;
    /* Warm, premium paper white */
    --text-color: #1a1a1c;
    /* Deep onyx for better contrast */
    --secondary-text: #5a5a60;
    /* Muted slate */

    --accent-pink: #f8c8dc;
    /* Softer, more sophisticated pink */
    --accent-mint: #d1f2e5;
    /* Fresh, airy mint */
    --accent-purple: #dfd7f3;
    /* Gentle lavender */
    --accent-gold: #f3e5ab;
    /* Subtle gold for warmth */

    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-image: url('Images/e47f07bf6876518902289c1bd51ec1a7.jpg');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    background-repeat: repeat;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

em {
    font-style: italic;
    font-weight: 400;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: var(--spacing-xs) var(--spacing-lg);
    box-shadow: var(--shadow-soft);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-color);
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff9c4;
    transition: all 0.3s ease;
}

nav a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #fff9c4;
    /* Yellow as requested */
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 6px;
    bottom: 0px;
    left: 0;
    background: #fff9c4;
    opacity: 0.8;
    transition: width 0.3s ease;
    z-index: -1;
    transform: skewX(-10deg);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs for Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.hero-content h1 span {
    display: block;
    font-size: 3rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    font-family: var(--font-heading);
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

.btn.primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    box-shadow: 4px 4px 0px var(--accent-mint);
}

.btn.primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--accent-mint);
}

.btn.primary:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--accent-mint);
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--spacing-xl) var(--spacing-lg) 6rem !important;
    /* Added 6rem padding at bottom for pink background space */
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 15px;
    bottom: 5px;
    left: -10%;
    background-color: var(--accent-mint);
    z-index: -1;
    opacity: 0.5;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* Cursive Logo Styling */
.section-header.hero-header {
    min-height: 85vh;
    /* Restored to take up most of the screen */
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-lg);
}

.hero-logo-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto var(--spacing-md);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    transition: var(--transition-smooth);
}

.hero-logo-img:hover {
    transform: scale(1.02);
}

/* Remove old decorative line - keeping this just in case but modifying target */
.hero-logo-img::after {
    display: none !important;
}

.section-header h2::after {
    display: none !important;
}

.name-part-1 {
    position: relative;
    z-index: 2;
    transform: translateX(-5%);
    /* Slight offset for dynamic feel */
}

.name-part-2 {
    position: relative;
    color: var(--text-color);
    z-index: 1;
    transform: translateX(10%);
    /* Slight offset */
}

/* Visual trick to simulate the swash from the screenshot */
.name-part-1::after {
    content: '';
    position: absolute;
    left: -10%;
    bottom: 0.2em;
    width: 120%;
    height: 0.15em;
    background: var(--text-color);
    z-index: -1;
    border-radius: 50%;
    transform: rotate(-2deg);
    opacity: 0.1;
    /* Subtle underline effect instead of complex SVG swash for now */
    display: none;
    /* Keeping it clean for the font to shine */
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.6rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #fff9c4;
    /* Light yellow */
    color: var(--text-color);
    border-color: #fff9c4;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
    justify-content: center;
}

/* Larger gap for airy feel */

/* Specific styling for staggered grid effect if desired, usually simpler to keep standard grid for functionality */

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    aspect-ratio: 4/5;
    background-color: var(--accent-mint);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .image-wrapper {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    mix-blend-mode: normal;
    opacity: 1;
}

.portfolio-item:hover .image-wrapper img,
.portfolio-item:hover .image-wrapper video {
    transform: scale(1.05);
    opacity: 0.7;
    /* Reveal blue bg */
    mix-blend-mode: multiply;
    /* Tint effect */
    filter: grayscale(20%);
    /* Optional: helps the blue tint pop */
}

.portfolio-item .content {
    text-align: center;
}

.portfolio-item .content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-style: italic;
    font-weight: 700;
    color: #ffffff;
    /* White title as requested */
}

.portfolio-item .content p {
    color: #fff9c4;
    /* Yellow category as requested */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: #fff;
    /* Stark white section */
    position: relative;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Decorative element for about */
.about-section::before {
    /* Keeping the original blob just in case, or we can remove if it conflicts.
       Let's hide it for now to let the new images shine */
    display: none;
}

.about-deco-large-secondary {
    display: none;
    /* Hide old class to be safe, using new divider class instead */
}

/* Ensure text sits on top */
.about-text {
    position: relative;
    z-index: 2;
    transform: none;
    /* Restored to full centered */
}

/* Ensure container allows overflow or has enough room */
.about-container {
    max-width: 1200px;
    /* Increased to accommodate the 1125px header image */
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.about-section {
    padding: 6rem 0 !important;
    /* Added 6rem top/bottom white padding as requested */
    background-color: #fff;
    position: relative;
    overflow-x: hidden;
    margin-bottom: 0;
}

.about-title-deco {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    z-index: 10;
}

.about-title-deco img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: saturate(1.1) opacity(0.9);
    display: block;
    margin: 0 auto;
}

.about-header-img {
    display: block;
    margin: 0 auto !important;
    /* Force zero vertical margin and center */
    max-width: 478px;
    /* Reduced by 15% from 562px */
    width: 100%;
    height: auto;
    z-index: 3;
}

.about-text p {
    font-size: 1.1rem;
    /* Slightly larger as requested */
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    text-align: center;
    /* Ensuring center alignment */
}

.profile-image {
    width: 201px;
    height: 201px;
    border-radius: 0;
    object-fit: cover;
    display: block;
    margin: 0 auto var(--spacing-sm);
    /* Tightened bottom margin for email below it */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg);
    /* Restored vertical spacing */
    text-align: center;
    min-height: 40vh;
    /* Reduced min-height slightly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-content h2 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.email-link,
.contact-info-link {
    font-size: 1.5rem;
    color: #000000;
    /* Black as requested */
    font-family: var(--font-heading);
    font-style: italic;
    display: block;
    /* Ensure they vertical stack */
    margin: 0.5rem auto;
    text-decoration: none;
}

.email-link:hover,
.contact-info-link:hover {
    opacity: 0.7;
}

.social-links {
    margin-top: var(--spacing-md);
    /* Reduced from spacing-lg */
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-deco-bottom {
    display: block;
    width: 100vw;
    max-width: none;
    height: auto;
    opacity: 0.8;
    /* Increased for more vibrance */
    filter: saturate(1.25);
    /* Halved saturation as requested */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -1rem;
    /* Pull up to touch the text even more */
    z-index: 1;
}

.social-links a:hover {
    color: var(--accent-pink);
    /* Or another accent */
}

/* Footer */
footer {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.8rem;
    background-color: #fff;
    /* Ensure it's white to cover any background images */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 4;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        gap: 3rem;
    }

    .hero-logo-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-sm) var(--spacing-md);
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        position: fixed;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        padding: 80px 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav a {
        color: var(--text-color);
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h1 span {
        font-size: 1.5rem;
    }

    .section-header h2,
    .contact-content h2 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .image-wrapper {
        outline-offset: 5px;
        box-shadow: 0 0 0 5px #ffffff, 10px 10px 0px rgba(0, 0, 0, 0.05);
    }

    .portfolio-item:hover .image-wrapper {
        outline-offset: 8px;
        box-shadow: 0 0 0 8px #ffffff, 15px 15px 0px var(--accent-purple);
    }

    .about-header-img {
        max-width: 300px;
    }

    .about-title-deco img {
        width: 90%;
    }

    #modal-gallery-grid {
        grid-template-columns: 1fr;
    }

    .email-link {
        font-size: 1.2rem;
    }

    .contact-info-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 120%;
        margin-left: -10%;
    }

    .section-header.hero-header {
        min-height: 60vh;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* align-items: center; removed to let grid work fully */
}

.modal-title {
    color: var(--text-color);
    font-size: 2rem;
    text-align: center;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.modal-description {
    color: var(--text-color);
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

#modal-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-pink);
}

.gallery-item {
    width: 100%;
    /* margin-bottom: 30px; handled by grid gap */
    text-align: center;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.pdf-download-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: 150px;
}

.pdf-download-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.pdf-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.pdf-download-link span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.gallery-item video {
    outline: none;
}

/* Resume Page Styles */
.resume-page {
    background-color: var(--bg-color);
}

.resume-main {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: var(--spacing-lg);
    background: #ffffff;
    box-shadow: 15px 15px 0px var(--accent-lavender);
    border: 2px solid var(--text-color);
    position: relative;
    z-index: 10;
}

.resume-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px dashed var(--accent-pink);
}

.resume-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resume-contact-info p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.resume-contact-info a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-pink);
}

.resume-section {
    margin-bottom: var(--spacing-lg);
}

.resume-section-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.resume-section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent-mint);
    z-index: -1;
    opacity: 0.6;
    border-radius: 4px;
}

.resume-item {
    margin-bottom: var(--spacing-md);
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.resume-item-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

.resume-date {
    font-weight: 600;
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-subtitle {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.resume-list {
    list-style: none;
    padding-left: 1.5rem;
}

.resume-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.resume-list li::before {
    content: "✦";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-pink);
}

.resume-details {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.resume-additional p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.resume-additional strong {
    color: var(--text-color);
    background-color: var(--accent-purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .resume-main {
        margin: 100px 20px 40px;
        padding: var(--spacing-md);
    }

    .resume-header h1 {
        font-size: 3rem;
    }

    .resume-item-header {
        flex-direction: column;
        gap: 0.2rem;
    }
}