/* Design System */
:root {
  --primary-color: #005A9C;
  /* Haypader Blue */
  --secondary-color: #009B9E;
  /* Haypader Teal */
  --accent-color: #77E6F2;
  /* Haypader Light Cyan */
  --bg-color: #F0F9FA;
  /* Very Light Cyan */
  --text-color: #333333;
  --light-text: #FFFFFF;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 15px rgba(0, 90, 156, 0.15);
  --radius: 16px;
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

header {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--secondary-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-left: -5px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  color: var(--light-text);
  font-size: 3.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.hero-btns {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--secondary-color);
  color: var(--light-text);
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 155, 158, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 155, 158, 0.5);
  background: #00b3b6;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
  margin-left: 15px;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--light-text);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Features/Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: -60px;
  margin-bottom: 100px;
  position: relative;
  z-index: 10;
}

.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 5px solid var(--secondary-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 90, 156, 0.2);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  background: rgba(0, 90, 156, 0.1);
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  opacity: 0.9;
  margin-bottom: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-3px);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Login Button in Nav */
.nav-btn {
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--light-text) !important;
  border-radius: 30px;
  font-weight: 700 !important;
}

.nav-btn:hover {
  background: #00b3b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 155, 158, 0.3);
}

/* Mobile Fixes */
@media only screen and (max-width: 1100px) {

  /* Kill all Grid columns and force single column */
  body,
  .container,
  .row,
  .main-wrapper,
  #root,
  .app {
    display: block !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    /* This resets margin, so let's be careful about container centering */
  }

  .container {
    padding: 0 10px !important;
    /* Keep some padding for breathing room */
    margin: 0 auto !important;
    /* Re-apply auto margin to center if width < 100% but user asked for 100% width */
  }

  /* Fix the squeezed content */
  .col-md-,
  .sidebar,
  .content,
  header,
  footer {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    position: relative !important;
    left: 0 !important;
  }

  /* Specific section fixes */
  .okulumuz-section,
  .hero-section,
  .hero {
    padding: 40px 20px !important;
    box-sizing: border-box !important;
  }

  /* Nav adjustments for mobile */
  nav {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .logo {
    margin-bottom: 10px;
  }

  /* Hero fixes */
  .hero h1 {
    font-size: 2.5rem;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

/* Celebration Box Styles */
.celebration-box {
  position: fixed;
  top: 110px;
  /* Below the nav */
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 15px;
  padding: 12px 20px;
  box-shadow: 0 10px 25px rgba(0, 90, 156, 0.4);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  animation: slide-in-right 1s cubic-bezier(0.25, 1, 0.5, 1) forwards, float-celebration 3s ease-in-out 1s infinite;
  cursor: pointer;
  border: 2px solid white;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-family: var(--font-main);
}

.celebration-box:hover {
  transform: scale(1.05);
}

.confetti-icon {
  font-size: 2.2rem;
  animation: spin-tada 2s linear infinite;
}

.celebration-text {
  display: flex;
  flex-direction: column;
}

.celebration-text strong {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.celebration-text span {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

@keyframes float-celebration {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes spin-tada {
  0% {
    transform: rotate(0deg) scale(1);
  }

  10% {
    transform: rotate(-10deg) scale(1.1);
  }

  20% {
    transform: rotate(10deg) scale(1);
  }

  30% {
    transform: rotate(-10deg) scale(1.1);
  }

  40%,
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media only screen and (max-width: 768px) {
  .celebration-box {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    justify-content: center;
    animation: slide-in-bottom 1s cubic-bezier(0.25, 1, 0.5, 1) forwards, float-celebration 3s ease-in-out 1s infinite;
  }
}

@keyframes slide-in-bottom {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}