@import "palette.css";
@import "header.css";

/* === Minimal Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* === Base Typography & Layout === */
body {
  font-family: 'Poppins', sans-serif;
  text-rendering: optimizeLegibility;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: var(--link);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* === Main Content === */
#content {
  align-items: center;
  justify-content: center;
}

/* === Blog Posts === */
article {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  transition: border-color 0.3s ease;
}

article h2 {
  font-size: 30px;
  margin-bottom: 5px;
}

article h2 a {
  color: var(--text-primary);
}

article h2 a:hover {
  color: var(--link-hover);
}

article address {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: normal;
  margin-bottom: 15px;
}

article p {
  margin: 15px 0;
  color: var(--text-primary);
}

article pre {
  font-family: 'Montserrat', 'Courier New', monospace;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--border);
  color: var(--text-primary);
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 15px 0;
  transition: background 0.3s ease, color 0.3s ease;
  opacity: 0.9;
}

.readmore {
  margin-top: 10px;
}

.readmore a {
  color: var(--text-primary);
  font-weight: bold;
}

.readmore a:hover {
  color: var(--link-hover);
}

/* === Footer === */
footer {
  max-width: 850px;
  margin: 0 auto 30px auto;
  padding: 20px 20px 0 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* === About Section === */
#about {
  padding: 80px 0;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.section-title {
  font-family: "Comfortaa", sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--logo);
  text-align: center;
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--logo);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stat-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.stat-item:hover {
  border-color: var(--interactive);
  transform: translateY(-2px);
}

.stat-item-img {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 26px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.stat-item-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.stat-item .stat-number,
.stat-item > span:nth-child(2) {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--logo);
}

.stat-label {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* Hero Section – centered, generous whitespace */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; 
  text-align: center;
}

.hero-content {
  max-width: 680px;
}

.greeting {
  color: var(--logo);

  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

#hero h1 {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--logo);
}

.typing-container {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  min-height: 2.5rem;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--interactive);
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--logo);
  margin: 0 auto 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 2rem;
  border-radius: 980px; /* pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: var(--navbar-hover);
  color: var(--background);
  box-shadow: var(--logo);
}

.btn-primary:hover {
  color: var(--background);
  background: var(--logo);
  transform: translateY(-1px);
  box-shadow: var(--logo);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--navbar-hover);
  color: var(--logo);
}

.btn-secondary:hover {
  color: var(--background);
  background: var(--navbar-hover);
  transform: translateY(-1px);
  box-shadow: var(--logo);
}

/* === Responsive === */
@media screen and (max-width: 900px) {
  #container {
    padding: 0 15px 30px 15px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  #logo {
    font-size: 2rem;
  }

  article h2 {
    font-size: 24px;
  }
  
  header {
    margin: 0% 10%;
    padding: 20px 15px 5px 15px;
    gap: 5px 10px;
  }

  #header-nav {
    font-size: 0.8rem;
  }

  #theme-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  #theme-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  #about {
    padding: 50px 50px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stat-item-img {
    max-width: 280px;
    margin: 0 auto;
  }

}

@media screen and (max-width: 700px) {
  header {
    margin: 0% 10%;
    padding: 25px 10px 5px 10px;
  }
  :root {
    font-size: 14px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stat-item-img {
    display: none;
  }
}
