/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Aesthetic Color Palette */
    --bg-primary: #0d0d0d;
    --bg-secondary: #151521;
    --bg-card: rgba(25, 25, 35, 0.6);
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #808090;
    --accent-purple: #8b5cf6;
    --accent-violet: #a855f7;
    --accent-blue: #6366f1;
    --border-color: rgba(139, 92, 246, 0.15);
    --glow-purple: rgba(139, 92, 246, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-purple);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--glow-purple);
}

/* ==========================================
   HERO SECTION - Tighter Spacing
   ========================================== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem 2rem 3rem;
    position: relative;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg-primary) 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.profile-photo {
    width: 200px;   /* increased from 150px */
    height: 200px;  /* increased from 150px */
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-violet) 100%);
    padding: 3px;
    box-shadow: 0 0 60px var(--glow-purple); /* optional: make glow bigger for bigger image */
    animation: float 3s ease-in-out infinite;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-violet) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

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

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.social-btn:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--glow-purple);
}

/* ==========================================
   SECTIONS - Tighter Spacing
   ========================================== */
.about, .projects, .contact, .tech-stack {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}




/* ==========================================
   UPDATED ABOUT SECTION - HORIZONTAL CARDS
   ========================================== */

/* ==========================================
   SECTIONS - Tighter Spacing
   ========================================== */
.about, .projects, .contact, .tech-stack {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}


.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    background: rgba(25, 25, 35, 0.8);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px currentColor);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.about-card:hover h3 {
    color: var(--accent-purple);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}



/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    background: rgba(15, 15, 25, 0.35);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 1);
    padding: 40px;
    max-width: 1150px;
    margin: 50px auto;
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: rotate(90deg);
}

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

.modal-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-header .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px currentColor);
}

.modal-description {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-width: 90%; 
    }

    .modal-header h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   GALLERY GRID
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on smaller screens */
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;  /* 1 column on mobile */
    }
}


/* Update your .gallery-item styles */
.gallery-item {
    background: rgba(30, 30, 45, 0.80);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all items same height */
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.gallery-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.gallery-item h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem; /* Fixed height for titles */
}

.gallery-item p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 2.7rem; /* Fixed height for descriptions */
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto; /* Push badge to bottom */
    margin-bottom: 1rem;
}

/* Ensure media grid stays at bottom */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: auto; /* Push to bottom */
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* ==========================================
   PROJECTS
   ========================================== */
.projects {
    background: var(--bg-secondary);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.25);
    border-color: var(--accent-purple);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.status-badge {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}




/* ==========================================
   TECH STACK
   ========================================== */
.tech-stack {
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 85px;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-violet) 100%);
    transition: width 0.4s ease;
}

.tech-card:hover::after {
    width: 100%;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
    background: rgba(30, 30, 45, 0.7);
}

.tech-icon {
    font-size: 2.2rem;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px currentColor);
}

.tech-card:hover .tech-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px currentColor) drop-shadow(0 0 25px currentColor);
    opacity: 1;
}

.tech-icon.html {
    color: #E34F26;
}

.tech-icon.css {
    color: #1572B6;
}

.tech-icon.javascript {
    color: #F7DF1E;
}

.tech-icon.python {
    color: #3776AB;
}

.tech-icon.java {
    color: #007396;
}

.tech-icon.c-lang {
    color: #A8B9CC;
}

.tech-content {
    flex: 1;
}

.tech-content h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tech-card:hover .tech-content h3 {
    color: var(--accent-purple);
}

.tech-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    background: var(--bg-secondary);
    text-align: center;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 1.5rem auto;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--glow-purple);
}

.contact-btn:hover {    
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
}

.pro-tip {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pro-tip kbd {
    background: var(--bg-card);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-family: monospace;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-primary);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ==========================================
   MEDIA GALLERY STYLES (NEW)
   ========================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* ← 2 columns side by side */
    gap: 0.8rem;  /* ← Smaller gap between items */
    margin-top: 1rem;  /* ← Less top margin */
    padding-top: 1rem;  /* ← Less top padding */
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover {
    border-color: rgba(139, 92, 246, 0.8);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.media-item:hover img,
.media-item:hover video {
    transform: scale(1.1);
}

.media-type {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ==========================================
   LIGHTBOX STYLES (NEW)
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.prev {
    left: 20px;
}

.lightbox-btn.next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 17px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
    font-weight: 1000;
}

.lightbox-close:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.7);
    color: #e9d5ff;
    transform: rotate(90deg) ;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}   

/* ==========================================
   ART GALLERY STYLES - ADD THIS SECTION
   Add this RIGHT AFTER the "LIGHTBOX STYLES" section
   and BEFORE the "RESPONSIVE DESIGN" section
   ========================================== */

/* Art Gallery Grid */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Individual Art Card */
.art-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    background: rgba(25, 25, 35, 0.8);
}

/* Art Image Container */
.art-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.art-card:hover .art-image img {
    transform: scale(1.08);
}

/* Hover Overlay Effect */
.art-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.art-card:hover .art-hover-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.view-icon {
    font-size: 2.5rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.art-card:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

/* Art Info Section */
.art-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-info h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.art-card:hover .art-info h4 {
    color: var(--accent-purple);
}

.art-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design for Art Gallery */
@media (max-width: 1024px) {
    .art-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .art-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .art-info {
        padding: 1.2rem;
    }

    .art-info h4 {
        font-size: 1.1rem;
    }

    .art-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .art-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .art-image {
        aspect-ratio: 16/10;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 85vh;
        padding: 5rem 1.5rem 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about, .projects, .contact, .tech-stack {
        padding: 3rem 1.5rem;
    }

    .about-cards {
        grid-template-columns: 1fr;  /* Stack vertically on mobile */
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .about-card-wrapper {
        max-width: 400px;  /* Limit width on mobile */
        margin: 0 auto;
    }
    
    .about-card {
        padding: 1.5rem 1.2rem;
    }
    
    .card-icon {
        font-size: 2.5rem;  /* Slightly smaller on mobile */
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
    
    .about-card p {
        font-size: 0.85rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-card {
        height: 75px;
        padding: 0.8rem 1rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-btn.prev {
        left: 10px;
    }

    .lightbox-btn.next {
        right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* ==========================================
   BOOKS MODAL SECTION STYLES
   ADD THIS TO THE BOTTOM OF YOUR style.css FILE
   ========================================== */

/* Book Section Container */
.book-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.book-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Section Title with Icons */
.book-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.book-section-title:hover {
    transform: translateX(5px);
}

.section-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Books Grid Layout */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.2rem;
}

/* Individual Book Item */
.book-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 2/3;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Hover Effect with Smooth Animation */
.book-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    z-index: 10;
}

.book-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Book Overlay on Hover */
.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.book-item:hover .book-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Magnifying Glass Icon */
.view-icon {
    font-size: 2.5rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.book-item:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

/* Currently Reading Special Styling */
.currently-reading {
    border-color: rgba(251, 191, 36, 0.4);
    animation: readingGlow 3s ease-in-out infinite;
}

@keyframes readingGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    }
}

.currently-reading:hover {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}

/* Reading Badge */
.reading-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design for Books Modal */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .book-section-title {
        font-size: 1.3rem;
    }

    .section-icon {
        font-size: 1.5rem;
    }

    .book-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .book-item:hover {
        transform: translateY(-8px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .book-section-title {
        font-size: 1.2rem;
    }

    .view-icon {
        font-size: 2rem;
    }

    .reading-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Loading Animation for Book Images */
.book-item img {
    background: linear-gradient(
        90deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(139, 92, 246, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.book-item img[src] {
    animation: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

video {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
