:root {
      --rose:        #c9748a;
      --rose-light:  #e8aab8;
      --rose-dark:   #8b3a50;
      --plum:        #5c2d4a;
      --gold:        #c9a96e;
      --gold-light:  #f0dbb5;
      --cream:       #fdf6f0;
      --warm-white:  #fffaf6;
      --deep:        #1a0e14;
      --text-body:   #3d2535;
    }

    * { box-sizing: border-box; scroll-behavior: smooth; }

    body {
      font-family: 'Josefin Sans', sans-serif;
      background: var(--warm-white);
      color: var(--text-body);
      overflow-x: hidden;
    }

    /* ─── GRAIN OVERLAY ─── */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 9999; opacity: .4;
    }

    /* ─── SCROLLBAR ─── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--cream); }
    ::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 3px; }

    /* ─── NAVBAR ─── */
    .navbar {
      background: rgba(253,246,240,0.92) !important;
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(201,116,138,.2);
      padding: 18px 0;
      transition: all .4s;
    }
    .navbar.scrolled {
      padding: 10px 0;
      box-shadow: 0 4px 30px rgba(92,45,74,.08);
    }
    .navbar-brand {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.5rem;
      font-style: italic;
      color: var(--plum) !important;
      letter-spacing: .5px;
    }
    .nav-link {
      font-family: 'Josefin Sans', sans-serif;
      font-size: .75rem;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--text-body) !important;
      padding: 8px 18px !important;
      position: relative;
      transition: color .3s;
    }
    .nav-link::after {
      content: '';
      position: absolute; bottom: 2px; left: 18px; right: 18px;
      height: 1px; background: var(--rose);
      transform: scaleX(0); transition: transform .3s;
    }
    .nav-link:hover { color: var(--rose) !important; }
    .nav-link:hover::after { transform: scaleX(1); }

    /* ─── HERO ─── */
    #home {
      min-height: 100vh;
      background: linear-gradient(135deg, #fdf0f4 0%, #fdf6f0 40%, #f5e8ef 100%);
      display: flex; align-items: center;
      position: relative; overflow: hidden;
      padding-top: 80px;
    }
    .hero-bg-circle {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,116,138,.15), transparent 70%);
    }
    .hero-bg-circle.c1 { width: 600px; height: 600px; top: -100px; right: -100px; }
    .hero-bg-circle.c2 { width: 400px; height: 400px; bottom: -80px; left: -80px; }
    .hero-bg-circle.c3 { width: 200px; height: 200px; top: 40%; left: 35%; background: radial-gradient(circle, rgba(201,169,110,.12), transparent 70%); }

    .hero-label {
      font-size: .65rem;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--rose);
      font-weight: 600;
      opacity: 0; animation: fadeUp .8s .3s forwards;
    }
    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(3.2rem, 7vw, 6.5rem);
      font-weight: 700;
      line-height: 1.05;
      color: var(--plum);
      opacity: 0; animation: fadeUp .8s .5s forwards;
    }
    .hero-title span { color: var(--rose); font-style: italic; }
    .hero-subtitle {
      font-size: clamp(1rem, 2vw, 1.25rem);
      font-weight: 300;
      letter-spacing: 1px;
      color: var(--rose-dark);
      opacity: 0; animation: fadeUp .8s .7s forwards;
    }
    .hero-subtitle-tamil {
      font-family: 'Noto Serif Tamil', serif;
      font-size: 1.1rem;
      color: var(--plum);
      opacity: 0; animation: fadeUp .8s .85s forwards;
    }
    .hero-author {
      font-size: .8rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 400;
      opacity: 0; animation: fadeUp .8s 1s forwards;
    }
    .hero-divider {
      width: 60px; height: 2px;
      background: linear-gradient(90deg, var(--rose), var(--gold));
      opacity: 0; animation: fadeUp .8s .9s forwards;
    }
    .btn-primary-custom {
      background: linear-gradient(135deg, var(--rose-dark), var(--plum));
      color: #fff;
      border: none;
      padding: 14px 40px;
      font-size: .75rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      border-radius: 0;
      position: relative; overflow: hidden;
      transition: all .4s;
      opacity: 0; animation: fadeUp .8s 1.1s forwards;
    }
    .btn-primary-custom::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, var(--rose), var(--rose-dark));
      opacity: 0; transition: opacity .4s;
    }
    .btn-primary-custom:hover::before { opacity: 1; }
    .btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(139,58,80,.3); color: #fff; }
    .btn-primary-custom span { position: relative; z-index: 1; }

    .btn-outline-custom {
      background: transparent;
      color: var(--plum);
      border: 1px solid var(--rose);
      padding: 13px 35px;
      font-size: .75rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      border-radius: 0;
      transition: all .4s;
      opacity: 0; animation: fadeUp .8s 1.2s forwards;
    }
    .btn-outline-custom:hover {
      background: var(--rose);
      color: white;
      transform: translateY(-2px);
    }

    /* ─── BOOK COVER FLOAT ─── */
    .cover-wrapper {
      position: relative;
      opacity: 0; animation: fadeRight 1s .6s forwards;
    }
    .cover-main {
      width: 100%;
      max-width: 340px;
      box-shadow: -20px 20px 60px rgba(92,45,74,.25), 20px -10px 40px rgba(201,116,138,.15);
      transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
      transition: transform .6s;
      border-radius: 2px;
    }
    .cover-main:hover {
      transform: perspective(800px) rotateY(-2deg) rotateX(0deg);
      box-shadow: -10px 30px 80px rgba(92,45,74,.3);
    }
    .cover-shadow {
      position: absolute;
      bottom: -20px; left: 10px; right: 40px;
      height: 40px;
      background: radial-gradient(ellipse, rgba(92,45,74,.25) 0%, transparent 70%);
      filter: blur(10px);
    }
    .cover-badge {
      position: absolute;
      top: -15px; right: -15px;
      width: 80px; height: 80px;
      background: linear-gradient(135deg, var(--gold), #a07840);
      border-radius: 50%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      color: white;
      font-size: .6rem;
      letter-spacing: 1px;
      text-align: center;
      text-transform: uppercase;
      font-weight: 600;
      box-shadow: 0 8px 25px rgba(160,120,64,.4);
      animation: rotateBadge 20s linear infinite;
    }

    /* ─── FLOATING PETALS ─── */
    .petal {
      position: absolute;
      width: 8px; height: 12px;
      border-radius: 50% 0;
      opacity: .15;
      animation: floatPetal linear infinite;
    }

    /* ─── SECTION BASE ─── */
    section { padding: 100px 0; }
    .section-label {
      font-size: .65rem;
      letter-spacing: 5px;
      text-transform: uppercase;
      color: var(--rose);
      font-weight: 600;
      margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2.2rem, 4vw, 3.5rem);
      font-weight: 700;
      color: var(--plum);
      line-height: 1.15;
    }
    .section-divider {
      width: 50px; height: 2px;
      background: linear-gradient(90deg, var(--rose), var(--gold));
      margin: 20px 0 30px;
    }

    /* ─── ABOUT ─── */
    #about {
      background: var(--cream);
      position: relative; overflow: hidden;
    }
    #about::before {
      content: '';
      position: absolute;
      right: -200px; top: -200px;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(201,169,110,.1), transparent 60%);
      border-radius: 50%;
    }
    .author-photo-frame {
      position: relative; display: inline-block;
    }
    .author-photo-frame::before {
      content: '';
      position: absolute;
      top: 20px; left: -20px;
      right: 20px; bottom: -20px;
      border: 2px solid var(--rose-light);
      border-radius: 2px;
      z-index: 0;
    }
    .author-photo-frame::after {
      content: '';
      position: absolute;
      top: -20px; left: 20px;
      right: -20px; bottom: 20px;
      border: 1px solid var(--gold-light);
      border-radius: 2px;
      z-index: 0;
    }
    .author-photo {
      position: relative; z-index: 1;
      width: 100%;
      max-width: 420px;
      object-fit: cover;
      height: 520px;
      filter: sepia(8%) saturate(110%);
      transition: filter .4s;
    }
    .author-photo:hover { filter: sepia(0%) saturate(120%); }
    .author-quote {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.6rem;
      font-style: italic;
      color: var(--rose-dark);
      line-height: 1.5;
      border-left: 3px solid var(--rose);
      padding-left: 24px;
    }
    .author-quote-tamil {
      font-family: 'Noto Serif Tamil', serif;
      font-size: 1.1rem;
      color: var(--plum);
      font-style: normal;
    }
    .stat-box {
      border: 1px solid rgba(201,116,138,.2);
      padding: 20px 24px;
      position: relative;
      background: white;
      transition: all .4s;
    }
    .stat-box:hover {
      border-color: var(--rose);
      transform: translateY(-4px);
      box-shadow: 0 15px 40px rgba(201,116,138,.15);
    }
    .stat-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--rose);
      line-height: 1;
    }
    .stat-label { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--plum); }

    /* ─── BOOK SECTION ─── */
    #books {
      background: linear-gradient(160deg, #2d0f1e 0%, #1a0e14 50%, #3d1a2e 100%);
      color: white;
      position: relative; overflow: hidden;
    }
    #books::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9748a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    #books .section-title { color: white; }
    #books .section-label { color: var(--rose-light); }
    #books .section-divider { background: linear-gradient(90deg, var(--rose-light), var(--gold-light)); }

    .book-card {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(201,116,138,.2);
      padding: 0;
      transition: all .5s;
      position: relative; overflow: hidden;
    }
    .book-card::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(201,116,138,.08), rgba(92,45,74,.08));
      opacity: 0; transition: opacity .4s;
    }
    .book-card:hover { border-color: rgba(201,116,138,.5); transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
    .book-card:hover::before { opacity: 1; }

    .book-cover-img {
      width: 100%;
      height: auto;
      max-height: 600px;
      object-fit: contain;
      object-position: center;
      background: #f5e8ef;
      transition: transform .6s;
      display: block;
    }
    .book-card:hover .book-cover-img { transform: scale(1.02); }

    .book-card-body { padding: 30px; }
    .book-lang-tag {
      display: inline-block;
      font-size: .6rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      background: linear-gradient(135deg, var(--rose), var(--rose-dark));
      color: white;
      padding: 5px 14px;
      margin-bottom: 14px;
    }
    .book-title-card {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.6rem;
      font-weight: 700;
      color: white;
      line-height: 1.2;
      margin-bottom: 8px;
    }
    .book-subtitle-card {
      font-size: .8rem;
      color: var(--rose-light);
      letter-spacing: 1px;
      margin-bottom: 16px;
    }
    .book-desc {
      font-size: .85rem;
      color: rgba(255,255,255,.65);
      line-height: 1.7;
    }
    .isbn-badge {
      display: inline-block;
      font-size: .65rem;
      letter-spacing: 1px;
      color: var(--gold-light);
      border: 1px solid rgba(201,169,110,.3);
      padding: 4px 12px;
      margin-top: 16px;
    }

    /* ─── BACK COVER EXPAND ─── */
    .back-cover-toggle {
      cursor: pointer;
      font-size: .7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold-light);
      border: none; background: none;
      padding: 10px 0;
      transition: color .3s;
    }
    .back-cover-toggle:hover { color: var(--rose-light); }
    .back-cover-img {
      width: 100%; margin-top: 16px;
      border: 1px solid rgba(201,116,138,.2);
      display: none;
    }

    /* ─── QUOTE BAND ─── */
    .quote-band {
      background: linear-gradient(135deg, var(--plum), var(--rose-dark));
      padding: 80px 0;
      position: relative; overflow: hidden;
    }
    .quote-band::before {
      content: '❝';
      position: absolute;
      font-size: 20rem;
      color: rgba(255,255,255,.03);
      top: -80px; left: -20px;
      font-family: Georgia, serif;
      line-height: 1;
    }
    .quote-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.4rem, 3vw, 2rem);
      font-style: italic;
      color: white;
      line-height: 1.6;
      text-align: center;
    }
    .quote-text-tamil {
      font-family: 'Noto Serif Tamil', serif;
      font-size: clamp(1rem, 2vw, 1.4rem);
      color: rgba(255,255,255,.8);
      text-align: center;
      margin-top: 16px;
      font-style: normal;
    }
    .quote-author { color: var(--gold-light); font-size: .75rem; letter-spacing: 3px; text-transform: uppercase; }

    /* ─── CONTACT ─── */
    #contact {
      background: var(--warm-white);
      position: relative; overflow: hidden;
    }
    #contact::after {
      content: '';
      position: absolute;
      bottom: -100px; left: -100px;
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(201,116,138,.08), transparent 60%);
      border-radius: 50%;
    }
    .contact-card {
      background: white;
      border: 1px solid rgba(201,116,138,.15);
      padding: 50px 40px;
      position: relative;
    }
    .contact-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--rose), var(--gold), var(--plum));
    }
    /* ─── CONTACT INFO CARDS ─── */
    .contact-info-card {
      background: white;
      border: 1px solid rgba(201,116,138,.15);
      padding: 30px 28px;
      display: flex;
      align-items: center;
      gap: 20px;
      transition: all .4s;
      position: relative;
    }
    .contact-info-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--rose), var(--gold));
      transform: scaleX(0);
      transition: transform .4s;
    }
    .contact-info-card:hover {
      border-color: var(--rose);
      transform: translateY(-5px);
      box-shadow: 0 20px 50px rgba(201,116,138,.15);
    }
    .contact-info-card:hover::before { transform: scaleX(1); }
    .contact-icon-wrap {
      width: 56px; height: 56px;
      min-width: 56px;
      background: linear-gradient(135deg, var(--rose-dark), var(--plum));
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: white;
      font-size: 1.1rem;
    }
    .contact-icon-wrap.instagram-icon {
      background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }
    .contact-icon-wrap.linkedin-icon {
      background: linear-gradient(135deg, #0077b5, #00a0dc);
    }
    .contact-info-label {
      font-size: .62rem;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--rose);
      font-weight: 600;
      margin-bottom: 4px;
    }
    .contact-info-value {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      color: var(--plum);
      text-decoration: none;
      font-weight: 600;
      transition: color .3s;
      display: block;
    }
    .contact-info-value:hover { color: var(--rose); }

    .form-control-custom {
      border: none;
      border-bottom: 1px solid rgba(201,116,138,.3);
      border-radius: 0;
      padding: 12px 0;
      background: transparent;
      font-size: .85rem;
      letter-spacing: .5px;
      color: var(--text-body);
      transition: border-color .3s;
      outline: none;
      box-shadow: none !important;
      width: 100%;
      margin-bottom: 24px;
    }
    .form-control-custom:focus {
      border-bottom-color: var(--rose);
      background: transparent;
    }
    .form-control-custom::placeholder { color: rgba(61,37,53,.4); font-size: .8rem; letter-spacing: 1px; }
    .form-label-custom {
      font-size: .65rem;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--plum);
      font-weight: 600;
      display: block;
      margin-bottom: 4px;
    }
    .social-icon {
      width: 44px; height: 44px;
      border: 1px solid rgba(201,116,138,.3);
      display: flex; align-items: center; justify-content: center;
      color: var(--rose);
      transition: all .3s;
      font-size: .9rem;
    }
    .social-icon:hover {
      background: var(--rose); color: white;
      border-color: var(--rose);
      transform: translateY(-3px);
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--deep);
      color: rgba(255,255,255,.5);
      padding: 40px 0;
      font-size: .75rem;
      letter-spacing: 1.5px;
    }
    footer .brand {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.2rem;
      font-style: italic;
      color: var(--rose-light);
    }

    /* ─── REVEAL ANIMATIONS ─── */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity .8s ease, transform .8s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ─── KEYFRAMES ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeRight {
      from { opacity: 0; transform: translateX(40px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes floatPetal {
      0%   { transform: translateY(0) rotate(0deg); opacity: .15; }
      50%  { opacity: .25; }
      100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
    }
    @keyframes rotateBadge {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50%       { transform: scale(1.03); }
    }

    /* Responsive */
    @media (max-width: 768px) {
      #home { padding-top: 90px; }
      .author-photo { height: 360px; }
      .cover-main { max-width: 260px; }
      .cover-badge { width: 64px; height: 64px; font-size: .5rem; }
    }