@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Updated Light Theme Colors */
    --primary-color: #1abc9c; /* Soft Teal */
    --secondary-color: #e9c846; /* Muted Gold */
    --background-color: #f7f7f7; /* Off-White */
    --text-color: #34495e; /* Dark Slate */
}

[data-theme="dark"] {
    /* Dark Theme Colors (unchanged) */
    --primary-color: #1abc9c; /* Teal */
    --secondary-color: #f39c12; /* Yellow */
    --background-color: #2c3e50; /* Dark Grey */
    --text-color: #ecf0f1; /* Light Text */
}

.note {
    background-color: #a3d8f4; /* Light Blue */
    color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blog-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 24px;
  }
  
  .blog-card {
    background: #5b7473;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(44, 62, 80, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 480px;
    padding: 0;
    overflow: hidden;
  }
  
  .blog-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.16);
  }
  
  .blog-link {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 0;
  }
  
  .blog-card-content {
    padding: 24px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }
  
  .blog-tag {
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.85em;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  
  .blog-date {
    color: #27262f;
    font-size: 0.92em;
    font-weight: 400;
  }
  
  .blog-title {
    font-size: 1.18em;
    color: var(--primary-color);
    margin: 0 0 4px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
  }
  
  .blog-excerpt {
    color: var(--text-color);
    font-size: 1em;
    margin: 0 0 8px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
  }
  .project-btn {
    display: inline-block;
    font-size: 1rem; /* matches your body text */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 6px 18px;
    background-color: var(--primary-color);
    color: #fff !important;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.07);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    margin-top: 6px;
    vertical-align: middle;
    letter-spacing: 0.1px;
  }
  
  .project-btn:hover,
  .project-btn:focus {
    background-color: var(--secondary-color);
    color: #333 !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.14);
    transform: translateY(-1px) scale(1.02);
    text-decoration: none;
  }
  
  .note {
    background: none;
    color: inherit;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0;
  }
  
  
  .read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.3px;
    transition: color 0.2s;
  }
  
  .blog-card:hover .read-more {
    color: var(--secondary-color);
  }
  
  @media (max-width: 600px) {
    .blog-card-content {
      padding: 16px 14px 16px 14px;
    }
    .blog-card {
      max-width: 100%;
    }
  }
  
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: top 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    padding: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

main {
    margin-top: 70px;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#profile-picture {
    width: 400px;
    height: 400px;
    border-radius: 2%;
    object-fit: cover;
}

section {
    margin-bottom: 40px;
}

.section-item {
    margin-bottom: 20px;
}

#experience .experience-item {
    margin-bottom: 30px;
}

#projects .project-item {
    margin-bottom: 25px;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5em;
    color: var(--text-color);
}

h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

.skills-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 29px;
    padding-top: 5%;
  }

.skill-item {
    display: inline-block;
    vertical-align: top;
    width: 100px;
    padding: 10px;
    margin: 0 10px 10px 0;
    border-radius: 17px;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    color: #333;
  }
.skills-icons > div {
    width: 100%;
    margin-bottom: 30px;
    text-align: left;
  }
  
  .skills-icons > div > h3 {
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
  }
.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.social-links a {
    font-size: 24px;
    margin-right: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.progress-container {
    width: 100%;
    height: 5px;
    background: #ccc;
    position: fixed;
    top: 0;
    z-index: 999;
}

.progress-bar {
    height: 12px;
    background: var(--secondary-color);
    width: 0%;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 99px;
}

.slider.round:before {
    border-radius: 90%;
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        flex: 1 1 auto;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    #profile-picture {
        margin-bottom: 20px;
    }
}
