/* ==========================================================================
   Global Variables & Theme
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #0a0a0a;
    --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #111827 100%);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #3b82f6;
    /* Modern Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --section-padding: 5rem 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding);
    width: 100%;
    position: relative;
}

/* Section Headings */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Header & Navbar (Glassmorphism)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    /* Shrink slightly on scroll */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-normal);
}

.header.scrolled .navbar {
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    position: relative;
}

/* Logo glow effect on hover */
.logo:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

/* Hover Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

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

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

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    /* Keep above mobile menu */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for navbar */
    position: relative;
    overflow: hidden;
}

/* Animated Background Gradient */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(10, 10, 10, 0) 50%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

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

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    z-index: 1;
}

/* Profile Image */
.profile-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.6;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    background-color: #1f2937;
    /* Fallback color */
}

/* Hero Typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 3rem;
    /* Prevents layout shift during typing */
}

/* Cursor Animation */
.cursor {
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: capitalize;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        height: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Global Highlight Utility (Neon Cyan Glow)
   ========================================================================== */
.highlight {
    color: #00f5ff;
    font-weight: 600;
    position: relative;
    transition: 0.3s ease;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
}



/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: var(--bg-color);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover Glow & Slide-up */
.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Internal Glow Effect */
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
}


.profile-image {
    object-position: top;
    /* Adjusts image centering if it isn't a perfect square */
}


/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills {
    background-color: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #00f5ff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 255, 0.15);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
}

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

.skill-tags span {
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
    transition: 0.3s;
    font-weight: 500;
}

.skill-tags span:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 245, 255, 0.4);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects {
    background-color: var(--bg-color);
    position: relative;
}

.featured-project {
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}

.featured-project:hover {
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2), 0 0 20px rgba(123, 44, 255, 0.2) !important;
    border-color: #00f5ff !important;
}

.featured-project .project-title {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Glassmorphism Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover Lift Effect & Glowing Shadow */
.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 255, 0.15);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Project Badge */
.project-badge {
    align-self: flex-start;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technologies Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.05);
    color: #00f5ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: 0.3s;
}

.project-tags .tag:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    transform: scale(1.05);
}

/* Project Links / Gradient Buttons */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.project-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 25px;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s ease;
    border: none;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.4);
    background: linear-gradient(90deg, #7b2cff, #00f5ff);
}


/* Verification Button */
.verify-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 25px;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
}


/* ==========================================================================
   Achievements Section
   ========================================================================== */
.achievements {
    background-color: var(--bg-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.achievement-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

/* Gold Theme */
.gold-achievement:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.gold-icon {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #ffd700 !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

.gold-achievement:hover .gold-icon {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
}

/* Silver Theme */
.silver-achievement:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(192, 192, 192, 0.2);
    border-color: rgba(192, 192, 192, 0.5);
}

.silver-icon {
    background: rgba(192, 192, 192, 0.1) !important;
    color: #e0e0e0 !important;
    border-color: rgba(192, 192, 192, 0.3) !important;
}

.silver-achievement:hover .silver-icon {
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4) !important;
}

/* Hover glow effect background logic */
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    border-radius: 20px;
}

.gold-achievement::before {
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.15), transparent 70%);
}

.silver-achievement::before {
    background: radial-gradient(circle at 50% 0%, rgba(192, 192, 192, 0.15), transparent 70%);
}

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

.achievement-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.achievement-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievement-highlight {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(90deg, #b5b5b5, #ffffff);
    color: #121212;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.3);
}

.achievement-description {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.achievement-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
    margin-top: auto;
    border: none;
}

.gold-btn {
    background: linear-gradient(90deg, #d4af37, #ffd700);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    color: #121212 !important;
}

.gold-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(90deg, #ffd700, #d4af37);
}

.silver-btn {
    background: linear-gradient(90deg, #9e9e9e, #e0e0e0);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
    color: #121212 !important;
}

.silver-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.5);
    background: linear-gradient(90deg, #e0e0e0, #9e9e9e);
}

/* ==========================================================================
   Education Layout Section
   ========================================================================== */
.education {
    background-color: var(--bg-color);
}

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

.education-card {
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: #00f5ff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 255, 0.15);
}

.education-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.degree {
    font-weight: 500;
    margin-bottom: 6px;
    color: #00f5ff;
    /* Keeping the neon cyan branding tied closely to importance */
}

.edu-details {
    color: #aaa;
    font-size: 14px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
}

@media (min-width: 768px) {
    .timeline::after {
        left: 50%;
        margin-left: -1px;
    }
}

.timeline-item {
    padding: 10px 0 40px 50px;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .timeline-item {
        padding: 10px 40px 40px 40px;
        width: 50%;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }
}

/* The Dots */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    top: 15px;
    left: 12px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-dot {
        right: -8px;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -8px;
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-description {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   GitHub Section
   ========================================================================== */
.github {
    background-color: var(--bg-color);
}

.github-card {
    max-width: 600px;
    margin: auto;
    padding: 35px;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.github-card:hover {
    transform: translateY(-5px);
    border-color: #00f5ff;
}

.github-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.github-card p {
    color: #bbb;
    margin-bottom: 25px;
}

.github-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    background: linear-gradient(90deg, #00f5ff, #7b2cff);
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.github-btn:hover {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.7);
}

/* ==========================================================================
   Experience Timeline Section
   ========================================================================== */
.experience {
    background-color: var(--bg-color);
    position: relative;
    /* Uses the exact same timeline styling as Education */
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050505;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Subtle glow at bottom */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.15), transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.footer-brand p {
    margin-bottom: 0;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Global Animations (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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