/* Dylight IT — Main Stylesheet
   https://dylight.it
*/
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #000000;
      --bg2:       #0a0a0a;
      --bg3:       #111111;
      --border:    rgba(47,186,217,0.18);
      --accent:    #2FBAD9;
      --accent-lt: #5dcde6;
      --accent-glow: rgba(47,186,217,0.35);
      --text:      #e2e8f0;
      --text-muted:#94a3b8;
      --text-dim:  #64748b;
      --card:      #0d0d0d;
      --radius:    12px;
      --radius-lg: 20px;
    }

    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-family: 'Space Grotesk', sans-serif;
      line-height: 1.25;
    }

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

    /* ─── NAV ─────────────────────────────────────────── */
    #nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2rem;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
    }
    #nav.scrolled {
      background: rgba(0,0,0,0.90);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: -0.02em;
      transition: color 0.2s;
    }
    .nav-logo:hover { color: var(--accent-lt); }
    .nav-logo span { color: var(--text); }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-muted);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--accent-lt); }

    .nav-cta {
      padding: 0.5rem 1.25rem;
      background: var(--accent);
      color: #fff;
      border-radius: 8px;
      font-size: 0.875rem;
      font-weight: 600;
      transition: background 0.2s, transform 0.15s;
    }
    .nav-cta:hover { background: var(--accent-lt); transform: translateY(-1px); color: #fff; }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }
    .hamburger span {
      width: 24px; height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
    }
    .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); }

    .mobile-menu {
      display: none;
      position: fixed;
      inset: 64px 0 0 0;
      background: rgba(0,0,0,0.97);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      z-index: 99; /* below nav (100) but above all page content */
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--text);
      transition: color 0.2s;
    }
    .mobile-menu a:hover { color: var(--accent); }

    /* ─── HERO ────────────────────────────────────────── */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 8rem 1.5rem 5rem;
      padding-top: calc(64px + 4rem); /* account for fixed nav height + breathing room */
      overflow: hidden;
    }

    /* Grid background */
    .hero-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(47,186,217,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,186,217,0.06) 1px, transparent 1px);
      background-size: 60px 60px;
      -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
      mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
      pointer-events: none; /* prevent decorative grid from blocking clicks on hero content */
    }

    /* Floating orbs */
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      animation: float 8s ease-in-out infinite;
      pointer-events: none;
    }
    .orb-1 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(47,186,217,0.18) 0%, transparent 70%);
      top: -100px; left: 50%;
      transform: translateX(-50%);
    }
    .orb-2 {
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
      bottom: 10%; right: 10%;
      animation-delay: -4s;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0) translateX(-50%); }
      50%       { transform: translateY(-30px) translateX(-50%); }
    }
    .orb-2 { animation: float2 10s ease-in-out infinite; }
    @keyframes float2 {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(-20px); }
    }

    .hero-content { position: relative; z-index: 1; max-width: 800px; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(34,197,94,0.1);
      border: 1px solid rgba(34,197,94,0.3);
      color: #4ade80;
      padding: 0.4rem 1rem;
      border-radius: 99px;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      margin-bottom: 1.75rem;
    }
    .badge-dot {
      width: 8px; height: 8px;
      background: #22c55e;
      border-radius: 50%;
      animation: pulse-green 2s ease-in-out infinite;
    }
    @keyframes pulse-green {
      0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
      50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
    }

    .hero h1 {
      font-size: clamp(2.4rem, 6vw, 4.5rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 1.25rem;
      background: linear-gradient(135deg, #fff 40%, var(--accent-lt) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: clamp(1rem, 2.2vw, 1.2rem);
      color: var(--text-muted);
      max-width: 620px;
      margin: 0 auto 2.5rem;
      font-weight: 400;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      padding: 0.85rem 2rem;
      background: var(--accent);
      color: #fff;
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 0.95rem;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    .btn-primary:hover {
      background: var(--accent-lt);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(47,186,217,0.35);
      color: #fff;
    }

    .btn-outline {
      padding: 0.85rem 2rem;
      border: 1.5px solid var(--border);
      color: var(--text);
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 0.95rem;
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
    }
    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent-lt);
      transform: translateY(-2px);
    }

    /* ─── SECTIONS ────────────────────────────────────── */
    section {
      padding: 6rem 1.5rem;
      scroll-margin-top: 64px; /* offset for fixed nav so anchor links don't hide headings */
    }
    .container {
      max-width: 1100px;
      margin: 0 auto;
    }

    .section-label {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }
    .section-title {
      font-size: clamp(1.75rem, 4vw, 2.75rem);
      font-weight: 700;
      letter-spacing: -0.025em;
      margin-bottom: 1rem;
    }
    .section-sub {
      color: var(--text-muted);
      max-width: 560px;
      margin-bottom: 3.5rem;
    }

    /* ─── SERVICES ────────────────────────────────────── */
    #services { background: var(--bg2); }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 1.5rem;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem;
      transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
    }
    .card:hover {
      border-color: var(--accent);
      box-shadow: 0 0 32px var(--accent-glow);
      transform: translateY(-4px);
    }

    .card-icon {
      width: 52px; height: 52px;
      background: rgba(47,186,217,0.1);
      border: 1px solid rgba(47,186,217,0.25);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
    }
    .card-icon svg { width: 26px; height: 26px; stroke: var(--accent-lt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .card h3 {
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 0.65rem;
    }
    .card p { color: var(--text-muted); font-size: 0.92rem; }

    /* ─── ABOUT ───────────────────────────────────────── */
    #about { background: var(--bg); }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .about-text p {
      color: var(--text-muted);
      margin-bottom: 1.25rem;
      font-size: 0.97rem;
    }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 1.75rem;
    }
    .skill {
      padding: 0.35rem 0.9rem;
      background: rgba(47,186,217,0.1);
      border: 1px solid rgba(47,186,217,0.25);
      border-radius: 99px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--accent-lt);
      transition: background 0.2s, border-color 0.2s;
    }
    .skill:hover {
      background: rgba(47,186,217,0.2);
      border-color: var(--accent);
    }

    /* Decorative card */
    .about-visual {
      position: relative;
    }
    .geo-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
    }
    .geo-card::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 200px; height: 200px;
      background: radial-gradient(circle, rgba(47,186,217,0.25) 0%, transparent 70%);
      border-radius: 50%;
    }
    .geo-card::after {
      content: '';
      position: absolute;
      bottom: -40px; left: -40px;
      width: 150px; height: 150px;
      background: radial-gradient(circle, rgba(96,165,250,0.15) 0%, transparent 70%);
      border-radius: 50%;
    }
    .geo-card-inner { position: relative; z-index: 1; }
    .geo-stat {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .geo-stat:last-child { border-bottom: none; }
    .geo-stat-num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--accent-lt);
      min-width: 3.5rem;
    }
    .geo-stat-label { font-size: 0.875rem; color: var(--text-muted); }

    /* ─── EXPERIENCE ──────────────────────────────────── */
    #experience { background: var(--bg2); }

    .timeline {
      position: relative;
      padding-left: 2.5rem;
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: linear-gradient(to bottom, var(--accent), transparent);
      border-radius: 2px;
    }

    .timeline-item {
      position: relative;
      margin-bottom: 2.5rem;
    }
    .timeline-item:last-child { margin-bottom: 0; }

    .timeline-dot {
      position: absolute;
      left: -2.5rem;
      top: 6px;
      width: 14px; height: 14px;
      background: var(--accent);
      border: 3px solid var(--bg2);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--accent-glow);
    }

    .timeline-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.75rem 2rem;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .timeline-card:hover {
      border-color: rgba(47,186,217,0.4);
      box-shadow: 0 4px 24px rgba(47,186,217,0.12);
    }

    .timeline-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .timeline-title {
      font-size: 1.05rem;
      font-weight: 700;
    }
    .timeline-org {
      color: var(--accent-lt);
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }
    .timeline-period {
      font-size: 0.775rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: var(--accent);
      background: rgba(47,186,217,0.1);
      border: 1px solid rgba(47,186,217,0.2);
      padding: 0.2rem 0.7rem;
      border-radius: 99px;
      white-space: nowrap;
    }
    .timeline-desc {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-top: 0.6rem;
    }

    /* ─── CONTACT ─────────────────────────────────────── */
    #contact { background: var(--bg); }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .contact-info p {
      color: var(--text-muted);
      font-size: 0.95rem;
      margin-bottom: 2rem;
    }
    .contact-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 500;
      margin-bottom: 1rem;
      transition: color 0.2s;
    }
    .contact-link:hover { color: var(--accent-lt); }
    .contact-link svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

    .contact-note {
      margin-top: 2rem;
      padding: 1rem 1.25rem;
      background: rgba(47,186,217,0.06);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--text-dim);
      font-size: 0.82rem;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
    label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
      letter-spacing: 0.03em;
    }
    input, textarea {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.75rem 1rem;
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-size: 0.92rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    input:focus, textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(47,186,217,0.15);
    }
    textarea { min-height: 130px; resize: vertical; }

    .btn-submit {
      padding: 0.9rem 2rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    .btn-submit:hover:not(:disabled) {
      background: var(--accent-lt);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(47,186,217,0.35);
    }
    .btn-submit:disabled {
      background: var(--text-dim);
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
      opacity: 0.7;
    }

    /* ─── FOCUS STYLES (keyboard navigation) ──────────── */
    a:focus-visible,
    button:focus-visible,
    [role="button"]:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 4px;
    }
    /* Input/textarea already get a box-shadow on focus — keep that, skip outline duplication */
    input:focus-visible,
    textarea:focus-visible {
      outline: none;
    }

    /* ─── FOOTER ──────────────────────────────────────── */
    footer {
      background: var(--bg2);
      border-top: 1px solid var(--border);
      padding: 2rem 1.5rem;
      text-align: center;
    }
    .footer-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }
    footer p { color: var(--text-dim); font-size: 0.85rem; }
    .footer-links { display: flex; gap: 1.5rem; }
    .footer-links a { color: var(--text-dim); font-size: 0.85rem; transition: color 0.2s; }
    .footer-links a:hover { color: var(--accent-lt); }

    /* ─── ANIMATIONS ──────────────────────────────────── */
    .fade-up {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .fade-up.delay-1 { transition-delay: 0.1s; }
    .fade-up.delay-2 { transition-delay: 0.2s; }
    .fade-up.delay-3 { transition-delay: 0.3s; }

    @media (prefers-reduced-motion: reduce) {
      .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
      }
      .orb { animation: none; }
      .badge-dot { animation: none; }
    }

    /* ─── RESPONSIVE ──────────────────────────────────── */
    @media (max-width: 768px) {
      .nav-links, .nav-cta { display: none; }
      .hamburger { display: flex; }

      .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-visual { order: -1; }

      section { padding: 4rem 1.25rem; scroll-margin-top: 64px; }

      .timeline { padding-left: 1.75rem; }
      .timeline-dot { left: -1.75rem; }

      .footer-inner { flex-direction: column; text-align: center; }
    }

    @media (max-width: 480px) {
      .hero-actions { flex-direction: column; align-items: center; }
      .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }
    }

    /* ─── PRINT ───────────────────────────────────────── */
    @media print {
      #nav, footer, .hamburger, .mobile-menu, .orb, .hero-grid { display: none !important; }
      .hero { min-height: auto; padding: 2rem 1.5rem; }
      .fade-up { opacity: 1; transform: none; }
      body { background: #fff; color: #000; }
      a { color: #000; }
    }
