/* =========================================================
   AMIT PRATAP JATIYA — AUTHOR WEBSITE
   PREMIUM UI DESIGN
========================================================= */

:root {
  --wine: #8b1e3f;
  --wine-dark: #65152e;
  --wine-light: #b43b60;

  --cream: #faf7f3;
  --cream-2: #f3ebe4;
  --dark: #1d1719;
  --dark-2: #2b2024;

  --text: #292326;
  --muted: #71686b;

  --white: #fff;

  --border: #e9dfe2;

  --shadow-sm: 0 8px 25px rgba(0,0,0,.06);
  --shadow-md: 0 18px 45px rgba(0,0,0,.10);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.17);

  --radius: 20px;
}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
  background: var(--wine);
  color: white;
}


/* =========================================================
   NAVBAR
========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 9999;

  background: rgba(255,255,255,.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(0,0,0,.06);

  box-shadow: 0 4px 25px rgba(0,0,0,.03);
}

nav {
  width: min(1180px, 92%);

  height: 76px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;
}


/* LOGO */

.logo {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 25px;

  font-weight: 700;

  color: var(--wine);

  letter-spacing: .3px;

  white-space: nowrap;

  transition: .3s ease;
}

.logo span {
  color: var(--dark);
}

.logo:hover {
  transform: translateY(-1px);
}


/* NAV LINKS */

.nav-links {
  display: flex;

  align-items: center;

  gap: 30px;

  list-style: none;
}

.nav-links a {
  position: relative;

  color: #393235;

  font-size: 14px;

  font-weight: 600;

  padding: 8px 0;

  transition: .3s ease;
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;

  background: var(--wine);

  border-radius: 5px;

  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--wine);
}

.nav-links a:hover::after {
  width: 100%;
}


/* MOBILE MENU */

.menu {
  display: none;

  width: 44px;
  height: 44px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: white;

  color: var(--wine);

  font-size: 24px;

  cursor: pointer;

  transition: .3s ease;
}

.menu:hover {
  background: var(--wine);
  color: white;
}


/* =========================================================
   ANNOUNCEMENT
========================================================= */

.announcement {
  position: relative;

  padding: 120px 20px 55px;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(139,30,63,.35),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(180,59,96,.20),
      transparent 30%
    ),
    var(--dark);
}

.announcement-content {
  width: min(1120px, 100%);

  min-height: 390px;

  margin: auto;

  display: grid;

  grid-template-columns: .95fr 1.05fr;

  overflow: hidden;

  background: white;

  border: 2px solid rgba(255,255,255,.15);

  border-radius: 28px;

  box-shadow: 0 30px 80px rgba(0,0,0,.35);

  position: relative;
}


/* ANNOUNCEMENT IMAGE */

.announcement-photo {
  position: relative;

  min-height: 390px;

  overflow: hidden;

  background: #ddd;
}

.announcement-photo::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      90deg,
      transparent 55%,
      rgba(0,0,0,.18)
    );
}

.announcement-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .7s ease;
}

.announcement-content:hover
.announcement-photo img {
  transform: scale(1.06);
}


/* ANNOUNCEMENT TEXT */

.announcement-text {
  padding: 55px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  position: relative;
}

.announcement-text::before {
  content: "";

  position: absolute;

  top: 35px;
  right: 35px;

  width: 70px;
  height: 70px;

  border-top: 2px solid var(--wine);
  border-right: 2px solid var(--wine);

  opacity: .2;
}

.announcement-badge {
  width: fit-content;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 8px 15px;

  margin-bottom: 18px;

  border-radius: 50px;

  background: rgba(139,30,63,.10);

  color: var(--wine);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1px;
}

.announcement-text h2 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(32px, 4vw, 48px);

  line-height: 1.1;

  color: var(--dark);

  margin-bottom: 17px;
}

