/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #0d0d11;
    --bg-secondary: #16161e;
    --bg-card: #1f1f28;
    /* Slightly lighter for cards */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #8b5cf6;
    /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --nav-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-color: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}


/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    height: var(--nav-height);
    background: rgba(13, 13, 17, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

[data-theme="light"] .logo {
    color: var(--text-primary);
}

.logo .accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.btn-nav {
    padding: 8px 24px;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: var(--accent-primary) !important;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Menu Active State (Hamburger to X) */
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

[data-theme="light"] .menu-toggle span {
    background: var(--text-primary);
}

/* Menu Active State (Hamburger to X) */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

#theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

[data-theme="light"] #theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
    background: var(--bg-card);
    transform: rotate(15deg);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    padding-bottom: 50px;
    overflow: hidden;
}



.hero-content {
    z-index: 2;
    /* Removed max-width constraints as grid handles it */
}

.hero .greeting {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(to right, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Removed .hero-image styles as image is gone from Hero */

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-blob {
    width: 380px;
    height: 380px;
    background: var(--bg-card);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: blob-bounce 8s infinite ease-in-out;
    display: flex;
    /* Placeholder center */
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    /* Placeholder icon size */
    color: var(--text-secondary);
}

.profile-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes blob-bounce {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.hero-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-socials a:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 600;
    border-right: 3px solid var(--accent-primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 0%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(13, 13, 17, 0) 70%);
    transform: translate(0, -50%);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

/* Using .profile-blob in About section now */
.about-grid .profile-blob {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    /* Reuse Hero blob styles */
    background: var(--bg-card);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: blob-bounce 8s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-secondary);
}

.about-grid .profile-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-meta {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.meta-item i {
    color: var(--accent-primary);
}

/* =========================================
   5. UNIVERSAL TABS & GRIDS
   ========================================= */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-nav {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

[data-theme="light"] .tab-nav {
    border-color: rgba(0, 0, 0, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--accent-primary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Grids */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Filtering Animations */
.hidden {
    display: none !important;
}

/* =========================================
   6. CARDS (Unified)
   ========================================= */
.skill-card,
.project-card,
.exp-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .exp-card {
    border-color: rgba(0, 0, 0, 0.05);
}

.skill-card:hover,
.project-card:hover,
.exp-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.skill-card {
    padding: 30px;
    text-align: center;
    align-items: center;
}

.skill-card .icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover .icon {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.skill-card h3,
.project-info h3,
.exp-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-card p,
.project-info p,
.exp-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Software Skills (Minimal) */
/* Software Skills (Premium Redesign) */
/* Software Skills (Redesign - Reference Match) */
.tech-stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* Gap handled by translation */
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    /* Slightly tighter radius */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 160px;
    /* Fixed height for consistent alignment */
}

[data-theme="light"] .tech-stack-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tech-stack-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--brand-color), transparent 60%);
    opacity: 0.05;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tech-icon-box {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size removed */
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: none;
    transform: translateY(10px);
}

.tech-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: inherit;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 10px;
    position: absolute;
    bottom: 25px;
}

/* Hover Effects */
.tech-stack-item:hover,
.tech-stack-item:focus,
.tech-stack-item:focus-within {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    outline: none;
    /* Remove default browser outline as we have custom styles */
}

[data-theme="light"] .tech-stack-item:hover,
[data-theme="light"] .tech-stack-item:focus,
[data-theme="light"] .tech-stack-item:focus-within {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.tech-stack-item:hover::before,
.tech-stack-item:focus::before,
.tech-stack-item:focus-within::before {
    opacity: 0.1;
}

.tech-stack-item:hover .tech-icon-box,
.tech-stack-item:focus .tech-icon-box,
.tech-stack-item:focus-within .tech-icon-box {
    color: var(--brand-color);
    filter: grayscale(0%);
    transform: translateY(-15px);
    /* Move up to make room for name */
    text-shadow: 0 0 20px var(--brand-color);
}

.tech-stack-item:hover .tech-name,
.tech-stack-item:focus .tech-name,
.tech-stack-item:focus-within .tech-name {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Interaction (Always Visible) */
@media (hover: none) {
    .tech-stack-item {
        /* No hover transforms needed as base state */
    }

    .tech-icon-box {
        /* Static position for mobile */
        transform: translateY(-10px);
        filter: none;
        /* font-size removed */
    }

    .tech-name {
        /* Always clear and visible */
        opacity: 1;
        transform: translateY(0);
        bottom: 20px;
        position: absolute;
    }

    /* Interactive feedback on tap */
    .tech-stack-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Projects Specifics */
/* .project-img {
    height: 100%;
    width: 100%;
    
    background-color: #2a2a35;
    position: relative;
    overflow: hidden;
} */

.project-img {
    height: 230px;          /* fixed image height */
    width: 100%;
    background-color: #2a2a35;
    position: relative;
    overflow: hidden;
}

.project-img img {
    height: 100%;
    width: 100%;
    
    object-fit: cover;     /* 🔥 this makes image cover */
    display: block;
    margin: 0 auto;
}


.project-img .img-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

/* View All Button */
.view-all-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    width: 100%;
}

.view-all-container.hidden {
    display: none;
}

/* Hidden Items for Expansion */
.hidden-item {
    display: none;
}

/* Animation for sliding down/appearing */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.revealed {
    display: flex;
    /* Restore flex display */
    animation: slideDownFade 0.5s ease forwards;
}

.project-img.upcoming {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.btn-sm {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    /* Reset for button elements */
    cursor: pointer;
    /* Reset for button elements */
    font-family: var(--font-body);
    /* Reset for button elements */
    transition: var(--transition);
}

.btn-sm.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Custom tweak for View All if needed, or just rely on btn-sm */
.view-all-btn-custom {
    font-size: 1rem;
    /* Slightly larger for main action? Keep same as requested? Let's keep 0.9rem to be EXACT match or maybe 1rem if it's standalone. Requested EXACT match. */
    font-size: 0.9rem;
}

.view-all-btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .btn-sm.secondary {
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-sm.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

/* Experience Specifics */
.exp-card {
    padding: 30px;
    align-items: flex-start;
}

.exp-card .date {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.exp-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: rgba(31, 31, 40, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .contact-wrapper {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.social-links-big {
    margin-top: 3rem;
    display: flex;
    gap: 15px;
}

.social-links-big a {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

[data-theme="light"] .social-links-big a {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

.social-links-big a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    padding: 18px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.accent-text {
    color: var(--accent-secondary);
}

/* =========================================
   9. UTILS & ANIMATIONS
   ========================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 3rem auto;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
    display: block;
    width: fit-content;
}

.bg-darker {
    background-color: var(--bg-secondary);
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-primary);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }

    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

.fade-up,
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    transform: translateY(0);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   10. MOBILE RESPONSIVENESS (POLISHED)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .img-placeholder {
        height: 320px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        /* Stack on tablet/mobile */
        padding-top: 50px;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        order: 2;
        /* Image top or bottom? Standard is text top usually, but let's see. Let's keep text top. */
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 2;
        margin-bottom: 30px;
    }

    .profile-blob {
        width: 300px;
        height: 300px;
    }

    .hero-socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        /* Full width on mobile for better touch targets */
        max-width: 300px;
        height: calc(100vh - var(--nav-height));
        background: rgba(22, 22, 30, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 50px 30px;
        align-items: center;
        /* Center items */
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    /* Force 1 column on mobile for cleaner look */
    .skills-grid,
    .projects-grid,
    .exp-grid {
        grid-template-columns: 1fr;
    }

    /* Exception: Software Skills 2-column grid */
    .skills-grid.software-mode {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .skills-grid.software-mode .software-skill {
        height: 140px;
        padding: 20px;
    }

    .skills-grid.software-mode .software-skill i {
        font-size: 3.5rem;
        /* ~56px */
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Tabs on Mobile */
    .tab-nav {
        width: 100%;
        padding: 6px;
        gap: 8px;
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 15px;
    }

    .tab-btn {
        flex-shrink: 0;
        width: 120px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Adjust container padding to prevent edge touching */
    .container {
        padding: 0 20px;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }

    /* Cards padding */
    .skill-card,
    .project-card,
    .exp-card {
        padding: 25px 20px;
    }

    .footer p {
        font-size: 0.8rem;
    }
      .tab-nav {
    gap: 0;                
    padding: 4px;          
    flex-wrap: nowrap;      
  }

  .tab-btn {
    flex: 1;              
    padding: 8px 0;         
    font-size: 0.8rem;      
    text-align: center;
  }
}

/* Mobile Tech Stack Grid Override */
@media (max-width: 768px) {

    /* Exception: Software Skills 2-column grid */
    .skills-grid.software-mode {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skills-grid.software-mode .tech-stack-item {
        padding: 20px;
    }

    .skills-grid.software-mode .tech-icon-box {
        width: 85px;
        height: 85px;
        /* font-size removed */
    }
}