:root{
  --bg:#0f1724;
  --card:#0b1220;
  --muted:#94a3b8;
  --accent:#c59a2a;
  --white:#f8fafc;
  --section-dark:#071026;
  --border-light:rgba(255,255,255,0.06);
  --shadow:rgba(2,6,23,0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.container.wide {
  max-width: 1400px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 36, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #f3d07a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #071026;
  font-size: 16px;
}

.logo-text {
  font-weight: 600;
  color: var(--white);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

.lang-btn .flag {
  font-size: 1.2rem;
  line-height: 1;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #071026;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(197, 154, 42, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 154, 42, 0.4);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.prev {
  left: 24px;
}

.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--section-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

/* Profile Cards */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: center;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 64px var(--shadow);
  background: rgba(255, 255, 255, 0.05);
}

.profile-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--accent), #f3d07a);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(197, 154, 42, 0.3);
  transition: all 0.3s ease;
}

.profile-icon svg {
  width: 40px;
  height: 40px;
  color: #071026;
}

.profile-card:hover .profile-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(197, 154, 42, 0.4);
}

.tech-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.business-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.liberty-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.social-icon {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.profile-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-card p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--white);
  border: 1px solid var(--border-light);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-year {
  width: 120px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent);
  padding-top: 4px;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 12px;
  margin-left: 60px;
  border: 1px solid var(--border-light);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 24px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--section-dark);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--shadow);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  background: var(--accent);
  color: #071026;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(197, 154, 42, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: auto;
}

.btn {
  background: var(--accent);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #071026;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 154, 42, 0.3);
}

/* Footer */
.footer {
  background: var(--section-dark);
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo span {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #071026;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(197, 154, 42, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 154, 42, 0.4);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.alert span {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.alert-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.alert-success {
  background: rgba(35, 160, 80, 0.12);
  border: 1px solid rgba(35, 160, 80, 0.18);
  color: #a9f0c3;
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.12);
  color: #ffd5d5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 20px;
    border-top: 1px solid var(--border-light);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .language-selector {
    margin-left: 16px;
    margin-right: 20px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .profile-card {
    padding: 32px 24px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-year {
    width: auto;
    margin-bottom: 8px;
  }

  .timeline-content {
    margin-left: 40px;
  }

  .timeline-content::before {
    left: -32px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 2rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .service-card,
  .contact-form {
    padding: 20px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-card {
    padding: 28px 20px;
  }

  .profile-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .profile-icon svg {
    width: 35px;
    height: 35px;
  }

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

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-modal.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
}

.cookie-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.cookie-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.cookie-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cookie-body {
  padding: 20px 24px;
}

.cookie-body p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-details {
  margin: 16px 0;
}

.cookie-details details {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.cookie-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 0;
}

.cookie-details summary:hover {
  color: var(--white);
}

.cookie-types {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.cookie-type {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}

.cookie-type h4 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.cookie-type p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-accept {
  background: var(--accent);
  color: #071026;
  flex: 1;
  min-width: 120px;
}

.btn-accept:hover {
  background: #d4a944;
  transform: translateY(-1px);
}

.btn-essential {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid var(--border-light);
  flex: 1;
  min-width: 120px;
}

.btn-essential:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-configure {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-light);
  min-width: 100px;
}

.btn-configure:hover {
  color: var(--white);
  border-color: var(--accent);
}

/* Cookie modal responsive */
@media (max-width: 768px) {
  .cookie-modal {
    padding: 16px;
  }

  .cookie-header {
    padding: 20px 20px 0;
  }

  .cookie-body {
    padding: 16px 20px;
  }

  .cookie-actions {
    padding: 0 20px 20px;
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%;
  }

  .cookie-types {
    gap: 8px;
  }

  .cookie-type {
    padding: 10px;
  }
}