/* ---- CSS Custom Properties ---- */
:root {
    /* Background & Surface — brighter dark theme */
    --bg-primary: #111118;
    --bg-secondary: #18181f;
    --bg-card: #201f2a;
    --bg-card-hover: #2a2937;
    --bg-elevated: #252433;

    /* Text */
    --text-primary: #f0eeff;
    --text-secondary: rgba(240, 238, 255, 0.78);
    --text-muted: rgba(240, 238, 255, 0.45);

    /* Accent — Vibrant Purple-Violet */
    --accent: #b89dff;
    --accent-light: #d4c4ff;
    --accent-bg: rgba(184, 157, 255, 0.12);
    --accent-bg-hover: rgba(184, 157, 255, 0.22);

    /* Borders — slightly more visible */
    --border: rgba(255, 255, 255, 0.11);
    --border-hover: rgba(184, 157, 255, 0.35);

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-hand: 'Caveat', cursive;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

/* ---- Utility ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section Base ---- */
.section {
    padding: 80px 0;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* ================================================================
   NAVIGATION — Sticky dark bar with pill CTA
   ================================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 24px;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    gap: 36px;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}


.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.858);
    transition: color 0.25s ease;
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    transition: all 0.25s var(--ease);
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px 10px;
    width: 44px;
    height: 44px;
    z-index: 10002;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-inner {
    max-width: 600px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

.hero-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.hero-handwritten {
    font-family: var(--font-hand);
    font-size: 0.8em;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0;
}

.hero-handwritten2 {
    font-family: var(--font-hand);
    font-size: 1.5em;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 28px;
}

.hero-btn i {
    margin-left: 8px;
    transition: transform 0.25s var(--ease);
}

.hero-btn:hover i {
    transform: translateX(4px);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--accent-bg);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 2px;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ================================================================
   FEATURES / SKILLS SECTION
   ================================================================ */
.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 16px;
    box-shadow: 3px 3px 0 var(--accent-bg);
    transition: transform 0.3s var(--ease);
}

.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card>p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.65;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* ================================================================
   PROJECTS SECTION — Horizontal scrolling cards like Baraa testimonials
   ================================================================ */
.projects-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.projects-marquee {
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.projects-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollProjects 30s linear infinite;
    animation-play-state: running;
}

.projects-track:hover {
    animation-play-state: paused;
}

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.project-card {
    flex-shrink: 0;
    width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.35s var(--ease);
}

.project-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure image doesn't overflow if used */
}

.project-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: var(--accent-bg);
    border-radius: var(--radius-full);
    color: var(--accent-light);
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-stat p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-ctas {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.about-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    width: 300px;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-bg), transparent);
    pointer-events: none;
}

/* ================================================================
   EXPERIENCE SECTION
   ================================================================ */
.experience-section {
    background: var(--bg-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s var(--ease);
}

.experience-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.exp-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.experience-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 3px;
}

.exp-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.experience-card ul {
    list-style: none;
}

.experience-card ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.55;
}

.experience-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-section {
    background: var(--bg-secondary);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease);
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.contact-card i {
    font-size: 1.1rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.contact-card span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ================================================================
   FOOTER — Social buttons with hover colors
   ================================================================ */
.footer {
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.25s var(--ease);
    background: transparent;
}

.social-btn:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================================
   SCROLL ANIMATION — Elements fade in from below
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure projects are visible even without JS animation */
.projects-section .project-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ================================================================
   TOOLS SECTION — Categorised tech logos with hover glow
   ================================================================ */
.tools-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tools-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.tools-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.tools-category:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(184, 157, 255, 0.08);
}

.tools-category:hover::before {
    opacity: 1;
}

.tools-category-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-category-title i {
    font-size: 0.8rem;
    opacity: 0.85;
}

.tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: default;
    transition: transform 0.25s var(--ease-bounce);
}

.tool-item:hover {
    transform: translateY(-4px) scale(1.06);
}

