/* =============================== RESET =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================== VARIABLES =============================== */
:root {
    --secondary: rgba(0, 0, 0, 0.4);
    --border: rgba(255, 255, 255, 0.3);
}

/* =============================== GLOBAL =============================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0a0f1f; /* fallback if canvas fails */
}

a, h1, h2, h3, h4, h5, h6, p, label, span {
    color: #ffffff;
    text-decoration: none;
}

/* Logo Text */
.logo {
    font-weight: 700;
    font-size: 1.8rem;
    position: relative; /* Needed for the ::after positioning */
    
    /* Gradient text - in this case it's just white */
    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulsing Underline */
.logo::after {
    content: '';
    position: absolute;
    bottom: -5px; /* space between text and underline */
    left: 50%;
    width: 230px; /* length of underline */
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 5px;
    transform: translateX(-50%);
    animation: pulse-glow 2.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6),
                0 0 25px rgba(118, 75, 162, 0.4),
                0 0 20px rgba(240, 147, 251, 0.5);
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}



/* Navigation Links */
#nav-menu li a {
    position: relative;
    text-decoration: none;
    color: #ffffff; /* main nav text color */
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Hover underline effect */
#nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #667eea,
        #764ba2,
        #f093fb
    );
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* On hover, expand underline */
#nav-menu li a:hover::after {
    width: 100%;
}

/* Optional: change link color on hover */
#nav-menu li a:hover {
    color: #f093fb; /* pink accent on hover */
}
 
/* =============================== NAVBAR =============================== */
nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(0,0,0,0.6);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

nav .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* =============================== CV POPUP DESIGN =============================== */

/* CV Dropdown container */
.cv-dropdown {
  position: relative;
}

/* CV Popup - Modern Glass Design */
.cv-popup {
  display: none; 
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  
  /* Glass morphism effect */
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  
  /* Borders & shadows */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 20px;
  z-index: 1000;
  
  /* Beautiful shadow */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Smooth animation */
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show popup */
.cv-popup.active,
.cv-dropdown:hover .cv-popup {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Arrow pointing up */
.cv-popup::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 8px solid rgba(102, 126, 234, 0.4);
}

.cv-popup::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid rgba(26, 26, 46, 0.85);
}

/* CV Options styling */
.cv-popup h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* CV Links/Buttons */
.cv-popup a,
.cv-popup button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.cv-popup a:hover,
.cv-popup button:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Icons in CV links */
.cv-popup a::before,
.cv-popup button::before {
  content: '📄';
  font-size: 1.2rem;
  filter: grayscale(0.3);
}

.cv-popup a[href*="download"]::before,
.cv-popup button[data-action="download"]::before {
  content: '⬇️';
}

.cv-popup a[href*="view"]::before,
.cv-popup button[data-action="view"]::before {
  content: '👁️';
}

/* Hover effect for specific actions */
.cv-popup a:active,
.cv-popup button:active {
  transform: translateX(5px) scale(0.98);
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .cv-popup {
    min-width: 240px;
    padding: 16px;
    top: calc(100% + 10px);
  }
  
  .cv-popup a,
  .cv-popup button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .cv-popup h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .cv-popup {
    left: 0;
    right: 0;
    transform: none;
    margin: 0 10px;
    min-width: auto;
  }
  
  .cv-popup::before,
  .cv-popup::after {
    left: 30px;
    transform: none;
  }
}
/* =============================== MOBILE MENU =============================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
}

/* =============================== STAR CANVAS =============================== */
#star-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* =============================== SECTIONS =============================== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    animation: zoomIn 1s ease forwards;
    animation-play-state: paused; /* starts paused for IntersectionObserver */
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* =============================== HOME =============================== */
#home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: 5px;
}
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff; /* default text color */
    background: #764ba2; /* fallback background */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Gradient background and pink text on hover */
.cta-button.glow-hover:hover {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    
}

/* TAGLINE – ABOUT STYLE */
.tagline {
    font-size: 1.25rem;
    line-height: 1.9;
    font-weight: 600;
    color: #ffffff;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    position: relative;
    padding: 0 24px 32px;
    text-align: center;
}

/* Bottom accent line with glow */
.tagline::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
    border-radius: 10px;
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4);
}

/* Hover effect */
.tagline:hover::after {
    width: 80%;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}
/* =============================== ABOUT =============================== */



.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

/* About Section Title Styling (if you have an h2) */
.about-content h2,
#about h2 {
    text-align: center;
    font-size: 2.5rem; /* match summary heading size */
    font-weight: 700;
    margin-bottom: 30px; /* similar spacing */
    background: linear-gradient(
        90deg, 
        transparent, 
        #667eea, 
        #764ba2, 
        #f093fb, 
        transparent
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0; /* removed extra padding to match summary */
    width: 100%;
}


