
:root {
  --primary: #0f3460;
  --secondary: #16213e;
  --accent: #00FFFF;
  --accent2: #FF00FF;
  --text: #ffffff;
  --bg-gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

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

body {
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  padding-top: 80px;
}

.header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  position: relative;
  padding-left: 20px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background: var(--accent);
  border-radius: 5px;
}

h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: var(--accent2);
}

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

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

.note {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin: 40px 0;
  border-left: 4px solid var(--accent);
}

.note p {
  margin: 0;
}

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

.card {
  background: rgba(22, 33, 62, 0.7);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 255, 255, 0.3);
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  justify-content: center;
}

.img-box {
  width: 150px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

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

.img-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
}

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

pre {
  background: rgba(22, 33, 62, 0.8);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  border-left: 4px solid var(--accent2);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

pre::before {
  content: 'CSS';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent2);
  color: #000;
  padding: 2px 10px;
  border-radius: 0 0 0 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

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

.nav-link:hover::after {
  width: 100%;
}

.footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

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

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

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