/* ===== CSS Variables ===== */
:root {
    --primary-color: #01b9ff;
    --primary-dark: #0088cc;
    --primary-darker: #006699;
    --background-dark: #0a192f;
    --background-medium: #172a45;
    --background-light: #1a3a6a;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --error-color: #f44336;
    --error-dark: #d32f2f;
    --github-color: #24292e;
    --github-dark: #2d333a;
    --youtube-color: #ff0000;
    --youtube-dark: #cc0000;
  }
  
  /* ===== Base Styles ===== */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    background: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* ===== Background Elements ===== */
  .bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, 
                var(--background-medium) 50%, 
                var(--background-light) 100%);
    z-index: -3;
  }
  
  .circuit-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(to right, rgba(0, 185, 255, 0.1) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0, 185, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.3;
  }
  
  .floating-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
  }
  
  .tech-icon {
    position: absolute;
    color: rgba(0, 185, 255, 0.3);
    font-size: 24px;
    animation: floatTech 15s infinite linear;
  }
  
  /* Particles.js container */
  #particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
  }
  
  /* ===== Animations ===== */
  @keyframes floatTech {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
      transform: translateY(-100vh) rotate(360deg);
      opacity: 0;
    }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { 
      transform: translateY(50px); 
      opacity: 0; 
    }
    to { 
      transform: translateY(0); 
      opacity: 1; 
    }
  }
  
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(1, 185, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(1, 185, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(1, 185, 255, 0); }
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* ===== Toolbar/Navigation ===== */
  .toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }
  
  .toolbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .toolbar-links {
    display: flex;
  }
  
  .toolbar-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
  }
  
  .toolbar-links a:hover {
    color: var(--primary-color);
  }
  
  .toolbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
  }
  
  .toolbar-links a:hover::after {
    width: 100%;
  }
  
  /* ===== Hero Section ===== */
  #hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 185, 255, 0.5);
  }
  
  .hero-content .highlight {
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .title {
    display: inline-block;
    margin: 10px;
    padding: 8px 15px;
    background: rgba(1, 185, 255, 0.2);
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid var(--primary-color);
    animation: pulse 2s infinite;
  }
  
  .resume-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(1, 185, 255, 0.4);
  }
  
  .resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 185, 255, 0.6);
    background: var(--primary-dark);
  }
  
  /* ===== Common Section Styles ===== */
  .section {
    padding: 100px 20px;
    position: relative;
  }
  
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    padding: 30px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(1, 185, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  /* ===== About Section ===== */
  #about {
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
  }
  
  /* ===== Projects Section ===== */
  #projects {
    background: rgba(10, 25, 47, 0.7);
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(1, 185, 255, 0.3);
    position: relative;
    z-index: 1;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(1, 185, 255, 0.3);
  }
  
  .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-card h3 {
    padding: 15px 20px 0;
    font-size: 1.5rem;
    color: var(--primary-color);
  }
  
  .project-card p {
    padding: 0 20px 15px;
    color: var(--text-muted);
  }
  
  .project-buttons {
    display: flex;
    gap: 15px;
    margin: 20px;
    flex-wrap: wrap;
  }
  
  /* ===== Button Styles ===== */
  .btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 20px;
    margin: 0 20px 20px;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    border: none;
  }
  
  .btn:hover {
    background: var(--primary-dark);
  }
  
  .learn-more-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(1, 185, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .learn-more-btn:hover {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary-darker));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(1, 185, 255, 0.4);
  }
  
  .youtube-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    background: linear-gradient(145deg, var(--youtube-color), var(--youtube-dark));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .youtube-btn:hover {
    background: linear-gradient(145deg, var(--youtube-dark), #990000);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
  }
  
  .youtube-btn i {
    font-size: 1.1rem;
  }
  
  .github-btn {
    padding: 12px 25px;
    background-color: var(--github-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .github-btn:hover {
    background-color: var(--github-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .github-btn i {
    font-size: 1.2rem;
  }
  
  .cancel-btn {
    padding: 12px 25px;
    background-color: var(--error-color);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .cancel-btn:hover {
    background-color: var(--error-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* ===== Achievements Section ===== */
  #achievements {
    background: rgba(10, 25, 47, 0.7);
  }
  
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
  }
  
  .timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
  }
  
  .timeline-item.left {
    left: 0;
  }
  
  .timeline-item.right {
    left: 50%;
  }
  
  .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
  }
  
  .timeline-item.left::after {
    right: -10px;
  }
  
  .timeline-item.right::after {
    left: -10px;
  }
  
  .content {
    padding: 20px;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(1, 185, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .content h3 {
    color: var(--primary-color);
    margin-top: 0;
  }
  
  .content p {
    color: var(--text-muted);
    margin-bottom: 0;
  }
  
  /* ===== Skills Section ===== */
  #skills {
    background: rgba(10, 25, 47, 0.7);
    text-align: center;
  }
  
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .skill-card {
    background: rgba(10, 25, 47, 0.7);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(1, 185, 255, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(1, 185, 255, 0.3);
  }
  
  .skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to bottom right,
      transparent,
      transparent,
      transparent,
      rgba(1, 185, 255, 0.1)
    );
    transform: rotate(30deg);
    transition: all 0.3s;
  }
  
  .skill-card:hover::before {
    transform: rotate(30deg) translate(20px, 20px);
  }
  
  .skill-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
  }
  
  .skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
  }
  
  .skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
  }
  
  /* ===== Contact Section ===== */
  #contact {
    background: rgba(10, 25, 47, 0.7);
    text-align: center;
  }
  
  .contact-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(1, 185, 255, 0.1);
    border: 1px solid rgba(1, 185, 255, 0.3);
    transition: all 0.3s;
  }
  
  .contact-icon:hover {
    transform: translateY(-10px);
    background: rgba(1, 185, 255, 0.2);
    box-shadow: 0 10px 20px rgba(1, 185, 255, 0.3);
  }
  
  .contact-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  /* ===== Profile Picture ===== */
  .profile-pic {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(1, 185, 255, 0.5);
    z-index: 10;
    transition: all 0.3s;
  }
  
  .profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(1, 185, 255, 0.8);
  }
  
  /* ===== Footer ===== */
  footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
  }
  
  .footer-section h2 {
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
  }
  
  .footer-section p {
    font-size: 14px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 8px 0;
  }
  
  .footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: var(--primary-color);
  }
  
  .social-links a {
    color: var(--text-light);
    font-size: 20px;
    margin: 0 10px;
    transition: 0.3s;
  }
  
  .social-links a:hover {
    color: var(--primary-color);
  }
  
  .footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
  }
  
  /* ===== AI Chatbot Styles ===== */
  /* Add this to your CSS */