/* Bottom accent line with glow */
.about-content h2::after,
#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
    border-radius: 10px;
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4);
}

/* Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        padding: 3rem 1rem;
        gap: 40px;
    }
    
    .about-content h2,
    #about h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .about-content h2::after,
    #about h2::after {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .about-content h2,
    #about h2 {
        font-size: 1.8rem;
    }
    
    .about-content h2::after,
    #about h2::after {
        width: 80px;
    }
}

.about-image {
    position: relative;
    flex-shrink: 0;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -20px;
    bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 60%;
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        gap: 40px;
        padding: 60px 20px;
        justify-content: center;
        text-align: center;
    }
    
    .about-image::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }
    
    .about-image img {
        width: 280px;
        height: 280px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 40px 15px;
    }
    
    .about-image img {
        width: 240px;
        height: 240px;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
}
/* =============================== CERTIFICATES SECTION =============================== */

.certificates-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.certificates-wrapper h2 {
    text-align: center;
    font-size: 2.5rem; /* match summary heading size */
    font-weight: 700;
    margin-bottom: 30px; /* similar spacing */
    background: linear-gradient(
        90deg,
        transparent,
        #667eea,
        #764ba2,
        #f093fb,
        transparent
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0; /* removed extra padding to match summary */
    width: 100%;
}


/* Bottom accent line with glow */
.certificates-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
    border-radius: 10px;
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4);
}

/* Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* =============================== SCROLLABLE GRID =============================== */

.certificates-grid {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
    width: 100%;
    position: relative;
    padding: 1rem;
    scroll-behavior: smooth;
}

/* Custom Scrollbar Styling */
.certificates-grid::-webkit-scrollbar {
    width: 12px;
}

.certificates-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.certificates-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.certificates-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.certificate-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.certificate-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-image::after {
    opacity: 1;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card:hover img {
    transform: scale(1.1);
}

.certificate-info {
    padding: 1.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}

.certificate-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
}

.certificate-info p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* =============================== NAVIGATION BUTTONS - REMOVED =============================== */
/* Navigation buttons removed - now using scroll */

/* =============================== MODAL =============================== */

.certificate-modal,
#certificateModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.certificate-modal.active,
#certificateModal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.certificate-modal img,
#certificateModal img,
#certificateModal iframe {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.certificate-modal img.zoomed,
#certificateModal img.zoomed,
#certificateModal iframe.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 75, 75, 0.3);
    border-color: rgba(255, 75, 75, 0.5);
    transform: rotate(90deg);
}

/* =============================== RESPONSIVE DESIGN =============================== */

@media (max-width: 1200px) {
    .certificates-wrapper {
        padding: 4rem 1rem;
    }

    .carousel-track {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .certificates-wrapper {
        padding: 3rem 1rem;
    }

    .certificates-wrapper h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .carousel-track {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-image {
        height: 200px;
    }

    .certificates-grid {
        max-height: 600px;
        padding: 0.5rem;
    }

    .certificates-grid::-webkit-scrollbar {
        width: 8px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificates-wrapper h2 {
        font-size: 1.8rem;
    }

    .certificate-info h3 {
        font-size: 1.1rem;
    }

    .certificate-info p {
        font-size: 0.9rem;
    }

    .certificates-grid {
        max-height: 500px;
    }

    .certificate-modal img,
    #certificateModal img {
        max-width: 95%;
    }
}

/* =============================== PROJECTS SECTION STYLES  =============================== */

/* =========================================================
   VARIABLES
========================================================= */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.18);
    --text-muted: rgba(255,255,255,0.75);
}

/**
 * Projects Section Styles
 * Professional carousel and modal implementation
 * @version 2.0.0
 */

/* =========================================================
   CSS CUSTOM PROPERTIES (Fallbacks)
========================================================= */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-muted: rgba(255, 255, 255, 0.7);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   SECTION LAYOUT
========================================================= */
#projects {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* =========================================================
   SECTION TITLE
========================================================= */
#projects h2 {
    position: relative;
    margin-bottom: 30px; /* match summary spacing */
    font-size: 2.5rem;   /* match summary heading size */
    font-weight: 700;    /* same as summary */
    text-align: center;
    background: linear-gradient(
        90deg,
        transparent,
        #667eea,
        #764ba2,
        #f093fb,
        transparent
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease;
}


#projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(
        90deg, 
        transparent, 
        #667eea, 
        #764ba2, 
        #f093fb, 
        transparent
    );
    border-radius: 10px;
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4),
                0 0 30px rgba(240, 147, 251, 0.6);
}

/* Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}


/* =========================================================
   PROJECT GRID (Static Layout)
========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 35px;
  animation: fadeInUp 1s ease;
}

/* =========================================================
   PROJECT CAROUSEL (Dynamic Layout)
========================================================= */
.projects-carousel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.projects-track {
  display: flex;
  transition: transform 0.6s var(--transition-smooth);
  will-change: transform;
}

/* Each project card takes full width of viewport */
.projects-carousel .project-card {
  min-width: 100%;
  flex-shrink: 0;
}

/* =========================================================
   CAROUSEL CURSOR ZONES
========================================================= */
.carousel-viewport::before,
.carousel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  pointer-events: none;
}

/* Left zone - Previous */
.carousel-viewport::before {
  left: 0;
  cursor: w-resize;
}

/* Right zone - Next */
.carousel-viewport::after {
  right: 0;
  cursor: e-resize;
}

/* =========================================================
   CAROUSEL NAVIGATION BUTTONS
========================================================= */
.carousel-button,
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  padding: 14px 18px;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-button:hover:not(:disabled),
.carousel-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled,
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-button.prev,
.carousel-btn.prev {
  left: -15px;
}

.carousel-button.next,
.carousel-btn.next {
  right: -15px;
}

/* =========================================================
   PROJECT CARD
========================================================= */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  cursor: pointer;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.5s var(--transition-smooth);
}

/* =========================================================
   PROJECT IMAGE
========================================================= */
.project-image {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.15);
}

/* =========================================================
   PROJECT INFO
========================================================= */
.project-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 32px;
}

.project-info h3 {
  margin-bottom: 14px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.project-info p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   PROJECT TAGS
========================================================= */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.project-tags span {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #a5b4fc;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.project-tags span:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* =========================================================
   DETAILS BUTTON
========================================================= */
.details-btn,
.view-details-btn {
  margin-top: auto;
  padding: 12px 18px;
  font-weight: 600;
  color: #ffffff; /* default text color */
  background: #764ba2;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect: gradient background and pink text */
.details-btn:hover,
.view-details-btn:hover {
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: translateY(-2px);

}



.details-btn:active,
.view-details-btn:active {
  transform: translateY(0);
}

/* =========================================================
   MODAL OVERLAY
========================================================= */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* =========================================================
   MODAL CONTENT
========================================================= */
.modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  padding: 50px;
  overflow-y: auto;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: modalSlideIn 0.5s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* =========================================================
   MODAL CLOSE BUTTON
========================================================= */
.close-btn,
.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover,
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* =========================================================
   MODAL TITLE
========================================================= */
#modalTitle {
  margin-bottom: 25px;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   MODAL DESCRIPTION
========================================================= */
#modalDescription {
  padding: 25px;
  color: #fff;
  line-height: 1.9;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 16px;
  margin-bottom: 30px;
}

/* =========================================================
   MODAL FEATURES LIST
========================================================= */
#modalFeatures {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 30px 0;
  list-style: none;
}

#modalFeatures li {
  position: relative;
  padding: 18px 25px 18px 60px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

#modalFeatures li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

#modalFeatures li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   MODAL TAGS
========================================================= */
#modalTags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

#modalTags span {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #a5b4fc;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
}

#modalTags span:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: scale(1.05);
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
/* Carousel buttons (both next and prev) */
.carousel-btn.next,
.carousel-btn.prev {
    background-color: #764ba2; /* default purple color */
    color: #ffffff; /* arrow color */
    border: none;
    border-radius: 50%; /* circular buttons */
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hover effect */
.carousel-btn.next:hover,
.carousel-btn.prev:hover {
    background-color: #5a3390; /* darker shade on hover */
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.6);
}

/* Tablets and smaller */
@media (max-width: 992px) {
    /* Projects section padding for smaller screens */
    #projects {
        padding: 4rem 1.5rem;
    }

    /* Responsive grid: 1 column minimum 320px, auto-fit remaining space */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }

    /* Carousel buttons positioning for smaller screens */
    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* Adjust button size for mobile */
    .carousel-btn.next,
    .carousel-btn.prev {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}



/* Mobile devices */
@media (max-width: 768px) {
  #projects h2 {
    font-size: 2.6rem;
  }

  .modal {
    padding: 20px;
  }

  .modal-content {
    padding: 30px 20px;
    max-height: 85vh;
  }

  .close-btn,
  .modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  #modalTitle {
    font-size: 2rem;
  }

  .project-info {
    padding: 24px;
  }

  .project-image {
    height: 280px;
  }

  .carousel-button,
  .carousel-btn {
    padding: 10px 14px;
    font-size: 20px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #projects {
    padding: 3rem 1rem;
  }

  #projects h2 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    padding: 25px 15px;
  }

  #modalFeatures li {
    padding: 15px 20px 15px 50px;
  }

  #modalFeatures li::before {
    left: 15px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

