/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}



/* Navbar (Header) */
.navbar {
    background-color: white;
    padding: 20px 0; /* Taller navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Logo Styling */
.navbar .logo img {
    max-width: 220px; /* Unified size */
    height: auto;
    transition: transform 0.3s ease-in-out;
}



/* Content (Fades In) */
.recommend-section {
    padding: 50px;
    background-color: #fff;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.recommend-section h1 {
    font-size: 36px;
    color: #6A1B1A; /* Deep Red */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeIn 1s ease-in-out forwards;
}

.recommend-section p {
    font-size: 18px;
    color: #6a0dad; /* Deep Purple */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.recommend-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styling */
.recommend-form {
    max-width: 600px;
    margin: 30px auto;
    animation: fadeIn 2s ease-in-out;
}

.recommend-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #6A1B1A; /* Deep Red */
}

.recommend-form .form-group {
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.recommend-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #6a0dad; /* Deep Purple */
}

.recommend-form input, 
.recommend-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #6A1B1A; /* Deep Red */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.recommend-form input:focus, 
.recommend-form textarea:focus {
    border-color: #6a0dad; /* Deep Purple */
    outline: none;
    box-shadow: 0 0 8px rgba(106, 13, 173, 0.3);
}

.recommend-form textarea {
    resize: vertical;
    height: 120px;
}

/* Submit Button */
.recommend-form button {
    width: 100%;
    padding: 15px;
    background-color: #6A1B1A; /* Deep Red */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.recommend-form button:hover {
    background-color: #6a0dad; /* Deep Purple */
    transform: scale(1.05);
}

.recommend-form button:active {
    background-color: #4d0975; /* Darker Purple */
    transform: scale(0.95);
}

/* Fade-In & Fade-Out Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Footer Styling */
.footer {
    background-color: #9370DB;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer .social-icons a {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.footer .social-icons a:hover {
    color: #f1f1f1;
    transform: scale(1.1);
}

.footer-bottom p {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }

    .navbar .logo img {
        height: 90px;
    }

    .recommend-section {
        padding: 30px;
    }

    .recommend-form input, 
    .recommend-form textarea {
        font-size: 14px;
        padding: 12px;
    }

    .recommend-form button {
        font-size: 16px;
    }
}



/* Prevent horizontal scroll and shaking */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation; /* Helps prevent weird touch behavior */
    overscroll-behavior-x: none; /* Prevents bounce on mobile */
    position: relative;
}













/* ==== 1) RESET & BOX‑SIZING ==== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==== 2) FLEXIBLE IMAGES & MEDIA ==== */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==== 3) LISTS, LINKS, TABLES ==== */
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ==== 4) TYPOGRAPHY & BODY ==== */
html {
  font-size: 16px;            /* base for rems */
  scroll-behavior: smooth;
  overflow-x: hidden;         /* no accidental horizontal scroll */
}
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: sans-serif;
  background-color: #fff;
  color: #333;
}

/* ==== 5) FORM ELEMENTS ==== */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==== 6) CLEARFIX UTILITY ==== */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==== 7) MOBILE‑FIRST BREAKPOINTS ==== */
@media (max-width: 1024px) {
  html { font-size: 15px; }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
}
@media (max-width: 480px) {
  html { font-size: 13px; }
}




.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #800080; /* Purple */
  color: #fff;            /* Deep Red */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
  transition: background-color 0.3s;
}
.back-btn:hover {
  background-color: #4B004B; /* Darker purple on hover */
}