@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #152447;
  --navy-deep: #0a1128; /* Deeper navy */
  --gold: #b3862c;
  --gold-light: #e6c875; /* Brighter gold */
  --gold-glow: rgba(230, 200, 117, 0.4);
  --burgundy: #6d1f2a;
  --text-light: #f4f0e6;
  --text-muted: #b8b3a0;
  --glass-bg: rgba(15, 25, 55, 0.45);
  --glass-border: rgba(230, 200, 117, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(21, 36, 71, 0.9) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(109, 31, 42, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(230, 200, 117, 0.03) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--gold-glow);
}

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

/* Glassmorphism utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.glass-panel:hover::before {
  left: 200%;
}

.glass-panel:hover {
  border-color: rgba(230, 200, 117, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
  transform: translateY(-4px);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--gold-glow);
}

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

/* HERO SLIDER BACKGROUND */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 15s infinite;
}

.hero-slider .slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(10,17,40,0.8) 50%, rgba(10,17,40,0.4) 100%);
}

.hero-slider .slide:nth-child(1) { background-image: url('../img/fmi 1.jpg'); animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { background-image: url('../img/fmi 2.jpg'); animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { background-image: url('../img/fmi 3.jpg'); animation-delay: 10s; }

@keyframes slideFade {
  0% { opacity: 0; transform: scale(1.05); }
  10% { opacity: 1; transform: scale(1); }
  33% { opacity: 1; transform: scale(1); }
  43% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--gold-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-content p {
  font-size: 1.25rem;
  color: #ddd;
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 200, 117, 0.6);
  color: var(--navy-deep);
  text-shadow: none;
}

.btn-outline {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(10, 17, 40, 0.5);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--gold-glow);
  text-shadow: none;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(230, 200, 117, 0.2);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(109, 31, 42, 0.4), rgba(230, 200, 117, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.8rem;
  border: 1px solid rgba(230, 200, 117, 0.3);
  box-shadow: 0 0 20px rgba(230, 200, 117, 0.1);
}

.about-card h3 {
  font-size: 1.5rem;
  color: #fff;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Representation / Associations */
.assoc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.assoc-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.assoc-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: rgba(255,255,255,0.03);
  padding: 15px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Resources & Links */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card h3 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.resource-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.resource-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Curriculum Specific */
.curriculum-years {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.year-section {
  background: rgba(10, 17, 40, 0.5);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.year-header {
  background: linear-gradient(90deg, rgba(13, 23, 49, 0.9), rgba(109, 31, 42, 0.2));
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.year-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  font-family: 'Fraunces', serif;
  font-weight: 800;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.year-header h3 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.05);
}

.subject-item {
  background: rgba(15, 25, 55, 0.8);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.subject-item:hover {
  background: rgba(21, 36, 71, 0.95);
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.subject-name {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: block;
}

.subject-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.subject-type {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(230, 200, 117, 0.1);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(230, 200, 117, 0.2);
}

.subject-link {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(230, 200, 117, 0.1), rgba(230, 200, 117, 0.05));
  color: var(--gold-light);
  border: 1px solid rgba(230, 200, 117, 0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.subject-link .arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.subject-link:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--gold-glow);
}

.subject-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* OPTIONALS MODERN CARDS */
.optional-category-title {
  color: var(--gold-light);
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  font-family: 'Fraunces', serif;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.optional-category-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, var(--glass-border), transparent);
}

.optional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.optional-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.optional-card::before {
  content: '✦';
  color: var(--gold-light);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}
.optional-card:hover {
  background: rgba(230, 200, 117, 0.08);
  border-color: rgba(230, 200, 117, 0.3);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  background: linear-gradient(to bottom, var(--bg-dark), #1e3a8a);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
}

.footer-logos img {
  height: 70px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.footer-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 1.05rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Content Pages */
.page-header {
  padding: 180px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.9) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(230, 200, 117, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
  word-break: break-word;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.content-section {
  padding: 6rem 0;
}
.text-box {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 4rem;
  border-radius: 24px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.text-box h3 {
  color: var(--gold-light);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Subdomeniu Page specifics */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
}

.alert-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(109, 31, 42, 0.3);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(109, 31, 42, 0.15);
  backdrop-filter: blur(10px);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Promo Section */
.promo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.promo-text-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.promo-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.promo-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.promo-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.promo-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

/* Split Section Layout */
.split-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.split-section.reverse {
  flex-direction: row-reverse;
}
.split-col {
  flex: 1;
  min-width: 300px;
}
.split-images {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.split-images img {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .assoc-grid { grid-template-columns: 1fr; }
  .footer-logos { gap: 2rem; }
  .text-box { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .page-header {
    padding: 120px 0 60px;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 { font-size: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .year-header { flex-direction: column; text-align: center; }
  
  .text-box { padding: 1.5rem; }
  .glass-panel { padding: 1.5rem; }
  .footer-logos { flex-direction: column; gap: 1.5rem !important; }
  .footer-logos img { height: auto !important; max-height: 80px; max-width: 100%; }
  
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
  
  .alert-banner {
    flex-direction: column;
    text-align: center;
    border-radius: 12px;
    padding: 1rem;
    animation: none;
  }
  
  .promo-container {
    flex-direction: column;
    text-align: center;
  }
  
  .promo-text-wrapper, .promo-image-wrapper {
    min-width: 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .promo-title {
    font-size: 1.8rem;
  }
  
  .split-section, .split-section.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  
  .split-col, .split-images {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .split-images {
    flex-direction: column;
  }
  
  .split-images img {
    height: auto;
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
