/* --- Global Styles & Variables --- */
:root {
  --primary-color: #00aaff; /* A catchy blue */
  --background-color: #121212; /* A dark background */
  --surface-color: #1e1e1e; /* Color for cards and sections */
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    color: #bbb;
}

/* --- Animation for Sections --- */
.animated-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Header & Navigation --- */
header {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--heading-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: var(--primary-color);
}

/* --- Hero Section --- */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 60px; /* Offset for fixed header */
}

#hero h1 {
  font-size: 3.5rem;
}

#hero .subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem 0 2rem 0;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* --- Sections General --- */
section {
  padding: 6rem 0;
}

/* --- About Section --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.about-text h2 {
  text-align: left;
}

.about-buttons {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cv-button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.cv-button:hover {
    transform: translateY(-3px);
}

.social-links a {
  color: var(--text-color);
  font-size: 2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* --- Skills Section --- */
#skills {
    background-color: var(--surface-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-category h3 i {
    margin-right: 0.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    background: var(--background-color);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #444;
}


/* --- Projects Section --- */
#projects {
  background-color: var(--background-color);
}

#projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.project-card p {
  margin-bottom: 1rem;
  flex-grow: 1; /* Makes description take up available space */
}

.project-links {
    margin-top: auto; /* Pushes links to the bottom */
}

.project-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
}

/* --- Certifications Section --- */
#certifications {
    background-color: var(--surface-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--background-color);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cert-card h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--heading-color);
}

.cert-card p {
    color: #aaa;
    padding-bottom: 1.5rem;
}

.cert-card.more-certs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- Contact Section --- */
#contact {
  text-align: center;
  background-color: var(--background-color);
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.contact-email:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* --- Footer --- */
footer {
  text-align: center;
  background: var(--surface-color);
  color: #aaa;
  padding: 2rem 0;
  border-top: 1px solid #333;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text h2 {
    text-align: center;
  }

  .about-buttons {
      justify-content: center;
  }

  header nav ul {
      display: none; /* Simple responsive menu, can be improved with JS */
  }
}