
:root {
  --primary-color: #001f3f;
  --secondary-color: #7FDBFF;
  --accent-color: #FF851B;
  --success-color: #2ECC40;
  --background-color: #f0f0f0;
  --text-color: #333;
  --card-bg: rgba(255, 255, 255, 0.85);
}

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

body {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0.1;
  z-index: -1;
  animation: pulse 15s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 40px 0 20px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 30px 0 15px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.note {
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--accent-color);
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.frosted-glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

pre {
  background: rgba(0, 31, 63, 0.9);
  color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 25px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(0, 31, 63, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--primary-color);
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
  background: var(--primary-color);
  color: white;
  font-weight: 500;
}

tr:hover {
  background: rgba(127, 219, 255, 0.1);
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(255, 133, 27, 0.3);
}

.btn:hover {
  background: #FF5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 133, 27, 0.4);
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  background: rgba(0, 31, 63, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
}

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

.animated {
  animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.nav {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.nav a {
  margin: 0 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

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

.reference {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

