@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Poppins:wght@500;600;700&display=swap');

:root {
  --bg-color: #0b1521;
  --card-bg: #112236;
  --primary-accent: #ef4444; /* Red */
  --secondary-accent: #0ea5e9; /* Sky Blue */
  --border-color: rgba(14, 165, 233, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #e0f2fe;
  --glass-bg: rgba(17, 34, 54, 0.65);
  --glass-border: 1px solid rgba(14, 165, 233, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Fixed the section padding to prevent it from overwriting the container's horizontal padding */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Fluid Glossy Header */
header {
  position: fixed;
  top: 15px;
  width: calc(100% - 30px);
  left: 15px;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(14, 165, 233, 0.15));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

header.scrolled {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(14, 165, 233, 0.25));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  header {
    top: 10px;
    width: calc(100% - 20px);
    left: 10px;
    border-radius: 30px;
  }
  .nav-container {
    padding: 0 1.5rem;
  }
  .nav-links {
    position: fixed;
    top: 90px;
    right: -100%;
    width: calc(100% - 20px);
    height: calc(100vh - 110px);
    background: rgba(11, 21, 33, 0.95);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .nav-links.active {
    right: 10px;
  }
  .hamburger {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--primary-accent);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
}

.btn-outline:hover {
  background: var(--secondary-accent);
  color: #ffffff;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('images/photo-1537233215286-630e663a8e98.png') center/cover no-repeat;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(11, 21, 33, 0.9) 0%, rgba(11, 21, 33, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
}

/* Premium Cards */
.glossy-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.glossy-card:hover {
  transform: translateY(-10px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glossy-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(11, 21, 33, 0.9));
}

.badge {
  background: var(--primary-accent);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content .location {
  color: var(--secondary-accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Sections specific */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary-accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Categories / Highlights */
.highlight-box {
  background: linear-gradient(145deg, var(--card-bg), #0b1521);
  padding: 2rem;
  border-radius: 16px;
  border: var(--glass-border);
  text-align: center;
  transition: var(--transition);
}

.highlight-box:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-accent);
}

/* Malta Guide Features */
.guide-feature {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.guide-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
}

.guide-img {
  position: relative;
  overflow: hidden;
}

.guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  transition: transform 0.5s ease;
}

.guide-feature:hover .guide-img img {
  transform: scale(1.05);
}

.guide-text {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-text h3 {
  color: var(--secondary-accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.guide-text h4 {
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.guide-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .guide-feature {
    grid-template-columns: 1fr 1fr;
  }
  .guide-feature.reverse .guide-img {
    order: 2;
  }
  .guide-feature.reverse .guide-text {
    order: 1;
  }
}

/* Pro Tips Box */
.pro-tips-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(14, 165, 233, 0.1));
  border-left: 4px solid var(--primary-accent);
  border-radius: 0 16px 16px 0;
  padding: 3rem;
  margin-top: 4rem;
  border-top: var(--glass-border);
  border-right: var(--glass-border);
  border-bottom: var(--glass-border);
}

.pro-tips-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pro-tips-icon {
  font-size: 2.5rem;
}

.pro-tips-header h2 {
  margin-bottom: 0;
  color: var(--text-primary);
}

.pro-tips-list {
  list-style: none;
  margin-left: 0;
}

.pro-tips-list li {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 2rem;
  position: relative;
}

.pro-tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-accent);
  font-weight: bold;
}

/* Shop Detail Page */
.detail-hero {
  margin-top: 0;
  padding: 10rem 0 4rem;
  background: linear-gradient(to bottom, #112236, var(--bg-color));
  border-bottom: var(--glass-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-thumbs img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
  .gallery-thumbs img { height: 120px; }
}

.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .detail-content { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 16px;
  border: var(--glass-border);
  position: sticky;
  top: 100px;
}

.info-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.info-card ul li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

.info-card ul li span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Forms */
.contact-form {
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: 16px;
  border: var(--glass-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-accent);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Pages generic spacing */
.page-header {
  padding: 10rem 0 4rem;
  background: linear-gradient(to bottom, #112236, var(--bg-color));
  text-align: center;
  border-bottom: var(--glass-border);
}

.page-header h1 {
  font-size: 3rem;
  color: var(--secondary-accent);
}

.content-block {
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: var(--glass-border);
  margin-bottom: 2rem;
}

.content-block h3 {
  color: var(--secondary-accent);
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  border: var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: rgba(17, 34, 54, 0.8);
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  background: rgba(0, 0, 0, 0.2);
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding: 1.2rem;
  max-height: 500px;
}

/* Footer */
footer {
  background: #070d14;
  padding: 4rem 0 2rem;
  border-top: var(--glass-border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-about p {
  color: var(--text-secondary);
  margin-top: 1rem;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--text-secondary);
}

.footer-links ul li a:hover {
  color: var(--secondary-accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile Adjustments for Edge Touch Protection */
@media (max-width: 768px) {
  .contact-form { padding: 1.5rem; }
  .content-block { padding: 1.5rem; }
  .info-card { padding: 1.5rem; }
  .card-content { padding: 1.2rem; }
  .highlight-box { padding: 1.5rem; }
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .guide-text { padding: 2rem 1.5rem; }
  .pro-tips-box { padding: 1.5rem; margin-top: 3rem; }
}