@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", monospace;
}

body {
    background-color: #f9f9f9;
    color: #1a1a1a;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}


/* Navigation */
#desktop-nav {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #1a1a1a;
    margin: 4px 0;
    transition: 0.4s;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #e0f0ff;
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: inherit;
    position: absolute;
    left: 20px;
    top: 20px;
    /* margin-left: 1rem; */
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.show {
    filter: blur(0);
    opacity: 1;
    transition: opacity 1s, filter 1s;
}

#About p {
    padding: 10px;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #284b63;
    transition: transform 0.3s ease;
}

.buttons {
    gap: 20px;
}

/* Common button styles */
.btn-download,
#Contact a {
    display: inline-block;
    padding: 10px 10px;
    background-color: #e0eefba8;
    color: #284b63;
    text-decoration: none;
    border-radius: 5px;
    /* border: 2px solid #99ccff; */
    font-weight: bold;
    text-align: center;
    width: 180px;
}

.btn-download:hover,
#Contact a:hover {
    background-color: #99ccff;
    color: #ffffff;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #284b63;
}

h3 {
    color: #284b63;
}

p, li {
    font-size: 1rem;
    color: #333333;
}

/* About & Experience Styles */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Project Card Styles */
.project-card,
.skill-card,
.timeline-content {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: left;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    font-size: 0.95rem;
}

/* Hover Effect */
.project-card:hover,
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
#skills {
    text-align: center;
    margin-top: 3rem;
}

#skills h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    gap: 1.5rem;
}

/* Community Section */
.community-item {
    padding: 20px;
    margin-bottom: 1.5rem;
}

/* Contact Section */
#Contact ul {
    list-style: none;
}

#Contact li {
    margin-top: 1rem;
}

i {
    padding: 5px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: #ccc;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    /* padding: 1rem; */
    margin-bottom: 2rem;
    /* background-color: #ffffff; */
    border-radius: 8px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 1rem;
    margin: -2px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 1rem;
    margin: 2px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 100%;
}

.timeline-item:nth-child(even)::before {
    left: 0;
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content p {
    margin: 0.5rem 0;
}

.timeline-content span {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #desktop-nav {
      padding: 30px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }

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

    #Contact ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1rem;
    }
}

/* ----------------------- */
/* DARK MODE STYLES */
/* ----------------------- */
body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode #desktop-nav {
    background-color: #1e1e1e;
    border-bottom: 2px solid #333;
}

body.dark-mode .profile-img{
    border: 3px solid #333;
}

body.dark-mode .nav-links a {
    color: #f5f5f5;
}

body.dark-mode .nav-links a:hover {
    background-color: #333;
}

body.dark-mode .bar {
    background-color: #f5f5f5;
}

body.dark-mode .project-card,
body.dark-mode .skill-card,
body.dark-mode .timeline-content {
    background-color: #1e1e1e;
    color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

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

body.dark-mode p,
body.dark-mode li {
    color: #ccc;
}

body.dark-mode .btn-download,
body.dark-mode #Contact a {
    background-color: #121212;
    color: #ccc;
    border: 2px solid #ccc;
}

body.dark-mode .btn-download:hover,
body.dark-mode #Contact a:hover {
    background-color: #ccc;
    color: #121212;
}
