/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Animated Gradient Background for Body */
body {
    background: linear-gradient(270deg, #0d1117, #161b22, #0d1117);
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
    color: #fff;
    line-height: 1.6;
    transition: background 0.5s, color 0.5s;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.8rem;
    color: #58a6ff;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3
        4s;
}

.nav-links a:hover {
    color: #58a6ff;
}

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 50px;
    min-height: 100vh;
    flex-wrap: wrap;
}

.home-text h1 {
    font-size: 3rem;
}

.home-text span {
    color: #58a6ff;
}

.buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #58a6ff, #1f6feb, #58a6ff);
    background-size: 300% 300%;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-position 0.4s ease;
}

.btn:hover {
    background-position: right center;
}

.btn.secondary {
    background: transparent;
    border: 2px solid #58a6ff;
}

.home-img img {
    width: 350px;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #58a6ff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Sections */
section {
    padding: 80px 50px;
    text-align: center;
}

/* Skills */
.skill-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill, .project-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.skill:hover, .project-card:hover {
    background: #58a6ff;
    color: #fff;
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 80px 50px;
    background: linear-gradient(270deg, #0d1117, #161b22, #0d1117);
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
    color: #fff;
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ccc;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    outline: none;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form input {
    height: 45px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #58a6ff, #1f6feb, #58a6ff);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: background-position 0.4s ease;
}

.contact-form button:hover {
    background-position: right center;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #58a6ff;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #58a6ff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1f6feb;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.7);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }
    .home-img {
        margin-top: 20px;
    }
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        text-align: center;
    }
}





h1, h2, h3 {
    text-shadow: 0 0 10px #58a6ff, 0 0 20px #1f6feb;
}




.btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #58a6ff, #1f6feb, #58a6ff);
    background-size: 300% 300%;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.4s ease;
    box-shadow: 0 0 15px rgba(88,166,255,0.6);
}

.btn:hover {
    background-position: right center;
    box-shadow: 0 0 20px #58a6ff, 0 0 40px #1f6feb, 0 0 60px #58a6ff;
}



.project-card:hover, .skill:hover {
    background: rgba(88,166,255,0.1);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 0 15px #58a6ff, 0 0 30px #1f6feb;
}


.social-links a:hover {
    color: #58a6ff;
    text-shadow: 0 0 10px #58a6ff, 0 0 20px #1f6feb;
}


.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 8px #58a6ff, 0 0 15px #1f6feb;
    border: 1px solid #58a6ff;
}







.social-links a {
    color: #58a6ff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1f6feb;
}







/* Default: Dark Mode (Your current theme) */
body {
    background: linear-gradient(270deg, #0d1117, #161b22, #0d1117);
    color: #fff;
}

/* Light Mode */
body.light-mode {
    background: linear-gradient(270deg, #f5f5f5, #ffffff, #f5f5f5);
    color: #222;
}

body.light-mode header,
body.light-mode footer,
body.light-mode .contact,
body.light-mode .project-card,
body.light-mode .skill,
body.light-mode .contact-form {
    background: #fff;
    color: #222;
}

body.light-mode a {
    color: #1f6feb;
}





/* Light Mode */
body.light-mode {
    background: linear-gradient(270deg, #f8f9fb, #e8ebf0, #f8f9fb);
    color: #1e1e1e;
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
}

/* Header in Light Mode */
body.light-mode header {
    background: rgba(240, 242, 245, 0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Navigation Links */
body.light-mode .nav-links a {
    color: #333;
}

body.light-mode .nav-links a:hover {
    color: #0077b6; /* Professional blue hover */
}

/* Buttons */
body.light-mode .btn {
    background: linear-gradient(90deg, #0077b6, #0096c7, #0077b6);
    color: #fff;
}

body.light-mode .btn.secondary {
    background: transparent;
    border: 2px solid #0077b6;
    color: #0077b6;
}

body.light-mode .btn:hover {
    background-position: right center;
}

/* Cards (Skills & Projects) */
body.light-mode .skill,
body.light-mode .project-card,
body.light-mode .contact-form {
    background: #ffffff;
    color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Contact Info */
body.light-mode .contact-info h3 {
    color: #0077b6;
}

body.light-mode .social-links a {
    color: #0077b6;
}






.home-img-slider {
    position: relative;
    width: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px #58a6ff, 0 0 40px #1f6feb;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
    width: 350px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}




.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    justify-content: center;
}

.about-img img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(88,166,255,0.4);
    transition: transform 0.4s ease;
}

.about-img img:hover {
    transform: scale(1.05);
}

.about-text {
    max-width: 600px;
}

.about-highlights {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.about-highlights li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.about-buttons {
    margin-top: 15px;
}

.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.about-stats .stat {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
}

.about-stats h3 {
    font-size: 1.8rem;
    color: #58a6ff;
}




html, body {
    margin: 0;
    padding: 0;
}

section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

footer {
    margin: 0;
    padding: 15px 0; /* adjust as needed */
}







.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    
}








