/* General Styles */
body {
    background-color: #f4f4f4;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.dark-mode {
    background-color: #1e1e2f;
    color: #ffffff;
}

/* Toggle Button Container */
.toggle-button {
    width: 60px;
    height: 30px;
    background-color: #87CEEB;
    border-radius: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-button.dark {
    background-color: #4C51BF;
}

/* Sun & Moon */
.sun-moon {
    width: 22px;
    height: 22px;
    background-color: #FFD700;
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-button.dark .sun-moon {
    background-color: #F4E3C3;
    transform: translate(30px, -50%);
    box-shadow: inset -3px -3px 0px #D6BFA5;
}

/* Stars & Clouds Container */
.stars-clouds {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

/* White Clouds in Light Mode */
.cloud {
    width: 10px;
    height: 2px;
    background: white;
    border-radius: 4px;
    position: absolute;
    transition: all 0.5s ease-in-out;
}

/* Position Clouds */
.star1 { top: 50%; left: 9px; transform: translateY(-50%); }
.star2 { top: 60%; left: 14px; transform: translateY(-50%); }
.star3 { top: 40%; left: 17px; transform: translateY(-50%); }


/* ☀️ Move Clouds in Light Mode */
.toggle-button:not(.dark) .star1 {
    left: 32px !important; /* Move */
    width: 14px; /* Stretch */
}

.toggle-button:not(.dark) .star2 {
    left: 37px !important; 
    width: 18px;
}

.toggle-button:not(.dark) .star3 {
    left: 40px !important; 
    width: 13px;
}


/* Clouds in Dark Mode */
.toggle-button.dark .cloud {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Shrinks into stars */
}

/* Center the container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile section */
#profile {
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

#profile p {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin: 16px 0;
}

.dark-mode #profile p {
    color: #d1d1d6;
}

/* Profile Picture styles */
.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.02);
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
    letter-spacing: -0.5px;
}

.dark-mode h1 {
    color: #ffffff;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #333;
    border-bottom: 2px solid #FF0000;
    padding-bottom: 8px;
    display: inline-block;
}

.dark-mode h2 {
    color: #ffffff;
    border-bottom-color: #FFD700;
}

/* Links section */
#links {
    margin: 20px auto;
    width: fit-content;
    transition: all 0.3s ease;
}

#links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#links li {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

#links li:hover {
    transform: translateX(8px);
}

#links a {
    color: #FF0000;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

#links a:hover {
    color: #FFD700;
}

/* Experience section */
#experience {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.experience-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.experience-item h3 {
    color: #333;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.dark-mode .experience-item h3 {
    color: #ffffff;
}

.experience-item .location {
    color: #666;
    font-size: 16px;
    margin: 0 0 4px;
}

.experience-item .role {
    color: #444;
    font-size: 18px;
    margin: 0 0 12px;
    font-weight: 500;
}

.experience-item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.experience-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Education section */
#education {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.education-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    color: #333;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.dark-mode .education-item h3 {
    color: #ffffff;
}

.education-item .location {
    color: #666;
    font-size: 16px;
    margin: 0 0 4px;
}

.education-item .awards {
    color: #444;
    font-style: italic;
    margin: 8px 0 0;
}

/* Skills section */
#skills {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skills-category {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    color: #333;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.dark-mode .skills-category h3 {
    color: #ffffff;
}

/* Projects section */
#projects {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.project-item {
    margin-bottom: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    color: #333;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.dark-mode .project-item h3 {
    color: #ffffff;
}

.project-item .tech-stack {
    color: #666;
    font-size: 16px;
    margin: 0 0 12px;
}

.project-item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.project-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    margin-top: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #666;
}

.dark-mode .project-link {
    color: #ffffff;
}

.dark-mode .project-link:hover {
    color: #d1d1d6;
}

.project-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

/* Leadership section */
#leadership {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.leadership-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.leadership-item h3 {
    color: #333;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.dark-mode .leadership-item h3 {
    color: #ffffff;
}

.leadership-item .location {
    color: #666;
    font-size: 16px;
    margin: 0 0 4px;
}

.leadership-item .role {
    color: #444;
    font-size: 18px;
    margin: 0 0 12px;
    font-weight: 500;
}

.leadership-item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.leadership-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Personal section */
#personal {
    margin: 40px 0;
    text-align: left;
    width: 100%;
}

.personal-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.personal-info p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Dark mode adjustments */
.dark-mode .experience-item,
.dark-mode .education-item,
.dark-mode .skills-category,
.dark-mode .project-item,
.dark-mode .leadership-item,
.dark-mode .personal-info {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .experience-item:hover,
.dark-mode .project-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .experience-item .location,
.dark-mode .education-item .location,
.dark-mode .project-item .tech-stack,
.dark-mode .leadership-item .location {
    color: #a1a1a6;
}

.dark-mode .experience-item .role,
.dark-mode .education-item .awards,
.dark-mode .leadership-item .role {
    color: #d1d1d6;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-item,
    .education-item,
    .project-item,
    .leadership-item,
    .personal-info {
        padding: 15px;
    }

    .project-image {
        aspect-ratio: 16/9;
    }
}
