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

body {
    padding-top: 6rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #000000;
    color: #333;
}

body:not(.dark-mode) {
    background: #ffffff;
    color: #222;
}


body:not(.dark-mode) .projects,
body:not(.dark-mode) .about,
body:not(.dark-mode) .contact,
body:not(.dark-mode) .footer {
    background: #FFFFFF;
}

body:not(.dark-mode) .project-card{
    background: linear-gradient(to right, #5700EF, #140628); 
    color: #222;
}

body:not(.dark-mode) .contact-card {
    background: #1E0F39; 
    color: #222;
}

body:not(.dark-mode) .nav-links a {
    color: #0b4bb2;
}

body:not(.dark-mode) .nav-links a:hover {
    color: #5700EF;
}


.theme-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: transform 0.3s ease;
}

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

body:not(.dark-mode) .theme-toggle i {
    color: #9a67ff; 
}

.theme-toggle:hover {
    transform: scale(1.2);
}


/* navbar */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000; 
    z-index: 1000; 
    padding: 1rem 0; 
}

.navbar .container {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 50px; 
}

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

.nav-links a {
    text-decoration: none;
    color: gray;
    opacity: 5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007BFF;
}

/* Hero Section */
.hero {
    height: 110vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative; 
}


.hero-image {
    position: relative; 
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px; 
    height: auto;
    border-radius: 8rem; 
    margin-right: 2rem;
    align-items: flex-start;
    padding-bottom: 2rem;
}


.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
    background: linear-gradient(to right, #5700EF, #FFFFFF); 
    -webkit-background-clip: text;  
    color: transparent;  
}

body:not(.dark-mode) .hero h1 {
    background: linear-gradient(to right, #5700EF, #000000); 
    -webkit-background-clip: text;
    color: transparent;
}


.hero p {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    margin-left: 6rem;
}
body:not(.dark-mode) .hero p {
    background: linear-gradient(to right, #5700EF, #000000); 
    -webkit-background-clip: text;
    color: transparent;
}

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

.hero-text {
    flex: 1;
    padding-bottom: 150px; 
    padding-left: 80px;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.6; 
    max-width: 600px; 
}

.hero-text h1 {
    font-size: 6rem; 
    font-weight: bold; 
    margin-bottom: 20px; 
    align-items: flex-start;
    text-align: center; 
}

.btn-primary {
    background-color: #5700EF; 
    color: #fff; 
    padding: 10px 25px;
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 500;
    transition: background-color 0.3s ease;
}  

.btn:hover {
    background: #0056b3;
}

.about {
    padding: 5rem 2rem; 
    position: relative;
    overflow: hidden; 
    text-align: center;
    color: #FFFFFF;
}


.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

body:not(.dark-mode) .about h2, .about p {
    background: linear-gradient(to right, #5700EF, #000000); /* Light mode gradient */
    -webkit-background-clip: text;
    color: transparent;
}


.about p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #FFFFFF;
}

.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem; 
    margin-top: 2rem;
    min-height: 60vh; 
    color: #FFFFFF;
}

body:not(.dark-mode) .about p,
body:not(.dark-mode) .skills{
    color: black;
}

.skill {
    text-align: center;
    padding-bottom: 1rem;
    border-radius: 2rem;
}

.skill i {
    padding-top: 3rem;
    font-size: 4rem; 
    transition: all 0.3s ease;
}

.skill:hover {
    background: #1E0F39;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
    transform: scale(1.1); 
}

body:not(.dark-mode) .skill:hover {
    background: linear-gradient(to right, #5700EF, #000000); /* Light mode gradient */
    -webkit-background-clip: text;
    color: transparent;
}

.skill:hover i {
    background-image: linear-gradient(to right, #5700EF, #007BFF); 
    -webkit-background-clip: text; 
    color: transparent;
}

/* Animation for the shine effect */
@keyframes shine {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #007BFF, 0 0 20px #007BFF;
    }
    50% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #007BFF, 0 0 40px #007BFF;
    }
    100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #007BFF, 0 0 20px #007BFF;
    }
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: #000000;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color:#FFFFFF
}

body:not(.dark-mode) .projects h2  {
    color:#5700EF
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background-image: linear-gradient(to right, #1E0F39, #5700EF); 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 20px; 
    color: white;
    position: relative; 
}

.skill:hover {
    background: #1E0F39;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
    transform: scale(1.1); 
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px;
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Project Content Styling */
.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-content p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-link{
    color: whitesmoke;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #6671a8; 
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    z-index: 9999; 
    display: block; 
}


/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #0a0a0a;
}

body:not(.dark-mode) .section-title   {
    color:#5700EF
}

.section-title {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.contact-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
    border: 1px solid #2a2a2a;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #5700EF;
}

.contact-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 2.5rem;
    color: #5700EF;
}

.contact-details h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #5700EF;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #5700EF;
}

.contact-form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
}



.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form button {
    cursor: pointer;
    background: #5700EF;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #007BFF;
}


/* Footer Styling */
.footer {
    background-color: #1E0F39;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.footer p {
    font-size: 1rem;
    margin-bottom: 20px;
}

body:not(.dark-mode) .footer p ,
body:not(.dark-mode) .footer {
    background: #140628; 
    color: #ffffff;
}



/* Animations */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #eee;
    }

    .navbar {
        background: #000000;
    }

    .contact, .about, .projects {
        background: #0a0a0a;
    }

    .contact-card, .project-card {
        background: #1a1a1a;
    }

    .footer {
        background: #1E0F39;
    }

    .btn-primary {
        background: #5700EF;
    }
}

@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

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


/* Responsiveness */
@media (max-width: 1441px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 4rem 0;
        align-items: center; 
    }
    
    .hero-text {
        text-align: center;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center; 
        order: 1;
        width: 100%;
    }
    
    .hero-text h1 {
        margin-bottom: 1rem; 
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto; 
        position: relative;
        width: 100%;
    }
    
    .hero-image {
        order: 2;
        margin-right: 0;
        padding-bottom: 2rem;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 350px;
        border-radius: 3rem;
    }
    
    .nav-links {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 1rem; 
    }

    .hero-text p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }
    
    .hero-image img {
        max-width: 280px; 
        width: 100%; 
        border-radius: 3rem;
    }

    .hero-image {
        position: relative;
        flex: 0;
    }
    
    .hero {
        flex-direction: column;
        height: auto;
        padding: 4rem 0;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .hero-image img {
        max-width: 100%; 
        width: 100%;
        border-radius: 3rem;
    }
    
    .hero {
        flex-direction: column;
        height: auto;
        padding: 3rem 0;
    }
}
