/* ============================================
   PORTFOLIO - Aditya | Generative AI Engineer
   Modern Dark Theme with Glassmorphism
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161d;
    --bg-card-hover: #1c1c25;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --text-muted: #5c5c6e;
    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a855f7 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
    --gradient-3: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass: rgba(22, 22, 29, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: rgba(108, 92, 231, 0.3);
    color: #fff;
}

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

img {
    max-width: 100%;
}

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

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

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--accent-1);
    font-family: var(--font-mono);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 24px 40px;
    overflow: hidden;
}

.hero-bg-grid {
    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 at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

/* === Hero Intro (Avatar + Title side by side) === */
.hero-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.hero-intro-text {
    text-align: left;
}

.hero-intro-text .hero-badge {
    margin-bottom: 10px;
}

.hero-intro-text .hero-title {
    margin-bottom: 0;
}

/* === Hero Avatar === */
.hero-avatar {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-1);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.3), 0 0 80px rgba(168, 85, 247, 0.1);
    animation: avatarPulse 3s ease-in-out infinite;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1a2e 100%);
    color: var(--accent-2);
    font-family: var(--font-main);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-status .status-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.3), 0 0 80px rgba(168, 85, 247, 0.1); }
    50% { box-shadow: 0 0 50px rgba(108, 92, 231, 0.4), 0 0 100px rgba(168, 85, 247, 0.15); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === Resume Button === */
.btn-resume {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.08);
}

.btn-resume:hover {
    border-color: var(--accent-1);
    background: rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.btn-resume i {
    transition: transform 0.3s ease;
}

.btn-resume:hover i {
    transform: translateY(2px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.6s ease backwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }

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

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 20px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-plus {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* === Scroll Indicator === */
.hero-scroll-indicator {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

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

/* === Section Styles === */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-1);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 1.1rem;
}

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

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

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

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.highlight:hover {
    border-color: var(--accent-1);
    transform: translateX(4px);
}

.highlight i {
    font-size: 1.2rem;
    color: var(--accent-1);
    width: 24px;
    text-align: center;
}

.highlight strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.highlight span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Terminal === */
.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
}

.terminal-line {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.prompt {
    color: var(--accent-1);
    font-family: var(--font-mono);
    font-weight: 600;
}

.command {
    color: #22c55e;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-output {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre;
    overflow-x: auto;
}

/* === Experience Timeline === */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 48px;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 8px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-1);
}

.timeline-dot.current {
    background: var(--accent-1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.company {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
    display: block;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    white-space: nowrap;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-xs);
}

.timeline-points {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
}

.timeline-points li strong {
    color: var(--text-primary);
}

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

.tag {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-2);
    font-weight: 500;
}

/* === Projects Section === */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-2);
    border-color: transparent;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.project-card.featured {
    border-color: rgba(108, 92, 231, 0.15);
}

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

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-1);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}

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

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-tagline {
    color: var(--accent-2);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

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

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

.project-tech span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-highlights {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-highlight i {
    color: var(--accent-1);
    font-size: 0.75rem;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

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

.skill-category-header i {
    font-size: 1.2rem;
    color: var(--accent-1);
}

.skill-category-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

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

.skill-tag {
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent-1);
    color: var(--accent-2);
    background: rgba(108, 92, 231, 0.1);
}

/* === Certifications === */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-glow);
}

.cert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
}

.cert-icon.azure {
    background: rgba(0, 120, 212, 0.15);
    color: #4fc3f7;
}

.cert-icon.aws {
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
}

.cert-icon.mongo {
    background: rgba(0, 237, 100, 0.15);
    color: #00ed64;
}

.cert-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cert-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Achievements === */
.achievements-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: var(--transition);
}

.achievement-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateX(4px);
}

.achievement-year {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 70px;
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.achievement-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievement-icon {
    font-size: 1.5rem;
    color: var(--accent-1);
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-1);
}

.contact-card h4 {
    font-weight: 600;
}

.contact-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Footer === */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

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

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

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
        padding: 12px 32px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-intro {
        flex-direction: column;
        gap: 12px;
    }

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

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

    .hero-stats {
        gap: 20px;
    }

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

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

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 44px;
    }

    .timeline-marker {
        left: 4px;
    }

    .timeline-content {
        padding: 24px;
    }

    .timeline-header {
        flex-direction: column;
    }

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

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

    .achievement-card {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }
}

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

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

    .project-card {
        padding: 24px;
    }
}

/* === Scroll progress bar === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #ec4899, #06b6d4);
    background-size: 200% 100%;
    animation: progressGradient 4s linear infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    pointer-events: none;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* === Back to top button === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.55);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* === Role rotator (typewriter) === */
.role-rotator {
    display: inline-block;
    min-height: 1.1em;
}

.role-cursor {
    display: inline-block;
    margin-left: 2px;
    color: #a855f7;
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

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

/* === Magnetic button hover === */
.btn {
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    will-change: transform;
}
