/* ============================================
   Shyamu Yadav — "Data Noir" Portfolio
   Dark Editorial + Living Data Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-deep: #0A0A0F;
    --bg-surface: #111118;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(0, 229, 255, 0.3);

    --accent: #00E5FF;
    --accent-dim: rgba(0, 229, 255, 0.15);
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-secondary: #FFB800;
    --accent-violet: #7C3AED;
    --gradient: linear-gradient(135deg, #00E5FF, #7C3AED);

    --text: #E8E8ED;
    --text-dim: #8B8B99;
    --text-muted: #55556A;
    --text-bright: #FFFFFF;

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1100px;
    --nav-height: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    filter: url(#noise);
    pointer-events: none;
    z-index: 9999;
}

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

a:hover { color: var(--text-bright); }

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Glass Card Base --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all var(--transition);
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -1px;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-deep) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
}

.nav-cta:hover {
    box-shadow: 0 0 20px var(--accent-glow) !important;
    transform: translateY(-1px);
}

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

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

.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); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: var(--nav-height);
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 50%, #7C3AED 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-tagline strong {
    color: var(--accent);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
}

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

.btn-primary:hover {
    color: var(--bg-deep);
    box-shadow: 0 0 32px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--text-bright);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-socials a {
    color: var(--text-muted);
    padding: 10px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
}

.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
    transform: translateY(-3px);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text-bright);
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px 56px;
    margin-top: 56px;
    align-items: start;
}

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

.about-image img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.about-image img:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 229, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 1rem;
}

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

.about-list {
    margin: 8px 0 20px;
    padding-left: 0;
}

.about-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.about-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
}

/* Stats */
.about-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 36px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    letter-spacing: -2px;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    margin-top: 56px;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-violet), transparent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--accent);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.timeline-content {
    padding: 28px;
}

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

.timeline-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
}

.timeline-company {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 4px;
}

.timeline-meta { text-align: right; flex-shrink: 0; }

.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.timeline-location {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.timeline-details li:last-child { margin-bottom: 0; }

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.project-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-bright);
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.project-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 14px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    letter-spacing: 0.3px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}

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

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.skill-category {
    padding: 28px;
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.skill-tag {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all var(--transition);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Achievements --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.achievement-card {
    padding: 36px;
    text-align: center;
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.achievement-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-bright);
}

.achievement-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Featured achievement — golden glow */
.featured-achievement {
    border-color: rgba(255, 184, 0, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.featured-achievement::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.4), rgba(255, 184, 0, 0.05), rgba(255, 184, 0, 0.4));
    background-size: 300% 300%;
    animation: goldenGlow 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes goldenGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.featured-achievement .achievement-icon {
    color: var(--accent-secondary);
    text-shadow: 0 0 24px rgba(255, 184, 0, 0.4);
}

.featured-achievement:hover {
    box-shadow: 0 0 40px rgba(255, 184, 0, 0.1) !important;
}

/* Certifications */
.certifications {
    margin-top: 56px;
    text-align: center;
}

.certifications h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-bright);
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.cert-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Education --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.education-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.education-year {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
}

.education-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-bright);
    position: relative;
}

.education-school {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

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

/* --- Blog --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    display: block;
    padding: 36px;
    color: inherit;
}

.blog-card:hover { color: inherit; }

.blog-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-bright);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.blog-read-more span {
    display: inline-block;
    transition: transform var(--transition);
}

.blog-card:hover .blog-read-more span {
    transform: translateX(6px);
}

/* --- Contact --- */
.contact-content {
    max-width: 600px;
    margin: 56px auto 0;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    color: inherit;
}

.contact-item:hover {
    color: inherit;
    transform: translateX(6px);
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

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

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

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

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

.footer-socials a {
    color: var(--text-muted);
    transition: all var(--transition);
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a { font-size: 1.1rem; padding: 14px 28px; }

    .section { padding: 72px 0; }
    .section-title { font-size: 1.8rem; }

    .hero-name { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-tagline { font-size: 0.95rem; }
    .hero-glow { width: 400px; height: 300px; }

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

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

    .about-content { grid-template-columns: 1fr; }
    .about-image { position: static; }
    .about-image img { width: 180px; height: 180px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-card { padding: 24px 8px; }
    .stat-number { font-size: 2rem; }

    .timeline { padding-left: 28px; }
    .timeline-marker { left: -28px; }
    .timeline-header { flex-direction: column; }
    .timeline-meta { text-align: left; }
    .timeline-content { padding: 22px; }

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

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

    .cert-list { flex-direction: column; align-items: center; }
}

@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .about-stats { grid-template-columns: 1fr; }
    .project-card { padding: 24px; }
}
