/* CSS RESET & VARIABLES */
:root {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --secondary: #06b6d4;
    --accent: #a855f7;
    --accent-green: #10b981;

    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY & UTILITIES */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--primary) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono {
    font-family: var(--font-mono);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 10px 10px 10px var(--primary-glow), -10px -10px 10px var(--primary-glow);
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary-glow:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: #ffffff;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.text-align {
    text-align: center;
}

@media (max-width: 576px) {
    .text-align {
        text-align: left;
    }
}

/* ==========================================
   THEME TOGGLE BUTTON STYLES
   ========================================== */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(161, 160, 160, 0.100);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================
   LIGHT MODE (WHITE MODE) OVERRIDES
   ========================================== */
html[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.12);
    --border-glass-hover: rgba(99, 102, 241, 0.5);

    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --secondary: #0891b2;
    --accent: #9333ea;
    --accent-green: #059669;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: #0f172a;
}

html[data-theme="light"] .navbar-custom {
    background: rgba(248, 250, 252, 0.85) !important;
    border-bottom: 1px solid var(--border-glass);
}
html[data-theme="light"] .nav-link-custom:hover {
    background-color: white;
}

html[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, var(--primary) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .stat-number {
    color: #0f172a;
}

html[data-theme="light"] .filter-section {
    background: rgba(248, 250, 252, 0.9);
}

html[data-theme="light"] .filter-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

html[data-theme="light"] .filter-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .tech-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}

html[data-theme="light"] .modal-custom {
    background: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] .modal-content-custom {
    background: #ffffff;
}

html[data-theme="light"] .modal-close-btn {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.95));
}

html[data-theme="light"] .feature-item-card,
html[data-theme="light"] .tech-badge-detail,
html[data-theme="light"] .metric-card {
    background: rgba(0, 0, 0, 0.03);
}


html[data-theme="light"] .btn-outline-glass {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border-color: var(--border-glass);
}

html[data-theme="light"] .btn-outline-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary);
}

html[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

/* HEADER / NAV */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-link-custom {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 70%;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text-main);
    background: rgba(100, 100, 100, 0.377);
}

/* SECTION 1: HERO BANNER */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.1) 40%, rgba(3, 7, 18, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 2;
}

.icon-1 {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 35%;
    right: 12%;
    animation-delay: 1.5s;
    color: var(--secondary);
}

.icon-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
    color: var(--accent);
}

.icon-4 {
    bottom: 15%;
    right: 18%;
    animation-delay: 4.5s;
    color: var(--accent-green);
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 18px;
    }
}

/* SECTION 2: STATS COUNTER */
.stats-section {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.stat-card {
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* SECTION 3: FILTER SYSTEM */
.filter-section {
    padding: 40px 0 20px;
    position: sticky;
    top: 75px;
    z-index: 900;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* 500px किंवा त्यापेक्षा लहान स्क्रीनसाठी Sticky घालवण्यासाठी Media Query */
@media (max-width: 576px) {
    .filter-section {
        position: static !important;
        /* Mobile मध्ये Sticky होणार नाही */
        backdrop-filter: none;
    }
}

/* SECTION 4: PROJECT SHOWCASE CARDS */
.projects-grid-section {
    padding: 80px 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #0d1117;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.project-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.tech-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tech-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.project-card-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

/* CASE STUDY MODAL */
.modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-custom.active {
    display: block;
    opacity: 1;
}

.modal-dialog-custom {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.modal-content-custom {
    position: relative;
    padding: 2.5rem;
    background: #0b0f19;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* CASE STUDY CONTENT STYLING */
.case-study-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.cs-section {
    margin-bottom: 3rem;
}

.cs-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.cs-section-title i {
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-item-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item-card i {
    font-size: 1.25rem;
    color: var(--secondary);
}

.tech-badge-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.tech-badge-detail i {
    font-size: 1.5rem;
    color: var(--primary);
}

.timeline-process {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-glass);
}

.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* LIGHTBOX GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    height: 160px;
    background: #000;
    border: 1px solid var(--border-glass);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* METRICS CIRCULAR INDICATOR */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.metric-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* SECTION 6: GITHUB SHOWCASE */
.github-section {
    padding: 80px 0;
    position: relative;
}

.repo-card {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.repo-title {
    font-size: 1.1rem;
    color: #818cf8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 4px;
    padding: 1.5rem;
    overflow-x: auto;
}

.heatmap-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.heatmap-cell.lvl-1 {
    background: #0e4429;
}

.heatmap-cell.lvl-2 {
    background: #006d32;
}

.heatmap-cell.lvl-3 {
    background: #26a641;
}

.heatmap-cell.lvl-4 {
    background: #39d353;
}

/* SECTION 7: DEVELOPMENT WORKFLOW */
.workflow-section {
    padding: 80px 0;
}

.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    position: relative;
    margin-top: 2rem;
}

.workflow-node {
    text-align: center;
    padding: 1.25rem 0.75rem;
    position: relative;
}

.workflow-node-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--primary);
}

/* SECTION 8: CTA SECTION */
.cta-section {
    padding: 100px 0;
    position: relative;
}

.cta-box {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.95));
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* FOOTER */
.footer-custom {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 416px) {
    .margin-btn {
        margin-bottom: 0.6rem;
        margin-left: 0.6rem;
        /* Adjust the value as needed */
    }
}

/* LIGHTBOX POPUP */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

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

    .hero-section {
        padding: 140px 0 60px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-icon {
        display: none;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-content-custom {
        padding: 1.5rem;
    }

    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Back to Top Professional Styling */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    border: none;
    outline: none;
    background: #2563eb;
    /* Primary accent blue color */
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
}

#backToTop:hover {
    /* Darker shade on hover */
    box-shadow: 0 6px 18px rgb(45, 73, 134), -0 -6px 18px rgba(45, 73, 134);
}

.fa-arrow-up {
    animation-name: bounce;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes bounce {
    0% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* Scroll zalyavar button show hoil */
#backToTop.show {
    opacity: 1;
    visibility: visible;
}