/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

/* BODY */
body {
    background: #0f172a;
    color: white;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #38bdf8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #38bdf8;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 90vh;
    padding: 20px;
    gap: 15px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 5px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

span, .name {
    color: #38bdf8;
}

.hero p {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.6;
    color: #cbd5f5;
    margin-bottom: 20px;
    text-align: center;
}

.btn {
    background: #38bdf8;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background: white;
}

/* SECTIONS */
section {
    padding: 80px 10%;
}

section h2 {
    font-size: 34px;
    margin-bottom: 40px;
    color: #38bdf8;
    text-align: center;
}

/* ABOUT SECTION */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about p {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5f5;
    text-align: left;
}

/* PROFILE IMAGE STYLING - ADD THIS SECTION */
.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #38bdf8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: #0ea5e9;
}

/* SKILLS SECTION */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    width: 150px;
    text-align: center;
    transition: 0.3s;
    font-size: 18px;
}

.skill i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #38bdf8;
}

.skill:hover {
    transform: translateY(-5px);
    background: #334155;
}

/* PROJECTS SECTION */
#projects {
    padding: 80px 10%;
    text-align: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.project-card h3 {
    margin-bottom: 15px;
    color: #38bdf8;
    font-size: 22px;
}

.project-card p {
    color: #cbd5f5;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.6;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: white;
    background: #38bdf8;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
    font-weight: 500;
}

.project-card a:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

/* CONTACT SECTION */
#contact {
    text-align: center;
    padding: 80px 10%;
}

.contact-title {
    font-size: 34px;
    color: #38bdf8;
    margin-bottom: 15px;
}

.contact-subtitle {
    color: #cbd5f5;
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-icons {
    margin-top: 20px;
}

.contact-icons a {
    margin: 0 15px;
    font-size: 35px;
    color: #38bdf8;
    transition: 0.3s;
    display: inline-block;
}

.contact-icons a:hover {
    color: white;
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    color: #94a3b8;
    margin-top: 0;
}

/* THEME TOGGLE BUTTON */
#themeToggle {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: #38bdf8;
    color: white;
    cursor: pointer;
    margin-left: 20px;
    font-size: 18px;
}

/* LIGHT MODE */
body.light-mode {
    background: #ffffff;
    color: #111;
}

body.light-mode nav {
    background: #e2e8f0;
}

body.light-mode nav ul li a {
    color: #111;
}

body.light-mode .logo {
    color: #0284c7;
}

/* HERO LIGHT MODE */
body.light-mode .hero h1,
body.light-mode .hero h2 {
    color: #111;
}

body.light-mode .hero p {
    color: #374151;
}

body.light-mode .name,
body.light-mode span {
    color: #0284c7;
}

/* ABOUT LIGHT MODE */
body.light-mode .about p {
    color: #374151;
}

/* PROFILE IMAGE LIGHT MODE - ADD THIS SECTION */
body.light-mode .profile-img {
    border-color: #0284c7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.light-mode .profile-img:hover {
    border-color: #0369a1;
}

/* SKILLS LIGHT MODE */
body.light-mode .skill {
    background: #f1f5f9;
    color: #111;
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

body.light-mode .skill i {
    color: #0284c7;
}

body.light-mode .skill:hover {
    background: #38bdf8;
    color: white;
}

body.light-mode .skill:hover i {
    color: white;
}

/* PROJECTS LIGHT MODE */
body.light-mode .project-card {
    background: #ffffff;
    color: #111;
    border: 2px solid #e2e8f0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

body.light-mode .project-card h3 {
    color: #0284c7;
}

body.light-mode .project-card p {
    color: #374151;
}

body.light-mode .project-card:hover {
    border-color: #38bdf8;
    transform: translateY(-5px);
}

body.light-mode .project-card a {
    background: #0284c7;
}

body.light-mode .project-card a:hover {
    background: #0369a1;
}

/* CONTACT LIGHT MODE */
body.light-mode .contact-title {
    color: #0284c7;
}

body.light-mode .contact-subtitle {
    color: #374151;
}

body.light-mode .contact-icons a {
    color: #0284c7;
}

body.light-mode .contact-icons a:hover {
    color: #0369a1;
}

/* BUTTON LIGHT MODE */
body.light-mode .btn {
    background: #0284c7;
    color: white;
}

body.light-mode .btn:hover {
    background: #0369a1;
}

body.light-mode #themeToggle {
    background: #0284c7;
}

/* PARTICLES JS */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* RESPONSIVE */
@media(max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about p {
        text-align: center;
    }
    
    /* PROFILE IMAGE RESPONSIVE - ADD THIS SECTION */
    .profile-img {
        width: 220px;
        height: 220px;
        margin-bottom: 20px;
    }
    
    .skill {
        width: 130px;
        padding: 15px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .contact-icons a {
        font-size: 30px;
        margin: 0 10px;
    }
}