/* ========== Custom Properties ========== */
:root {
  --gradient-primary: linear-gradient(to right, #001f3f, #0074d9);
  --gradient-bg: linear-gradient(to right, #002b5c, #004080, #0059b3);
  --accent-color: #00b7eb;
  --text-dark: #2c3e50;
  --text-light: #fff;
  --menu-background: rgba(0, 31, 63, 0.98);
}

/* ========== Base Styles ========== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--gradient-bg);
  color: var(--text-dark);
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ========== Header & Navigation ========== */
header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  padding: 0 20px;
  margin: 0;
}

nav {
  margin-top: 15px;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-light);
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* ========== Mobile Navigation ========== */
.hamburger {
  display: none;
  cursor: pointer;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  background: white;
  height: 2px;
  width: 22px;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.hamburger.active {
  background: rgba(0, 0, 0, 0.5);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  transition: all 0.4s ease;
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--menu-background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    padding: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.5rem;
    margin: 15px 0;
    padding: 12px 30px;
    width: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }

  body.menu-open {
    overflow: hidden;
  }

  header h1 {
    padding-right: 50px;
  }
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(to bottom, rgba(0, 31, 63, 0.9), rgba(0, 116, 217, 0.7)),
              url('https://source.unsplash.com/random/1600x900/?technology');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  animation: fadeIn 1s ease-out;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 15px;
  animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #0099cc;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 183, 235, 0.4);
}

/* ========== Features Section ========== */
.features {
  padding: 50px 20px;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

.features-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: 40px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-card h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
}

.feature-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.feature-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .hero {
    height: 50vh;
  }
}

@media (max-width: 400px) {
  .feature-card {
    padding: 20px;
  }
  .hero {
    height: 40vh;
  }
  .hamburger {
    right: 15px;
    top: 15px;
  }
}