@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
/* 1. Prevent the whole page from leaking out */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
        .body{
    margin-left: 50px;
    margin-right: 50px;
    padding: 0;
    top: 0;
    left: 0;
    font-family: "Playfair Display", serif;
    }
.nav-holder{
    display: flex;
    margin-top: 10px;
    margin-left: 50px;
    margin-right: 50px;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    top: 0;
    left: 0;
    width: calc(100% - 100px);
    background-color: transparent;
    z-index: 100;
    transition: background-color 0.3s ease;

        }
.nav-holder a{
      text-decoration: none;
      color: #000;
      font-family: 'Playfair Display', serif;
      }
.Owner{
    font-family: 'Playfair Display', serif;
            font-size: 20px;
            font-weight: 400;
        }
.Owner a:hover{
    color: rgb(200, 7, 7);
        }
.middle-links{
    display: flex;
    align-items: center;
    gap: 10px;;
    margin-left: 20px;
    margin-right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    }

.middle-links a:hover{
      text-decoration: underline;
      color: rgb(200, 7, 7);
    }
    
    @media (min-width: 997px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0px;
        border-radius: 0;
        margin-right: 20px;
    }
    }
.dropdown-menu a{
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dropdown-menu a:hover{
    color: rgb(200, 7, 7);
    text-decoration: underline;
        }


.dropdown-item {
    color: #000; 
    text-decoration: none;
    display: block;
    font-family: 'Playfair Display', serif;
    padding: 10px;
    width: 20px;
    gap: -40px;
    margin-right: 30px;
}

.dropdown-item:hover {
    color: rgb(200, 7, 7);
    text-decoration: underline;
    background: none;
}
.social-links {
    display: flex;
    align-items: center;
}
.social-links a{
    margin-left: 15px;
    margin-right: 15px;
}
.social-links a svg{
    width: 24px;
    height: 24px;
    fill: #000;
    transition: fill 0.3s ease;
}
.social-links a:hover svg path{
    fill: rgb(200, 7, 7);
}
.topic{
    margin-top: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 100;
    color: rgb(200, 7, 7);
}

/* --- CONTACT PAGE INTRO TEXT --- */
.uptext {
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 20px 40px;
    font-family: "Playfair Display", serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: center;
    background: rgba(200, 7, 7, 0.05);
    border-left: 4px solid rgb(200, 7, 7);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- CONTACT HEADER SECTION --- */
.text {
    text-align: center;
    margin-bottom: 40px;
}

.text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    color: rgb(200, 7, 7);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.text p {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}
.b-head{
    margin-top: 60px;
    display: flex;
    margin-left: 50px;
}
.b-head h1{
    font-family: 'Playfair Display', serif;
    font-weight: 100;
    font-size: 20px;
}
.b-head hr{
    display: inline-block;
    color: #000;
    width: 400px;
}
.body1{
    width: 1150px;
    margin-right: 50px;
    margin-left: 50px;
    margin-top: 50px;
}
.books{
    margin-top: 30px;
    grid-row: 3;
    column-gap: 20px;
    gap: 10px;
    border-radius: 20px;
    display: flex;
}
.books img{
    width: 100%;
    border: 2px solid black;
}

/* --- HAMBURGER STYLING --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;    
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}
.hamburger span:hover{
  background-color: rgb(200, 7, 7);
}
  .social-links2 svg{ display: none;}
  .middle-links3{
    width: 100%;
    height: 100%;
    display: flex;
    gap: 30px;
    margin-left: 0;
    justify-content: center;
  }
  .middle-links3 a{
    color: #fff;
    text-decoration: none;
    font-family: 'Playfair Display', serif
  }
  .middle-links3 .dropdown-item{
    color: #000;
  }
/* --- ENTRANCE ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growWidth {
    from { width: 0; }
    to { width: 100px; }
}

.animated-fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.animated-hr {
    animation: growWidth 1.5s ease-in-out forwards;
    border: 2px solid rgb(200, 7, 7);
    margin: 10px auto;
}

/* --- FORM STYLING --- */
.contact-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(200, 7, 7, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* Subtle lift when typing */
.input-group:focus-within {
    transform: translateX(10px);
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 15px 15px 15px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    transition: all 0.4s ease;
}

.input-group select {
    padding: 15px 0;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-bottom-color: rgb(200, 7, 7);
    outline: none;
    background: rgba(200, 7, 7, 0.02);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 15px;
    color: #999;
    font-size: 16px;
    transition: 0.3s ease-all;
    pointer-events: none;
    font-weight: 300;
}

/* Label Animation */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 14px;
    color: rgb(200, 7, 7);
    letter-spacing: 1px;
}

/* --- BUTTON ANIMATION --- */
.submit-btn {
    position: relative;
    overflow: hidden;
    background: rgb(200, 7, 7);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: rgb(150, 5, 5);
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(200, 7, 7, 0.5);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(200, 7, 7, 0.4);
}

/* Button Loading Spinner */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 0 auto;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- FORM SUCCESS/ERROR MESSAGES --- */
.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}
  
@media only screen and (max-width: 768px) {
    .body {
        margin-left: 15px;
        margin-right: 15px;
    }
    .contact-form {
        max-width: 100%;
        padding: 15px;
    }
    .contact-form input, .contact-form textarea {
        font-size: 14px;
    }
}

/* Phone screens */
@media only screen and (max-width: 480px) {
    .body {
        margin-left: 10px;
        margin-right: 10px;
    }
    .nav-holder {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }
    .topic {
        font-size: 28px;
        margin-top: 30px;
    }
    .text h2 {
        font-size: 28px;
    }
    .text p {
        font-size: 14px;
    }
    .uptext {
        margin: 15px 10px;
        padding: 15px;
        font-size: 13px;
    }
    .contact-container {
        margin: 30px 10px;
        padding: 25px 15px;
    }
    .input-group input, .input-group textarea, .input-group select {
        font-size: 14px;
    }
    .submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media only screen and (max-width: 996px) {

  body{
    width: 100%;

  }
  .body{
    align-items: center;
    padding: 0;
    top: 0;
    left: 0;
    font-family: "Playfair Display", serif;
  }
      .Owner{
      line-height: 20px;
      font-size: 18px;
      font-weight: 400;
    }

    .hamburger { 
      display: block;
      position: relative;
      padding: 0;
      margin-top: 25px;
      width: 30px;
      font-weight: 900;
      line-height: 10px;
      align-items: end;
      text-align: end;
      justify-items: end;
      justify-content: end;
    }
    .hamburger span{
      background-color: #000;

    }
    .hamburger span:hover{
      background-color:  rgb(200, 7, 7);

    }
    /* Top bar: rotate 45 degrees */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    /* Middle bar: fade out */
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    /* Bottom bar: rotate -45 degrees */
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .middle-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        color: #000;
        line-break: strict;
        background: #fff;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0;
        z-index: 999;
    }
    .middle-links a{
      text-decoration: none;
      color: #000000;
      font-family: 'Playfair Display', serif;
      font-size: 20px;
    }
    .middle-links.active { display: flex; }
    .middle-links .dropdown-menu,
    .middle-links3 .dropdown-menu {
        position: static;
        float: none;
        transform: none;
        border: none;
        background: transparent;
        box-shadow: none;
        margin: 5px 0 0;
        padding: 0;
    }
    .middle-links .dropdown-menu.show,
    .middle-links3 .dropdown-menu.show {
        display: block;
    }
    .middle-links3 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .dropdown-item a{
      color: #000;
    }
.dropdown-menu a{
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dropdown-menu a:hover{
    color: rgb(200, 7, 7);
    text-decoration: underline;
        }

.dropdown-item {
    color: #000; 
    text-decoration: none;
    display: block;
    font-family: 'Playfair Display', serif;
    padding: 10px;
    width: 20px;
    margin-right: 30px;
}

.dropdown-item:hover {
    color: rgb(200, 7, 7);
    text-decoration: underline;
    background: none;
}


    .social-links{ display: flex; justify-content: center; flex-wrap: wrap; }
    .social-links a{ margin-left: 3px; margin-right: 3px; }
    .social-links svg{ display: inline-flex; width: 16px; height: 16px; }
    .social-links2{ display: flex; justify-content: center; flex-wrap: wrap; }
    .social-links2 a{ margin-left: 5px; margin-right: 5px; }
    .social-links2 svg{ display: inline-flex;
      top: 0;
      padding: 0;
      width: 30px;
      align-items:center;
      justify-content: center;
      margin-bottom: 20px;

    }
    .text{
        display: block;
        margin-top: 30px;
    }
    .text h2 {
        font-size: 36px;
    }
    .text p {
        font-size: 15px;
        padding: 0 20px;
    }
    .uptext{
        font-family: "Playfair Display", serif;
        margin: 20px 15px;
        padding: 20px;
        font-size: 14px;
        line-height: 1.6;
    }
    .contact-container {
        margin: 40px 20px;
        padding: 30px 25px;
    }
    .input-group {
        margin-bottom: 25px;
    }
    .submit-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    .red4{
      display: block;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }
    .red4 .middle-links3 a{
      display: flex;
      flex-wrap: nowrap;
      text-decoration: none;
      color: #fff;
      font-family: 'Playfair Display', serif
    }
    .middle-links3{
      display: block;
      width: 100%;
      margin-left: 0;
      text-align: center;
    }
}

/* Very Large Screens */
@media only screen and (min-width: 1400px) {
    .body {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    .nav-holder {
        margin-left: 80px;
        margin-right: 80px;
        width: calc(100% - 160px);
    }
    .topic {
        font-size: 52px;
    }
    .text h2 {
        font-size: 56px;
    }
    .text p {
        font-size: 19px;
    }
    .uptext {
        max-width: 1000px;
        font-size: 17px;
        padding: 30px 50px;
    }
    .contact-container {
        max-width: 800px;
        padding: 60px;
    }
    .input-group input, .input-group textarea {
        font-size: 18px;
    }
    .submit-btn {
        padding: 18px 50px;
        font-size: 20px;
    }
}