/*
Theme Name: SEO Crna Gora
Author: Antigravity
Description: Premium modern SEO Theme for Crna Gora, featuring glassmorphism, dynamic animations, and dark mode.
Version: 1.0
*/

:root {
  --color-orange: #ff8200;
  --color-blue: #003366;
  --color-blue-dark: #001a33;
  --color-yellow: #ffd700;
  --color-bg-dark: #0a0f1a;
  --color-bg-darker: #05080f;
  --color-text: #e0e6ed;
  --color-text-muted: #a0aec0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--color-orange);
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 10px var(--color-orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 130, 0, 0.3);
}

/* Header */
header.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 130, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  position: relative;
}

.logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.logo img {
  max-height: 65px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo a:hover img {
  transform: scale(1.05);
}

.logo span {
  color: var(--color-orange);
}

nav#site-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

nav ul li a:hover {
  color: var(--color-orange);
}

/* Sub-menu Dropdown */
nav ul li.menu-item-has-children {
  position: relative;
  padding: 15px 0;
  margin: -15px 0;
}
nav ul li.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  width: 280px;
  background: rgba(10, 15, 26, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 130, 0, 0.2);
  border-radius: 12px;
  padding: 1rem 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  flex-direction: column;
  gap: 0;
  margin-top: 15px;
}
/* Invisible bridge so menu doesn't disappear when cursor leaves anchor */
nav ul li.menu-item-has-children .sub-menu::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}
nav ul li.menu-item-has-children:hover .sub-menu {
  display: flex;
  animation: fadeInDown 0.3s ease forwards;
}
nav ul li.menu-item-has-children .sub-menu li {
  margin: 0;
  padding: 0;
}
nav ul li.menu-item-has-children .sub-menu li a {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  display: block;
  color: #ccc;
  transition: all 0.3s ease;
}
nav ul li.menu-item-has-children .sub-menu li a:hover {
  background: rgba(255,130,0,0.05);
  color: var(--color-orange);
  padding-left: 2rem;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 51, 102, 0.4) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(255, 130, 0, 0.15) 0%, transparent 40%);
}

.hero-content {
  max-width: 700px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #111;
  box-shadow: 0 10px 20px rgba(255, 130, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 130, 0, 0.4);
  color: #000;
  text-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-blue);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Services */
.service-icon {
  font-size: 2.5rem;
  color: var(--color-yellow);
  margin-bottom: 1.5rem;
}

.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 130, 0, 0.3);
}

.service-card:hover .service-hover-bar {
  opacity: 1 !important;
}

.service-card img, .service-card i {
  transition: transform 0.4s ease;
}

.service-card:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Packages */
.pricing-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: var(--color-orange);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.07);
}

.pricing-card.popular::before {
  content: 'Najpopularniji';
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--color-orange);
  color: #111;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 0.8rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-yellow);
  font-weight: bold;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-question {
  cursor: pointer;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.faq-item.active .faq-question {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
  color: var(--color-orange);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-orange);
  background: rgba(255,255,255,0.08);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--color-bg-darker);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-5px); }
}
@media (max-width: 768px) {
  nav#site-navigation.mobile-hidden { display: none !important; }
  .btn-contact { display: none !important; }
  #mobile-menu-btn { display: block !important; }
  
  /* Hero Section Mobile Edits */
  .hero { text-align: center; }
  .hero-content { background: rgba(0,0,0,0.4); padding: 1.5rem; border-radius: 16px; backdrop-filter: blur(5px); }
  .hero h1 { font-size: 2.2rem !important; margin-bottom: 1rem; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .btn-secondary { margin-left: 0; margin-top: 1rem; display: block; }
  
  /* Buttons on Mobile */
  .btn { width: 100%; display: flex; justify-content: center; margin-bottom: 0.5rem; }
  
  /* Section & Element Titles */
  .section-title { font-size: 1.8rem !important; margin-bottom: 2rem !important; }
  section { padding: 4rem 0; }
  
  /* Form & Contact details padding */
  .container { padding: 0 1rem; }
  .glass-panel { padding: 1.5rem; }
  
  /* Fix huge stats text on O Nama */
  h2[style*="font-size: 3rem"] { font-size: 2rem !important; }
  div[style*="font-size: 2.5rem"] { font-size: 1.8rem !important; } /* Floating stats */
  
  /* Floating elements adjustments to prevent overflow */
  .hero-stat-1 { top: -20px !important; right: auto !important; left: 50% !important; transform: translateX(-50%) scale(0.85) !important; width: max-content; }
  .hero-stat-2 { bottom: -20px !important; left: 50% !important; transform: translateX(-50%) scale(0.85) !important; width: max-content; z-index: 10 !important; }
  .rocket-icon { font-size: 5rem !important; }
  
  .onama-stat-1 { bottom: -20px !important; right: 10px !important; transform: scale(0.8); }
  .onama-stat-2 { top: -80px !important; left: 10px !important; transform: scale(0.8); }
  
  /* Case Study elements */
  h4[style*="font-size: 1.6rem"] { font-size: 1.3rem !important; }
  
  /* Footer */
  footer h4 { font-size: 1.2rem; }
}
