/* ===== General Reset and Layout ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    animation: backgroundShift 20s linear infinite;
}

/* =========================
   Sleek Glassy Footer (Refined)
   ========================= */
.site-footer {
    background: rgba(20, 20, 20, 0.164);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #eaeaea;
    font-weight: 500;
    text-align: center;
    padding: 8px 10px;
    position: fixed;
    bottom: 0; /* always visible */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 115px;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.4s ease;
    z-index: 9999;
    border-radius: 12px 12px 0 0;
}

.site-footer:hover {
    background: rgba(30, 30, 30, 0.7); /* optional hover effect */
}


/* Footer Container */
.footer-content {
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column; /* stacked for better mobile layout */
    gap: 6px;
    margin: 0 auto;
    position: relative;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-content p {
    margin: 0;
    font-weight: 300;
    font-size: 12px;
    color: #cfcfcf;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary-color, #ccc);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #54eec7);
    text-shadow: 0 0 8px rgba(84, 238, 199, 0.6);
}

/* --- Responsive Design for Footer --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================
   Glassy Modal Styles (FIXED)
   ========================= */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex; /* flex for centering */
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none; /* disable clicks when hidden */
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

/* Show the modal */
.modal.show {
    opacity: 1;
    pointer-events: auto; /* enable clicks */
}


.modal-content {
    background: rgba(30,30,30,0.8); /* glassy */
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    /* Removed 'margin: 50px auto;' and relying on flex centering */
    padding: 25px 35px 30px; /* Increased padding */
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh; /* Increased max-height for better centering */
    overflow-y: auto; /* scroll for long content */
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    color: #eaeaea; /* Set base text color */
    text-align: left; /* Default text alignment */
    transform: scale(0.9); /* Start small for animation */
    transition: transform 0.3s ease, opacity 0.3s ease;
    
    /* Ensure close button is positioned relative to this container */
    position: relative; 
}

/* Animate the content when active */
.modal.active .modal-content {
    transform: scale(1);
}

/* Close button (FIXED positioning) */
.modal-content .close {
    color: #ccc;
    position: absolute; /* Absolute positioning */
    top: 10px;
    right: 15px;
    font-size: 32px;
    font-weight: 300; /* Made it lighter */
    cursor: pointer;
    line-height: 1; /* Adjust to ensure better vertical alignment */
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-content .close:hover {
    color: var(--accent-color, #54EEC7);
}



/* Main H2 Title (Terms of Service / Privacy Policy) */
.modal-content h2 {
    color: var(--accent-color, #40e0d0);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 25px; /* Added separation */
}

/* Section Headings (H3) */
.modal-content h3 {
    color: var(--accent-color, #40e0d0); /* Used the same accent color */
    text-align: center; /* Centered as per the image */
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px; /* Generous space above */
    margin-bottom: 12px; /* Space below */
}

/* Paragraphs */
.modal-content p {
    margin-top: 0;
    margin-bottom: 15px; /* Added separation between paragraphs */
    line-height: 1.6; /* Improved readability */
    font-size: 0.95rem;
}

/* Unordered Lists (Fixes the 'smushed' bullet points) */
.modal-content ul {
    list-style-type: disc;
    padding-left: 30px; /* Adds indentation and space for the bullets */
    margin-top: 10px;
    margin-bottom: 15px;
}

/* List Items */
.modal-content ul li {
    margin-bottom: 8px; /* Separates list items */
    line-height: 1.5;
}

/* Special styling for the Effective Date/Last Updated */
.modal-content p strong {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-size: 1rem;
    color: #54EEC7;
}


.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(84,238,199,0.5); /* Semi-transparent accent color */
    border-radius: 4px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px 20px 25px;
        max-height: 95vh;
    }
}
.obs-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* still centers text */
    gap: 15px; /* spacing between arrow + title */
    padding: 20px 40px;
    margin: 30px auto;
    width: fit-content;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: fadeSlide 1s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}




.obs-header:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.obs-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(76, 0, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.6);
    animation: glowPulse 3s infinite ease-in-out;
    margin: 0;
}

/* Return Icon */
.return-link {
    position: relative; /* no longer absolute */
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
.return-link:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
    transform: translateY(-50%) scale(1.15);
}

/* =========================
   Navigation Bar
   ========================= */
.horizontal-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.horizontal-nav::-webkit-scrollbar { display: none; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nav-list li { display: flex; }

.nav-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease-in-out;
  color: #f0f0f0;
}

.nav-list a i {
  margin-right: 8px;
  font-size: 20px;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.nav-list a:hover i {
  color: #32f2f8; /* optional gradient effect handled via text above */
}

.nav-list a:hover {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(60deg, #be2edd, #00a8ff, #F79F1F);
  background-clip: text;
  box-shadow: 0 0 10px rgba(50, 242, 248, 0.3);
}

.nav-list img {
  margin-right: 8px;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}
/* ===== Dropdown Styling ===== */
.widget-select {
    position: relative;
    display: inline-block;
    text-align: center;
}

#widgetSections {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: rgba(30,30,40,0.8);
    color: #fff;
    cursor: pointer;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(8px);
}
#widgetSections:hover,
#widgetSections:focus {
    border: 1px solid #4b06cc;
    box-shadow: 0 0 10px rgba(75, 6, 204, 0.7);
    outline: none;
    transform: scale(1.02);
}

/* ===== Grid Container ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    animation: fadeInUp 1s ease forwards;
}

/* ===== Grid Items ===== */
.grid-item {
    display: none;
    width: 100%;
    background: rgba(30, 30, 40, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.05),
                0 5px 20px rgba(0,0,0,0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}
.grid-item.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}
.grid-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 35px rgba(4, 238, 255, 0.5),
                0 0 20px rgba(73, 14, 238, 0.4);
    background: rgba(40, 40, 60, 0.6);
}
.grid-item h2 {
    font-size: 1.5rem;
    color: #d3d3d3;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #04eeff55;
}
.grid-item p {
    font-size: 0.95rem;
    color: #ddd;
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Images and Videos */
.grid-item img, .grid-item video {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.grid-item img:hover, .grid-item video:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #04eeffaa, 0 0 15px #490eee55;
}

/* ===== Buttons ===== */
button, .download-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #490eee, #2cd1fa);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(73,14,238,0.6);
    margin-top: 15px;
}
button:hover, .download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(73,14,238,0.9);
}

/* ===== Mobile Responsiveness ===== */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(76, 0, 255, 0.6),
                     0 0 20px rgba(0, 229, 255, 0.6);
    }
    50% {
        text-shadow: 0 0 20px rgba(76, 0, 255, 0.9),
                     0 0 40px rgba(0, 229, 255, 0.9);
    }
}

