﻿:root {
    --primary: #4a6bff;
    --secondary: #3d4db7;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --accent: #ff6b6b;
    --text: #333;
    --text-light: #666;
    --bg: #f5f7ff;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4a6bff, #3d4db7);
    --success: #4CAF50;
    --warning: #FFC107;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --primary: #5e72e4;
    --secondary: #3247b5;
    --dark: #121212;
    --light: #e0e0e0;
    --accent: #f78da7;
    --text: #e0e0e0;
    --text-light: #aaaaaa;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #5e72e4, #3247b5);
}

/* Glassmorphism & Glow Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    /* Very transparent for dark mode */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dark-mode .glass-panel {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.aura-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 107, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float-slow 10s infinite alternate;
}

.text-glow {
    text-shadow: 0 0 10px rgba(74, 107, 255, 0.5), 0 0 20px rgba(74, 107, 255, 0.3);
}

@keyframes float-slow {
    0% {
        transform: translate(-20%, -20%) scale(1);
    }

    100% {
        transform: translate(20%, 20%) scale(1.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: var(--transition);
}

p {
    margin-bottom: 1.2rem;
}

/* Custom Cursor - Blend Mode */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
    will-change: transform;
}

/* Cursor Hover State */
body.hovering .cursor {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: white;
    /* Keep white for difference mode to work */
}

/* Hide default cursor on desktop */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--shadow);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 1.5rem;
}

/* Header & Navigation */
header {
    background: var(--card-bg);
    color: var(--text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

/* Hero Section - Always Dark for Constellation Effect */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: #0f0f13;
    /* Deep space black */
    color: #ffffff;
    /* Always light text */
}

/* Ensure hero text overrides global theme text color if needed */
.hero h1,
.hero p,
.hero .hero-subtext {
    color: #ffffff !important;
}

.hero .text-light {
    color: #cccccc !important;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: all;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    /* Subtle gradient */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    pointer-events: none;
}

.hero-content>* {
    pointer-events: all;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 400;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-btns .btn {
    margin-right: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary);
}

/* Typing Effect Cursor */
.cursor-blink {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary);
    }

    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }

    100% {
        box-shadow: 0 0 5px var(--primary);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text);
    position: relative;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: slideInUp 0.6s ease-out;
}

.stat-card.animate {
    animation: float 3s ease-in-out infinite;
}

.stat-card.pulse {
    animation: pulse 2s infinite;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: glow 1.5s infinite alternate;
}

.stat-card:active {
    transform: translateY(-5px) scale(0.98);
    transition: transform 0.1s ease;
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-number:hover {
    color: var(--primary);
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--primary);
}

.stat-number.counting {
    color: var(--accent);
    animation: pulse 0.5s ease-in-out;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow);
    position: relative;
    transition: var(--transition);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: bounce 0.6s ease;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.skill-category {
    /* Removed solid bg, now using glass-panel in HTML */
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 12px;
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.skill-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.skill-level {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

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

.skill-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-badge i {
    color: var(--primary);
}

.skill-badge:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.skill-badge:hover i {
    color: white;
}

/* Education & Timeline */
.education {
    padding: 100px 0;
    background-color: var(--card-bg);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.timeline-item.visible {
    opacity: 1;
    visibility: visible;
    animation: slideInLeft 0.6s ease-out;
}

.timeline-item.right.visible {
    animation: slideInRight 0.6s ease-out;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    transition: var(--transition);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 107, 255, 0.1), transparent);
    transition: 0.8s;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow);
}

.timeline-content:active {
    transform: translateY(-2px) scale(0.99);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content .date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.timeline-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.timeline-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.timeline-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.certificate-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    /* Ensure full height */
    height: 100%;
    /* Make data-project cards fill grid cell */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 107, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.project-card:active {
    transform: translateY(-5px) scale(0.98);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--accent);
    transform: translateX(10px);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-problem,
.project-solution,
.project-learning {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

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

.project-tags span {
    background: rgba(74, 107, 255, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.project-tags span:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.1);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
}

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

.project-links a i {
    margin-right: 5px;
}

/* GitHub Stats Section */
.github-stats {
    padding: 100px 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.github-stats-container {
    position: relative;
    z-index: 2;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.github-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px var(--shadow);
}

.github-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.github-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.github-info p {
    color: var(--text-light);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.stat-box h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-info {
    padding: 20px;
    display: flex;
    /* Flex layout to push button to bottom */
    flex-direction: column;
    flex-grow: 1;
    /* Fill remaining height */
    justify-content: space-between;
    /* Space out content */
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tech-stack {
    margin-bottom: 15px;
    /* Spacae before button */
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.languages-chart {
    width: 100%;
    height: 200px;
}

.github-activity-graph {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--text);
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background: var(--bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--shadow);
    border: 1px solid var(--border);
}

/* Form Group Enhanced */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

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

/* Modal and Tooltip Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Parallax Effect for Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 107, 255, 0.1), rgba(61, 77, 183, 0.1));
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

/* Interactive Navigation */
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

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

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-content .copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-img,
    .about-text {
        flex: none;
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding-top: 2rem;
    }

    .nav-socials {
        display: none !important;
        /* Hide header socials on mobile, they should be in menu or footer */
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left,
    .right {
        left: 0;
    }

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

    .github-stats-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-btns .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.3rem;
    }

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

    .btn {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }

    .github-header {
        flex-direction: column;
        text-align: center;
    }

    .github-profile {
        flex-direction: column;
        align-items: center;
    }

    .github-avatar {
        width: 80px;
        height: 80px;
    }

    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}