@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gold-gradient: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    --pink-cream: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --bg-light: #fef5f1;
    --bg-dark: #1a1a2e;
    --card-light: #ffffff;
    --card-dark: #252547;
    --text-light: #2d3436;
    --text-dark: #f5f5f5;
    --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    transition: all 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.loading {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pink-cream);
    z-index: -1;
    opacity: 0.5;
}

body.dark-mode::before {
    background: linear-gradient(135deg, #2d1b69 0%, #1a1a2e 100%);
    opacity: 1;
}

/* ============================================ */
/* GANESHA INTRO SECTION */
/* ============================================ */

.ganesha-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a56, #ff6a88, #feca57);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: introFadeOut 0.8s ease-in-out 4.5s forwards;
}

@keyframes introFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.ganesha-container {
    text-align: center;
    animation: ganeshaEntrance 1.5s ease-out;
}

@keyframes ganeshaEntrance {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ganesha-svg {
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.ganesha-image {
    width: 250px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: ganeshaZoom 1.5s ease-out, float 3s ease-in-out 1.5s infinite;
}

@keyframes ganeshaZoom {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Ganesha Drawing Animation */
.ganesha-svg path,
.ganesha-svg circle,
.ganesha-svg ellipse,
.ganesha-svg line,
.ganesha-svg polyline,
.ganesha-svg polygon {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ganesha-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw 3s ease-in-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Fill animation after drawing */
.ganesha-fill {
    animation: fillColor 0.8s ease-in-out 3s forwards;
}

@keyframes fillColor {
    to {
        fill: #fff;
    }
}

.mantra {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-top: 30px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: mantraFadeIn 1s ease-in-out 2.5s forwards,
               mantraGlow 2s ease-in-out 3.5s infinite;
}

@keyframes mantraFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes mantraGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 40px rgba(255, 255, 255, 0.6);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1),
                     0 0 60px rgba(255, 255, 255, 0.8),
                     0 0 80px rgba(255, 215, 0, 0.6);
    }
}

.blessing-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-top: 15px;
    opacity: 0;
    animation: mantraFadeIn 1s ease-in-out 3s forwards;
}

/* ============================================ */
/* CONTROLS */
/* ============================================ */

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    animation: controlsFadeIn 0.5s ease-in-out 5s forwards;
}

@keyframes controlsFadeIn {
    to {
        opacity: 1;
    }
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.dark-mode .control-btn {
    background: rgba(37, 37, 71, 0.9);
    color: #f5f5f5;
}

.control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */

.container {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 20px;
    opacity: 0;
    animation: containerFadeIn 1s ease-in-out 5s forwards;
}

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

/* ============================================ */
/* GANESHA HEADER */
/* ============================================ */

.ganesha-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.1), rgba(255, 106, 136, 0.1), rgba(254, 202, 87, 0.1));
    border-radius: 25px;
    animation: slideDown 0.8s ease-out;
}

.ganesha-top-image {
    width: 120px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: ganeshaTopZoom 1s ease-out, gentleFloat 4s ease-in-out 1s infinite;
    margin: 0 auto;
    display: block;
}

@keyframes ganeshaTopZoom {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ganesha-blessing {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================ */
/* PROFILE HEADER */
/* ============================================ */

.profile-header {
    background: var(--card-light);
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow-light);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

body.dark-mode .profile-header {
    background: var(--card-dark);
    box-shadow: var(--shadow-dark);
}

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

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 0;
}

.profile-pic {
    width: 180px;
    height: 223px;
    border-radius: 20px;
    object-fit: cover;
    border: 6px solid transparent;
    background: var(--gold-gradient);
    padding: 3px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: profileZoomIn 0.8s ease-out,
               profileGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    display: block;
}

@keyframes profileZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                    0 0 20px rgba(249, 212, 35, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                    0 0 40px rgba(249, 212, 35, 0.6),
                    0 0 60px rgba(255, 78, 80, 0.4);
    }
}