/* Focus styles for keyboard navigation */
.details-btn:focus,
.view-details-btn:focus,
.carousel-button:focus,
.carousel-btn:focus,
.close-btn:focus,
.modal-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .project-card {
    border: 2px solid currentColor;
  }

  .details-btn,
  .view-details-btn {
    border: 2px solid currentColor;
  }
}

/* =============================== CONTACT =============================== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* flexible 2-column layout for landscape */
    gap: 3rem;
    justify-content: center; /* centers the grid horizontally */
    align-items: start;      /* aligns items at the top of the row */
    margin: 0 auto;
    padding: 4rem 2rem;      /* spacing from top/bottom */
}

/* Contact Me Heading */
#contact h2,
.contact-content h2 {
    text-align: center;
    font-size: 2.5rem;  /* match Summary Popup */
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(
        90deg,
        transparent,
        #667eea,
        #764ba2,
        #f093fb,
        transparent
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0;
}

/* Underline */
#contact h2::after,
.contact-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #667eea,
        #764ba2,
        #f093fb,
        transparent
    );
    border-radius: 10px;
    transform: translateX(-50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4),
                0 0 30px rgba(240, 147, 251, 0.6);
}

/* Animation (reuse from other headings) */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.contact-icon {
    width: 52px;    
    height: 52px;
    background:#764ba2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Optional: ensure full viewport height on landscape */
@media (min-width: 1024px) {
    .contact-container {
        height: 80vh; /* vertically center content if desired */
    }
}


/* =============================== FOOTER =============================== */
footer {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: #764ba2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.4);
}

/* =============================== RESPONSIVE =============================== */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        background: rgba(0,0,0,0.85);
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100%;
        padding: 3rem 2rem;
        transition: right 0.3s ease;
    }

    nav ul.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ===============================SUMMARY POPUP STYLES WITH CHART=============================== */

.summary-popup {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

 /* =============================== SUMMARY POPUP =============================== */
.summary-content {
    background: rgba(255, 255, 255, 0); /* fully transparent */
    backdrop-filter: blur(10px);        /* frosted glass effect */
    border-radius: 24px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    overflow-y: auto;
    max-height: 90vh;
}

/* =============================== CLOSE BUTTON =============================== */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #ffffff; /* changed to white */
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close-btn:hover {
    color: #f093fb; /* light purple/pink */
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* =============================== HEADING =============================== */
.summary-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(
        90deg, 
        transparent, 
        #667eea, 
        #764ba2, 
        #f093fb, 
        transparent
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================== CARDS GRID =============================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* =============================== INDIVIDUAL CARDS =============================== */
.summary-card {
    background: rgba(255, 255, 255, 0.05); /* subtle frosted effect */
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.summary-card:hover::before {
    transform: scaleX(1);
}

/* =============================== CARD TITLES & TEXT =============================== */
.summary-card h3 {
    font-size: 3rem;
    margin-bottom: 8px;
    font-weight: 800;
    color: #f093fb; /* primary color */
}

.summary-card p {
    font-size: 1rem;
    color: #ffffff; /* white text */
    font-weight: 500;
}

/* =============================== SPECIALIZATIONS & SKILLS CARDS =============================== */
.summary-card.specializations h3,
.summary-card.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #f093fb; /* pink/purple gradient color */
}

/* =============================== LIST ITEMS =============================== */
.summary-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Skill item */
.summary-card ul li {
  position: relative;
  padding: 10px 14px;
  margin: 8px 0;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Header row (name + %) */
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Skill name + arrow */
.skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-name::before {
  content: '▸';
  color: #f093fb;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* Percentage text */
.skill-percentage {
  font-size: 0.85rem;
  color: #f093fb;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show percentage when active */
.summary-card ul li.active .skill-percentage {
  opacity: 1;
}

/* Progress bar container */
.skill-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}

/* Progress bar */
.skill-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f093fb, #f5576c);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Active state */
.summary-card ul li.active .skill-bar-container {
  opacity: 1;
  max-height: 12px;
}

.summary-card ul li.active .skill-name::before {
  transform: rotate(90deg);
}

/* Hover effect */
.summary-card ul li:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}


/* =============================== RESPONSIVE DESIGN =============================== */
@media (max-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-content {
        padding: 30px 20px;
    }

    .summary-content h2 {
        font-size: 2rem;
    }

    .summary-card h3 {
        font-size: 2.5rem;
    }
}