.ai-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.ai-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #01b9ff, #0062ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(1, 185, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.ai-icon:hover {
    transform: scale(1.1) translateY(-5px);
}

.ai-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.speech-bubble {
    position: absolute;
    bottom: 100%;
    right: 50%;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(10, 25, 47, 0.9);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ai-icon:hover .speech-bubble {
    opacity: 1;
    transform: translateY(0);
}

.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.ai-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #0a192f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(1, 185, 255, 0.3);
    border: 1px solid rgba(1, 185, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.ai-modal-header {
    padding: 20px;
    background: rgba(16, 42, 82, 0.7);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(1, 185, 255, 0.1);
}

.ai-modal-header img {
    width: 40px;
    height: 40px;
}

.ai-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.ai-modes {
    display: flex;
    margin-left: auto;
    gap: 5px;
}

.ai-mode-btn {
    padding: 5px 10px;
    background: rgba(1, 185, 255, 0.1);
    border: 1px solid rgba(1, 185, 255, 0.3);
    color: #a8b2d1;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-mode-btn.active {
    background: rgba(1, 185, 255, 0.3);
    color: white;
}

.ai-mode-btn:hover {
    background: rgba(1, 185, 255, 0.2);
}

.close-ai-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #a8b2d1;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-ai-modal:hover {
    color: white;
}

.ai-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #01b9ff #0a192f;
}

.ai-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ai-modal-body::-webkit-scrollbar-track {
    background: #0a192f;
}

.ai-modal-body::-webkit-scrollbar-thumb {
    background-color: #01b9ff;
    border-radius: 3px;
}