.announcement-text p {
  max-width: 530px;

  color: var(--muted);

  font-size: 16px;

  margin-bottom: 28px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  width: fit-content;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 13px 23px;

  border-radius: 50px;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease,
    color .3s ease;
}

.primary {
  background: linear-gradient(
    135deg,
    var(--wine),
    var(--wine-dark)
  );

  color: white;

  box-shadow:
    0 10px 25px rgba(139,30,63,.20);
}

.primary:hover {
  transform: translateY(-4px);

  box-shadow:
    0 17px 35px rgba(139,30,63,.30);
}

.secondary {
  border: 1.5px solid var(--wine);

  color: var(--wine);

  background: rgba(255,255,255,.4);
}

.secondary:hover {
  background: var(--wine);

  color: white;

  transform: translateY(-4px);

  box-shadow:
    0 12px 25px rgba(139,30,63,.18);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 88vh;

  padding: 100px 20px 85px;

  display: flex;

  align-items: center;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(139,30,63,.08),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #fffaf6,
      #f3e7de
    );
}

.hero-container {
  width: min(1150px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns: 1.08fr .92fr;

  gap: 65px;

  align-items: center;
}

.small-title {
  display: inline-block;

  color: var(--wine);

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: 15px;

  padding: 7px 13px;

  background: rgba(139,30,63,.08);

  border-radius: 50px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(45px, 6vw, 76px);

  line-height: 1.02;

  color: var(--dark);

  margin-bottom: 22px;

  letter-spacing: -1.5px;
}

.hero h1 span {
  display: block;

  color: var(--wine);
}

.hero p {
  max-width: 650px;

  color: #5f575a;

  font-size: 17px;

  line-height: 1.8;

  margin-bottom: 30px;
}

.buttons {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}


/* =========================================================
   AUTHOR PHOTO FRAME
========================================================= */

.hero-image {
  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 510px;

  padding: 30px;
}


/* LARGE DECORATIVE FRAME */

.hero-image::before {
  content: "";

  position: absolute;

  width: 350px;
  height: 430px;

  border: 2px solid var(--wine);

  border-radius: 25px;

  transform: rotate(6deg);

  opacity: .32;

  transition: .4s ease;
}


/* SECOND FRAME */

.hero-image .frame {
  position: absolute;

  width: 350px;
  height: 430px;

  border: 1px solid rgba(139,30,63,.22);

  border-radius: 25px;

  transform: rotate(-5deg);

  transition: .4s ease;
}


/* PHOTO */

.hero-image img {
  position: relative;

  z-index: 3;

  width: 330px;
  height: 410px;

  object-fit: cover;

  border-radius: 22px;

  border: 8px solid white;

  box-shadow:
    0 25px 65px rgba(0,0,0,.20);

  transition:
    transform .45s ease,
    box-shadow .45s ease;
}

.hero-image:hover::before {
  transform: rotate(3deg) scale(1.02);
}

.hero-image:hover .frame {
  transform: rotate(-3deg) scale(1.02);
}

.hero-image img:hover {
  transform: translateY(-9px);

  box-shadow:
    0 35px 80px rgba(0,0,0,.25);
}


/* AUTHOR BADGE */

.author-badge {
  position: absolute;

  right: 4px;
  bottom: 10px;

  z-index: 5;

  padding: 10px 17px;

  background:
    linear-gradient(
      135deg,
      var(--wine),
      var(--wine-dark)
    );

  color: white;

  border-radius: 50px;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.2px;

  box-shadow:
    0 10px 25px rgba(0,0,0,.17);
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

section:not(.hero):not(.announcement) {
  padding: 95px 20px;
}

.section-title {
  width: min(700px, 100%);

  margin: 0 auto 55px;

  text-align: center;
}

.section-title small {
  display: inline-block;

  color: var(--wine);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;
}

.section-title h2 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(34px, 5vw, 46px);

  line-height: 1.1;

  color: var(--dark);

  margin: 8px 0 12px;
}

.section-title p {
  color: var(--muted);

  font-size: 15px;
}


/* =========================================================
   ABOUT
========================================================= */

#about {
  background: white;
}

