/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    --bg-dark: #070913;
    --bg-darker: #04050a;
    --bg-card: rgba(20, 25, 45, 0.6);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* Background Elements */
  .bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
  }
  .bg-glow.right {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(0,0,0,0) 70%);
  }
  
  /* ==========================================================================
     Typography & Utils
     ========================================================================== */
  h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
  }
  
  .highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Buttons */
  .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--primary-glow);
    transition: all 0.3s ease;
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
  }
  .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
  }
  
  /* ==========================================================================
     Header & Nav
     ========================================================================== */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
  }
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
  }
  .logo img {
    height: 40px;
  }
  .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
  }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
  }
  .nav-links a:hover {
    color: #fff;
  }
  .lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
  }
  .lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
  }
  .lang-btn.active {
    background: var(--primary);
    color: #fff;
  }
  
  /* ==========================================================================
     Hero Section
     ========================================================================== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
  }
  .hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
  }
  .hero-actions {
    display: flex;
    gap: 15px;
  }
  
  /* Editor Animation */
  .code-editor {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
  }
  .editor-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .editor-dots {
    display: flex;
    gap: 6px;
  }
  .editor-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  .editor-dots span:nth-child(1) { background: #ff5f56; }
  .editor-dots span:nth-child(2) { background: #ffbd2e; }
  .editor-dots span:nth-child(3) { background: #27c93f; }
  .editor-title {
    color: #8b949e;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    margin-left: 10px;
  }
  .editor-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #c9d1d9;
    min-height: 300px;
    overflow-x: hidden;
  }
  .cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #58a6ff;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* ==========================================================================
     Services Section
     ========================================================================== */
  .services {
    padding: 120px 0;
    background: var(--bg-darker);
  }
  .section-header {
    text-align: center;
    margin-bottom: 80px;
  }
  .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  .service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
  }
  .service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(79, 70, 229, 0.05);
  }
  .service-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
  }
  .service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--secondary);
    fill: none;
    stroke-width: 2;
  }
  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
  }
  .service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  /* ==========================================================================
     About Section
     ========================================================================== */
  .about {
    padding: 120px 0;
    position: relative;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
  }
  .about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
  }
  .stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 5px;
  }
  .stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
  }
  
  /* ==========================================================================
     Contact Section
     ========================================================================== */
  .contact {
    padding: 120px 0;
    background: var(--bg-darker);
  }
  .contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
  }
  .contact-header {
    text-align: center;
    margin-bottom: 40px;
  }
  .contact-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
  .contact-header p { color: var(--text-muted); }
  
  .form-group {
    margin-bottom: 20px;
  }
  .form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  .form-control:focus {
    outline: none;
    border-color: var(--primary);
  }
  textarea.form-control {
    min-height: 150px;
    resize: vertical;
  }
  .btn-submit {
    width: 100%;
    margin-top: 10px;
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
  footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 992px) {
    .hero-grid, .about-grid {
      grid-template-columns: 1fr;
    }
    .hero { padding-top: 120px; text-align: center; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
  }
  
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .contact-container { padding: 30px 20px; }
  }
