 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #080A0E;
    --bg2: #0E1117;
    --bg3: #141820;
    --surface: #1A1F2C;
    --surface2: #232A38;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #F0F2F7;
    --text2: #8B92A5;
    --text3: #5A6070;
    --accent: #4FD1C5;
    --accent2: #667EEA;
    --accent3: #F6AD55;
    --grad: linear-gradient(135deg, #4FD1C5 0%, #667EEA 100%);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

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

  /* NOISE TEXTURE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 4rem;
    background: rgba(8,10,14,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }

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

  .nav-cta {
    background: var(--grad);
    color: #080A0E !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 500 !important;
    -webkit-text-fill-color: #080A0E !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s;
  }

  .nav-cta:hover { opacity: 0.85; }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
  }

  .hero-orb-1 {
    width: 600px; height: 600px;
    background: rgba(79,209,197,0.12);
    top: -100px; right: -150px;
  }

  .hero-orb-2 {
    width: 400px; height: 400px;
    background: rgba(102,126,234,0.10);
    bottom: 50px; left: -100px;
  }

  .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79,209,197,0.08);
    border: 1px solid rgba(79,209,197,0.2);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
  }

  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

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

  .hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }

  .hero-title .line2 {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-desc {
    color: var(--text2);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .btn-primary {
    background: var(--grad);
    color: #080A0E;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
  }

  .btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

  .btn-outline {
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }

  .btn-outline:hover { border-color: var(--accent); background: rgba(79,209,197,0.05); }

  /* HERO VISUAL — stats card */
  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: border-color 0.3s;
  }

  .stat-card:hover { border-color: var(--border2); }

  .stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .stat-icon.teal { background: rgba(79,209,197,0.1); }
  .stat-icon.purple { background: rgba(102,126,234,0.1); }
  .stat-icon.amber { background: rgba(246,173,85,0.1); }

  .stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .stat-label {
    font-size: 0.8rem;
    color: var(--text2);
    font-weight: 300;
  }

  /* SECTION WRAPPER */
  .section {
    padding: 7rem 4rem;
    position: relative;
  }

  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-tag {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .section-sub {
    color: var(--text2);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 540px;
    line-height: 1.8;
  }

  /* DIVIDER LINE */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  /* PROJECTS GRID */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
  }

  .project-card:hover {
    border-color: rgba(79,209,197,0.3);
    transform: translateY(-4px);
  }

  .project-card.featured {
    grid-column: span 2;
  }

  .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ensures full image is visible */
  object-position: center;
  z-index: 1;
  position: relative;
  padding: 0.5rem;       /* prevents edge clipping */
}


  .project-card.featured .project-thumb { height: 260px; }

  .project-thumb-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
  }

  .project-num {
    position: absolute;
    top: 1rem; right: 1rem;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
  }

  .project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
  }

  .tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .tag-teal { background: rgba(79,209,197,0.1); color: var(--accent); }
  .tag-purple { background: rgba(102,126,234,0.1); color: #a5b4fc; }
  .tag-amber { background: rgba(246,173,85,0.1); color: var(--accent3); }

  .project-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }

  .project-desc {
    color: var(--text2);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    flex: 1;
  }

  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
  }

  .project-link:hover { gap: 0.65rem; }

  /* SERVICES */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .service-card:hover::before { opacity: 1; }
  .service-card:hover { border-color: var(--border2); }

  .service-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .service-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
  }

  .service-desc {
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
  }

  /* ABOUT */
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
  }

  .about-photo-wrap {
    position: relative;
  }

  .about-photo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .about-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--bg3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .about-avatar-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: #080A0E;
  }

  .about-name-plate {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
  }

  .about-role-plate {
    font-size: 0.85rem;
    color: var(--text2);
    font-weight: 300;
  }

  .about-location-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8,10,14,0.8);
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    backdrop-filter: blur(10px);
  }

  .about-float-card {
    position: absolute;
    top: 2rem; right: -1.5rem;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
  }

 .about-float-card .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;

  /* fallback color */
  color: var(--accent);

  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

  .about-text h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }

  .about-text h3:first-child { margin-top: 0; }

  .about-text p {
    color: var(--text2);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .skill-pill {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text2);
    transition: color 0.2s, border-color 0.2s;
  }

  .skill-pill:hover { color: var(--accent); border-color: rgba(79,209,197,0.3); }

  /* CONTACT */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
  }

  .contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s;
  }

  .contact-item:hover { border-color: var(--border2); }

  .contact-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .contact-label {
    font-size: 0.75rem;
    color: var(--text3);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
  }

  .contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
  }

  .contact-value a { color: inherit; text-decoration: none; }
  .contact-value a:hover { color: var(--accent); }

  .socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .social-btn {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
  }

  .social-btn:hover { border-color: var(--accent); background: rgba(79,209,197,0.05); }

  /* CONTACT FORM */
  .contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
  }

  .form-input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
  }

  .form-input:focus { border-color: rgba(79,209,197,0.4); }
  .form-input::placeholder { color: var(--text3); }

  textarea.form-input { resize: vertical; min-height: 120px; }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
  }

  .footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;

  /* fallback color (IMPORTANT) */
  color: var(--accent);

  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

  .footer-copy {
    color: var(--text3);
    font-size: 0.8rem;
    font-weight: 300;
  }

  .footer-tagline {
    color: var(--text3);
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
  }

  /* SECTION BG VARIANT */
  .section-alt { background: var(--bg2); }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .fade-up { animation: fadeUp 0.7s ease both; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  .delay-4 { animation-delay: 0.4s; }

.footer-logo,
.about-float-card .num {
  color: var(--accent); /* fallback */
}

@supports (-webkit-background-clip: text) {
  .footer-logo,
  .about-float-card .num {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}


@media (max-width: 768px) {

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

  a, button {
  -webkit-tap-highlight-color: transparent;
}

  /* NAV */
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none; /* simplifies mobile UX */
  }

  .nav-cta {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  /* HERO */
  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-orb {
    filter: blur(40px); /* lighter GPU load */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .project-thumb {
    height: 180px;
  }

  .project-card.featured .project-thumb {
    height: 200px;
  }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* ABOUT */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-float-card {
    right: 0;
  }

  /* CONTACT */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
