/* ===== CSS Variables & Design System ===== */
:root {
    /* Colors - Deep, Premium Palette */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    --bg-primary: #050507;
    --bg-secondary: #0a0a0f;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-accent: #818cf8;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Animation Curves */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Re-enabled custom cursor for premium feel */
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    /* Increased to ensure it's above modals (z-9999) */
    pointer-events: none;
    transform: translate(-50%, -50%);
    /* Center the cursor on the mouse point */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 1rem 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(5, 5, 7, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s;
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatBlob 10s infinite alternate;
    z-index: -1;
}

.hero::before {
    background: radial-gradient(circle, #4f46e5, transparent 70%);
    top: -20%;
    left: -20%;
}

.hero::after {
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: -20%;
    right: -20%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.2s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.4s;
}

/* Magnetic Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.6s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    mix-blend-mode: difference;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    color: white;
    opacity: 0.8;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: white;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 8rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--glass-highlight);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Masonry-style Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    /* Portrait aspect ratio for style */
    cursor: none;
    transition: filter 0.3s;
    /* Removed transform transition */
    will-change: transform;
    /* Optimize for performance */
}

.gallery-item:nth-child(even) {
    transform: translateY(30px);
    /* Staggered look */
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-10px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* Like Button */
.like-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 20;
    border: none;
    cursor: pointer;
    color: white;
}

.gallery-item:hover .like-btn {
    opacity: 1;
    transform: translateY(0);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.like-btn.liked {
    background: #ec4899;
    color: white;
}

.like-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ec4899;
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== About Section ===== */
.about-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.5s;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.passion-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.passion-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

/* ===== Support Section ===== */
.support-section {
    padding: 8rem 2rem;
    text-align: center;
}

.support-container {
    max-width: 800px;
    margin: 0 auto;
}

.tip-amounts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tip-amount {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text */
    transition: all 0.3s var(--ease-elastic);
    cursor: pointer;
}

.tip-amount:hover,
.tip-amount.selected {
    background: var(--primary-gradient);
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.custom-amount {
    margin-bottom: 1rem;
    text-align: left;
}

.custom-amount label,
.message-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.custom-amount input,
.message-box textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.custom-amount input:focus,
.message-box textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-accent);
    outline: none;
}

.tip-submit-btn {
    margin-top: 2rem;
    width: 100%;
    padding: 1.2rem;
    background: white;
    color: black;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #0a0a0f;
    border-radius: 20px;
    padding: 2rem;
    z-index: 10;
    border: 1px solid var(--glass-border);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-image-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    padding-right: 1rem;
    overflow-y: auto;
    height: 100%;
}

.modal-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exif-data {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exif-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exif-value {
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 30;
    border: none;
    font-size: 1.5rem;
    color: white;
}

.modal-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

/* Modal Nav Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    font-size: 1.5rem;
}

.modal-nav-btn:hover {
    background: white;
    color: black;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem 1.5rem;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .modal-image-container {
        min-height: 300px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        width: 95%;
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        /* Mobile menu logic needed in JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0f;
        padding: 2rem;
        gap: 1rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Disable custom cursor on touch devices */
    *,
    *::before,
    *::after {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ===== Footer & Social Improvements ===== */
.footer {
    background: #050507;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 4rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-display);
}

.footer-section p {
    color: var(--text-secondary);
}

.social-links-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.social-card.instagram:hover {
    border-color: #ec4899;
}

.social-card.facebook:hover {
    border-color: #3b82f6;
}

.social-icon {
    font-size: 1.5rem;
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-info .platform {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-info .handle {
    font-weight: 600;
    color: white;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}