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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1), transparent 50%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

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

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

/* Resume Preview Container */
.resume-preview-container {
    width: 350px;
    height: 450px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.resume-preview-container:hover {
    transform: translateY(-10px);
}

.resume-preview-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
    border: 3px solid rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.resume-preview-container:hover .resume-preview-image {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.6);
    border-color: var(--primary-color);
}

.resume-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.resume-preview-container:hover .resume-img {
    transform: scale(1.05);
}

.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.resume-preview-container:hover .resume-overlay {
    opacity: 1;
}

.resume-overlay i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.resume-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

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

.resume-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    z-index: 10;
}

.resume-badge i {
    color: white;
    font-size: 1.2rem;
}

.resume-badge span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.resume-preview-container:hover .resume-badge {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Styling */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}


/* Education Section */
.education {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(30, 41, 59, 0.5) 100%);
}

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

.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.education-item:last-child::before {
    display: none;
}

.education-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.education-content {
    flex: 1;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 600px;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.education-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CGPA Badge */
.cgpa-container {
    margin: 1rem 0;
}

.cgpa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}

.cgpa-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.cgpa-badge i {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cgpa-badge div {
    display: flex;
    flex-direction: column;
}

.cgpa-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgpa-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coursework Section */
.coursework {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, var(--dark-bg) 100%);
}

.coursework-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.coursework-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.coursework-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.coursework-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.coursework-category-title i {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coursework-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coursework-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.coursework-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--primary-color);
    transform: translateX(10px);
}

.coursework-item i {
    color: #00b8a3;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.coursework-item span {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Resume Modal */
.resume-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.resume-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 71, 67, 0.2);
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(239, 71, 67, 0.4);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.modal-header h2 {
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-download {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.resume-viewer {
    flex: 1;
    overflow: hidden;
    padding: 0;
    border-radius: 0 0 20px 20px;
}

.resume-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.resume-content {
    padding: 2rem;
    overflow-y: auto;
    height: 100%;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 1rem;
}

/* Skills Section */
.skills {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, var(--dark-bg) 100%);
}

.skills-container {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
    /* max-width: 500px; */
    /* width: max-content; */
    flex: 1 1 300px; /* minimum width */
    margin: 5px;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.category-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-item {
    margin-bottom: 1.5rem;
}

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

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

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-icon-small {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-level {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 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%);
    }
}

/* Coding Profiles Section */
.coding-profiles {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.coding-platform {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-header i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-header h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
}

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

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

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid;
    position: relative;
}

.stat-circle.easy {
    border-color: #00b8a3;
}

.stat-circle.medium {
    border-color: #ffc107;
}

.stat-circle.hard {
    border-color: #ef4743;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-total {
    font-size: 1rem;
    color: var(--text-secondary);
}

.leetcode-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

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

.easy-fill {
    background: #00b8a3;
}

.medium-fill {
    background: #ffc107;
}

.hard-fill {
    background: #ef4743;
}

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

.extra-stat {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.extra-stat i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.extra-stat h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-number {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-leetcode {
    background: linear-gradient(135deg, #ffa116, #ffc107);
    color: var(--dark-bg);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-leetcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

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

.github-graph-container {
    margin: 2rem 0;
    text-align: center;
}

.github-chart {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.github-stat-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.github-stat-card i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.github-stat-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contribution-heatmap {
    margin: 2rem 0;
}

.contribution-heatmap h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legend-boxes {
    display: flex;
    gap: 0.3rem;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-box.level-0 {
    background: rgb(255, 255, 255);
}

.legend-box.level-1 {
    background: #dcfce7; 
}

.legend-box.level-2 {
    background: #86efac;
}

.legend-box.level-3 {
    background: #22c55e;
}

.legend-box.level-4 {
    background:#15803d; 
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    max-width: 100%;
    overflow-x: auto;
}

.heatmap-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-github {
    background: #24292e;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
}

/* Other Platforms */
.other-platforms {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
}

.other-platforms h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.platform-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.platform-badge {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
}

.platform-badge:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.platform-badge i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-badge h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

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

/* YouTube Section */
.youtube {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1), transparent 70%);
}

.youtube-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.youtube-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #ff4444);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

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

.youtube-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.youtube-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

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

.stat-item i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
}

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

.btn-youtube {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.social-link i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.social-link:hover i {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.social-link span {
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .resume-preview-container {
        width: 280px;
        height: 360px;
    }

    .coursework-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
    }

    .modal-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

    .heatmap-grid {
        grid-template-columns: repeat(53, 8px);
    }

    .heatmap-cell {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .coursework-category {
        padding: 1.5rem;
    }

    .youtube-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .resume-preview-container {
        width: 250px;
        height: 320px;
    }

    .coursework-item {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1rem;
    }
}


.phone-link {
    position: relative;
    cursor: pointer;
}
.email-link {
    position: relative;
    cursor: pointer;
}

/* Tooltip */
.phone-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Show on hover */
.phone-link:hover .phone-tooltip {
    display: inline-flex;
}

/* Show on hover */
.email-link:hover .email-tooltip {
    display: inline-flex;
}

.copy-icon {
    cursor: pointer;
    font-size: 14px;
}

.copy-icon:hover {
    opacity: 0.8;
}

#copy-toast {
    position: fixed;
    top: 50px;
    right: 50%;
    background: #0ac839;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

#copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}



/* Tools & Technologies Section */
.tools-tech {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, var(--dark-bg) 100%);
    padding: 80px 20px;
}

.tools-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tool-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

/* Staggered animation delay for each card */
.tool-card:nth-child(1) { animation-delay: 0s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.4s; }
.tool-card:nth-child(4) { animation-delay: 0.6s; }
.tool-card:nth-child(5) { animation-delay: 0.8s; }
.tool-card:nth-child(6) { animation-delay: 1s; }
.tool-card:nth-child(7) { animation-delay: 1.2s; }
.tool-card:nth-child(8) { animation-delay: 1.4s; }
.tool-card:nth-child(9) { animation-delay: 1.6s; }
.tool-card:nth-child(10) { animation-delay: 1.8s; }
.tool-card:nth-child(11) { animation-delay: 2s; }
.tool-card:nth-child(12) { animation-delay: 2.2s; }

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    animation-play-state: paused;
}

.tool-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.tool-card:hover .tool-icon-wrapper {
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0),
                0 0 0 20px rgba(99, 102, 241, 0);
    animation: pulse-ring 1.5s ease-out;
}

.tool-icon {
    font-size: 2.5rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tool-card:hover .tool-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.5));
}

.tool-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-card:hover h4 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.tool-card:hover p {
    color: var(--primary-color);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse ring animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4),
                    0 0 0 0 rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.2),
                    0 0 0 20px rgba(99, 102, 241, 0.1);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0),
                    0 0 0 20px rgba(99, 102, 241, 0);
    }
}

/* Responsive Design for Tools Section */
@media (max-width: 968px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .tool-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .tool-icon {
        font-size: 2rem;
    }

    .tool-card h4 {
        font-size: 1rem;
    }

    .tool-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-card {
        padding: 1.2rem 0.8rem;
    }

    .tool-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .tool-icon {
        font-size: 1.8rem;
    }

    .tool-card h4 {
        font-size: 0.95rem;
    }

    .tool-card:hover {
        transform: translateY(-10px) scale(1.03);
    }
}