:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #ff6b6b;
    --accent-secondary: #4ecdc4;
    --accent-tertiary: #45b7d1;
    --gradient-1: linear-gradient(135deg, #ff6b6b, #ffa500);
    --gradient-2: linear-gradient(135deg, #4ecdc4, #45b7d1);
    --gradient-3: linear-gradient(135deg, #a8edea, #fed6e3);
    --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    }
    
    html {
    scroll-behavior: smooth;
    }
    
    body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    }
    
    /* Animated background */
    body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
     radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
     radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
     radial-gradient(circle at 40% 80%, rgba(69, 183, 209, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
    }
    
    @keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-20px) translateY(-10px); }
    66% { transform: translateX(20px) translateY(10px); }
    }
    
    /* Header */
    header {
        position: fixed;
        top: 0;
        width: 100vw; /* Full viewport width */
        left: 0; /* Anchor to left edge */
        padding: 1rem 2rem;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        transition: all 0.3s ease;
      }
      
      .header-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between; /* Back to space-between for desktop */
        align-items: center;
      }
      
      /* Desktop logo and nav positioning */
      .logo {
        flex: 0 0 auto; /* Don't grow or shrink */
      }
      
      .nav-links {
        display: flex;
        gap: 2rem;
        flex: 1; /* Take up remaining space */
        justify-content: flex-end; /* Push nav items to the right */
      }
      
      nav a {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.5rem 0;
      }
      
      nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-1);
        transition: width 0.3s ease;
      }
      
      nav a:hover {
        color: var(--text-primary);
      }
      
      nav a:hover::after {
        width: 100%;
      }
      
      .logo img {
        height: 40px;
      }
      
      /* Hamburger styles */
      .hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
      }
      
      .hamburger span {
        height: 3px;
        background: var(--text-primary);
        border-radius: 5px;
        transition: all 0.3s ease;
      }
      
      /* Responsive */
      @media (max-width: 768px) {
        header {
          padding: 1rem 1.5rem;
        }
        
        .header-container {
          justify-content: flex-start; /* Change to flex-start on mobile */
          gap: 1rem; /* Add gap between logo and hamburger on mobile */
        }
        
        .nav-links {
          position: fixed;
          top: calc(40px + 2rem + 2rem);
          left: 0;
          width: 100vw;
          height: calc(100vh - 80px);
          background: rgba(10, 10, 10, 0.98);
          backdrop-filter: blur(30px);
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 0.8rem;
          padding: 1rem 0;
          display: none;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
          overflow-y: auto;
        }
      
        .nav-links.active {
          display: flex;
        }
      
        .hamburger {
          display: flex;
        }
        
        /* Hamburger animation when active */
        .hamburger.active span:nth-child(1) {
          transform: rotate(45deg) translate(5px, 5px);
        }
        
        .hamburger.active span:nth-child(2) {
          opacity: 0;
        }
        
        .hamburger.active span:nth-child(3) {
          transform: rotate(-45deg) translate(7px, -6px);
        }
        
        /* Better mobile navigation links */
        nav a {
          color: var(--text-primary);
          font-size: 1rem; /* Reduced from 1.1rem */
          padding: 0.6rem 1rem; /* Reduced padding */
          width: 100%;
          text-align: center;
          display: block;
          min-height: auto; /* Remove fixed height */
        }
      }
    /* Main content */
    main {
    margin-top: 80px;
    }
    
    .section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    }
    
    .section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }
    
    /* About section */
    .about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    }
    
    .profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    }
    
    .profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--gradient-1);
    padding: 4px;
    animation: profileGlow 3s ease-in-out infinite alternate;
    }
    
    @keyframes profileGlow {
    0% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8), 0 0 60px rgba(78, 205, 196, 0.3); }
    }
    
    .about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    }
    
    .typed-container {
    display: inline-block;
    position: relative;
    }
    
    #typed-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    }
    
    #typed-text::after {
    content: '|';
    color: var(--accent-primary);
    animation: blink 1s infinite;
    margin-left: 2px;
    }
    
    @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
    }
    
    .btn {
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    }
    
    .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    }
    
    .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
    
    .btn:hover::before {
    left: 100%;
    }
    
    /* Work Experience Section */
    .work-experience {
        padding: 6rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    }
    
    .section-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--bg-glass);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(15px);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.1);
    }
    
    .section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    }
    
    .section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 400;
    }
    
    .title-decoration {
    width: 100px;
    height: 4px;
    background: var(--gradient-2);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
    display: none;
    }
    
    .timeline-container {
        position: relative; /* Keep this relative */
        z-index: 2;
        padding-top: 2rem; /* Add some padding at the top to make space for the first marker */
        padding-bottom: 2rem; /* Add some padding at the bottom */
    }
    
    .timeline-line {
        position: absolute;
        left: 50%;
        top: 0; /* Changed to 0 so it starts from the top of its parent */
        bottom: 0; /* Changed to 0 so it extends to the bottom of its parent */
        width: 3px;
        background: var(--gradient-2);
        transform: translateX(-50%);
        border-radius: 2px;
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    }
    
    .experience-item {
        position: relative; /* Essential for marker positioning */
        margin-bottom: 4rem; /* Spacing between items */
        opacity: 0; /* For data-aos animation */
        transform: translateY(50px); /* For data-aos animation */
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 100px; /* Ensure there's enough height for the marker */
        display: flex; /* Use flexbox to help align content */
        align-items: center; /* Vertically align content if needed */
    }
    .experience-item.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    .experience-item:nth-child(even) .experience-card {
        margin-left: calc(50% + 3rem);
    }
    
    .experience-item:nth-child(odd) .experience-card {
        margin-right: calc(50% + 3rem);
    }
    
    .timeline-marker {
        position: absolute;
        left: 50%; /* Stays at the center of the timeline line */
        top: 0; /* Position at the top of the experience-item */
        transform: translate(-50%, -50%); /* Adjust to center the marker itself */
        z-index: 10;
    }
    .experience-item:first-of-type .experience-card {
        margin-top: 0; /* Or adjust as needed if there's overlap */
    }
    
    /* Adjust for mobile responsiveness */
    @media (max-width: 768px) {
        .timeline-line {
            left: 2rem;
        }
    
        .experience-item:nth-child(even) .experience-card,
        .experience-item:nth-child(odd) .experience-card {
            margin-left: 4rem; /* Adjust margin for mobile */
            margin-right: 0;
        }
    
        .timeline-marker {
            left: 2rem; /* Aligns with the mobile timeline line */
            transform: translate(-50%, -50%); /* Still centers marker on the line */
        }
    }
    
   
    
    .marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    display: none;
    }
    
    .experience-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-card);
    }
    
    .experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    }
    
    .experience-card:hover::before {
    transform: translateX(0);
    }
    
    .experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    }
    
    .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    }
    
    .experience-card:hover .card-glow {
    opacity: 1;
    }
    
    .experience-header {
    margin-bottom: 2rem;
    position: relative;
    }
    
    .job-badge {
    display: inline-block;
    background: var(--gradient-1);
    color: var(--bg-primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    }
    
    .job-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    }
    
    .company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    }
    
    .company-name {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.1rem;
    }
    
    .duration {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    }
    
    .job-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    }
    
    .achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    }
    
    .achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    }
    
    .achievement-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    }
    
    .achievement-icon {
    font-size: 1.5rem;
    min-width: 40px;
    }
    
    .achievement-text {
    display: flex;
    flex-direction: column;
    }
    
    .achievement-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    }
    
    .achievement-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    }
    
    .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    }
    
    .tech-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    }
    
    .tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    }
    
    .tech-tag:hover::before {
    opacity: 1;
    }
    
    .tech-tag:hover {
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    }
    
    /* Projects section */
    .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    }
    
    .swipe-instruction {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .card-stack {
    position: relative;
    height: 500px;
    width: 350px;
    perspective: 1000px;
    }
    
    .project-card {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #ea9274, #a3d7e7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    }
    
    .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    }
    
    .project-card:hover::before {
    opacity: 0.1;
    }
    
    .project-card:active {
    cursor: grabbing;
    }
    
    .project-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: #2c2c2c; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }
    
    .project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    }
    
    .decision-label {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    opacity: 0;
    transform: rotate(-15deg);
    transition: all 0.2s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    }
    
    .project-card.like .decision-label {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    
    .project-card.dislike .decision-label {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
    
    .project-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    }
    
    .project-info.show {
    opacity: 1;
    transform: translateY(0);
    }
    
    .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    }
    
    .action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    }
    
    .reject-btn {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 2px solid rgba(255, 71, 87, 0.5);
    }
    
    .reject-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
    
    .like-btn {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.5);
    }
    
    .like-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    
    /* Certificates section */
    .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    }
    
    .cert-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    }
    
    .cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0.1;
    transition: left 0.5s ease;
    }
    
    .cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    }
    
    .cert-card:hover::before {
    left: 0;
    }
    
    /* Publications section */
    .pub-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    }
    
    .pub-item {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    }
    
    .pub-item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-secondary);
    }
    
    .pub-list-1 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    }
    
    .pub-item-1 {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    }
    
    .pub-item-1:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-secondary);
    }
    
    /* Contact section */
    .contact-info {
    text-align: center;
    font-size: 1.2rem;
    }
    
    .contact-info a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    }
    
    .contact-info a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px currentColor;
    }
    
    /* Animation keyframes */
    @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    }
    
    @keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
    }
    
    @keyframes glow {
    0% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.5); }
    100% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.8); }
    }
    
    /* Scroll animations */
    .fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    }
    
    .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    }
    
    /* Loading animation */
    .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    }
    
    .loading.hide {
    opacity: 0;
    pointer-events: none;
    }
    
    .loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 107, 0.3);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
    width: 8px;
    }
    
    ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
    .header-container {
     flex-direction: column;
     gap: 1rem;
    }
    
    nav {
     gap: 1rem;
    }
    
    .section {
     padding: 2rem 1rem;
    }
    
    .section h2 {
     font-size: 2rem;
    }
    
    .about-content {
     grid-template-columns: 1fr;
     gap: 2rem;
     text-align: center;
    }
    
    .card-stack {
     width: 300px;
     height: 400px;
    }
    
    .project-card {
     padding: 1.5rem;
    }
    
    .cert-grid {
     grid-template-columns: 1fr;
    }
    
    /* Work Experience Mobile */
    .work-experience {
     padding: 4rem 1rem;
    }
    
    .timeline-line {
     left: 2rem;
    }
    
    .experience-item:nth-child(even) .experience-card,
    .experience-item:nth-child(odd) .experience-card {
     margin-left: 4rem;
     margin-right: 0;
    }
    
    .timeline-marker {
     left: 2rem;
    }
    
    .experience-card {
     padding: 2rem;
    }
    
    .achievements-grid {
     grid-template-columns: 1fr;
     gap: 1rem;
    }
    
    .company-info {
     flex-direction: column;
     align-items: flex-start;
    }
    
    .section-title {
     font-size: 2.5rem;
    }
    }
    
    @media (max-width: 480px) {
    .experience-card {
     padding: 1.5rem;
    }
    
    .job-title {
     font-size: 1.5rem;
    }
    
    .tech-stack {
     gap: 0.5rem;
    }
    
    .tech-tag {
     padding: 0.5rem 1rem;
     font-size: 0.8rem;
    }
    }
    .contact-section {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 60px 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 600px;
        width: 100%;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin: 0 auto;
    }
    
    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
        animation: shimmer 3s ease-in-out infinite;
    }
    
    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .contact-section h2 {
        color: #ffffff;
        font-size: 3rem;
        margin-bottom: 20px;
        font-weight: 700;
        text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
        position: relative;
        z-index: 2;
    }
    
    .contact-section h2::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(135deg, #ff6b6b, #ffa500);
        margin: 20px auto;
        border-radius: 2px;
        animation: pulse 2s ease-in-out infinite;
        display: none;
    }
    
    @keyframes pulse {
        0%, 100% { transform: scaleX(1); opacity: 1; }
        50% { transform: scaleX(1.2); opacity: 0.8; }
    }
    
    .contact-grid {
        display: grid;
        gap: 20px;
        margin-top: 40px;
        position: relative;
        z-index: 2;
    }
    
    .contact-item {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        padding: 25px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .contact-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #ff6b6b, #ffa500);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .contact-item:nth-child(2)::before {
        background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    }
    
    .contact-item:nth-child(3)::before {
        background: linear-gradient(135deg, #a8edea, #fed6e3);
    }
    
    .contact-item:hover::before {
        opacity: 0.15;
    }
    
    .contact-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
        border-color: #ff6b6b;
    }
    
    .contact-item:nth-child(2):hover {
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
        border-color: #4ecdc4;
    }
    
    .contact-item:nth-child(3):hover {
        box-shadow: 0 0 30px rgba(69, 183, 209, 0.3);
        border-color: #45b7d1;
    }
    
    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        display: block;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        animation: float 3s ease-in-out infinite;
    }
    
    .contact-item:nth-child(1) .contact-icon { animation-delay: 0s; }
    .contact-item:nth-child(2) .contact-icon { animation-delay: 0.5s; }
    .contact-item:nth-child(3) .contact-icon { animation-delay: 1s; }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .contact-item a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        display: block;
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
    }
    
    .contact-item a:hover {
        color: #ff6b6b;
        text-shadow: 0 0 20px currentColor;
        transform: scale(1.05);
    }
    
    .contact-item:nth-child(2) a:hover {
        color: #4ecdc4;
    }
    
    .contact-item:nth-child(3) a:hover {
        color: #45b7d1;
    }
    
    .contact-label {
        display: block;
        font-size: 0.9rem;
        opacity: 0.8;
        margin-top: 8px;
        color: #b0b0b0;
    }
    
    .particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }
    
    .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: #ff6b6b;
        border-radius: 50%;
        animation: particleFloat 6s linear infinite;
        box-shadow: 0 0 10px currentColor;
    }
    
    .particle:nth-child(even) {
        background: #4ecdc4;
    }
    
    .particle:nth-child(3n) {
        background: #45b7d1;
    }
    
    @keyframes particleFloat {
        0% {
            opacity: 0;
            transform: translateY(100vh) translateX(0);
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translateY(-100vh) translateX(100px);
        }
    }
    
    @media (max-width: 768px) {
        .contact-section {
            padding: 40px 25px;
            margin: 20px;
        }
        
        .contact-section h2 {
            font-size: 2.5rem;
        }
        
        .contact-item {
            padding: 20px;
        }
        
        .contact-icon {
            font-size: 2rem;
        }
        
        .contact-item a {
            font-size: 1.1rem;
        }
    }
    .education-section {
                max-width: 1200px;
                margin: 0 auto;
                padding: 4rem 0;
                position: relative;
            }
    
            .section-header {
                text-align: center;
                margin-bottom: 4rem;
                position: relative;
            }
    
            .section-title {
                font-size: clamp(2.5rem, 5vw, 4rem);
                font-weight: 800;
                background: var(--gradient-1);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                margin-bottom: 1rem;
                position: relative;
                display: inline-block;
            }
    
            .section-title::after {
                content: '';
                position: absolute;
                bottom: -10px;
                left: 50%;
                transform: translateX(-50%);
                width: 100px;
                height: 4px;
                background: var(--gradient-2);
                border-radius: 2px;
                animation: glow 2s ease-in-out infinite alternate;
                display: none;
            }
    
            .section-subtitle {
                font-size: 1.2rem;
                color: var(--text-secondary);
                max-width: 600px;
                margin: 0 auto;
                opacity: 0;
                transform: translateY(20px);
                animation: fadeInUp 1s ease 0.5s forwards;
            }
    
            .education-timeline {
                position: relative;
                margin: 3rem 0;
            }
    
            .timeline-line {
                position: absolute;
                left: 50%;
                top: 0;
                bottom: 0;
                width: 2px;
                background: var(--gradient-2);
                transform: translateX(-50%);
                z-index: 1;
            }
    
            .education-item {
                position: relative;
                margin: 3rem 0;
                opacity: 0;
                transform: translateY(50px);
                animation: slideInUp 0.8s ease forwards;
            }
    
            .education-item:nth-child(1) { animation-delay: 0.2s; }
            .education-item:nth-child(2) { animation-delay: 0.4s; }
            .education-item:nth-child(3) { animation-delay: 0.6s; }
    
            .education-card {
                background: var(--bg-glass);
                backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 20px;
                padding: 2.5rem;
                position: relative;
                width: calc(50% - 2rem);
                box-shadow: var(--shadow-card);
                transition: all 0.4s ease;
                overflow: hidden;
            }
    
            .education-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 1px;
                background: var(--gradient-1);
                transform: scaleX(0);
                transition: transform 0.4s ease;
            }
    
            .education-card:hover::before {
                transform: scaleX(1);
            }
    
            .education-card:hover {
                transform: translateY(-10px);
                box-shadow: var(--shadow-glow), var(--shadow-card);
                border-color: rgba(255, 107, 107, 0.3);
            }
    
            .education-item:nth-child(odd) .education-card {
                margin-left: 0;
            }
    
            .education-item:nth-child(even) .education-card {
                margin-left: calc(50% + 2rem);
            }
    
            
    
            .degree-icon {
                width: 60px;
                height: 60px;
                background: var(--gradient-2);
                border-radius: 15px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 1.5rem;
                font-size: 1.8rem;
                box-shadow: var(--shadow-glow);
            }
    
            .degree-title {
                font-size: 1.5rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 0.5rem;
            }
    
            .institution {
                font-size: 1.1rem;
                color: var(--accent-secondary);
                font-weight: 600;
                margin-bottom: 0.5rem;
            }
    
            .duration {
                font-size: 0.95rem;
                color: var(--text-secondary);
                margin-bottom: 1rem;
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
    
            .description {
                color: var(--text-secondary);
                line-height: 1.6;
                font-size: 0.95rem;
            }
    
            .achievement-badge {
                display: inline-block;
                background: var(--gradient-3);
                color: var(--bg-primary);
                padding: 0.3rem 0.8rem;
                border-radius: 20px;
                font-size: 0.8rem;
                font-weight: 600;
                margin: 0.5rem 0.5rem 0 0;
            }
    
            @keyframes fadeInUp {
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
    
            @keyframes slideInUp {
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
    
            @keyframes glow {
                from { box-shadow: 0 0 10px var(--accent-secondary); }
                to { box-shadow: 0 0 20px var(--accent-secondary), 0 0 30px var(--accent-secondary); }
            }
    
            @keyframes pulse {
                0%, 100% { transform: translateX(-50%) scale(1); }
                50% { transform: translateX(-50%) scale(1.2); }
            }
    
            @media (max-width: 768px) {
                .timeline-line {
                    left: 2rem;
                }
    
                .education-card {
                    width: calc(100% - 4rem);
                    margin-left: 4rem !important;
                }
    
                .timeline-dot {
                    left: 2rem;
                }
    
                .section-title {
                    font-size: 2.5rem;
                }
            }
    
            @media (max-width: 480px) {
                body {
                    padding: 1rem;
                }
    
                .education-section {
                    padding: 2rem 0;
                }
    
                .education-card {
                    padding: 1.5rem;
                    width: calc(100% - 3rem);
                    margin-left: 3rem !important;
                }
    
                .timeline-line {
                    left: 1.5rem;
                }
    
                .timeline-dot {
                    left: 1.5rem;
                    width: 15px;
                    height: 15px;
                }
            }
            .contact-icon img {
      width: 50px;  /* Adjust to your preferred width */
      height: auto; /* Maintains aspect ratio */
    }
    .logo img{
      width: 120px;
      height: auto;
    }
    .logo p {
                color: #ff8c42;
                font-size: 2rem;
                font-weight: bold;
                margin: 0;
            }
    
    .skills-container-wrapper { /* New wrapper for centering */
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh; /* Ensures it takes full viewport height for centering */
                padding: 20px;
                position: relative;
                overflow: hidden; /* For the pseudo-elements */
            }
    
            .skills-container-wrapper::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, #4ecdc4, #45b7d1); /* Retaining background gradient */
                opacity: 0.1;
                z-index: -1;
            }
    
            .skills-container {
                max-width: 800px; /* Adjusted max-width for single component */
                width: 100%;
                background: rgba(255, 255, 255, 0.05); /* var(--bg-glass) */
                backdrop-filter: blur(20px);
                border-radius: 24px;
                border: 1px solid rgba(255, 255, 255, 0.1);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* var(--shadow-card) */
                padding: 50px;
                color: #ffffff; /* var(--text-primary) */
                position: relative;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
    
            .skills-container::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 2px;
                background: linear-gradient(135deg, #ff6b6b, #ffa500); /* var(--gradient-1) */
                opacity: 0.8;
            }
    
            .skills-container::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
                pointer-events: none;
            }
    
            .header {
                text-align: center;
                margin-bottom: 50px;
                position: relative;
                z-index: 2;
            }
    
            .header h1 {
                font-size: 3.5rem;
                font-weight: 700;
                background: linear-gradient(135deg, #ff6b6b, #ffa500); /* var(--gradient-1) */
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                margin-bottom: 20px;
                animation: glow 3s ease-in-out infinite alternate;
                text-shadow: 0 0 30px rgba(255, 107, 107, 0.3); /* var(--shadow-glow) */
            }
    
            @keyframes glow {
                from { 
                    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
                }
                to { 
                    filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.8));
                }
            }
    
            .header p {
                color: #b0b0b0; /* var(--text-secondary) */
                font-size: 1.3rem;
                opacity: 0.9;
                font-weight: 300;
            }
    
            .chart-wrapper {
                display: flex;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
                width: 100%;
                position: relative;
                z-index: 2;
            }
    
            .radar-chart {
                position: relative;
                filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
                display: flex;
                justify-content: center;
                align-items: center;
            }
    
            .floating-tooltip {
                position: fixed;
                background: #1a1a1a; /* var(--bg-secondary) */
                color: #ffffff; /* var(--text-primary) */
                padding: 16px 24px;
                border-radius: 12px;
                font-size: 1rem;
                z-index: 1000;
                pointer-events: none;
                opacity: 0;
                transform: translateY(15px);
                transition: all 0.3s ease;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* var(--shadow-card) */
                border: 1px solid rgba(255, 255, 255, 0.1);
                backdrop-filter: blur(10px);
            }
    
            .floating-tooltip.visible {
                opacity: 1;
                transform: translateY(0);
            }
    
            .radar-point {
                transition: all 0.3s ease;
                cursor: pointer;
                filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
            }
    
            .radar-point:hover {
                transform: scale(1.5);
            }
    
            .radar-label {
                font-weight: 700;
                font-size: 12px;
                transition: all 0.3s ease;
                cursor: pointer;
                filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
            }
    
            .radar-label:hover {
                font-size: 14px;
                fill: #ff6b6b; /* var(--accent-primary) */
            }
    
            .skill-polygon {
                transition: all 1s ease;
                filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.4));
            }
    
            @media (max-width: 768px) {
                .skills-container {
                    padding: 30px;
                }
                
                .header h1 {
                    font-size: 2.5rem;
                }
                
                .radar-chart svg {
                    width: 320px;
                    height: 320px;
                }
            }
            .certificate-link {
      pointer-events: auto; /* Make sure it's clickable */
      position: relative;
      z-index: 10; /* Bring it above other elements */
      display: inline-block;
      color: #7db3e8;
      text-decoration: none;
      font-weight: 500;
      font-size: 14px;
      padding: 6px 12px;
      border-radius: 4px;
      transition: all 0.2s ease;
      border: 1px solid rgba(125, 179, 232, 0.3);
      background: transparent;
    }
    
    .certificate-link:hover {
      color: #ffffff;
      background-color: rgba(125, 179, 232, 0.1);
      border-color: rgba(125, 179, 232, 0.5);
      text-decoration: none;
    }
    
    /* Even more subtle - just text with underline on hover */
    .certificate-link-minimal {
      color: #7db3e8;
      text-decoration: none;
      font-weight: 400;
      font-size: 14px;
      padding: 4px 0;
      transition: all 0.2s ease;
      border-bottom: 1px solid transparent;
    }
    
    .certificate-link-minimal:hover {
      color: #ffffff;
      border-bottom-color: #7db3e8;
      text-decoration: none;
    }
    
    /* Arrow version */
    .certificate-link-arrow {
      color: #7db3e8;
      text-decoration: none;
      font-weight: 400;
      font-size: 14px;
      transition: color 0.2s ease;
    }
    
    .certificate-link-arrow::after {
      content: " →";
      margin-left: 4px;
      transition: transform 0.2s ease;
    }
    
    .certificate-link-arrow:hover {
      color: #ffffff;
      text-decoration: none;
    }
    
    .certificate-link-arrow:hover::after {
      transform: translateX(2px);
    }
    .chat-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .chat-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: 2px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }
    
    .chat-icon:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    }
    
    .chat-icon svg {
        width: 28px;
        height: 28px;
        color: white;
        transition: transform 0.3s ease;
    }
    
    .chat-icon.active svg {
        transform: rotate(45deg);
    }
    
    .notification-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 20px;
        height: 20px;
        background: #45b7d1;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        color: white;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.1); opacity: 0.8; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .chatbot-container {
        position: absolute;
        bottom: 80px;
        right: 0;
        background: #1a1a1a;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        width: 380px;
        height: 550px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .chatbot-container.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .chat-header {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        color: white;
        padding: 20px;
        text-align: center;
        position: relative;
    }
    
    .chat-header h3 {
        margin-bottom: 5px;
        font-size: 1.2em;
        font-weight: 600;
    }
    
    .chat-header p {
        opacity: 0.9;
        font-size: 0.85em;
    }
    
    .status-indicator {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 10px;
        height: 10px;
        background: #4CAF50;
        border-radius: 50%;
        animation: statusPulse 2s infinite;
    }
    
    @keyframes statusPulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }
    
    .close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
    }
    
    .close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: #0a0a0a;
    }
    
    .message {
        max-width: 85%;
        padding: 12px 16px;
        border-radius: 18px;
        line-height: 1.4;
        animation: fadeIn 0.3s ease-in;
        font-size: 0.9em;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .bot-message {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        color: white;
        align-self: flex-start;
        margin-right: auto;
        border-bottom-left-radius: 8px;
    }
    
    .user-message {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        align-self: flex-end;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom-right-radius: 8px;
    }
    
    .typing-indicator {
        display: none;
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
        border-radius: 18px;
        margin-right: auto;
    }
    
    .typing-dots {
        display: flex;
        gap: 4px;
    }
    
    .typing-dots span {
        width: 6px;
        height: 6px;
        background: #45b7d1;
        border-radius: 50%;
        animation: typing 1.4s infinite;
    }
    
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
    
    @keyframes typing {
        0%, 60%, 100% { transform: translateY(0); }
        30% { transform: translateY(-6px); }
    }
    
    .chat-input-container {
        padding: 20px;
        background: #1a1a1a;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }
    
    .chat-input-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .chat-input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 25px;
        outline: none;
        font-size: 14px;
        background: #0a0a0a;
        color: #ffffff;
        transition: all 0.3s ease;
    }
    
    .chat-input:focus {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    }
    
    .chat-input::placeholder {
        color: #b0b0b0;
    }
    
    .send-btn {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .send-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }
    
    .send-btn:active {
        transform: translateY(0);
    }
    
    .quick-questions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }
    
    .quick-btn {
        background: rgba(255, 255, 255, 0.05);
        color: #4ecdc4;
        border: 1px solid #4ecdc4;
        border-radius: 15px;
        padding: 6px 12px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .quick-btn:hover {
        background: #4ecdc4;
        color: #0a0a0a;
        transform: translateY(-1px);
    }
    
    .chat-messages::-webkit-scrollbar {
        width: 4px;
    }
    
    .chat-messages::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }
    
    .chat-messages::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        border-radius: 2px;
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .chatbot-container {
            position: fixed; /* Changed from absolute to fixed */
            bottom: 85px;
            right: 10px;
            left: 10px; /* Add left constraint */
            width: auto; /* Remove fixed width */
            max-width: none;
            height: 500px; /* Slightly reduce height */
        }
    }
    
    @media (max-width: 480px) {
        .chat-widget {
            bottom: 15px;
            right: 15px;
        }
        
        .chat-icon {
            width: 50px;
            height: 50px;
        }
        
        .chat-icon svg {
            width: 24px;
            height: 24px;
        }
        
        .chatbot-container {
            bottom: 70px;
            right: 10px;
            left: 10px;
            height: 450px;
            border-radius: 16px;
        }
        
        .chat-header {
            padding: 15px;
        }
        
        .chat-header h3 {
            font-size: 1rem;
        }
        
        .chat-header p {
            font-size: 0.8rem;
        }
        
        .chat-messages {
            padding: 15px;
            gap: 12px;
        }
        
        .message {
            padding: 10px 14px;
            font-size: 0.85rem;
        }
        
        .chat-input-container {
            padding: 15px;
        }
        
        .chat-input {
            padding: 10px 14px;
            font-size: 13px;
        }
        
        .send-btn {
            width: 35px;
            height: 35px;
        }
        
        .quick-btn {
            padding: 5px 10px;
            font-size: 10px;
        }
    }

    .contact-section {
    max-width: calc(100vw - 40px); /* Ensure it never exceeds viewport */
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
        margin: 15px auto;
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
    
    .contact-section h2 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        gap: 15px;
        width: 100%;
    }
    
    .contact-item {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 25px 15px;
        margin: 10px auto;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        border-radius: 16px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .contact-grid {
        gap: 12px;
        margin-top: 25px;
        width: 100%;
    }
    
    .contact-item {
        padding: 16px 12px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .contact-item a {
        font-size: 0.95rem;
        word-break: break-word; /* Prevent long emails from overflowing */
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .contact-section {
        padding: 20px 10px;
        margin: 5px auto;
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 14px 8px;
    }
    
    .contact-icon {
        font-size: 1.6rem;
    }
    
    .contact-item a {
        font-size: 0.9rem;
    }
}