/* Creator Box 3D - Styles */

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: bold;
}

.logo-container {
  background: white;
  border-radius: 50%;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 65px;
  height: 65px;
}

.logo img {
  height: 40px;
  width: 40px;
  display: block;
  object-fit: contain;
  animation: logoRotate 1s ease-in-out;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

/* Header Language Switcher */
.header-language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-language-switcher .lang-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 500;
}

.header-language-switcher .lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.header-language-switcher .lang-btn.active {
  background: white;
  color: #4a90e2;
  border-color: white;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  padding: 150px 2rem 100px;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 100%;
  height: 100%;
  width: auto;
  transform: translateX(-50%);
  z-index: 0;
  object-fit: cover;
  object-position: center top;
}

/* Hero Overlay - darkens video for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 144, 226, 0.4);
  z-index: 1;
}

/* Hero Content - appears above video */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s 0.2s backwards;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
  display: inline-block;
  background: #ff8c42;
  color: white;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s 0.4s backwards;
  font-weight: bold;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 140, 66, 0.4);
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 2rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #4a90e2;
}

/* Services */
.services-grid {
  display: flex;
  align-items: center;
  gap: 5rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2rem 1rem;
  position: relative;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
}

.services-grid::-webkit-scrollbar {
  height: 6px;
}

.services-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
  background: #4a90e2;
  border-radius: 10px;
}

.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.12);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 240px;
  flex: 1 1 240px;
  max-width: 260px;
  border-top: 4px solid #4a90e2;
  height: 320px;
}

.service-card.selected {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
  border-top-color: #4a90e2;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  z-index: 2;
}

.service-card.selected .service-icon {
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.service-card.selected p {
  display: block;
}

.service-card:hover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-top-color: #ff8c42;
  z-index: 2;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #ff8c42 0%, #ff9d5c 100%);
}

.service-card::after {
  content: "→";
  position: absolute;
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #4a90e2;
  font-weight: bold;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

/* Remove arrow from last card */
.service-card:last-child::after {
  display: none;
}

.service-icon {
  font-size: 2.2rem;
  color: white;
  font-weight: bold;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #666;
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e0e0e0;
}

/* Make grid container fit better */
#servicii .services-grid {
  max-width: 1400px;
  margin: 0 auto;
}

/* About */
.about {
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.features-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  height: 250px;
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  color: white;
  text-align: center;
  padding: 80px 2rem;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.contact-card {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4a90e2;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  border-radius: 50%;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* Language Switcher */
.language-switcher {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #555;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.language-switcher span {
  color: #aaa;
  font-size: 0.9rem;
}

.lang-btn {
  background: transparent;
  color: white;
  border: 2px solid #555;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.lang-btn:hover {
  border-color: #4a90e2;
  background: #4a90e2;
  transform: translateY(-2px);
}

.lang-btn.active {
  border-color: #4a90e2;
  background: #4a90e2;
  font-weight: bold;
}

/* Animations */
@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive - Mobile Styles */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 0 1rem;
  }

  nav ul {
    display: none;
  }

  /* Header Language Switcher - Mobile */
  .header-language-switcher {
    display: flex;
    gap: 0.3rem;
  }

  .header-language-switcher .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Logo - Smaller on mobile */
  .logo {
    font-size: 1.2rem;
    gap: 0.6rem;
  }

  .logo-container {
    width: 45px;
    height: 45px;
    padding: 0.4rem;
  }

  .logo img {
    height: 28px;
    width: 28px;
  }

  /* Hero Section - Smaller fonts */
  .hero {
    padding: 120px 1rem 60px;
    min-height: 500px;
  }

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

  .hero p {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  /* Section Titles */
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  section {
    padding: 40px 1rem;
  }

  /* Services section - extra padding for scrollable content */
  #servicii {
    padding: 40px 0;
    overflow: visible;
  }

  /* Services Grid - Mobile optimized */
  .services-grid {
    gap: 5rem;
    justify-content: flex-start;
    padding: 1rem 0 1rem 2rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    min-width: 220px;
    max-width: 220px;
    padding: 1.2rem 0.8rem;
    height: 240px;
  }

  .service-card.selected {
    transform: translateY(-5px) scale(1.02);
  }

  .service-icon {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  .service-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-card p {
    font-size: 0.68rem;
    line-height: 1.4;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }

  /* Arrows - Smaller on mobile */
  .service-card::after {
    font-size: 2.5rem;
    right: -42px;
    opacity: 0.8;
    z-index: 10;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .features-list {
    margin-top: 1rem;
  }

  .features-list li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
  }

  .features-list li:before {
    font-size: 1.1rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-item {
    height: 180px;
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 50px 1rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Contact Cards */
  .contact-info {
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-card h3 {
    font-size: 1rem;
  }

  .contact-card p {
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon svg {
    width: 25px;
    height: 25px;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
  }

  footer p {
    font-size: 0.85rem;
  }

  .language-switcher {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
  }

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

  .hero p {
    font-size: 0.85rem;
  }

  .hero {
    min-height: 450px;
  }

  h2 {
    font-size: 1.4rem;
  }

  #servicii {
    padding: 40px 0;
    overflow: visible;
  }

  .services-grid {
    gap: 3rem;
    padding: 1rem 0 1rem 2rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    min-width: 190px;
    max-width: 190px;
    padding: 1rem 0.6rem;
    height: 220px;
  }
}
