:root {
    --bg-main: #070709;
    --bg-card: rgba(20, 20, 25, 0.75);
    --bg-card-hover: rgba(30, 30, 38, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.5);
    --text-main: #f4f4f5;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --green: #10b981;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
  }
  
  .bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
  }
  
  .glow-1 { top: -150px; left: -100px; background: radial-gradient(circle, #1d4ed8, transparent 70%); }
  .glow-2 { top: 40%; right: -150px; background: radial-gradient(circle, #4338ca, transparent 70%); }
  .glow-3 { bottom: -100px; left: 20%; background: radial-gradient(circle, #0e7490, transparent 70%); }
  
  .container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 9, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-content {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
  }
  .logo span { color: var(--accent); }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text-main); }
  
  .nav-links .nav-cta {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  .nav-links .nav-cta:hover { background: var(--accent); color: #fff; }
  
  .hero {
    padding: 95px 0 75px;
    max-width: 760px;
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
  }
  
  .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 25px var(--accent-glow);
  }
  .btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
  
  .btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
  }
  .btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
  
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
  .section-header p { color: var(--text-muted); font-size: 0.95rem; }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
    gap: 20px;
  }
  
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  
  .project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  
  .project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .project-tag { font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
  .project-arrow { color: var(--text-muted); font-size: 1.1rem; transition: transform 0.2s, color 0.2s; }
  .project-card:hover .project-arrow { color: #60a5fa; transform: translate(3px, -3px); }
  .project-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
  .project-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 20px; }
  
  .project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
  .project-tech span { font-size: 0.75rem; color: #e4e4e7; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.04); padding: 4px 10px; border-radius: 6px; }
  
  .bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .bento-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 26px; backdrop-filter: blur(12px); }
  .bento-large { grid-column: span 2; }
  .bento-large h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .bento-large p { color: var(--text-muted); font-size: 0.92rem; }
  .bento-stat { display: flex; flex-direction: column; justify-content: center; }
  .stat-number { font-size: 2.3rem; font-weight: 800; color: #60a5fa; line-height: 1.1; margin-bottom: 6px; }
  .stat-label { font-size: 0.85rem; color: var(--text-muted); }
  .bento-wide { grid-column: span 4; }
  .bento-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .badge-active { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
  
  .stack-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .stack-group { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px; }
  .stack-group h4 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 14px; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; }
  .badge { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-main); padding: 6px 12px; border-radius: 8px; font-size: 0.83rem; font-weight: 500; }
  
  .contact-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9), rgba(30, 58, 138, 0.25));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 22px;
    padding: 45px 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  .contact-card h2 { font-size: 1.85rem; margin-bottom: 10px; }
  .contact-card p { color: var(--text-muted); max-width: 500px; margin: 0 auto 30px; }
  .contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
  
  .contact-btn {
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .contact-btn:hover { transform: translateY(-2px); }
  .contact-btn.phone { background: #10b981; color: #fff; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
  .contact-btn.telegram { background: #0ea5e9; color: #fff; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
  .contact-btn.email { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--border-color); }
  
  .footer { border-top: 1px solid var(--border-color); padding: 30px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 40px; }
  
  /* Modal we Galereýa Stilleri */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
  }
  .modal-overlay.active { display: flex; }
  
  .modal-box {
    background: #111115;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  }
  
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
  }
  
  .modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s;
  }
  .modal-close:hover { color: #fff; }
  
  .modal-box h3 { font-size: 1.45rem; margin: 10px 0; }
  .modal-description { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
  
  .modal-gallery-container { margin-bottom: 20px; }
  .modal-gallery-container h4 { font-size: 0.9rem; margin-bottom: 10px; color: #e4e4e7; }
  
  .modal-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-main);
  }
  
  .modal-gallery::-webkit-scrollbar { height: 6px; }
  .modal-gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
  
  .modal-gallery img {
    width: 145px;
    height: 275px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .modal-gallery img:hover { transform: scale(1.03); border-color: var(--accent); }
  
  .modal-features h4 { font-size: 0.9rem; margin-bottom: 8px; color: #e4e4e7; }
  .modal-features ul { padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
  .modal-features li { margin-bottom: 5px; }
  
  .mobile-bottom-nav { display: none; }
  
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 55px 0 45px; }
    .projects-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; }
  
    .mobile-bottom-nav {
      display: flex;
      justify-content: space-around;
      align-items: center;
      position: fixed;
      bottom: 12px;
      left: 16px;
      right: 16px;
      height: 54px;
      background: rgba(18, 18, 23, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      z-index: 500;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    }
  
    .mobile-bottom-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; font-weight: 600; padding: 8px 12px; }
    .mobile-bottom-nav a:hover, .mobile-bottom-nav a:active { color: var(--text-main); }
  }