/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #00ff88;
  --secondary-color: #0066cc;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
  --gradient-primary: linear-gradient(135deg, #00ff88, #0066cc);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

body {
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-theme {
  --bg-dark: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.05);
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #999999;
  --border-color: rgba(0, 0, 0, 0.1);
}

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

/* Particles background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Header */
.header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-glow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav .theme-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  transition: all 0.3s ease;
}

.logo-mark:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

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

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

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

.cta-button {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button::after {
  display: none !important;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  color: white !important;
}

.theme-toggle {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.hero-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.typing-container {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 600;
}

/* Profile Photo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

.photo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color), var(--secondary-color), var(--primary-color));
  z-index: -1;
  animation: rotate 10s linear infinite;
  opacity: 0.3;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.client-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.client-logo.black-logo img {
  /* No filter - keep original colors */
}

.client-logo:hover img {
  filter: brightness(1) contrast(1.2) drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  transform: scale(1.05);
}

.client-logo:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.05);
}

/* Glass Cards */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 48px;
  margin: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.glass-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-methods {
  margin: 32px 0;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

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

.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  color: #0077b5;
  transform: translateY(-2px);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Contact Form */
.contact-form h3 {
  margin-bottom: 24px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--bg-dark);
  padding: 0 8px;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
}

.btn-primary.glow {
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 80px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.footer-left p {
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-right p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
  }
  
  .nav .theme-toggle {
    position: static;
    transform: none;
    order: 2;
  }
  
  .nav-links {
    gap: 20px;
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }
  
  .logo {
    order: 1;
  }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .glass-card {
    padding: 24px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .form-group select {
    min-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc6a;
}