/* ========================
   🎨 REFINED MODERN STYLES
   ======================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #2c3e50;
  background: #f8f9fb;
  line-height: 1.6;
}

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

/* ======================== HEADER ======================== */
.header {
  background: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 85, 187, 0.08);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0055BB 0%, #00A8E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
  transform: scale(1.08);
}

.nav {
  display: flex;
  gap: 45px;
  flex: 1;
  margin-left: 80px;
}

.nav a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0055BB, #00A8E8);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav a:hover {
  color: #0055BB;
}

.nav a:hover::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, #0055BB 0%, #003d7f 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 85, 187, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 85, 187, 0.4);
}

/* ======================== HERO ======================== */
.hero {
  background: linear-gradient(135deg, rgba(27, 77, 127, 0.82) 0%, rgba(0, 85, 187, 0.82) 50%, rgba(0, 61, 127, 0.82) 100%), 
              url('images/backgrounds/geralt-network-3926917_1920.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 85, 187, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%),
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease 0.2s both;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: slideUp 0.8s ease 0.4s both;
}

.hero .highlight {
  background: linear-gradient(120deg, #00D4FF 0%, #0099FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .container > p {
  font-size: 1.15rem;
  margin-bottom: 50px;
  opacity: 0.95;
  line-height: 1.8;
  animation: slideUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 100px;
  animation: slideUp 0.8s ease 0.8s both;
}

.btn-primary, .btn-secondary {
  padding: 16px 45px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B6B 0%, #E74C3C 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2.5px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #0055BB;
  transform: translateY(-4px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.stat {
  background: rgba(255,255,255,0.1);
  padding: 35px 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  animation: statBounce 0.8s ease backwards;
}

.stat:nth-child(1) { animation-delay: 1s; }
.stat:nth-child(2) { animation-delay: 1.1s; }
.stat:nth-child(3) { animation-delay: 1.2s; }
.stat:nth-child(4) { animation-delay: 1.3s; }

@keyframes statBounce {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.4);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #00D4FF;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================== ABOUT ======================== */
.about {
  padding: 120px 0;
  background: white;
}

.section-label {
  color: #FF6B6B;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 15px;
}

.about h2, .services h2, .portfolio h2, .contact h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: #1B4D7F;
  animation: slideUp 0.6s ease;
}

.section-intro {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.about-card {
  background: white;
  padding: 60px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.info-row {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 2px solid #f0f0f0;
  align-items: flex-start;
  animation: slideUp 0.6s ease backwards;
  transition: all 0.3s ease;
}

.info-row:hover {
  transform: translateX(10px);
}

.info-row:nth-child(1) { animation-delay: 0.1s; }
.info-row:nth-child(2) { animation-delay: 0.2s; }
.info-row:nth-child(3) { animation-delay: 0.3s; }

.info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  font-size: 3rem;
  min-width: 70px;
  filter: drop-shadow(0 4px 10px rgba(0, 85, 187, 0.1));
}

.info-content h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #0055BB;
  font-weight: 700;
}

.info-content p, .info-content ul {
  color: #666;
  line-height: 1.9;
  font-size: 1rem;
}

.info-content ul {
  list-style: none;
  padding-left: 0;
}

.info-content li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.info-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0055BB;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ======================== SERVICES ======================== */
.services {
  padding: 120px 0;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-card {
  background: white;
  padding: 45px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 2px solid #f0f0f0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 85, 187, 0.18);
  border-color: #0055BB;
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #1B4D7F;
  font-weight: 700;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  color: #0055BB;
}

.service-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: #666;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FF6B6B;
  font-weight: bold;
  font-size: 1.3rem;
}

.service-card:hover li {
  transform: translateX(5px);
}

/* ======================== PORTFOLIO ======================== */
.portfolio {
  padding: 120px 0;
  background: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-info {
  position: relative;
  padding: 20px 25px;
  background: white;
  color: #333;
  z-index: 2;
  opacity: 1;
  transition: all 0.3s ease;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(-15px);
}

.portfolio-type {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: #1d274e;
}

/* ======================== CONTACT ======================== */
.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 45px;
  margin: 70px 0;
}

.contact-item {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  animation: slideUp 0.6s ease backwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
  border-color: #0055BB;
}

.contact-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.contact-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1B4D7F;
  font-weight: 700;
}

.contact-item p {
  color: #666;
  line-height: 1.8;
  font-size: 0.95rem;
}

.btn-large {
  display: block;
  width: fit-content;
  margin: 50px auto 0;
  padding: 16px 50px;
  background: linear-gradient(135deg, #0055BB 0%, #003d7f 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 85, 187, 0.3);
}

.btn-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 85, 187, 0.4);
}

/* ======================== FOOTER ======================== */
.footer {
  background: linear-gradient(135deg, #1B4D7F 0%, #0055BB 100%);
  color: white;
  padding: 70px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-bottom: 50px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-section p, .footer-section a {
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: #00D4FF;
  transform: translateX(5px);
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
  .nav {
    gap: 20px;
    margin-left: 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 40px 25px;
  }

  .info-row {
    gap: 20px;
  }
}
