/* ===================== RESET ===================== */

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
}

/* ===================== GLOBAL BODY ===================== */

body {
  background-image: url("myweb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===================== NAVIGATION ===================== */

.nav {
  position: fixed;
  top: 30px;
  right: 50px;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.nav a:hover {
  opacity: 1;
}

.nav a.active {
  opacity: 1;
  border-bottom: 1px solid white;
  padding-bottom: 4px;
}

/* ===================== HERO SECTION ===================== */

.hero {
  height: 100vh;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)
    ),
    url("myweb.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center text */

.hero-content {
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -1px;
}

.hero-content p {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.85;
}

/* SEO */
.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* ===================== CONTACT PAGE ===================== */

.contact-page {
  min-height: 100vh;
  background: url("myweb.png") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.contact-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 15px;
  color: #444;
  margin-bottom: 32px;
}

/* Social icons */

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.social-links a {
  font-size: 22px;
  color: #111;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: #111;
  color: #fff;
  transform: translateY(-4px);
}

/* ===================== BLOG GRID ===================== */

.blog-grid {
  max-width: 900px;
  margin: 140px auto 80px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Responsive */

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== BLOG TILE ===================== */

.blog-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

/* Image */

.blog-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Overlay */

.blog-tile .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

/* Text */

.blog-tile h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.blog-tile p {
  font-size: 13px;
  opacity: 0.9;
}

/* Hover effects */

.blog-tile:hover img {
  transform: scale(1.08);
}

.blog-tile:hover .overlay {
  background: rgba(0, 0, 0, 0.6);
}


 /* ---------- BLOG POST PAGE ---------- */

.blog-post {
  max-width: 720px;
  margin: 120px auto;
  padding: 60px 70px;

  background: white;
  color: #111;

  font-family: 'Inter', sans-serif;
  line-height: 1.75;

  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  border-radius: 12px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  text-decoration: none;
  font-size: 14px;
  color: #666;
}

.back-link:hover {
  color: #000;
}

/* Titles */
.blog-post h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 8px;
}

.blog-post .subtitle {
  font-size: 18px;
  font-weight: 300;
  color: #666;
  margin-bottom: 40px;
}

/* Section headers */
.blog-post h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-top: 60px;
  margin-bottom: 20px;
}

/* Paragraphs */
.blog-post p {
  margin-bottom: 22px;
  font-size: 16px;
}

/* Divider */
.blog-post hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 60px 0;
}

/* Mobile */
@media (max-width: 768px) {
  .blog-post {
    padding: 40px 28px;
    margin: 100px 16px;
  }

  .blog-post h1 {
    font-size: 34px;
  }
}
/* ===================== ABOUT OVERLAY CARD (About)===================== */

.about-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("myweb.png") center / cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Flashcard style */
.about-card {
  position: relative;
  width: 90%;
  max-width: 850px;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);

  border-radius: 20px;
  padding: 60px;

  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;

  font-size: 22px;
  text-decoration: none;
  color: #555;

  transition: 0.2s ease;
}

.close-btn:hover {
  color: #000;
  transform: scale(1.1);
}

/* Header */
.about-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}

.about-header img {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}

.about-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
}

/* Intro */
.about-intro {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* Section title */
.about-section-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 18px;
}

/* Text */
.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #444;
}

/* Quote */
.about-quote {
  border-left: 3px solid #ccc;
  padding-left: 16px;
  font-style: italic;
  font-size: 18px;
  margin: 25px 0;
  color: #222;
}

/* Mobile */
@media (max-width: 768px) {
  .about-card {
    padding: 35px;
  }

  .about-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-header h1 {
    font-size: 32px;
  }
}


