:root {
      --bg: #0f172a;
      --bg-alt: #111827;
      --card: #1f2937;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --accent: #f97316;
      --accent-2: #fb923c;
      --line: rgba(255,255,255,0.08);
      --white: #ffffff;
      --radius: 22px;
      --shadow: 0 20px 60px rgba(0,0,0,0.25);
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
      color: var(--text);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container {
      width: min(100% - 32px, var(--max));
      margin-inline: auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      background: rgba(15, 23, 42, 0.72);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 0;
      gap: 20px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      white-space: nowrap;
      color: var(--white);
    }

    .logo img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .brand-name span {
      color: var(--accent);
    }

    .navlinks {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      color: var(--muted);
      font-weight: 500;
    }

    .navlinks a:hover { color: var(--white); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 22px;
      border-radius: 999px;
      font-weight: 700;
      border: 1px solid transparent;
      transition: 0.2s ease;
      cursor: pointer;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #111827;
      box-shadow: var(--shadow);
    }

    .btn-primary:hover { transform: translateY(-1px); }

    .btn-secondary {
      border-color: var(--line);
      background: rgba(255,255,255,0.03);
      color: var(--white);
    }

    .hero {
      padding: 90px 0 50px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 32px;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(249,115,22,0.12);
      color: #fdba74;
      font-weight: 600;
      margin-bottom: 18px;
    }

    h1 {
      font-size: clamp(2.5rem, 6vw, 5.2rem);
      line-height: 0.98;
      margin: 0 0 18px;
      letter-spacing: -0.05em;
    }

    .lead {
      max-width: 620px;
      color: var(--muted);
      font-size: 1.1rem;
      margin-bottom: 28px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--shadow);
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 20px;
    }

    .stat {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 18px;
    }

    .stat strong {
      display: block;
      font-size: 1.5rem;
      margin-bottom: 6px;
      color: var(--white);
    }

    section {
      padding: 70px 0;
    }

    .section-title {
      margin-bottom: 28px;
    }

    .section-title h2 {
      font-size: clamp(1.8rem, 4vw, 3rem);
      margin: 0 0 10px;
      letter-spacing: -0.04em;
    }

    .section-title p {
      color: var(--muted);
      max-width: 720px;
      margin: 0;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      align-items: stretch;
    }

    .card {
      display: flex;
      flex-direction: column;
      height: 100%;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
    }

    .card h3 { margin: 0 0 10px; }
    .card p { color: var(--muted); margin: 0; flex: 1; }

    .about-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 24px;
      align-items: stretch;
    }

    .about-grid .card {
      justify-content: flex-start;
    }

    .about-grid .card .list {
      margin-top: 12px;
    }

    .list {
      list-style: none;
      padding: 0;
      margin: 18px 0 0;
    }

    .list li {
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
    }

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .project {
      min-height: 220px;
      border-radius: var(--radius);
      padding: 22px;
      border: 1px solid var(--line);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
        linear-gradient(135deg, rgba(249,115,22,0.18), rgba(59,130,246,0.08));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .project img {
      width: 100%;
      border-radius: 18px;
      margin-bottom: 14px;
      object-fit: cover;
      max-height: 140px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    }

    .project:hover {
      border-color: rgba(249,115,22,0.6);
      box-shadow: 0 24px 40px rgba(249,115,22,0.18);
      transform: translateY(-2px);
    }

    .project:hover img {
      transform: scale(1.03);
      filter: brightness(1.05);
    }

    .project span {
      color: #fdba74;
      font-weight: 700;
      font-size: 0.9rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    form {
      display: grid;
      gap: 14px;
    }

    input, textarea {
      width: 100%;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font: inherit;
      outline: none;
    }

    textarea { min-height: 160px; resize: vertical; }

    .logo{
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    footer {
      padding: 28px 0 40px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      text-align: center;
    }

    @media (max-width: 900px) {
      .hero-grid,
      .about-grid,
      .contact-grid,
      .grid-3,
      .portfolio-grid {
        grid-template-columns: 1fr;
      }

      .nav {
        flex-direction: column;
        align-items: flex-start;
      }
    }