
:root {
  --primary: #1e3c72;
  --secondary: #2a5298;
  --accent: #6a5acd;
  --light: rgba(255,255,255,0.9);
  --dark: #0a192f;
  --glass: rgba(255,255,255,0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
}

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

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
}

.header {
  position: relative;
  padding: 2rem 0;
  text-align: center;
  background: linear-gradient(90deg, rgba(30,60,114,0.8), rgba(42,82,152,0.8));
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.note {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

.card {
  background: var(--glass);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255,255,255,0.18);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.card h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.card h3 {
  color: rgba(255,255,255,0.9);
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.img-box {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.img-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

pre {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
}

code {
  font-family: 'Roboto Mono', monospace;
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.nav-links {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.nav-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 1rem;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