.about-container {
  width: min(1050px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns: 1fr .85fr;

  gap: 65px;

  align-items: center;
}

.about-text h3 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 34px;

  line-height: 1.25;

  color: var(--dark);

  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);

  margin-bottom: 16px;

  font-size: 15px;
}


/* QUOTE */

.quote {
  position: relative;

  padding: 45px 38px;

  background:
    linear-gradient(
      135deg,
      #fff8f3,
      #f5e7de
    );

  border-radius: 22px;

  border-left: 5px solid var(--wine);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 23px;

  font-style: italic;

  color: var(--dark);

  box-shadow: var(--shadow-sm);
}

.quote::before {
  content: "“";

  position: absolute;

  top: -25px;
  left: 25px;

  font-family: Georgia, serif;

  font-size: 100px;

  color: rgba(139,30,63,.12);
}


/* =========================================================
   BOOKS
========================================================= */

.books {
  background:
    linear-gradient(
      135deg,
      var(--cream-2),
      #eee2d8
    );
}

.book-grid {
  width: min(1100px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 28px;
}


/* BOOK CARD */

.book-card {
  background: white;

  border-radius: 20px;

  overflow: hidden;

  border: 1px solid rgba(0,0,0,.04);

  box-shadow: var(--shadow-sm);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.book-card:hover {
  transform: translateY(-9px);

  box-shadow: var(--shadow-md);
}


/* BOOK IMAGE */

.book-image {
  height: 350px;

  overflow: hidden;

  background: #eee;
}

.book-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .55s ease;
}

.book-card:hover
.book-image img {
  transform: scale(1.06);
}


/* BOOK INFO */

.book-info {
  padding: 24px;
}

.book-info h3 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 21px;

  line-height: 1.35;

  color: var(--dark);

  margin-bottom: 10px;
}

.book-info p {
  color: var(--muted);

  font-size: 14px;

  margin-bottom: 18px;
}

.book-info .btn {
  padding: 11px 19px;

  font-size: 13px;
}


/* =========================================================
   WRITING
========================================================= */

#writing {
  background: white;
}

.writing-grid {
  width: min(1100px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 23px;
}

.writing-card {
  position: relative;

  padding: 32px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fffaf7
    );

  border: 1px solid var(--border);

  border-radius: 20px;

  overflow: hidden;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.writing-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: var(--wine);

  transform: scaleX(0);

  transform-origin: left;

  transition: .3s ease;
}

.writing-card:hover {
  transform: translateY(-7px);

  box-shadow: var(--shadow-sm);
}

.writing-card:hover::before {
  transform: scaleX(1);
}

.writing-card span {
  color: var(--wine);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.writing-card h3 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 23px;

  line-height: 1.25;

  margin: 13px 0;

  color: var(--dark);
}

.writing-card p {
  color: var(--muted);

  font-size: 14px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
  background: var(--cream);
}

.gallery-grid {
  width: min(1100px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;
}

.gallery-item {
  height: 270px;

  overflow: hidden;

  border-radius: 18px;

  background: #ddd;

  box-shadow: var(--shadow-sm);

  position: relative;
}

.gallery-item::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.15),
    transparent 45%
  );

  opacity: 0;

  transition: .3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:hover::after {
  opacity: 1;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  position: relative;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(139,30,63,.45),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(180,59,96,.18),
      transparent 30%
    ),
    var(--dark);

  color: white;
}

.contact .section-title h2 {
  color: white;
}

.contact .section-title small {
  color: #e0a7b8;
}

.contact .section-title p {
  color: #c9c0c3;
}

.contact-container {
  width: min(850px, 100%);

  margin: auto;

  text-align: center;
}

