/* ===============================================
   MAIN STYLES - Portfolio Website
   Ashutosh Kumar Yadav
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('./variables.css');
@import url('./animations.css');

/* ===============================================
   BASE STYLES
   =============================================== */

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

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

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

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

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Section ordering - Experience before Skills */
body {
    display: flex;
    flex-direction: column;
}

.navbar {
    order: 1;
}

.hero {
    order: 2;
}

.about {
    order: 3;
}

.experience {
    order: 4;
}

.skills {
    order: 5;
}

.projects {
    order: 6;
}

.education {
    order: 7;
}

.achievements {
    order: 8;
}

.contact {
    order: 9;
}

.footer {
    order: 10;
}

.back-to-top {
    order: 11;
}

/* ===============================================
   LAYOUT
   =============================================== */

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

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

/* ===============================================
   BACKGROUND EFFECTS
   =============================================== */

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 255, 255, 0.02), transparent);
}

.bg-grid {
    display: none;
}

/* Dim floating particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(20px);
        opacity: 0;
    }
}

/* ===============================================
   NAVIGATION
   =============================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    background: var(--navbar-bg, rgba(10, 10, 15, 0.8));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.5s ease;
    transition: background var(--transition-base);
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled, rgba(10, 10, 15, 0.95));
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

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

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--space-6);
        gap: var(--space-4);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-base);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        font-size: var(--text-lg);
        padding: var(--space-3) 0;
    }
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-left: var(--space-4);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.95);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    padding-top: 180px;
    /* Increased from 140px for more top space */
    padding-bottom: 80px;
    /* Increased space before About Me */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-2);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 100ms;
    opacity: 0;
}

.hero-surname {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--font-medium);
    opacity: 0.5;
    margin-top: var(--space-1);
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-meta {
    font-size: var(--text-sm);
    opacity: 0.4;
    margin-bottom: var(--space-2);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 150ms;
}

.hero-subtitle {
    font-size: var(--text-base);
    opacity: 0.7;
    margin-bottom: var(--space-4);
    max-width: 420px;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 200ms;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 300ms;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

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

.hero-socials {
    display: flex;
    gap: var(--space-4);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 400ms;
    opacity: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 300ms;
    opacity: 0;
}

.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-gradient);
    opacity: 0.1;
    filter: blur(100px);
    animation: blobMorph 8s ease-in-out infinite;
}

/* Hero Image Wrapper with Revolving Aura */
.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(10, 10, 15, 0.5);
    z-index: 1;
}

/* Revolving Aura Glow (B&W) */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, transparent 0%, #ffffff 10%, #888888 50%, #ffffff 90%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotateAura 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
    z-index: -1;
    display: none;
    /* Hide flashy background */
}

/* Inner glow ring (B&W) */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.02);
    z-index: -1;
    animation: pulseAura 3s ease-in-out infinite;
}

@keyframes rotateAura {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseAura {

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

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Changed to hidden for image */
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Speech bubble - thought style */
/* Speech bubble - thought style - inside circle */
.speech-bubble {
    position: absolute;
    top: 50px;
    right: 15%;
    left: auto;
    transform: rotate(5deg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: var(--space-2) var(--space-3);
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    white-space: nowrap;
    animation: thoughtFloat 4s ease-in-out infinite;
    box-shadow: var(--glass-shadow);
    z-index: 20;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -8px;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    z-index: -1;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -15px;
    width: 6px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    z-index: -1;
}

@keyframes thoughtFloat {

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

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Orbit objects - JS spawned */
.orbit-object {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    text-shadow: var(--orbit-shadow);
}

/* Floating elements */
.floating-element {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

.floating-element.top-right {
    top: -10px;
    right: -50px;
    animation-delay: 0s;
}

.floating-element.bottom-left {
    bottom: 30px;
    left: -70px;
    animation-delay: 1s;
}

.floating-element.bottom-right {
    bottom: 60px;
    right: -80px;
    animation-delay: 2s;
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: var(--space-8);
    }

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

    .hero-buttons,
    .hero-socials {
        justify-content: center;
    }

    .floating-element {
        display: none;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }
}

/* ===============================================
   SECTION HEADERS
   =============================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-label {
    display: inline-block;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    opacity: 0.7;
    text-transform: lowercase;
    letter-spacing: 0;
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */

.about {
    background: transparent;
    padding-top: var(--space-8);
    padding-bottom: 180px;
    /* Reduced to balance "visible" vs "too much space" */
}

.about-content-full {
    max-width: 100%;
}

.about-text p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
    font-size: var(--text-base);
    opacity: 0.85;
}

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

.about-meta {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.about-meta span {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Legacy styles kept for compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-content h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .about-text p {
        font-size: var(--text-base);
    }
}

/* ===============================================
   SKILLS SECTION
   =============================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.skill-category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    opacity: 0.4;
}

.skill-category-icon svg {
    width: 16px;
    height: 16px;
}

.skill-category-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.skill-tag {
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===============================================
   EXPERIENCE SECTION - Simple Vertical Layout
   =============================================== */

.experience {
    background: linear-gradient(180deg, transparent, var(--bg-secondary) 50%, transparent);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    max-width: 100%;
    position: relative;
    padding-left: var(--space-6);
}

/* Vertical line on left */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding: 0;
    margin: 0;
}

.timeline-item:nth-child(even) {
    padding: 0;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-6) - 4px);
    top: 8px;
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
}

.timeline-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
}

