@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* LIGHT THEME (Default) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #003087; /* Navy Blue */
  --primary-hover: #002266;
  --accent: #00A651; /* Conesul Green */
  --accent-hover: #008f45;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -10px rgba(0, 48, 135, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --input-bg: #ffffff;
}

[data-theme="dark"] {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --bg-nav: rgba(13, 17, 23, 0.85);
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --primary: #1f6feb; /* Dark mode blue */
  --primary-hover: #388bfd;
  --accent: #2ea043; /* Dark mode green */
  --accent-hover: #3fb950;
  --border: #30363d;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(22, 27, 34, 0.7);
  --glass-border: rgba(48, 54, 61, 0.5);
  --input-bg: #0d1117;
}

[data-theme="tokyo-night"] {
  --bg-main: #1a1b26;
  --bg-card: #24283b;
  --bg-nav: rgba(26, 27, 38, 0.85);
  --text-main: #a9b1d6;
  --text-muted: #565f89;
  --primary: #bb9af7; /* Tokyo Purple */
  --primary-hover: #9d7cd8;
  --accent: #ff007c; /* Tokyo Pink */
  --accent-hover: #db0067;
  --border: #414868;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(36, 40, 59, 0.7);
  --glass-border: rgba(65, 72, 104, 0.5);
  --input-bg: #16161e;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-8 { margin-top: 3rem; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

/* Dropdowns */
.nav-links li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown-menu a::after {
  display: none !important; /* block underline in dropdown */
}

.nav-links li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative;
  width: 100%;
}

.dropdown-menu a {
  padding: 0.8rem 1.5rem;
  display: block;
  color: var(--text-main);
  transition: all 0.3s;
  width: 100%;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* Sub-dropdown */
.dropdown-submenu {
  top: 0;
  left: 100%;
  transform: translateX(-10px);
}

.dropdown-menu li:hover > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--border);
  transform: rotate(15deg);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem; /* account for navbar */
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: blob-bounce 10s infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: blob-bounce 12s infinite alternate-reverse;
}

@keyframes blob-bounce {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -50px) scale(1.1); }
}

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

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

/* Services Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 4rem 0;
}

.stats [data-theme="tokyo-night"] & {
  background: var(--bg-card);
}

.stats .grid {
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

[data-theme="tokyo-night"] .stat-item h3 {
  color: var(--accent);
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

[data-theme="tokyo-night"] .form-control:focus {
  box-shadow: 0 0 0 3px rgba(187, 154, 247, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  background: var(--bg-card);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

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

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

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

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

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

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Animations (Scroll) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Table */
.table-container {
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.styled-table thead tr {
  background-color: var(--primary);
  color: #ffffff;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: var(--bg-main);
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary);
}

/* Page Header */
.page-header {
  padding: 10rem 0 5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-card), var(--bg-main));
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image img {
    transform: none;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-actions {
    margin-top: 2rem;
    flex-direction: column;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}
/* Work with Us Section */
.work-with-us {
  background: linear-gradient(rgba(0, 48, 135, 0.05) 0%, rgba(0, 166, 81, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.work-with-us::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.1;
  border-radius: 50%;
}

.work-with-us-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Modal Glassmorphism */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-glass {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--border);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--primary);
}

.modal-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modal-glass {
    padding: 2rem 1.5rem;
  }
}

.file-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background: var(--bg-main);
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
  font-weight: 500;
}

.file-input-label:hover {
  border-color: var(--primary);
  background: rgba(0, 48, 135, 0.05);
  color: var(--primary);
}

.file-input-label i {
  font-size: 1.5rem;
}

#resume-file {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Success Message */
.success-message {
  text-align: center;
  display: none;
}

.success-message i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