.tool-logo {
    width: 52px;
    height: 52px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tool-item:hover .tool-logo {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 4px 16px rgba(184, 157, 255, 0.2);
}

/* Branded logos keep their own brand color backgrounds */
.tool-logo.tool-logo-branded {
    border: none;
    padding: 8px;
}

.tool-item:hover .tool-logo.tool-logo-branded {
    background: inherit;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(184, 157, 255, 0.3);
    transform: scale(1.05);
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tool-item span {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.25s var(--ease);
    letter-spacing: 0.2px;
    max-width: 64px;
    line-height: 1.3;
}

.tool-item:hover span {
    color: var(--accent-light);
}

/* ================================================================
   RESPONSIVE — Comprehensive Mobile-First System
   ================================================================ */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tools-category {
        padding: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-area {
        order: -1;
    }

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

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 380px;
    }

    .hero-inner {
        max-width: 100%;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        margin: 0 auto;
    }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

    /* ----- Navigation ----- */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* below navbar */
    left: 0;
    width: 100%;

    background: var(--bg-secondary); /* matches your theme */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    gap: 0;
}


    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

   .nav-links.active li a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}


    .nav-links.active li:last-child a {
        border-bottom: none;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

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

    /* ----- Hero ----- */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        gap: 32px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        letter-spacing: -0.5px;
        text-align: center;
    }

    .hero-typed-wrapper {
        justify-content: center;
    }

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

    .hero-desc {
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-btn {
        display: flex;
        width: fit-content;
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 260px;
        margin: 0 auto;
    }

    /* ----- Sections ----- */
    .section {
        padding: 60px 0;
    }

    .section-inner {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        margin-bottom: 32px;
        text-align: center;
    }

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

    /* ----- About ----- */
    .about-text {
        text-align: center;
    }

    .about-text h2 {
        text-align: center !important;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-ctas {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .about-image-placeholder {
        width: 220px;
        height: 280px;
    }

    /* ----- Features / Skills ----- */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ----- Projects Marquee ----- */
    .project-card {
        width: 300px;
        padding: 24px;
    }

    /* ----- Experience ----- */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .experience-card {
        padding: 24px;
    }

    /* ----- Tools ----- */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tools-category {
        padding: 20px;
    }

    .tools-row {
        gap: 14px;
    }

    .tool-logo {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .tool-item span {
        font-size: 0.63rem;
        max-width: 54px;
    }

    /* ----- Contact ----- */
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .contact-content h2 {
        text-align: center !important;
    }

    .contact-card {
        justify-content: center;
    }

    .contact-content .btn {
        width: 100%;
        justify-content: center;
    }

    /* ----- Footer ----- */
    .footer {
        padding: 40px 16px 28px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    /* ----- Buttons ----- */
    .btn {
        padding: 13px 22px;
        font-size: 0.9rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    /* ----- Nav CTA on mobile gets shown inside menu ----- */
    .nav-links.active::after {
        content: "Let's Connect";
        display: block;
        margin-top: 32px;
        padding: 14px 32px;
        background: var(--text-primary);
        color: var(--bg-primary);
        border-radius: var(--radius-full);
        font-weight: 700;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        cursor: pointer;
    }
}

/* ---- Small phones (≤ 420px) ---- */
@media (max-width: 420px) {
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

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

    .hero-image img {
        max-width: 220px;
    }

    .section-inner {
        padding: 0 12px;
    }

    .feature-card,
    .experience-card {
        padding: 20px;
    }

    .post-gallery {
        grid-template-columns: 1fr;
    }

    .post-gallery img {
        aspect-ratio: 16/9;
    }
}

/* ================================================================
   PARTICLE CANVAS — full-screen animated background
   ================================================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

/* Elements use their own z-index and positioning rules */

/* ================================================================
   CURSOR GLOW — follows mouse with gradient orb
   ================================================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.08s ease, top 0.08s ease;
    will-change: left, top;
}

/* ================================================================
   NAME MARQUEE BANNER — Big scrolling "ANAND TAYDE"
   ================================================================ */
.name-banner {
    overflow: hidden;
    background: transparent;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.name-banner::before,
.name-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.name-banner::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.name-banner::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.name-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: nameBannerScroll 18s linear infinite;
    white-space: nowrap;
}

.name-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes nameBannerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.name-marquee-item {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-family: var(--font-main);
    line-height: 1;
    transition: color 0.3s ease;
    cursor: default;
    user-select: none;
}

.name-marquee-item:hover {
    color: var(--accent);
}

.name-marquee-item.name-outline {
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.name-marquee-item.name-outline:hover {
    color: var(--accent);
    -webkit-text-stroke: 2px var(--accent);
}

.name-marquee-dot {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
    animation: rotate360 6s linear infinite;
    display: inline-block;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================================================
   TYPED TEXT — hero role indicator
   ================================================================ */
.hero-typed-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 20px;
    height: 32px;
}

.hero-typed {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.typed-cursor {
    font-size: 1.2rem;
    color: var(--accent);
    animation: blink 0.9s step-end infinite;
    font-weight: 300;
    line-height: 1;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ================================================================
   SHIMMER EFFECT — feature & experience cards
   ================================================================ */
.feature-card,
.experience-card {
    overflow: hidden;
}

.feature-card::after,
.experience-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(167, 139, 250, 0.06) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.experience-card:hover::after {
    opacity: 1;
    animation: shimmerSlide 0.7s ease forwards;
}

@keyframes shimmerSlide {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* ================================================================
   RIPPLE — click ripple on buttons
   ================================================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================================================================
   PAGE LOAD — fade in hero section
   ================================================================ */
.hero-inner {
    animation: heroEntrance 1s var(--ease-bounce) both;
}

.hero-image {
    animation: heroImgEntrance 1.2s var(--ease-bounce) 0.2s both;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes heroImgEntrance {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ================================================================
   STAT NUMBERS — pop-in on load
   ================================================================ */
.stat-item {
    animation: statPop 0.6s var(--ease-bounce) both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes statPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================================
   NAV LOGO — letter wave on hover
   ================================================================ */
.nav-logo {
    transition: letter-spacing 0.3s ease;
}

.nav-logo:hover {
    letter-spacing: 2px;
}

/* ================================================================
   ABOUT IMAGE — floating & glow ring
   ================================================================ */
.about-image-placeholder {
    animation: floatAbout 5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
}

.about-image-placeholder:hover {
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.3);
}

@keyframes floatAbout {

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

    50% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

/* ================================================================
   CONTACT CARDS — slide-in from left
   ================================================================ */
.contact-card {
    transition: all 0.3s var(--ease);
}

/* ================================================================
   SECTION TAG — pulse accent dot before
   ================================================================ */
.section-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* ================================================================
   FOOTER SOCIAL — spin on hover
   ================================================================ */
.social-btn i {
    transition: transform 0.4s var(--ease-bounce);
}

.social-btn:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* ================================================================
   EXPERIENCE CARD EXP ICON — bounce
   ================================================================ */
.exp-icon {
    transition: transform 0.4s var(--ease-bounce);
}

.experience-card:hover .exp-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* ================================================================
   PROJECT CARD — glow border on hover
   ================================================================ */
.project-card:hover {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.15), 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
}

/* ================================================================
   SCROLL PROGRESS BAR — top of page
   ================================================================ */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}


.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.experience-card {

    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.experience-card:hover {
    transform: translateY(-8px);
}

.exp-icon {
    font-size: 24px;
    color: #4f46e5;
    margin-bottom: 12px;
}

.exp-company {
    color: #aaa;
}

.exp-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.experience-card ul {
    padding-left: 18px;
}


.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.achievement-card:hover {
    transform: translateY(-6px);
}

.achievement-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.achievement-content {
    padding: 20px;
}

.achievement-date {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.achievement-link {
    display: inline-block;
    margin-top: 12px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}
/* Hide feature-card2 on phones and tablets */


/* Laptop / Desktop only */
@media (min-width:1024px){

/* Make it behave exactly like feature-card */
.feature-card2{
    display:block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

/* top gradient line */
.feature-card2::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background:linear-gradient(90deg,var(--accent),transparent);
    opacity:0;
    transition:opacity 0.35s var(--ease);
}

/* shimmer layer */
.feature-card2::after{
    content:'';
    position:absolute;
    top:-50%;
    left:-75%;
    width:50%;
    height:200%;
    background:linear-gradient(
        to right,
        transparent 0%,
        rgba(167,139,250,0.06) 50%,
        transparent 100%
    );
    transform:skewX(-20deg);
    opacity:0;
    transition:opacity 0.3s ease;
    pointer-events:none;
}

/* hover animation */
.feature-card2:hover{
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-card2:hover::before{
    opacity:1;
}

.feature-card2:hover::after{
    opacity:1;
    animation: shimmerSlide 0.7s ease forwards;
}

/* icon animation same as original */
.feature-card2:hover .feature-icon{
    transform: rotate(-5deg) scale(1.1);
}

}

/* shimmer animation */
@keyframes shimmerSlide{
    0%{ left:-75%; }
    100%{ left:125%; }
}
