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

:root {
    --primary: #00d4ff;
    --secondary: #0080ff;
    --accent: #00ffff;
    --dark-bg: #0a0e27;
    --dark-card: #111827;
    --dark-card-hover: #1a2332;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    --gradient-2: linear-gradient(135deg, #0080ff 0%, #00ffff 100%);
    --gradient-3: linear-gradient(135deg, #00ffff 0%, #00d4ff 100%);
}

:root[data-theme="light"] {
    --dark-bg: #f8fafc;
    --dark-card: #ffffff;
    --dark-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-dim: #475569;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark-bg);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #111827 50%, #1a2332 100%);
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2) {
    animation-delay: -2s;
}

.particle:nth-child(3) {
    animation-delay: -4s;
}

.particle:nth-child(4) {
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(10px);
    }
}

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

.glitch {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    animation: glitchText 5s infinite;
}

@keyframes glitchText {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

.tagline {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.typed-text {
    border-right: 2px solid var(--accent);
    animation: typing 3s steps(30) 1s 1 normal both;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-location {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    position: relative;
    padding: 1.2rem 3rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover .cta-glow {
    animation: rotate 2s linear infinite;
    opacity: 1;
}

.view-all-btn {
    background: var(--gradient-2);
    border: 2px solid var(--primary);
}

.view-all-btn:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.6);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.title-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-1);
    max-width: 200px;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: all 0.5s;
}

.skill-card:hover::before {
    left: 100%;
    opacity: 0.1;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.skill-card[data-delay="0"] { animation-delay: 0s; }
.skill-card[data-delay="1"] { animation-delay: 0.2s; }
.skill-card[data-delay="2"] { animation-delay: 0.4s; }
.skill-card[data-delay="3"] { animation-delay: 0.6s; }

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

.skill-icon {
    margin-bottom: 1.5rem;
}

.circle-anim {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 2s ease forwards;
}

.skill-card:hover .circle-anim {
    animation: drawCircle 1s ease forwards;
}

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

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1s ease;
    animation: progressGlow 2s ease infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--accent);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s;
    position: relative;
}

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
}

.project-header {
    background: var(--gradient-1);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-header::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: left 0.5s;
}

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

.project-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
}

.tech-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.about-card p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.about-card:hover .highlight::after {
    transform: scaleX(1);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--dark-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    min-height: 180px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.01);
}

.form-group textarea:hover {
    border-color: var(--accent);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.char-counter {
    margin-top: 0.5rem;
    text-align: right;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.char-counter.warning {
    color: #fbbf24;
}

.char-counter.error {
    color: #ef4444;
}

#charCount {
    font-weight: 600;
    color: var(--primary);
}

.submit-btn {
    position: relative;
    padding: 1.3rem 3rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.submit-btn:active {
    transform: translateY(-2px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s;
}

.submit-btn:hover .btn-glow {
    width: 400px;
    height: 400px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: var(--dark-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-link:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
}

.contact-link:active {
    transform: translateY(-4px) scale(1.02);
}

.link-icon {
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.contact-link:hover .link-icon {
    transform: scale(1.2) rotate(10deg);
}

.link-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s;
}

.contact-link:hover .link-ripple {
    transform: translate(-50%, -50%) scale(1.5);
}

/* ===== CAROUSEL & FILTERS & UTILS ===== */
/* Moved out of media query for global access */

.carousel-container-inline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-wrapper-inline {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track-inline {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.carousel-slide-inline {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0.5rem;
}

.project-card-carousel {
    background: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    height: 100%;
}

.project-card-carousel:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.project-card-carousel .project-header {
    background: var(--gradient-1);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-card-carousel .project-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.project-card-carousel .project-content {
    padding: 2rem;
}

.project-card-carousel .project-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card-carousel .project-content p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary);
}

.indicator:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Filter Styles */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--dark-card);
    color: var(--text);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    border-color: var(--primary);
}

/* Theme Toggle Buttons */
.theme-toggles {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

#white-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#white-screen-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Visit Counter */
.visit-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.8rem;
    color: var(--text-dim);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-card);
    color: var(--text-dim);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    text-decoration: underline;
}

.footer-line {
    width: 100px;
    height: 2px;
    background: var(--gradient-1);
    margin: 1rem auto 0;
}





/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .carousel-slide-inline {
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
        padding: 2rem 0;
        border-bottom: 2px solid var(--primary);
    }
    .contact-links {
        flex-direction: column;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

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

    .title-line {
        max-width: 50px;
    }

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

    .carousel-container-inline {
        padding: 0 60px;
    }

    .carousel-slide-inline {
        min-width: 100%;
        padding: 0.5rem; /* Add some padding if needed, or keep it consistent */
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

        /* Filter Styles */
    .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

    .filter-btn {
        background: var(--dark-card);
        color: var(--text);
        border: 1px solid rgba(0, 212, 255, 0.2);
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
        font-size: 1rem;
        position: relative;
        z-index: 10;
    }

    .filter-btn:hover, .filter-btn.active {
        background: var(--primary);
        color: #000; /* Contrast text on primary color */
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
        border-color: var(--primary);
    }

    /* Theme Toggle Buttons */
    .theme-toggles {
        display: flex;
        gap: 10px;
        margin-left: 20px;
    }

    .theme-btn {
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .theme-btn:hover {
        background: rgba(0, 212, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    }

    #white-screen-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        z-index: 99999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.5s;
    }

    #white-screen-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Visit Counter */
    .visit-counter {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: rgba(17, 24, 39, 0.8);
        backdrop-filter: blur(5px);
        padding: 8px 15px;
        border-radius: 20px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        font-size: 0.8rem;
        color: var(--text-dim);
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Override media queries that might conflict with single slide */
    @media (max-width: 1024px) {
        .carousel-slide-inline {
            min-width: 100%;
        }
    }


    .about-card {
        padding: 2rem;
    }

    .contact-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

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

    .carousel-container-inline {
        padding: 0 50px;

    }

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