/* =================================================
   1. ОСНОВНЫЕ ПЕРЕМЕННЫЕ И ФОН
   ================================================= */
:root {
  --primary-color: #00bcd4;
  --primary-dark: #0097a7;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f0f7f8;
  position: relative;
  overflow-x: hidden;
}

/* Декоративные пятна на фоне */
body::before, body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.5;
}

body::before { background: rgba(0, 188, 212, 0.2); top: -150px; right: -100px; }
body::after { background: rgba(205, 220, 57, 0.15); bottom: -150px; left: -100px; }

/* =================================================
   2. ШАПКА (CUSTOM-NAV)
   ================================================= */
.custom-nav {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand { font-weight: 700; color: var(--text-dark) !important; }

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* =================================================
   3. ГИГАНТСКИЕ КАРТОЧКИ ПРОЕКТОВ
   ================================================= */
.custom-card-giant {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px !important;
  overflow: hidden; /* Важно! Скрывает края картинки за скруглением */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.custom-card-giant:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* Обертка и сама картинка */
.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px; /* Высота на ПК */
}

.project-img-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================
   4. КНОПКИ И ФУТЕР
   ================================================= */
.btn-info {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 12px;
  padding: 12px 35px;
  transition: all 0.3s ease;
}

.footer {
  background: transparent !important;
  color: var(--text-muted) !important;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 30px 0;
}

/* =================================================
   5. АДАПТИВНОСТЬ
   ================================================= */
@media (max-width: 767px) {
  .project-img-wrapper {
    min-height: 300px; /* Высота картинки на телефоне */
    position: relative;
  }
  .project-img-square {
    position: relative;
  }
}