.timeline-content:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.timeline-date {
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 0;
}

.timeline-company {
    font-size: var(--text-sm);
    color: var(--accent-primary);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-3);
}

.timeline-description {
    font-size: var(--text-base);
    opacity: 0.8;
    line-height: 1.7;
}

.timeline-description ul {
    margin-top: var(--space-2);
}

.timeline-description li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-1);
}

.timeline-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===============================================
   PROJECTS SECTION
   =============================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.project-body {
    padding: var(--space-5);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tech-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.project-links {
    display: flex;
    gap: var(--space-4);
}

.project-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Featured Project */
.project-card.featured {
    grid-column: span 2;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.project-card.featured .project-image {
    height: 160px;
}

.project-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--bg-primary);
    margin-bottom: var(--space-3);
}

.project-architecture {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    padding: var(--space-3);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

.project-architecture strong {
    color: var(--text-secondary);
}

.project-link.private {
    color: var(--text-muted);
    cursor: default;
}

.project-link.private svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .project-card.featured {
        grid-column: span 1;
    }
}

/* ===============================================
   EDUCATION SECTION
   =============================================== */

.education {
    background: linear-gradient(180deg, transparent, var(--bg-secondary) 50%, transparent);
}

.education-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    transition: all var(--transition-base);
}

.education-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.education-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    opacity: 0.5;
}

.education-content-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread items across full width */
    width: 100%;
    /* Ensure it takes full available space */
    flex-wrap: wrap;
}

.edu-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.edu-degree {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.edu-place {
    font-size: var(--text-base);
    /* Increased from text-sm */
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.edu-year,
.edu-score {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.edu-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.edu-separator {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 600px) {
    .education-content-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .edu-separator {
        display: none;
    }
}

.education-content .duration {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.education-content .cgpa {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--success);
    font-weight: var(--font-semibold);
}

@media (max-width: 600px) {
    .education-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===============================================
   CERTIFICATIONS & ACHIEVEMENTS
   =============================================== */

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

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all var(--transition-base);
}

.achievement-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.achievement-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    opacity: 0.5;
}

.achievement-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

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

/* ===============================================
   CONTACT SECTION
   =============================================== */

.contact {
    background: linear-gradient(180deg, transparent, var(--bg-secondary) 50%, var(--bg-secondary));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    color: var(--bg-primary);
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-value {
    font-size: var(--text-base);
    color: var(--text-primary);
}

.contact-socials {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: var(--space-4);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

/* Simplified Contact Section */
.contact-simple {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.7;
}

.contact-cards {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-align: left;
}

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

.contact-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    flex-shrink: 0;
    opacity: 0.5;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-1);
    font-weight: var(--font-semibold);
}

.contact-card-value {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Social icons column in contact - next to phone */
.contact-socials-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-socials-col .social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-socials-col .social-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-socials-col .social-link svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 320px;
    }
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--glass-border);
}

.footer-quirk {
    display: inline;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    opacity: 1;
    font-style: normal;
}

.footer-separator {
    color: var(--glass-border);
    margin: 0 var(--space-2);
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: none;
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ===============================================
   UTILITIES
   =============================================== */

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================================
   AUDIO TOGGLE
   =============================================== */

.audio-toggle {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-8);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.audio-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.audio-toggle svg {
    width: 20px;
    height: 20px;
}

.audio-toggle .audio-on {
    display: none;
}

.audio-toggle .audio-off {
    display: block;
}

.audio-toggle.playing .audio-on {
    display: block;
}

.audio-toggle.playing .audio-off {
    display: none;
}

/* ===============================================
   COMPANY LOGO
   =============================================== */

.company-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}

.timeline-company-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    transition: opacity var(--transition-fast);
}

.timeline-company-link:hover {
    opacity: 1;
}

.timeline-company-link span {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
}