/* styles.css */
:root {
    --primary: #5e72e4;
    --secondary: #2dce89;
    --accent: #ff6b6b;
    --dark: #32325d;
    --light: #f7fafc;
    --gray: #8898aa;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --bg: #f0f5ff;
    --card-bg: #ffffff;
    --text: #32325d;
    --header-bg: rgba(240, 245, 255, 0.95);
    --footer-bg: #32325d;
    --hero-bg: var(--bg);
    --particle-color: rgba(94, 114, 228, 0.3);
    --star-empty: #e0e0e0;
    --star-filled: linear-gradient(135deg, #5e72e4 0%, #2dce89 100%);
}

.dark-mode {
    --primary: #8a9bff;
    --secondary: #2dce89;
    --accent: #ff8e8e;
    --dark: #e2e8f0;
    --light: #121826;
    --gray: #a0aec0;
    --bg: #0a0e17;
    --card-bg: #1e293b;
    --text: #e2e8f0;
    --header-bg: rgba(30, 41, 59, 0.95);
    --footer-bg: #1a202c;
    --hero-bg: var(--bg);
    --particle-color: rgba(138, 155, 255, 0.2);
    --star-empty: #2d3748;
    --star-filled: linear-gradient(135deg, #8a9bff 0%, #2dce89 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Gradient name styling */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(94, 114, 228, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(94, 114, 228, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Updated Profile Animation */
.profile-pic {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--card-bg);
    box-shadow: var(--shadow);
    animation: floatVertical 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* New vertical-only animation */
@keyframes floatVertical {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Keep existing float animation for background shapes */
@keyframes float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-20px) translateX(10px) rotate(5deg); }
    66% { transform: translateY(10px) translateX(-15px) rotate(-5deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* Background Shapes */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(94, 114, 228, 0.1);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -50px;
    animation-delay: 1s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 150px;
    left: 150px;
    animation-delay: 2s;
}

/* About Section */
#about {
    background-color: var(--bg);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
}

.education {
    margin-top: 30px;
}

.edu-item {
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
}

.edu-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Updated personal details */
.personal-details {
    margin-top: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.personal-details h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.personal-details h4 i {
    margin-right: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
}

.detail-item i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

/* Tech stack with tooltips */
.tech-stack {
    margin-top: 40px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.tech-icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1;
}

.tech-icon:hover {
    transform: translateY(-5px);
}

.tech-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-tooltip {
    position: absolute;
    bottom: -25px;
    background: var(--dark);
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.tech-icon-container:hover .tech-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
#skills {
    background-color: var(--bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 15px;
    color: var(--primary);
}

/* Modern skills grid with star ratings */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.skill-tag {
    background: var(--light);
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.skill-rating {
    display: flex;
    gap: 3px;
}

.star {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--star-empty);
    position: relative;
}

.star.filled {
    background: var(--star-filled);
}

/* Soft skills with SEO keywords */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.soft-skill {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.soft-skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.certifications {
    margin-top: 50px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cert-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.credential-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(94, 114, 228, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
}

.credential-btn:hover {
    background: var(--primary);
    color: white;
}

/* Enhanced Education Section */
#education {
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

.education-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.education-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.education-bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.education-bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

.education-bg-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

.education-bg-book {
    position: absolute;
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.1;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

.education-bg-book:nth-child(4) {
    top: 20%;
    right: 15%;
}

.education-bg-book:nth-child(5) {
    bottom: 20%;
    left: 15%;
}

.education-content {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -50px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content .duration {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.timeline-content .institution {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-content .institution i {
    color: var(--primary);
    margin-right: 10px;
}

.timeline-content .grade {
    display: flex;
    align-items: center;
}

.timeline-content .grade i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Projects Section */
#projects {
    background-color: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Project images */
.project-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.project-links a i {
    margin-right: 5px;
}

/* Achievements Section */
#achievements {
    background-color: var(--bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, var(--primary) 0%, #825ee4 100%);
    color: white;
}

.achievement-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.achievement-card:hover i {
    color: white;
}

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Resume Section */
#resume {
    background: linear-gradient(135deg, var(--primary) 0%, #825ee4 100%);
    color: white;
    text-align: center;
}

#resume .section-title h2 {
    color: white;
}

#resume .section-title h2::after {
    background: white;
}

.resume-content {
    max-width: 700px;
    margin: 0 auto;
}

.resume-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.resume-btn {
    background: white;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 16px 45px;
}

.resume-btn:hover {
    background: var(--light);
}

/* Contact Section */
#contact {
    background-color: var(--bg);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--dark);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.bubble-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.bubble-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bubble-link:hover {
    transform: translateY(-10px);
    background: var(--secondary);
}

.bubble-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bubble-link:hover::after {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Particles Animation */
.particles-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.show-particles {
    opacity: 1 !important;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--particle-color);
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

/* Custom LeetCode icon styling */
.fa-leetcode {
    font-weight: 600;
    position: relative;
}

/* Alternatively, use a laptop icon */
.fa-laptop-code::before {
    content: "\f5fc";
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Waving avatar */
.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.waving-avatar {
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: wave 2.5s infinite ease-in-out;
}

.waving-avatar img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* React-style particles */
.chain-particles {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 0;
    overflow: hidden;
}

.particle-chain {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chain-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: chain-float 8s infinite ease-in-out;
}

.chain-line {
    position: absolute;
    height: 1px;
    background-color: var(--primary);
    opacity: 0.3;
    transform-origin: left;
}

@keyframes chain-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(5px); }
}

/* Notification styling */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 10000;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.notification.success i {
    color: var(--secondary);
}

.notification.error i {
    color: var(--accent);
}

.notification-content {
    flex-grow: 1;
}

.notification h4 {
    margin-bottom: 5px;
}

.notification p {
    font-size: 0.9rem;
    margin: 0;
}

/* Confirmation Message */
#confirmation-message {
    display: none;
    font-family: system-ui, sans-serif, Arial;
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    background: #f8f9ff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e1e7ff;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-top: 50px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.5s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .waving-avatar {
        width: 220px;
        height: 220px;
    }
    
    .waving-avatar img {
        width: 200px;
        height: 200px;
    }
    
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .bubble-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .waving-avatar {
        width: 180px;
        height: 180px;
    }
    
    .waving-avatar img {
        width: 160px;
        height: 160px;
    }
}