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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #666666;
    --accent-color: #0066cc;
    --hover-color: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body:not(.light-mode) {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-color: #4a9eff;
    --hover-color: #2a2a2a;
    --border-color: #333;
    --shadow-color: rgba(74, 158, 255, 0.2);
}

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

/* Sticky Navigation with Backdrop Blur */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    margin: -20px -40px 40px -40px;
    padding: 20px 40px;
    transition: all 0.3s ease;
}

body:not(.light-mode) nav.navbar {
    background-color: rgba(10, 10, 10, 0.9);
}

.nav-content {
    display: flex;
    gap: 30px;
    font-size: 15px;
    align-items: center;
    position: relative;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #2a7ede);
    width: 0%;
    transition: width 0.1s ease;
}

#theme-toggle {
    margin-left: auto;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

#theme-toggle:hover {
    background-color: var(--hover-color);
    transform: rotate(20deg) scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Code Rain Background */
.code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

/* Header Section */
.header-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 15px;
}

.header-content h1 .you {
    color: var(--text-secondary);
}


/* Title Animation */
.title-animation {
    display: flex;
    gap: 8px;
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    align-items: center;
}

.static-text {
    color: var(--text-color);
}

.dynamic-text {
    color: var(--accent-color);
    min-width: 150px;
}

.affiliations {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.affiliations a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.affiliations a:hover {
    text-decoration: underline;
}

.resume-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.resume-link:hover {
    transform: translateY(-2px);
}

.bio {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.bio p {
    margin-bottom: 15px;
}

/* Quick Stats with Animation */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background-color: var(--hover-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

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

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--hover-color);
    border: 1px solid var(--accent-color);
    border-radius: 25px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--accent-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

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

.social-icon {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hover-color);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--accent-color);
    color: white;
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-image {
    width: 280px;
    height: 280px;
    margin-bottom: 20px;
    background-color: var(--hover-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-image:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

body:not(.light-mode) .image-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* .image-placeholder svg {
    width: 120px;
    height: 120px;
    opacity: 0.6;
} */

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* optional, matches container */
}


/* .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
} */

.image-placeholder:hover .image-overlay {
    opacity: 1;
}

.contact-info {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    font-family: "Courier New", monospace;
    background-color: var(--hover-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Learning Badge */
.learning-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--hover-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

/* Sections */
section {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

section h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Background Icon for Section Titles */
.bg-icon {
    padding-left: 1.6em;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1.2em;
}

/* Light mode - black icon */
body.light-mode .bg-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000000' d='M3 7a2 2 0 0 1 2-2h3V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zm7-1h4V5h-4v1zM5 9v8h14V9H5z'/></svg>");
}

/* Dark mode - white icon */
body:not(.light-mode) .bg-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e0e0e0' d='M3 7a2 2 0 0 1 2-2h3V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zm7-1h4V5h-4v1zM5 9v8h14V9H5z'/></svg>");
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Reveal Animation on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Experience Timeline */
.experience-timeline {
    position: relative;
    padding-left: 30px;
}

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

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* .timeline-marker::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: 100vh;
    background-color: var(--border-color);
} */

.timeline-content {
    background-color: var(--hover-color);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.experience-header h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.experience-header h4 {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 400;
}

.experience-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    background-color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 20px;
}

.experience-location {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.experience-description ul {
    list-style: none;
    padding-left: 0;
}

.experience-description li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.experience-description li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 18px;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.project-card {
    background-color: var(--hover-color);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #2a7ede);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.project-card.featured {
    grid-column: span 2;
}

/* Stagger Animation for Project Cards */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

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

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-color);
}

.project-links a:hover {
    color: var(--accent-color);
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-impact {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.impact-badge {
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid var(--accent-color);
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #2a7ede);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--accent-color);
}

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

/* Skills Section with Progress Bars */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

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

.skill-item-wrapper {
    width: 100%;
}

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

.skill-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.skill-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

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

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #2a7ede);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* Minimal Badge Style Skills */
.skills-minimal-container {
    display: grid;
    gap: 30px;
}

.skills-category-minimal h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-skill {
    padding: 10px 20px;
    background-color: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: default;
}

.badge-skill:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.achievement-card {
    background-color: var(--hover-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.achievement-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.achievement-card:nth-child(2) .achievement-icon {
    animation-delay: 0.5s;
}

.achievement-card:nth-child(3) .achievement-icon {
    animation-delay: 1s;
}

.achievement-card:nth-child(4) .achievement-icon {
    animation-delay: 1.5s;
}

.achievement-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 40px;
}

.achievement-date {
    display: inline-block;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    background-color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 20px;
}

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

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--hover-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-method:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.contact-icon {
    font-size: 32px;
    color: var(--accent-color);
}

.contact-method div {
    flex: 1;
}

.contact-method div strong {
    display: block;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-method div p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    word-break: break-all;
    /* ADD THIS */
    overflow-wrap: break-word;
    /* ADD THIS */
}

/* Copy Button */
.copy-btn {
    margin-top: 8px;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #2a7ede;
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: #00aa00;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--hover-color), var(--bg-color));
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin: 40px 0;
}

.cta-section h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 25px;
}

.download-resume {
    text-align: center;
    margin-top: 30px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease;
    z-index: 10000;
}

.toast.show {
    bottom: 30px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #2a7ede);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px var(--shadow-color);
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 60px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #2a7ede;
}

.footer-note {
    margin-top: 10px;
    font-size: 12px;
}