
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-light: #f8fafc;
      --bg-dark: #1e293b;
      --text-light: #0f172a;
      --text-dark: #f1f5f9;
      --primary: #4f46e5;
      --primary-light: #6366f1;
      --border: #e2e8f0;
      --border-dark: #334155;
      --muted-light: #64748b;
      --muted-dark: #94a3b8;
      --card-light: #ffffff;
      --card-dark: #1e293b;

      --font-display: 'Space Grotesk', sans-serif;
      --font-body: 'Inter', sans-serif;
    }
    a {
      text-decoration: none;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      background-color: var(--bg-light);
      color: var(--text-light);
      line-height: 1.6;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    body.dark-mode {
      background-color: var(--bg-dark);
      color: var(--text-dark);
    }

    /* NAVBAR */
    nav {
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      transition: all 0.3s ease;
      padding: 1.5rem;
      background: transparent;
    }

    nav.scrolled {
      background: rgba(248, 250, 252, 0.8);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
      padding: 1rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    body.dark-mode nav.scrolled {
      background: rgba(30, 41, 59, 0.8);
      border-bottom-color: var(--border-dark);
    }

    .navbar-container {
      max-width: 80rem;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-size: 2rem;
      font-weight: bold;
      font-family: var(--font-display);
      cursor: pointer;
      letter-spacing: -0.025em;
    }

    .logo span {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      font-size: 1rem;
      font-weight: 500;
      color: var(--muted-light);
      cursor: pointer;
      transition: color 0.3s;
      text-decoration: none;
    }

    body.dark-mode .nav-links a {
      color: var(--muted-dark);
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    .nav-btn  {
      padding: 0.75rem 1.5rem;
      background: var(--primary);
      border: none;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
      font-size: 0.875rem;
    }

    .nav-btn a {
      background: var(--primary);
      color: white  ;
      border: none;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
      font-size: 0.875rem;
    }

    .nav-btn:hover {
      background: var(--primary-light);
      box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.5rem;
    }

    /* HERO SECTION */
    .hero {
      height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 1rem;
      position: relative;
      overflow: hidden;
    }

    .hero-background {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
      opacity: 0.3;
    }

    body.dark-mode .hero-background {
      opacity: 0.2;
    }

    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(120px);
      animation: float 8s ease-in-out infinite;
    }

    .blob1 {
      width: 50%;
      height: 50%;
      background: #a855f7;
      top: -10%;
      left: -10%;
    }

    .blob2 {
      width: 50%;
      height: 50%;
      background: var(--primary);
      bottom: -10%;
      right: -10%;
      animation-delay: -4s;
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(30px);
      }
    }

    .hero-inner {
      max-width: 80rem;
      width: 100%;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      animation: fadeInUp 0.8s ease-out;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .hero-text {
      max-width: 56rem;
      text-align: center;
      padding: 2rem 0;
    }

    .hero-image {
      margin-top: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-image .image-frame {
      width: 320px;
      max-width: 40vw;
      aspect-ratio: 1 / 1;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 25px 50px rgba(0,0,0,0.12);
      border: 6px solid rgba(255,255,255,0.9);
      background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
    }

    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    @media (min-width: 992px) {
      .hero-inner {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        align-items: center;
        justify-content: center;
      }

      .hero-text {
        flex: 0 1 50%;
        padding: 0;
        text-align: center;
      }

      .hero-image {
        flex: 0 1 40%;
        margin-top: 0;
        display: flex;
        justify-content: center;
      }

      .hero-text h1,
      .hero-text p {
        text-align: center;
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      background: rgba(79, 70, 229, 0.1);
      color: var(--primary);
      font-weight: 600;
      font-size: 0.875rem;
      border: 1px solid rgba(79, 70, 229, 0.2);
      margin-bottom: 1.5rem;
    }

    h1 {
      font-family: var(--font-display);
      font-size: 3rem;
      /* font-size: clamp(2.5rem, 8vw, 5rem); */
      font-weight: bold;
      line-height: 1.2;
      margin-bottom: 1.5rem;
      letter-spacing: -0.02em;
    }

    .gradient-text {
      background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero p {
      font-size: clamp(1.125rem, 2.5vw, 1.5rem);
      color: var(--muted-light);
      max-width: 32rem;
      margin: 2.5rem auto;
      line-height: 1.8;
    }

    body.dark-mode .hero p {
      color: var(--muted-dark);
    }

    .hero-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      margin-top: 2.5rem;
    }

    @media (min-width: 640px) {
      .hero-buttons {
        flex-direction: row;
      }
    }

    .btn {
      padding: 1rem 2rem;
      border: none;
      border-radius: 999px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
    }

    .btn-primary:hover {
      background: var(--primary-light);
      box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
      transform: translateY(-2px);
    }

    .btn-outline {
      background: transparent;
      color: var(--text-light);
      border: 2px solid var(--border);
    }

    body.dark-mode .btn-outline {
      color: var(--text-dark);
      border-color: var(--border-dark);
    }

    .btn-outline:hover {
      background: var(--bg-light);
      border-color: var(--primary);
    }

    body.dark-mode .btn-outline:hover {
      background: var(--bg-dark);
    }

    /* SECTIONS */
    section {
      padding: 5rem 1rem;
      max-width: 80rem;
      margin: 0 auto;
    }

    .section-background {
      background: rgba(241, 245, 249, 0.3);
    }

    body.dark-mode .section-background {
      background: rgba(30, 41, 59, 0.5);
    }

    .section-header {
      text-align: center;
      margin-bottom: 4rem;
      animation: fadeInUp 0.6s ease-out;
    }

    .section-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.875rem, 5vw, 3rem);
      font-weight: bold;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }

    .section-header p {
      color: var(--muted-light);
      font-size: 1.125rem;
      max-width: 32rem;
      margin: 0 auto;
    }

    body.dark-mode .section-header p {
      color: var(--muted-dark);
    }

    .underline {
      height: 0.375rem;
      width: 6rem;
      background: var(--primary);
      border-radius: 999px;
      margin: 1.5rem auto 0;
    }

    /* ABOUT SECTION */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      align-items: center;
    }

    @media (min-width: 768px) {
      .about-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .about-image {
      position: relative;
      z-index: 10;
      animation: slideInLeft 0.6s ease-out;
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-50px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .image-wrapper {
      aspect-ratio: 1;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    }

    .image-wrapper img {
      width: 100%;
      height: 100%;
      -o-object-fit: cover;
      object-fit: cover;
    }

    .about-content h3 {
      font-family: var(--font-display);
      font-size: 1.875rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }

    .about-content>p {
      color: var(--muted-light);
      margin-bottom: 1rem;
      line-height: 1.8;
    }

    body.dark-mode .about-content>p {
      color: var(--muted-dark);
    }

    .skills {
      margin-top: 2rem;
    }

    .skills h4 {
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--text-light);
    }

    body.dark-mode .skills h4 {
      color: var(--text-dark);
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .skill-tag {
      padding: 0.5rem 0.75rem;
      background: var(--card-light);
      border: 1px solid var(--border);
      border-radius: 0.375rem;
      font-size: 0.875rem;
      font-weight: 500;
    }

    body.dark-mode .skill-tag {
      background: var(--card-dark);
      border-color: var(--border-dark);
    }

    /* SERVICES SECTION */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .service-card {
      padding: 2rem;
      background: var(--card-light);
      border: 1px solid var(--border);
      border-radius: 1rem;
      transition: all 0.3s;
      animation: fadeInUp 0.6s ease-out;
    }

    body.dark-mode .service-card {
      background: var(--card-dark);
      border-color: var(--border-dark);
    }

    .service-card:hover {
      border-color: var(--primary);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
      transform: translateY(-5px);
    }

    body.dark-mode .service-card:hover {
      box-shadow: 0 25px 50px rgba(79, 70, 229, 0.1);
    }

    .service-icon {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 1rem;
      background: rgba(79, 70, 229, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      margin-bottom: 1rem;
      font-size: 1.75rem;
    }

    .service-card h3 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    .service-card p {
      color: var(--muted-light);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    body.dark-mode .service-card p {
      color: var(--muted-dark);
    }

    /* PROJECTS SECTION */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .project-card {
      background: var(--card-light);
      border: 1px solid var(--border);
      border-radius: 1rem;
      overflow: hidden;
      transition: all 0.3s;
      animation: fadeInUp 0.6s ease-out;
      display: flex;
      flex-direction: column;
    }

    body.dark-mode .project-card {
      background: var(--card-dark);
      border-color: var(--border-dark);
    }

    .project-card:hover {
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
      border-color: var(--primary);
    }

    body.dark-mode .project-card:hover {
      box-shadow: 0 25px 50px rgba(79, 70, 229, 0.1);
    }

    .project-image {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      position: relative;
      background: var(--border);
    }

    .project-image img {
      width: 100%;
      height: 100%;
      -o-object-fit: cover;
      object-fit: cover;
      transition: transform 0.5s;
    }

    .project-card:hover .project-image img {
      transform: scale(1.05);
    }

    .project-content {
      padding: 1.5rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .project-card h3 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    .project-card p {
      color: var(--muted-light);
      font-size: 0.95rem;
      margin-bottom: 1rem;
      line-height: 1.6;
      flex-grow: 1;
    }

    body.dark-mode .project-card p {
      color: var(--muted-dark);
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .project-tag {
      padding: 0.25rem 0.625rem;
      background: rgba(79, 70, 229, 0.1);
      color: var(--primary);
      border-radius: 0.375rem;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .project-buttons {
      display: flex;
      gap: 0.75rem;
      border-top: 1px solid var(--border);
      padding-top: 1rem;
      margin-top: 1rem;
    }

    body.dark-mode .project-buttons {
      border-top-color: var(--border-dark);
    }

    .project-buttons button {
      flex: 1;
      padding: 0.5rem;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 0.375rem;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
      transition: all 0.3s;
    }

    .project-buttons button:hover {
      background: var(--primary-light);
    }

    .projects-center {
      text-align: center;
    }

    /* CONTACT SECTION */
    .contact-wrapper {
      background: var(--card-light);
      border-radius: 1.5rem;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--border);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr;
    }

    body.dark-mode .contact-wrapper {
      background: var(--card-dark);
      border-color: var(--border-dark);
    }

    @media (min-width: 768px) {
      .contact-wrapper {
        grid-template-columns: 2fr 3fr;
      }
    }

    .contact-left {
      background: var(--primary);
      color: white;
      padding: 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
    }

    .contact-left h3 {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }

    .contact-left p {
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 2rem;
      line-height: 1.8;
    }

    .contact-links a {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      margin-bottom: 1rem;
      transition: color 0.3s;
    }

    .contact-links a:hover {
      color: white;
    }

    .contact-decoration {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      filter: blur(40px);
    }

    .contact-right {
      padding: 2.5rem;
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--text-light);
    }

    body.dark-mode .form-group label {
      color: var(--text-dark);
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.75rem;
      border: 2px solid var(--border);
      border-radius: 0.375rem;
      font-family: var(--font-body);
      background: rgba(241, 245, 249, 0.3);
      color: var(--text-light);
      transition: border-color 0.3s;
    }

    body.dark-mode .form-group input,
    body.dark-mode .form-group textarea {
      background: rgba(15, 23, 42, 0.3);
      color: var(--text-dark);
      border-color: var(--border-dark);
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }

    .form-group button {
      width: 100%;
      padding: 0.75rem;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 0.375rem;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .form-group button:hover {
      background: var(--primary-light);
    }

    .form-group button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* FOOTER */
    footer {
      background: var(--text-light);
      color: var(--muted-dark);
      padding: 3rem 1rem;
      text-align: center;
      border-top: 1px solid var(--border);
    }

    body.dark-mode footer {
      background: #0f172a;
      border-top-color: var(--border-dark);
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .footer-links a {
      text-decoration: none;
      color: var(--muted-dark);
      transition: color 0.3s;
      font-size: 1.5rem;
      width: 2.5rem;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.3s;
    }

    .footer-links a:hover {
      color: white;
      background: rgba(255, 255, 255, 0.1);
    }

    .footer-text {
      font-size: 0.875rem;
    }

    /* MOBILE */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      nav.scrolled {
        padding: 1rem;
      }

      .hero {
        padding: 4rem 1rem 0;
      }

      section {
        padding: 3rem 1rem;
      }

      .contact-left {
        padding: 1.5rem;
      }

      .contact-right {
        padding: 1.5rem;
      }
    }

    /* Mobile menu (opened state) */
    .nav-links.mobile-open {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--card-light);
      padding: 1rem 1.5rem 1.5rem;
      border-bottom-left-radius: 0.75rem;
      border-bottom-right-radius: 0.75rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      z-index: 60;
    }

    body.dark-mode .nav-links.mobile-open {
      background: var(--card-dark);
      border: 1px solid var(--border-dark);
    }

    .nav-links.mobile-open a {
      text-align: left;
      padding: 0.5rem 0;
      color: var(--text-light);
      font-size: 1rem;
    }

    body.dark-mode .nav-links.mobile-open a {
      color: var(--text-dark);
    }

    /* Responsive adjustments */
    @media (max-width: 991px) {
      .hero-text {
        text-align: center;
      }

      .hero-text h1 {
        font-size: clamp(2rem, 7vw, 3rem);
      }

      .hero-text p {
        margin: 1.25rem auto;
      }

      .hero-image .image-frame {
        width: 220px;
        max-width: 50vw;
      }
    }

    @media (max-width: 480px) {
      nav {
        padding: 1rem;
      }

      .hero {
        padding: 3.5rem 0 0;
      }

      .hero-text h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
      }

      .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
      }

      .hero-image .image-frame {
        width: 180px;
      }
    }

    .hidden {
      display: none;
    }