.contact-container > p {
  max-width: 650px;

  margin: 0 auto 32px;

  color: #ddd;

  font-size: 16px;
}


/* SOCIAL */

.social {
  display: flex;

  justify-content: center;

  gap: 12px;

  flex-wrap: wrap;
}

.social a {
  min-width: 60px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 13px 20px;

  border: 1px solid rgba(255,255,255,.22);

  background: rgba(255,255,255,.04);

  border-radius: 50px;

  color: white;

  font-size: 14px;

  font-weight: 700;

  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease,
    border .3s ease;
}

.social a:hover {
  background: white;

  color: var(--dark);

  border-color: white;

  transform: translateY(-4px);
}

.social-icon {
  font-size: 18px;

  font-weight: bold;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 27px 20px;

  text-align: center;

  background: #110c0e;

  color: #91898c;

  font-size: 13px;
}

footer strong {
  color: white;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .nav-links {
    gap: 20px;
  }

  .hero-container {
    gap: 35px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .book-grid,
  .writing-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

  nav {
    width: 94%;
    height: 68px;
  }

  .menu {
    display: flex;

    align-items: center;

    justify-content: center;
  }


  /* MOBILE NAV */

  .nav-links {
    position: absolute;

    top: 68px;
    left: 0;

    width: 100%;

    display: none;

    flex-direction: column;

    gap: 0;

    padding: 10px 20px 20px;

    background: rgba(255,255,255,.98);

    box-shadow:
      0 20px 35px rgba(0,0,0,.10);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;

    text-align: center;

    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;

    padding: 13px;
  }

  .nav-links a::after {
    display: none;
  }


  /* ANNOUNCEMENT */

  .announcement {
    padding:
      92px
      14px
      30px;
  }

  .announcement-content {
    grid-template-columns: 1fr;

    border-radius: 22px;
  }

  .announcement-photo {
    min-height: 245px;

    height: 245px;
  }

  .announcement-text {
    padding: 35px 25px;

    text-align: center;

    align-items: center;
  }

  .announcement-text::before {
    display: none;
  }

  .announcement-text h2 {
    font-size: 32px;
  }

  .announcement-text p {
    font-size: 15px;
  }


  /* HERO */

  .hero {
    padding:
      70px
      15px
      60px;
  }

  .hero-container {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 20px;
  }

  .hero-image {
    order: -1;

    min-height: 390px;

    padding: 15px;
  }

  .hero-image::before,
  .hero-image .frame {
    width: 275px;
    height: 345px;
  }

  .hero-image img {
    width: 260px;
    height: 330px;
  }

  .author-badge {
    right: 5px;

    bottom: 0;

    font-size: 9px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;

    font-size: 16px;
  }

  .buttons {
    justify-content: center;
  }


  /* ABOUT */

  .about-container {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h3 {
    font-size: 29px;
  }


  /* CARDS */

  .book-grid,
  .writing-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .book-image {
    height: 350px;
  }

  .gallery-item {
    height: 300px;
  }


  /* SECTIONS */

  section:not(.hero):not(.announcement) {
    padding:
      75px
      15px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

  .logo {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 41px;

    letter-spacing: -1px;
  }

  .hero-image {
    min-height: 350px;
  }

  .hero-image::before,
  .hero-image .frame {
    width: 245px;
    height: 310px;
  }

  .hero-image img {
    width: 230px;
    height: 295px;

    border-width: 6px;
  }

  .author-badge {
    right: 0;
    bottom: -2px;

    padding: 8px 12px;

    font-size: 8px;
  }

  .announcement-text h2 {
    font-size: 28px;
  }

  .book-image {
    height: 310px;
  }

  .social a {
    width: 100%;
  }

  .btn {
    padding: 12px 19px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 3px solid rgba(139,30,63,.35);

  outline-offset: 4px;

  border-radius: 5px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: .01ms !important;

    animation-duration: .01ms !important;
  }

}