.profile-name {
    font-size: 42px;
    font-weight: 700;
    background: var(--primary-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.profile-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

body.dark-mode .profile-subtitle {
    color: #aaa;
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */

.section {
    background: var(--card-light);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.section.visible {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .section {
    background: var(--card-dark);
    box-shadow: var(--shadow-dark);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

body.dark-mode .section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideIn 0.6s ease-out;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-icon {
    font-size: 32px;
    filter: grayscale(0);
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* ============================================ */
/* INFO GRID & CARDS */
/* ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.info-card:hover::before {
    left: 100%;
}

body.dark-mode .info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.info-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-left-width: 6px;
}

.info-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

body.dark-mode .info-value {
    color: var(--text-dark);
}

/* ============================================ */
/* CAREER SUB-TITLE */
/* ============================================ */

.career-sub-title {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

/* ============================================ */
/* FAMILY SECTION */
/* ============================================ */

.family-list {
    list-style: none;
    padding: 0;
}

.family-item {
    padding: 15px;
    background: linear-gradient(135deg, rgba(249, 212, 35, 0.05) 0%, rgba(255, 78, 80, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.family-item::after {
    content: '❤️';
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.family-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

body.dark-mode .family-item {
    background: linear-gradient(135deg, rgba(249, 212, 35, 0.1) 0%, rgba(255, 78, 80, 0.1) 100%);
}

.family-item:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 8px 25px rgba(249, 212, 35, 0.3);
    background: linear-gradient(135deg, rgba(249, 212, 35, 0.15) 0%, rgba(255, 78, 80, 0.15) 100%);
}

.family-icon {
    font-size: 28px;
    display: inline-block;
    transition: all 0.3s ease;
}

.family-item:hover .family-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 10px rgba(249, 212, 35, 0.6));
}

.family-details {
    flex: 1;
}

.family-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}

.family-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

body.dark-mode .family-name {
    color: var(--text-dark);
}

/* ============================================ */
/* HOBBIES */
/* ============================================ */

.hobby-box {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    padding: 20px;
    border-radius: 15px;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hobby-box::before {
    content: '✨';
    position: absolute;
    top: 10px;
    left: -50px;
    font-size: 24px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0% {
        left: -50px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 50px);
        opacity: 0;
    }
}

.hobby-box:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
}

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

.contact-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateX(15px) scale(1.02);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.contact-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

body.dark-mode .contact-value {
    color: var(--text-dark);
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================ */
/* INSTAGRAM */
/* ============================================ */

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.instagram-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.instagram-btn:hover::before {
    width: 300px;
    height: 300px;
}

.instagram-btn span {
    position: relative;
    z-index: 1;
}

.instagram-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.6);
}

.instagram-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.linkedin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.linkedin-btn:hover::before {
    width: 300px;
    height: 300px;
}

.linkedin-btn span {
    position: relative;
    z-index: 1;
}

.linkedin-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 119, 181, 0.6);
}

.linkedin-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================ */
/* QR CODE */
/* ============================================ */

.qr-container {
    text-align: center;
    margin-top: 20px;
}

.qr-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: qrPulse 3s ease-in-out infinite;
}

@keyframes qrPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6),
                    0 0 30px rgba(245, 87, 108, 0.4);
    }
}

body.dark-mode .qr-wrapper {
    background: #1a1a2e;
}

.qr-wrapper:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.7),
                0 0 40px rgba(245, 87, 108, 0.5);
    animation: none;
}

.qr-code {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    display: block;
    object-fit: contain;
    background: #f5f5f5;
}

.qr-scanner {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #f5576c, transparent);
    animation: scan 2.5s linear infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

@keyframes scan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(250px);
        opacity: 0;
    }
}

.qr-text {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .container {
        margin-top: 100px;
        padding: 15px;
    }

    .controls {
        top: 10px;
        right: 10px;
        flex-direction: column;
    }

    .profile-name {
        font-size: 32px;
    }

    .profile-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .qr-scanner {
        width: 200px;
    }

    @keyframes scan {
        0% {
            transform: translateY(0);
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            transform: translateY(200px);
            opacity: 0;
        }
    }

    .ganesha-svg {
        width: 180px;
        height: 180px;
    }

    .mantra {
        font-size: 28px;
    }

    .blessing-text {
        font-size: 16px;
    }
}

/* ============================================ */
/* UTILITIES */
/* ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .glass-effect {
    background: rgba(37, 37, 71, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

.text-transition {
    animation: textFade 0.3s ease-in-out;
}

@keyframes textFade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================ */
/* SCROLL INDICATOR */
/* ============================================ */

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: scrollIndicatorFade 1s ease-in-out 5.5s forwards,
               bounce 2s ease-in-out 6.5s infinite;
    z-index: 100;
}

@keyframes scrollIndicatorFade {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #667eea;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.35);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Dark mode */
body.dark-mode .gallery-item {
    box-shadow: var(--shadow-dark);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
}

.lightbox-close:hover { opacity: 1; background: rgba(200,0,0,0.85); }

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.8rem;
    padding: 8px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    z-index: 10;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Responsive */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
