/* Core Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #000428, #004e92);
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header.main-header {
  background-color: white;
  color: royalblue;
  width: 100%;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-nav a {
  color: royalblue;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #00d4ff;
}

/* Carousel */
.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-buttons {
  opacity: 1;
  pointer-events: auto;
}

.carousel-buttons button {
  background: white;
  color: black;
  border: 1px solid #d9d9d9;
  font-size: 24px;
  width: 42px;
  height: 60px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.carousel-buttons button:hover {
  border-color: #007eff;
  box-shadow: 0 0 10px rgba(0,126,255,0.3);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-dot.active {
  background: #00d4ff;
}

/* Video */
.video-section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 60px auto 40px;
  overflow: hidden;
  border-radius: 16px;
}

.video-section video {
  width: 100%;
  height: auto;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 70%, transparent);
  color: #fff;
  text-align: left;
}

/* Misc Elements */
.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 40px 0 20px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: fadeIn 1.5s ease-in-out;
}

h1 {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: slideDown 1.5s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.tagline {
  font-style: italic;
  font-size: 1.2em;
  color: #c3eaff;
  margin-bottom: 30px;
}

p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 700px;
  line-height: 1.6;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
}

.feature {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.feature h3 {
  color: #6ad1ff;
  margin-bottom: 10px;
}

/* Email Box */
.email-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
  margin-top: 40px;
}

input[type="email"] {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  margin-bottom: 15px;
}

button {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  background: linear-gradient(to right, #1cb5e0, #000851);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(to right, #00d4ff, #090979);
}

.footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
}

/* Responsive */
@media screen and (max-width: 600px) {
  h1 { font-size: 2.4em; }
  .feature { width: 90%; }
  .header-nav a { margin-left: 10px; font-size: 0.85em; }
}

/* Logo layout */
.logo-wrapper {
  display: flex;
  align-items: baseline;
  margin-left: -12px;
}

.logo-container {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.logo-flex {
  display: flex;
  align-items: baseline;
}

/* Ribbon Cut Ceremony Overlay */
#ribbon-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000e0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: none;
}

#ribbon-img {
  width: 60%;
  transition: opacity 0.3s ease-in-out;
}

#ribbon-img.cut {
  opacity: 0;
}

#scissors-icon {
  position: absolute;
  width: 80px;
  pointer-events: none;
  transform: rotate(10deg);
  transition: transform 0.2s ease;
}

.hide {
  display: none !important;
}