.ai-message {
    background: rgba(16, 42, 82, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #01b9ff;
    color: #ccd6f6;
    line-height: 1.6;
}

.ai-message strong {
    color: #01b9ff;
}

.user-message {
    background: rgba(1, 185, 255, 0.1);
    border-left: none;
    border-right: 3px solid #01b9ff;
    text-align: right;
    margin-left: 20%;
}

.ai-input-container {
    padding: 15px;
    background: rgba(16, 42, 82, 0.7);
    border-top: 1px solid rgba(1, 185, 255, 0.1);
}

.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.suggestion-btn {
    padding: 5px 10px;
    background: rgba(1, 185, 255, 0.1);
    border: 1px solid rgba(1, 185, 255, 0.3);
    color: #a8b2d1;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: rgba(1, 185, 255, 0.2);
    color: white;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

#aiUserInput {
    flex: 1;
    padding: 12px 15px;
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(1, 185, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-family: inherit;
    outline: none;
}

#aiUserInput:focus {
    border-color: #01b9ff;
}

#aiSendBtn, #voiceBtn {
    padding: 0 20px;
    background: #01b9ff;
    color: #0a192f;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#aiSendBtn:hover, #voiceBtn:hover {
    background: #00a1e0;
}

#voiceBtn {
    width: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation for when assistant is listening */
.listening #voiceBtn {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Typing indicator */
.typing-indicator {
    display: inline-block;
    padding-left: 10px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #a8b2d1;
    border-radius: 50%;
    margin-right: 3px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
  /* ===== Project Modal Styles ===== */
  .project-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .project-modal.show {
    display: block;
    opacity: 1;
  }
  
  .project-modal .modal-content {
    background-color: var(--background-dark);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 185, 255, 0.5);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  
  .project-modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  .close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
  }
  
  .close-modal:hover,
  .close-modal:focus {
    color: var(--primary-color);
    transform: scale(1.1);
  }
  
  .modal-header {
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(1, 185, 255, 0.3);
    position: relative;
  }
  
  .modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(1, 185, 255, 0.3);
  }
  
  .modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
  }
  
  .modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
    width: 100%;
  }
  
  .modal-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(1, 185, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
  }
  
  .modal-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(1, 185, 255, 0.2);
  }
  
  .modal-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s;
  }
  
  .modal-image:hover {
    transform: scale(1.05);
  }
  
  .modal-description {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(1, 185, 255, 0.3);
  }
  
  /* Image Overlay Styles */
  .image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
  }
  
  .enlarged-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 185, 255, 0.5);
    animation: fadeInScale 0.3s ease-out;
  }
  
  /* Mouse follower */
  .mouse-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 185, 255, 0.2);
    border: 1px solid rgba(0, 185, 255, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
  }
  
  /* Modal open state */
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  /* ===== Responsive Design ===== */
  @media (max-width: 768px) {
    .hero-content h2 {
      font-size: 2rem;
    }
  
    .title {
      font-size: 1rem;
    }
  
    .toolbar-links {
      display: none;
    }
  
    .timeline::before {
      left: 31px;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
    }
  
    .timeline-item.right {
      left: 0;
    }
  
    .timeline-item::after {
      left: 21px;
    }
  
    .profile-pic {
      width: 70px;
      height: 70px;
      bottom: 20px;
      left: 20px;
    }
  
    .project-modal .modal-content {
      width: 95%;
      padding: 20px;
      margin: 10% auto;
    }
    
    .modal-header h2 {
      font-size: 1.5rem;
    }
    
    .modal-images {
      grid-template-columns: 1fr;
    }
    
    .modal-footer {
      flex-direction: column;
      gap: 15px;
    }
    
    .github-btn, .cancel-btn {
      width: 100%;
      justify-content: center;
    }
    
    .project-buttons {
      flex-direction: column;
      gap: 10px;
    }
    
    .learn-more-btn, .youtube-btn {
      width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .hero-content h2 {
      font-size: 1.8rem;
    }
    
    .hero-content h1 {
      font-size: 1.2rem;
    }
    
    .title {
      font-size: 0.9rem;
      padding: 5px 10px;
    }
    
    .project-card h3 {
      font-size: 1.2rem;
    }
    
    .skill-card {
      padding: 20px 15px;
    }
    
    .contact-icon {
      width: 60px;
      height: 60px;
    }
    
    .contact-icon img {
      width: 30px;
      height: 30px;
    }
  
    .project-modal .modal-content {
      width: 95%;
      padding: 15px;
    }
    
    .modal-header h2 {
      font-size: 1.3rem;
    }
    
    .modal-description {
      font-size: 1rem;
    }
  }
  
  /* Ensure all interactive elements have consistent hover states */
  a, button, .project-card, .skill-card, .contact-icon {
    transition: all 0.3s ease;
  }
  

