:root {
      --bg: #f8fafc;
      --card: #ffffff;
      --muted: #64748b;
      --accent: #4f46e5;
      --accent-light: #6366f1;
      --accent-dark: #4338ca;
      --text: #0f172a;
      --text-light: #475569;
      --radius: 16px;
      --maxw: 1200px;
      --shadow-sm: 0 2px 8px rgba(15,23,42,0.04);
      --shadow-md: 0 8px 30px rgba(15,23,42,0.08);
      --shadow-lg: 0 20px 50px rgba(15,23,42,0.12);
      --gradient: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
      background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }

    .container {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      padding: 16px 0;
      transition: all 0.3s ease;
    }

    header.scrolled {
      padding: 12px 0;
      box-shadow: var(--shadow-sm);
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      display: flex;
      gap: 14px;
      align-items: center;
    }

    .avatar {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--gradient);
      color: white;
      font-weight: 700;
      font-size: 18px;
      box-shadow: var(--shadow-md);
      transition: transform 0.3s ease;
    }

    .avatar:hover {
      transform: scale(1.05);
    }

    .brand-text h1 {
      font-size: 18px;
      font-weight: 700;
      margin: 0;
    }

    .brand-text p {
      font-size: 13px;
      color: var(--muted);
      margin: 0;
    }

    nav {
      display: flex;
      gap: 24px;
    }

    nav a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 15px;
      position: relative;
      transition: color 0.3s ease;
    }

    nav a:hover {
      color: var(--accent);
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    nav a:hover::after {
      width: 100%;
    }

    .mobile-menu {
      display: none;
      background: none;
      border: none;
      font-size: 24px;
      color: var(--muted);
      cursor: pointer;
    }

    /* Hero Section */
    .hero {
      padding: 100px 0 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      background: var(--gradient);
      opacity: 0.03;
      border-radius: 0 0 0 100px;
      z-index: -1;
    }

    .hero-content {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      align-items: center;
    }

    @media (min-width: 992px) {
      .hero-content {
        grid-template-columns: 1fr 400px;
      }
    }

    .hero-text {
      max-width: 600px;
    }

    .subtitle {
      color: var(--accent);
      font-weight: 600;
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 12px;
    }

    .hero h1 {
      font-size: 48px;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 20px;
    }

    .hero h1 span {
      background: var(--gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p {
      font-size: 18px;
      color: var(--text-light);
      margin-bottom: 32px;
      max-width: 500px;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 15px;
    }

    .btn-primary {
      background: var(--gradient);
      color: white;
      box-shadow: var(--shadow-md);
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
    }

    .btn-secondary {
      border: 1px solid #e2e8f0;
      color: var(--text);
      background: white;
    }

    .btn-secondary:hover {
      border-color: var(--accent-light);
      color: var(--accent);
      transform: translateY(-3px);
      box-shadow: var(--shadow-sm);
    }

    .stats {
      display: flex;
      gap: 24px;
      margin-top: 40px;
    }

    .stat {
      text-align: center;
    }

    .stat-value {
      font-size: 28px;
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
    }

    .stat-label {
      font-size: 14px;
      color: var(--muted);
      margin-top: 6px;
    }

    .hero-card {
      background: white;
      border-radius: var(--radius);
      padding: 32px;
      box-shadow: var(--shadow-lg);
      position: relative;
      overflow: hidden;
    }

    .hero-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--gradient);
    }

    .hero-card h3 {
      font-size: 18px;
      margin-bottom: 20px;
      color: var(--text);
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-light);
      font-size: 15px;
    }

    .contact-item i {
      color: var(--accent);
      width: 20px;
    }

    .contact-item a {
      color: var(--text-light);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .contact-item a:hover {
      color: var(--accent);
    }

        /* Education Section */
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .section-title:after {
            content: '';
            display: block;
            width: 70px;
            height: 4px;
            background: #6a11cb;
            margin: 10px auto;
            border-radius: 2px;
        }
        .education-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        .education-item {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
        }
        
        .education-item:hover {
            transform: translateY(-5px);
        }
        
        .education-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
        }
        
        .education-title {
            font-size: 1.3rem;
            color: #6a11cb;
        }
        
        .education-date {
            background: #6a11cb;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .education-institution {
            font-weight: bold;
            margin-bottom: 10px;
            color: #555;
        }

    /* Sections */
    section {
      padding: 80px 0;
    }

    .section-header {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 60px;
    }

    .section-header h2 {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 16px;
      position: relative;
      display: inline-block;
    }

    .section-header h2::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 4px;
      background: var(--gradient);
      border-radius: 2px;
    }

    .section-header p {
      font-size: 18px;
      color: var(--text-light);
    }

    /* Skills Section */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 24px;
    }

    .skill-category {
      background: white;
      border-radius: var(--radius);
      padding: 32px;
      box-shadow: var(--shadow-md);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .skill-category:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    .skill-category h3 {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      margin-bottom: 20px;
      color: var(--text);
    }

    .skill-category h3 i {
      color: var(--accent);
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .chip {
      padding: 8px 16px;
      border-radius: 50px;
      background: #f1f5f9;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .chip:hover {
      background: var(--gradient);
      color: white;
      transform: translateY(-2px);
    }

    /* Projects Section */
    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
    }

    .project-card {
      background: white;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }

    .project-img {
      height: 200px;
      background: var(--gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 48px;
      position: relative;
      overflow: hidden;
    }

    .project-img::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.1);
    }

    .project-content {
      padding: 24px;
    }

    .project-title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
      color: var(--text);
    }

    .project-desc {
      color: var(--text-light);
      font-size: 15px;
      margin-bottom: 20px;
    }

    .project-links {
      display: flex;
      gap: 16px;
    }

    .project-link {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--accent);
      font-weight: 500;
      font-size: 14px;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .project-link:hover {
      gap: 8px;
      color: var(--accent-dark);
    }

    /* Problem Solving Section */
    .problem-solving {
      background: white;
      border-radius: var(--radius);
      padding: 40px;
      box-shadow: var(--shadow-md);
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin-bottom: 30px;
    }

    .badge-container {
      flex: 1;
      min-width: 300px;
      max-width: 400px;
    }

    .badge-container img {
      width: 100%;
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
    }

    .platform-cards {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .platform-card {
      flex: 1;
      min-width: 200px;
      max-width: 280px;
      background: #f8fafc;
      border-radius: var(--radius);
      padding: 24px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .platform-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
    }

    .platform-card h3 {
      font-size: 18px;
      margin-bottom: 12px;
      color: var(--text);
    }

    .platform-stats {
      font-size: 24px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .platform-link {
      display: inline-block;
      margin-top: 12px;
      color: var(--accent);
      font-weight: 500;
      text-decoration: none;
      font-size: 14px;
    }

    .platform-link:hover {
      text-decoration: underline;
    }

    /* Contact Section */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 768px) {
      .contact-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .contact-info-card, .contact-form {
      background: white;
      border-radius: var(--radius);
      padding: 40px;
      box-shadow: var(--shadow-md);
    }

    .contact-info-card h3, .contact-form h3 {
      font-size: 24px;
      margin-bottom: 24px;
      color: var(--text);
    }

    .social-badges {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 24px;
    }

    .social-badge {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 50px;
      background: #f1f5f9;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .social-badge:hover {
      background: var(--gradient);
      color: white;
      transform: translateY(-2px);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: var(--text);
    }

    .form-control {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      font-size: 15px;
      transition: all 0.3s ease;
      background: white;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--accent-light);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    textarea.form-control {
      min-height: 120px;
      resize: vertical;
    }

    .form-buttons {
      display: flex;
      gap: 12px;
    }

    /* Footer */
    footer {
      background: var(--text);
      color: white;
      padding: 60px 0 30px;
      text-align: center;
    }

    .footer-content {
      max-width: 600px;
      margin: 0 auto;
    }

    .footer-logo {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .footer-text {
      color: #94a3b8;
      margin-bottom: 30px;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 24px;
      margin-bottom: 40px;
    }

    .footer-links a {
      color: #94a3b8;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: white;
    }

    .copyright {
      color: #64748b;
      font-size: 14px;
      padding-top: 30px;
      border-top: 1px solid #334155;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 36px;
      }
      
      .hero p {
        font-size: 16px;
      }
      
      .stats {
        justify-content: space-between;
      }
      
      .section-header h2 {
        font-size: 28px;
      }
      
      .mobile-menu {
        display: block;
      }
      
      nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
      }
      
      nav.active {
        display: flex;
      }
      
      .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .fade-in {
      animation: fadeIn 0.6s ease forwards;
    }

    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }
    .delay-4 { animation-delay: 0.4s; }
