/* ----------  GLOBAL  ---------- */
    *{margin:0;padding:0;box-sizing:border-box;}
    body{
      font-family: "Segoe UI", sans-serif;
      color:#f1f1f1;
      background: radial-gradient(circle at top left,#1f1c2c,#2c3e50);
      overflow-x:hidden;
    }

    /* Hero layout */
    .hero{
      min-height:100vh;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:50px;
      padding:40px;
    }
    .hero-left img{
      width:220px;
      height:220px;
      border-radius:50%;
      object-fit:cover;
      border:4px solid #fff;
      box-shadow:0 0 30px rgba(255,255,255,.2);
    }
    .hero-right{
      max-width:500px;
    }
    .tagline{
      margin-top:20px;
      font-size:1.2rem;
      color:#ddd;
    }


    .typewriter {
      font-size: 3rem;
      font-weight: 700;
      background: linear-gradient(90deg, #4facfe, #00f2fe, #43e97b, #38f9d7);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-family: 'Courier New', monospace;
      overflow: hidden;
      white-space: nowrap;
      border-right: 3px solid #ffffff;
      width: 0;
      animation: typing 10s steps(19) infinite, blink 0.7s infinite;
    }

    @keyframes typing { 0% { width: 0; } 50% { width: 19ch; } 80% { width: 19ch; } 100% { width: 0; } }
    @keyframes blink { 50% { border-color: transparent; } }
    /* Alternative simplified version if you want continuous typing/deleting */
    .typewriter-continuous {
      font-size: 3rem;
      font-weight: 700;
      background: linear-gradient(90deg,#ff8a00,#e52e71,#9b00ff);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      font-family: 'Courier New', monospace;

      overflow: hidden;
      white-space: nowrap;
      border-right: 3px solid #ff8a00;
      width: 0;

      animation: 
        typing 3.5s steps(20, end) forwards,
        blink-caret 0.7s step-end infinite;
    }

    /* Sections */
    .section{
      padding:60px 20px;
      max-width:1000px;
      margin:auto;
      text-align: justify;
    }
    .section h2{
      text-align:center;
      margin-bottom:30px;
      font-size:2.5rem;
      color:#4facfe;
    }
    .footer{
      text-align:center;
      padding:20px;
      background:rgba(0,0,0,0.3);
      font-size:.9rem;
    }
    .p{
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      text-align: justify;
      text-justify: inter-word;

    }

    /* Navigation Bar */
    .navbar {
        background: radial-gradient(circle at top left, #1f1c2c, #2c3e50);
        padding: 1rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
        position: relative;
    }

    .nav-logo a {
        color: #fff;
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
        background: linear-gradient(90deg, #f5f5f5, #919191);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        
    }

    .nav-menu {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .nav-link {
        color: #f1f1f1;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-weight: 500;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #4facfe;
        transform: translateY(-2px);
    }

    /* Add padding to body to account for fixed navbar */
    body {
        padding-top: 80px;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .nav-menu {
            gap: 1rem;
        }
        
        .nav-container {
            padding: 0 1rem;
        }
        
        .nav-link {
            padding: 0.4rem 0.8rem;
            font-size: 0.9rem;
        }
    }

    /* Skills Section */
    .skills-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .skills-category {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.9rem;
        border-radius: 10px;
        backdrop-filter: blur(10px);
        border: 5px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    .skills-category:hover{
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .category-title {
        color: #00f2fe;
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        border-bottom: 2px solid #010c6e;
        padding-bottom: 0.5rem;
    }

    .skill-item {
        margin-bottom: 1.1rem;
    }

    .skill-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .skill-name {
        color: #f1f1f1;
        font-weight: 500;
    }

    .skill-percentage {
        color: #4facfe;
        font-weight: 600;
    }

    .skill-bar {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        overflow: hidden;
    }

    .skill-progress {
        height: 100%;
        background: linear-gradient(90deg, #4facfe, #00f2fe);
        border-radius: 10px;
        width: 0;
        animation: fillBar 2s ease-in-out forwards;
    }

    /* Animation for skill bars */
    @keyframes fillBar {
        from { width: 0; }
        to { width: var(--target-width); }
    }

    /* Contact Section */
    .contact-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .contact-card {
        background: rgba(255, 255, 255, 0.1);
        padding: 2rem;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .contact-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .contact-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #00f2fe;
    }
    

    .contact-info {
        color: #ddd;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .contact-link {
        display: inline-block;
        padding: 10px 25px;
        background: linear-gradient(90deg, #4facfe, #00f2fe);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .contact-link:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
        overflow: hidden;
    }

    .social-link:hover {
        transform: translateY(-5px) scale(1.1);
        background: linear-gradient(90deg, #667eea, #4facfe);
    }

    .social-img {
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  object-fit: contain; /* Ensures image maintains aspect ratio */
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(90deg, #667eea, #4aecfe);
  box-shadow: 0 10px 25px #4aecfe;
}

.social-link:hover .social-img {
  transform: scale(1.2); /* Slight zoom on hover */
  filter: brightness(0.5); /* Brighten image on hover */
}

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .skills-container, .contact-container {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .skills-category, .contact-card {
            padding: 1rem;
        }
        
        .social-links {
            gap: 1rem;
        }
        
        .social-link {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
    }
    /* Mobile Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 20px;
        min-height: auto;
        padding-top: 100px;
    }
    
    .hero-left img {
        width: 180px;
        height: 180px;
    }
    
    .typewriter {
        font-size: 2rem;
        animation: typing 8s steps(19) infinite, blink 0.7s infinite;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .hero-right {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        gap: 20px;
        padding: 15px;
        padding-top: 80px;
    }
    
    .hero-left img {
        width: 150px;
        height: 150px;
    }
    
    .typewriter {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-logo {
        margin-bottom: 0.5rem;
    }
    
    body {
        padding-top: 120px; /* Increase padding for taller navbar */
    }
}


/* For very small screens */
@media (max-width: 480px) {
    .nav-link {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .nav-logo a {
        font-size: 1.3rem;
    }
    
    body {
        padding-top: 100px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Responsive Navbar with Hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: radial-gradient(circle at top left, #1f1c2c, #2c3e50);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #4facfe;
    }
    
    
    /* Close menu when clicking on links */
    .nav-link {
        transition: all 0.3s ease;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}