/* ========== RESET & BASE ========== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
  }
  
  :root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --card: #181818;
    --card2: #1e1e1e;
    --lime: #009cd4;
    --lime2: #007aa7;
    --white: #f5f5f5;
    --muted: #9a9a9a;
    --border: #2a2a2a;
    --font-head: sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { 
    scroll-behavior: smooth; 
    }

  body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
  }

  a { 
    text-decoration: none; 
    color: inherit; 
    }

  img { 
    max-width: 100%; 
    display: block; 
    }

  ul { 
    list-style: none; 
    }

  /* ========== UTILITY ========== */
  .container { max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
  }

  .section-label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .section-label::before { 
    content: '⊕'; 
  }

  .section-heading {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .section-heading em {
    font-style: italic;
    color: var(--lime);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    border: none;
  }

  .btn-lime {
    background: var(--lime);
    color: #0d0d0d;
  }

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

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

  .btn-outline:hover { 
    border-color: var(--lime); 
    color: var(--lime); 
  }

  /* ========== ASTERISK DECO ========== */
  .asterisk {
    position: absolute;
    font-family: var(--font-head);
    color: var(--lime);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    user-select: none;
  }

  /* ========== NAVBAR ========== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 80px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .nav-logo img {
    width: 80px;
  }

  .nav-links { 
    display: flex; 
    gap: 55px; 
  }

  .nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--lime); }
  .nav-right { display: none; align-items: center; gap: 16px; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span {
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  /* ========== HERO ========== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-greeting .emoji { 
    font-size: 18px; 
  }

  .hero-title {
    font-family: var(--font-head);
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 20px;
  }

  .hero-title em {
    font-weight: 900;
    color: var(--lime);
  }

  .hero-desc {
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-btns {
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
  }

  .hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .hero-avatar-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--card2);
    border: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-avatar-circle .avatar-placeholder {
    /*width: 100%;*/
    height: 100%;
    background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    position: absolute;
    top: 70px;
  }

  .hero-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: var(--lime);
    color: #0d0d0d;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.3;
  }

  .hero-badge strong { font-size: 22px; display: block; }
  .hero-deco-ring {
    position: absolute;
    width: 420px; height: 420px;
    border: 1px dashed #2e2e2e;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: spin 30s linear infinite;
  }
  .hero-deco-ring2 {
    position: absolute;
    width: 480px; height: 480px;
    border: 1px solid #222;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: spin 50s linear infinite reverse;
  }
  @keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
  .hero-asterisk1 { font-size: 56px; top: 100px; right: 30px; animation: pulse 3s ease-in-out infinite; }
  .hero-asterisk2 { font-size: 40px; bottom: 80px; left: 5%; animation: pulse 4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity:.6; transform: scale(1) rotate(0deg); } 50% { opacity:1; transform: scale(1.1) rotate(15deg); } }

  /* ========== ABOUT ========== */
  .about {
    padding: 100px 0;
    position: relative;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
  }
  .about-title em { font-style: italic; color: var(--lime); }
  .about-sub { color: var(--muted); margin-bottom: 28px; }
  .about-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .about-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
  }
  .about-checks li::before {
    content: '✓';
    width: 22px; height: 22px;
    background: var(--lime);
    color: #0d0d0d;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
  }
  .stat-card .num {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    color: var(--lime);
    display: block;
  }
  .stat-card .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

  /* ========== SERVICES ========== */
  .services {
    padding: 100px 0;
    background: var(--bg2);
    position: relative;
  }
  .services-header { text-align: center; margin-bottom: 60px; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color .3s, transform .3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(198,241,53,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
  }
  .service-card:hover { border-color: var(--lime); transform: translateY(-4px); }
  .service-card:hover::after { opacity: 1; }
  .service-icon {
    width: 44px; height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 20px;
  }

 .service-card img {
    width: 25px;
  }

  .service-card h3 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .service-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
  .read-more {
    font-size: 13px;
    color: var(--lime);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
  }
  .read-more:hover { gap: 10px; }
  .svc-asterisk { font-size: 80px; bottom: -20px; right: -10px; opacity: .05; }

  /* ========== SKILLS ========== */
  .skills-section {
    padding: 100px 0;
    position: relative;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .skill-bars { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
  }

  .skill-item label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
  }
  .skill-item label span { color: var(--lime); }
  .skill-bar {
    height: 6px;
    background: var(--card2);
    border-radius: 3px;
    overflow: hidden;
  }
  .skill-fill {
    height: 100%;
    background: var(--lime);
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
  }
  .skills-right .section-heading { margin-bottom: 20px; }
  .skills-right p { color: var(--muted); margin-bottom: 32px; font-size: 14px; }

  /* ========== PROJECTS ========== */
  .projects {
    padding: 100px 0;
    background: var(--bg2);
  }
  .projects-header { text-align: center; margin-bottom: 60px; }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }
  .projects-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--card2);
    cursor: pointer;
    border: 1px solid var(--border);
  }

  .project-card-large { 
    aspect-ratio: 16/9; 
  }

  .project-card-large .project-placeholder img {
    max-height: 75%;
    object-fit: cover;
    width: 100%;
  }

  .project-placeholder img {
    max-height: 75%;
    object-fit: cover;
    width: 100%;
  }

  .project-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(53, 228, 241, 0.12);
    opacity: 0;
    transition: opacity .3s;
    display: grid;
    place-items: center;
  }

  .project-card:hover .overlay { 
    opacity: 1; 
  }

  .learn-more-btn {
    background: var(--lime);
    color: #0d0d0d;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-head);
  }
  .project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--border);
    background: linear-gradient(135deg, #1a1a1a, #222);
    gap: 10px;
    flex-direction: column;
  }
  .project-placeholder small { font-size: 12px; color: var(--muted); font-family: var(--font-body); }
  .projects-cta { text-align: center; }

  /* ========== CONTACT ========== */
  .contact {
    padding: 100px 0;
    background: var(--bg2);
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .contact-left h2 { 
    font-family: var(--font-head); 
    font-size: clamp(36px,4vw,52px); 
    font-weight: 800; line-height: 1.1; 
    margin-bottom: 20px; 
  }

  .contact-left h2 em { 
    font-style: italic; 
    color: var(--lime); 
  }

  .contact-left p { 
    color: var(--muted); 
    margin-bottom: 40px; 
    font-size: 14px; 
  }

  .contact-methods { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
  }

  .contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    transition: border-color .2s;
  }
  .contact-method:hover { 
    border-color: var(--lime); 
  }

  .method-icon {
    width: 44px;
    height: 44px;
    background: var(--lime);
    color: #0d0d0d;
    border-radius: 10px;
    display: flex;
    place-items: center;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
  } 

  .method-icon img {
    width: 30px;
  }

  .method-label { 
    font-size: 12px; 
    color: var(--muted); 
  }

  .method-value { 
    font-size: 14px; 
    font-weight: 600; 
  }

  .contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
  }

  .form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
  }

  .form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
  }

  .form-group label { 
    font-size: 13px; 
    color: var(--muted); 
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    resize: none;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--lime); }
  .form-group textarea { height: 120px; }
  select option { background: var(--card); }

  /* ========== FOOTER ========== */
  footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  footer p { 
    font-size: 13px; 
    color: var(--muted);
   }

  .footer-socials { 
    display: flex; 
    gap: 12px; 
  }

  .social-link {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: background .2s, border-color .2s;
  }

  .social-link:hover { 
   scale: 1.05;
  }

  /* ========== SCROLL REVEAL ========== */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .form-error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: -4px;
}

  /* ========== RESPONSIVE ========== */
  @media (max-width: 900px) {

    .nav-right {
      display: flex;
    }

    nav {
      padding: 0 24px;
    }

    .hero-grid,
    .about-grid,
    .skills-grid,
    .testimonial-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid-2 { grid-template-columns: 1fr; }
    .hero-image-wrap { display: none; }

    .nav-links { 
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      background: rgba(13, 13, 13, 0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      flex-direction: column;
      align-items: center;
      gap: 0;
      padding: 0;
      z-index: 998;

      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .nav-links.open { 
      display: flex; /* still needed to make it a flexbox */
      max-height: 400px;
      opacity: 1;
      padding: 20px 0;
    }

    .nav-links a {
      padding: 14px 0;
      font-size: 18px;
      width: 100%;
      text-align: center
    }

    .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hamburger span {
    transition: transform 0.25s, opacity 0.25s;
  }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
    .about-grid { gap: 40px; }
  }
  @media (max-width: 600px) {
    .container { padding: 0 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
  }

  
  @media (max-width: 420px) {

  nav {
    height: 64px;
    padding: 0 16px;
  }

  .nav-logo img {
    width: 65px;
  }

  .nav-links {
    top: 64px;
  }

  .container {
    padding: 0 16px;
  }

  section,
  .about,
  .services,
  .skills-section,
  .projects,
  .contact {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .section-heading,
  .about-title,
  .contact-left h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-card .num {
    font-size: 30px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 13px;
  }

  .skills-headings {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .skill-item label {
    font-size: 13px;
  }

  .project-card,
  .project-card-large {
    aspect-ratio: 1 / 1;
  }

  .project-placeholder small {
    font-size: 11px;
    text-align: center;
    padding: 0 10px;
  }

  .contact-grid {
    gap: 40px;
  }

  .contact-method {
    padding: 14px;
    gap: 12px;
  }

  .method-icon {
    width: 40px;
    height: 40px;
  }

  .method-icon img {
    width: 24px;
  }

  .method-value {
    font-size: 13px;
    word-break: break-word;
  }

  .contact-form {
    gap: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 13px;
  }

  footer {
    padding: 24px 16px;
  }

  footer p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-asterisk1,
  .hero-asterisk2 {
    display: none;
  }
}