/* ============================================
   AYUSH GURJAR — PORTFOLIO STYLESHEET
   Premium Dark Theme with Professional Animations
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #6b6b80;

    /* Accent */
    --accent-1: #c9a227;
    --accent-2: #e8b93c;
    --accent-gradient: linear-gradient(135deg, #c9a227, #e8b93c, #f0c94d);
    --accent-glow: rgba(201, 162, 39, 0.25);

    /* Highlight colors */
    --cyan: #22d3ee;
    --purple: #a78bfa;
    --emerald: #34d399;
    --rose: #f472b6;
    --amber: #fbbf24;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.3s var(--ease-out-quart);
    --transition-slow: 0.6s var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-secondary);
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-1);
    color: var(--bg-primary);
}

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

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

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* === Particle Canvas === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* === Layout === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 14px 40px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(16, 16, 24, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 8px;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid var(--border-subtle);
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.mobile-link:hover {
    color: var(--accent-2);
    padding-left: 12px;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.2);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--emerald);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--emerald); }
    50% { opacity: 0.6; box-shadow: 0 0 16px var(--emerald); }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.name-line {
    display: block;
}

.name-line.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.title-divider {
    color: var(--accent-1);
    margin: 0 6px;
    opacity: 0.6;
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-color: var(--accent-1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* === Scroll Indicator === */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 1; height: 80px; }
}

.hero-scroll-indicator span {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* === Floating Elements === */
.hero-float-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-el {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatGentle 6s ease-in-out infinite;
}

.float-el-1 { top: 20%; left: 10%; animation-delay: 0s; }
.float-el-2 { top: 15%; right: 15%; animation-delay: 1.5s; }
.float-el-3 { bottom: 25%; left: 15%; animation-delay: 3s; }
.float-el-4 { bottom: 30%; right: 10%; animation-delay: 4.5s; }

@keyframes floatGentle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(3deg); }
}

/* === Section Headers === */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 500px;
}

.section-header {
    margin-bottom: 64px;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-para {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

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

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

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.status-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.status-icon {
    font-size: 1.1rem;
}

/* === Exploring Card === */
.exploring-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.exploring-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.exploring-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.exploring-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 12px var(--emerald);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 8px var(--emerald); }
    50% { box-shadow: 0 0 20px var(--emerald), 0 0 40px rgba(52, 211, 153, 0.3); }
}

.exploring-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exploring-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.exploring-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateX(6px);
    color: var(--text-primary);
}

.explore-icon {
    font-size: 1.25rem;
}

/* === Projects Section === */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-slow);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.project-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 1;
}

.project-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 162, 39, 0.03));
    border-color: rgba(201, 162, 39, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-featured {
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(52, 211, 153, 0.04);
    border: 1px solid rgba(52, 211, 153, 0.1);
    border-radius: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--emerald);
    font-weight: 500;
}

.highlight-item svg {
    flex-shrink: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.project-card:hover .tag {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.project-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-2);
    transition: all var(--transition-base);
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.project-link:hover {
    gap: 12px;
    color: var(--accent-1);
}

/* === Skills Section === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.skill-category:hover::after {
    transform: scaleX(1);
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-cat-icon {
    font-size: 1.5rem;
}

.skill-cat-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.skill-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
}

.skill-tag:hover {
    border-color: var(--tag-color, var(--accent-1));
    color: var(--tag-color, var(--accent-2));
    background: color-mix(in srgb, var(--tag-color, var(--accent-1)) 8%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--tag-color, var(--accent-1)) 15%, transparent);
}

/* === Workflow Section === */
.workflow-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-line {
    position: absolute;
    top: 68px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-subtle);
    z-index: 0;
}

.workflow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 1.5s var(--ease-out-expo);
}

.workflow-timeline.animated .workflow-line::after {
    width: 100%;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
}

.workflow-timeline.animated .workflow-step {
    opacity: 1;
    transform: translateY(0);
}

.workflow-step:nth-child(2) { transition-delay: 0.1s; }
.workflow-step:nth-child(3) { transition-delay: 0.3s; }
.workflow-step:nth-child(4) { transition-delay: 0.5s; }
.workflow-step:nth-child(5) { transition-delay: 0.7s; }
.workflow-step:nth-child(6) { transition-delay: 0.9s; }

.step-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.workflow-timeline.animated .step-node {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

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

.step-content h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Achievements Section === */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.achieve-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 40%,
        rgba(201, 162, 39, 0.05) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.achievement-card:hover .achieve-shine {
    transform: translateX(100%);
}

.achieve-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achieve-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.achieve-org {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.achieve-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    font-weight: 500;
}

/* === Contact Section === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-card-icon {
    background: rgba(201, 162, 39, 0.12);
    transform: scale(1.05);
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    word-break: break-all;
}

.contact-arrow {
    font-size: 1.25rem;
    color: var(--accent-2);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* === Footer === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-2);
}

/* === Reveal Animations === */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* === Magnetic Hover Effect (for cards) === */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === Counter Animation === */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .project-featured {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .navbar {
        padding: 16px 20px;
    }

    .navbar.scrolled {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

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

    .workflow-timeline {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .workflow-line {
        top: 30px;
        bottom: 30px;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
    }

    .workflow-line::after {
        width: 100%;
        height: 0%;
    }

    .workflow-timeline.animated .workflow-line::after {
        height: 100%;
        width: 100%;
    }

    .workflow-step {
        flex-direction: row;
        gap: 20px;
        width: 100%;
        max-width: 280px;
    }

    .step-content {
        text-align: left;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-float-elements {
        display: none;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-title {
        font-size: 0.8125rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .project-card {
        padding: 24px;
    }

    .skill-category {
        padding: 20px;
    }
}

/* === Prefers Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
