* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(3, 10, 30);
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}


body.light-mode {
    background-color: #d2e2df;
    color: #333;
    transition: all 0.3s ease-in-out;
}

body.light-mode nav {
    background: rgba(245, 245, 245, 0.9);
    color: #333;
    backdrop-filter: blur(10px);
}
body.light-mode .left {
    color: #333;
}
body.light-mode .nav-links a {
    color: #333;
}

body.light-mode .nav-links a::after {
    background: #6c63ff; 
}

body.light-mode .resume-btn {
    background: rgba(200, 200, 200, 0.7);
    color: #333;
}

body.light-mode .resume-btn:hover {
    background: #b0b0b0;
}


body.light-mode .skills-section {
    background: #e6f2f1;
    color: #333;
}

body.light-mode .skill-card {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .skill-card:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
  

body.light-mode .projects-section {
    background: #f0f4f3;
    color: #333;
}
.body light-mode.nav.toggle_button{
color:black
}

body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

body.light-mode .project-card:hover {
    box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}


body.light-mode .education-section {
    background: #e6f2f1;
    color: #333;
}

body.light-mode .education-timeline::after {
    background-color: #6c63ff; 
}

body.light-mode .timeline-item::after {
    border-color: #6c63ff; 
    background-color: #fff;
}

body.light-mode .timeline-content {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}


body.light-mode .contact-section {
    background: rgba(245, 245, 245, 0.8);
    color: #333;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: rgba(255,255,255,0.9);
    color: #333;
    border: 2px solid rgba(0,0,0,0.2);
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

body.light-mode footer {
    background: #dbe6e2;
    color: #333;
}

body.light-mode .social-icons a {
    color: #333;
}

body.light-mode .social-icons a:hover {
    color: #6c63ff;
    text-shadow: none;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(8, 14, 57, 0.66);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.left {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-links a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: #ff79c6;
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-links a:hover {
    color: #ff79c6;
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-btn {
    padding: 8px 15px;
    background: rgba(9, 14, 52, 0.66);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.resume-btn:hover {
    background: rgb(34, 38, 85);
    transform: scale(1.1);
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease-in-out;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.2);
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.first-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    min-height: 80vh;
}

.first-section > div {
    width: 40%;
}

.left-side {
    font-size: 3rem;
}

.right-side img {
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(213, 98, 239, 0.3);
}

.purple {
    color: rgb(213, 98, 239);
}

#element {
    color: rgb(213, 98, 239);
    font-weight: 600;
}

.skills-section, .projects-section, .contact-section {
    padding: 60px 20px;
    text-align: center;
}

.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-card, .project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(213, 98, 239, 0.3);
}

.skill-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-links {
    margin-top: 15px;
}

.project-links .btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: rgb(213, 98, 239);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-links .btn:hover {
    background: rgb(180, 70, 200);
}

.skills-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1e1e2f, #2a2a3a);
    color: white;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 30%;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s ease-in-out;
}

.skill-card h3 {
    font-size: 18px;
    margin: 0;
    transition: color 0.3s ease-in-out;
}

.animation-1:hover {
    transform: rotateY(15deg) scale(1.1);
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
}
.animation-1:hover h3 {
    color: #ff79c6;
}
.animation-1:hover i {
    transform: scale(1.3);
}

.animation-2 {
    border: 2px solid transparent;
}
.animation-2:hover {
    transform: scale(1.15);
    border: 2px solid white;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
}
.animation-2:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: pulse-border 0.8s infinite
}

@keyframes pulse-border {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(1.1);
opacity: 0.5;
}
}

.animation-3:hover {
animation: bounce 0.5s ease-in-out infinite alternate;
background: rgba(255, 255, 255, 0.2);
}
.animation-3:hover h3 {
color: #ffd700;
}
.animation-3:hover i {
color: #ffcc00;
transform: scale(1.2);
}
@keyframes bounce {
from {
transform: translateY(0);
}
to {
transform: translateY(-8px);
}
}

footer {
background: linear-gradient(135deg,rgb(2, 2, 11),rgb(5, 6, 40));
color: #fff;
text-align: center;
padding: 20px 0;
position: relative;
bottom: 0;
width: 100%;
font-family: "Poppins", sans-serif;
}

.footer-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.social-icons {
display: flex;
gap: 15px;
}

.social-icons a {
color: white;
font-size: 24px;
transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
transform: scale(1.2) rotate(5deg);
color: #ffdd57;
text-shadow: 0 0 10px rgba(255, 221, 87, 0.8);
}

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}

.social-icons a:nth-child(1) { animation: float 3s ease-in-out infinite; }
.social-icons a:nth-child(2) { animation: float 3s ease-in-out 1s infinite; }
.social-icons a:nth-child(3) { animation: float 3s ease-in-out 2s infinite; }

.contact-section {
padding: 60px 20px;
text-align: center;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
margin: 40px 0;
}

.contact-container {
max-width: 1000px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}

.contact-form {
text-align: left;
}

.form-group {
margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 5px;
background: rgba(255, 255, 255, 0.1);
color: white;
font-size: 1rem;
transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: rgb(213, 98, 239);
box-shadow: 0 0 10px rgba(213, 98, 239, 0.5);
outline: none;
}

.contact-form button {
background: rgb(213, 98, 239);
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
transition: background 0.3s;
display: flex;
align-items: center;
justify-content: center;
}

.contact-form button:hover {
background: rgb(180, 70, 200);
}

.error-message {
color: #ff6b6b;
font-size: 0.875rem;
display: none;
}

.form-message {
margin-top: 20px;
font-size: 1rem;
color: #4caf50;
display: none;
}

.social-links {
text-align: center;
}

.social-icons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}

.social-icon {
color: white;
font-size: 1.5rem;
transition: color 0.3s;
}

.social-icon:hover {
color: rgb(213, 98, 239);
}

.map-container {
grid-column: span 2;
margin-top: 20px;
}

.hidden {
display: none;
}

#loadingSpinner {
margin-left: 10px;
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}


.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
.nav-links {
display: none;
flex-direction: column;
position: absolute;
top: 60px;
right: 0;
background: rgba(20, 20, 20, 0.9);
width: 200px;
border-radius: 10px;
padding: 10px;
}
.nav-links.active {
    display: flex;
}

.hamburger-menu {
    display: block;
}

.first-section {
    flex-direction: column;
    text-align: center;
}

.first-section > div {
    width: 80%;
    margin-bottom: 30px;
}

.contact-container {
    grid-template-columns: 1fr;
}

.map-container {
    grid-column: span 1;
}
}

@media (max-width: 600px) {
.social-icons a {
font-size: 20px;
}
}

.education-section {
    padding: 80px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.education-section h2 {
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: rgb(213, 98, 239);
}

.education-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.education-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgb(213, 98, 239);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid rgb(213, 98, 239);
    top: 20px;           
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -17px;      
}

.timeline-item:nth-child(even)::after {
    left: -17px;       
}



.timeline-item:nth-child(1).visible {
    transition-delay: 0.2s;
}
.timeline-item:nth-child(2).visible {
    transition-delay: 0.4s;
}
.timeline-item:nth-child(3).visible {
    transition-delay: 0.6s;
}
.timeline-item:nth-child(4).visible {
    transition-delay: 0.8s;
}



.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-content h3 {
    color: rgb(213, 98, 239);
    margin-bottom: 10px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}


@media screen and (max-width: 768px) {
    .education-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
}