html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.8s ease-in;
}

body, html {
    background-size: cover;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#intro {
    max-width: 700px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #00bcd4;
    margin: 10px auto 0;
}

.text-block {
    max-width: 700px;   /* adjust between 600–800px */
    margin: 0 auto;     /* centers it */
}

/* Education-specific override */
.education-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.education-heading::after {
  content: none; /* 🔑 kills the extra line */
}

.education-text {
  position: relative;
  display: inline-block;
}

.education-text::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #00bcd4;
  margin: 10px auto 0;
}

.education-logo {
  height: 60px;
  width: auto;
  opacity: 0.85;
  padding-left: 150px;
  padding-bottom: 35px;  
}

.navbar {
    background-color: #222;
    padding: 15px 0;
    text-align: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #00bcd4;
}

#hero {
    display: none;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5em;
    margin: 0;
}

.hero-content p {
    font-size: 1.5em;
    margin: 20px 0;
}

.hero-content .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: #00bcd4;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #008ba3;
}

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

.skill-label {
    font-weight: 600;   /* lighter than bold */
    color: #333;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.project {
    margin-bottom: 4rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5em;
    color: #333;
}

.project-card p {
    padding: 0 15px;
    color: #555;
    font-size: 1em;
    line-height: 1.4;
}

.project-card a {
    display: inline-block;
    margin: 15px auto;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #00bcd4;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-card a:hover {
    background-color: #008ba3;
    transform: scale(1.05);
}

.project-findings {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background-color: #f7f9fb;
    border-left: 4px solid #00bcd4;
    border-radius: 6px;
    color: #444;
}

.project-findings h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #333;
}

.project-findings ul {
    margin: 0;
    padding-left: 1.2rem;
}

.project-findings li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.project-source {
    margin-top: 1rem;
    font-size: 0.9em;
    color: #666;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}

header {
    padding: 20px;
    text-align: left;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
}

.subtitle {
    margin-top: 5px;
    font-size: 1.2em;
    color: #777;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

footer .social-links a {
    margin: 0 10px;
    font-size: 1.5em;
    color: #333;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #00bcd4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
