/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--gradient-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Global Styles */
:root {
    --primary-color: #2d5bff;
    --secondary-color: #6c757d;
    --dark-color: #1a1f25;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --gradient-primary: linear-gradient(135deg, #2d5bff 0%, #4f7dff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f25 0%, #2d3436 100%);
    --box-shadow: 0 10px 30px rgba(45, 91, 255, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(45, 91, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition), box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(45,91,255,0.10);
}
.btn.shine {
  position: relative;
  overflow: hidden;
}
.btn.shine::after {
  content: '';
  position: absolute;
  left: -75%;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.btn.shine:hover::after {
  left: 120%;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(45, 91, 255, 0.3);
}

.primary-btn:hover {
    background-color: #3951d1;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.highlight {
    color: var(--primary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 30px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: moveBackground 15s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI5MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjMkQ1QkZGIiBzdG9wLW9wYWNpdHk9Ii4wNSIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM0RjdERkYiIHN0b3Atb3BhY2l0eT0iLjEiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0wIDBoMTQ0MHY5MDBIMHoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==');
    opacity: 0.5;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    animation: slideInLeft 1s ease-out;
}

.hero-content .subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
    animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text {
    min-height: 60px;
    margin: 20px 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    top: 0;
    left: 0;
    transform: translateY(100%);
    transition: var(--transition);
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
    animation: bounce 1s ease infinite;
}

.social-icons a:hover::before {
    transform: translateY(0);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.image-container {
    position: relative;
    width: 600px;
    height: 400px;
    border-radius: 10%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
    
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-weight: 600;
    color: var(--dark-color);
}

.info-value {
    color: var(--secondary-color);
}

/* Skills Section */
.skills {
    background-color: #f9f9ff;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item.animate {
    animation: scaleIn 0.5s ease-out forwards;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    background-color: white;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background-color: transparent;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-item.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    padding: 5px 10px;
    background-color: #f1f3f5;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-links a:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: #f9f9ff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero .container,
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .cta-buttons,
    .social-icons {
        justify-content: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .image-container {
      width: 90vw;
      max-width: 350px;
      height: 220px;
      border-radius: 10%;
    }
    .team-hero-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10%;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .image-container {
        width: 98vw;
        max-width: 250px;
        height: 150px;
        border-radius: 10%;
    }

}



/* --- TEAM SECTION ENHANCEMENTS --- */
.team {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  padding: 60px 0;
}
.team-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.team-member {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(60,60,120,0.12);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  position: relative;
  width: 300px;
  overflow: hidden;
}
.team-member:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow: 0 16px 40px rgba(60,60,120,0.18);
  z-index: 2;
}
.team-photo .placeholder-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 40%, #a5b4fc 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
  font-weight: 600;
  letter-spacing: 1px;
}
.team-member h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3730a3;
  margin-bottom: 0.3rem;
  margin-top: 0.5rem;
}
.team-member .role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.7rem;
}
.team-member .bio {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 1.2rem;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.team-member:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}
.team-social a {
  color: #6366f1;
  font-size: 1.3rem;
  background: #eef2ff;
  border-radius: 50%;
  padding: 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-social a:hover {
  background: #6366f1;
  color: #fff;
  transform: scale(1.15) rotate(-8deg);
}
@media (max-width: 900px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }
  .team-member {
    width: 90%;
    margin-bottom: 2rem;
  }
}

/* --- TEAM MEMBER SCROLL-IN ANIMATION --- */
.team-member.hide {
  opacity: 0;
  transform: translateY(40px);
}
.team-member.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s, transform 0.7s;
}

/* --- Stunning Team Modal Glassmorphic Redesign --- */
.team-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30, 34, 90, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
.team-modal.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.team-modal-content {
  background: rgba(255,255,255,0.85);
  border-radius: 2rem;
  box-shadow: 0 12px 48px rgba(30,34,90,0.18);
  max-width: 900px;
  width: 96vw;
  height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2.2rem 1.7rem 2.2rem;
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
  font-family: 'Poppins', Arial, sans-serif;
}
@keyframes modalSlideIn {
  from { transform: translateY(60px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.team-modal-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  font-size: 2.2rem;
  color: #6c63ff;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
}
.team-modal-close:hover {
  color: #e74c3c;
  transform: scale(1.15) rotate(8deg);
}
.team-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.team-modal-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1.5px solid #ececff;
  padding-bottom: 1.2rem;
}
.team-modal-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #6c63ff;
  box-shadow: 0 4px 24px rgba(108,99,255,0.12);
  background: #fff;
}
.team-modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 0.1rem;
}
.team-modal-role {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c63ff;
  margin-bottom: 0.2rem;
}
.team-modal-tagline {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.2rem;
}
.team-modal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0 0.2rem 0;
  align-items: center;
  justify-content: flex-start;
}
.team-modal-contact i {
  color: #6c63ff;
  margin-right: 0.4rem;
}
.team-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.team-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.team-modal-section-title {
  font-size: 1.08rem;
  color: #6c63ff;
  font-weight: 600;
  margin-bottom: 0.1rem;
  letter-spacing: 0.5px;
}
.team-modal-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  color: #444;
}
.team-modal-section-list li {
  margin-bottom: 0.2rem;
  line-height: 1.5;
}
.team-modal-skill {
  display: inline-block;
  background: #f3f3ff;
  color: #6c63ff;
  border-radius: 1rem;
  padding: 0.18rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(108,99,255,0.07);
  margin: 0 0.2rem 0.2rem 0;
  transition: background 0.2s, color 0.2s;
}
.team-modal-skill:hover {
  background: #6c63ff;
  color: #fff;
}
.team-modal-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.7rem;
  justify-content: flex-start;
}
.team-modal-social a {
  color: #6c63ff;
  font-size: 1.7rem;
  transition: color 0.2s, transform 0.2s;
}
.team-modal-social a:hover {
  color: #e74c3c;
  transform: scale(1.18) rotate(-8deg);
}
@media (max-width: 768px) {
  .team-modal-content {
    max-width: 70vw;
    width: 70vw;
    height: 60vh;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
  .team-modal-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .team-modal-img {
    width: 80px;
    height: 80px;
  }
  .team-modal-name {
    font-size: 1.2rem;
  }
  .team-modal-role {
    font-size: 1rem;
  }
  .team-modal-section-title {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .team-modal-content {
    max-width: 90vw;
    width: 90vw;
    height: 65vh;
    padding: 20px;
  }
  .team-modal-img {
    width: 60px;
    height: 60px;
  }
  .team-modal-name {
    font-size: 1rem;
  }
  .team-modal-section-list {
    font-size: 0.92rem;
  }
}

/* --- End Stunning Team Modal --- */

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(76, 110, 245, 0.10);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  text-decoration: none;
  margin-top: 1em;
  cursor: pointer;
}
.resume-btn i {
  font-size: 1.1em;
  margin-right: 0.5em;
}
.resume-btn:hover, .resume-btn:focus {
  background: linear-gradient(90deg, #48c6ef 0%, #6c63ff 100%);
  box-shadow: 0 8px 24px rgba(76, 110, 245, 0.18);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  text-decoration: none;
}

/* Achievements Section */
.achievements {
  padding: 60px 0;
  background: #f9f9f9;
}
.achievements .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.achievements-intro {
  color: #666;
  font-size: 1.1rem;
  margin-top: 10px;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.achievement-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.achievement-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.achievement-avatar {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
  z-index: 2;
}
.achievement-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.achievement-image {
  position: relative;
  width: 100%;
  height: 180px; /* reduced from 180px */
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.achievement-info {
  padding: 24px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.achievement-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}
.achievement-info p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 16px;
}
.achievement-tags {
  display: flex;
  gap: 10px;
}
.achievement-tags span {
  background: #e0e7ff;
  color: #3b3b7a;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .achievement-image {
    height: 90px; /* reduced from 140px */
  }
  .achievement-avatar {
    width: 36px;
    height: 36px;
    bottom: 8px;
    right: 8px;
  }
}

/* Achievement Filter Buttons */
.achievement-filters {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
  margin-top: 10px;
}
.achievement-filter-btn {
  background: #f4f4ff;
  color: #6c63ff;
  border: 1.5px solid #ecebff;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 1.05rem;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  outline: none;
  box-shadow: 0 1.5px 6px rgba(108,99,255,0.06);
}
.achievement-filter-btn:hover,
.achievement-filter-btn.active {
  background: #6c63ff;
  color: #fff;
  border: 1.5px solid #6c63ff;
  box-shadow: 0 2px 12px rgba(108,99,255,0.13);
}

.team-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
  display: block;
}

.team-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto 16px auto;
}

.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhanced Certificate Modal Styles */
.certificate-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: certModalFadeIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes certModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.certificate-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 32px 32px 20px 32px;
  box-shadow: 0 12px 48px rgba(44, 62, 80, 0.25), 0 1.5px 8px rgba(44,62,80,0.10);
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 2.5px solid #6c63ff22;
  animation: certContentPop 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes certContentPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.certificate-modal-content img {
  max-width: 78vw;
  max-height: 58vh;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 18px rgba(44,62,80,0.18);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
  cursor: pointer;
}
.certificate-modal-content img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(108,99,255,0.18);
}
.certificate-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 2.3rem;
  color: #6c63ff;
  cursor: pointer;
  font-weight: bold;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  border: 1.5px solid #ecebff;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.certificate-modal-close:hover {
  background: #6c63ff;
  color: #fff;
  transform: scale(1.12);
}
#certificate-modal-caption {
  font-size: 1.18rem;
  color: #3a3a3a;
  text-align: center;
  margin-top: 2px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
#certificate-modal-caption strong {
  color: #6c63ff;
  font-size: 1.22rem;
  font-weight: 600;
}
#certificate-modal-caption span {
  color: #888;
  font-size: 1.05rem;
  font-weight: 400;
}

/* --- ENHANCED ANIMATIONS FOR ATTRACTIVENESS --- */

/* 1. Button Pop & Shine Animation */
.btn {
  /* ... existing code ... */
  transition: var(--transition), box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(45,91,255,0.10);
}
.btn.shine {
  position: relative;
  overflow: hidden;
}
.btn.shine::after {
  content: '';
  position: absolute;
  left: -75%;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.btn.shine:hover::after {
  left: 120%;
}

/* 2. Section Fade/Slide In Animations */
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: sectionFadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

/* 3. Card Hover Effects (Skills, Projects, Achievements) */
.skill-item, .project-item, .achievement-item {
  transition: transform 0.28s cubic-bezier(.4,2,.6,1), box-shadow 0.28s, filter 0.18s;
}
.skill-item:hover, .project-item:hover, .achievement-item:hover {
  transform: scale(1.045) rotate(-1.5deg) translateY(-6px);
  filter: brightness(1.04) saturate(1.08);
  box-shadow: 0 16px 40px rgba(60,60,120,0.18), 0 2px 8px rgba(45,91,255,0.10);
}

/* 4. Image Zoom/Rotate on Hover */
.team-img, .achievement-image img, .team-modal-img {
  transition: transform 0.32s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
}
.team-img:hover, .achievement-image img:hover, .team-modal-img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(108,99,255,0.18);
}

/* 5. Animated Link Underline */
.nav-links a, .footer .social-icons a {
  position: relative;
  overflow: hidden;
}
.nav-links a::before, .footer .social-icons a::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::before, .nav-links a.active::before, .footer .social-icons a:hover::before {
  transform: scaleX(1);
}

/* 6. Social Icon Bounce Animation */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-7px) scale(1.12); }
  60% { transform: translateY(2px) scale(0.98); }
}
.social-icons a:hover, .team-social a:hover {
  animation: iconBounce 0.7s cubic-bezier(.4,0,.2,1);
}

/* 7. Modal Pop Animation (already present, but enhance) */
.team-modal-content, .certificate-modal-content {
  animation: modalSlideIn 0.5s cubic-bezier(.68,-0.55,.27,1.55), popBounce 0.32s cubic-bezier(.4,0,.2,1);
}
@keyframes popBounce {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* 8. Subtle Animated Background Shapes (for .hero, .about, .skills, .projects, .achievements, .contact) */
.animated-bg-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  animation: floatShape 8s ease-in-out infinite alternate;
}
@keyframes floatShape {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-30px) scale(1.08) rotate(8deg); }
}

/* Example: Add <div class="animated-bg-shape"></div> in HTML for floating shapes */

/* --- END ENHANCED ANIMATIONS --- */

/* --- PROFESSIONAL ADVANCED ANIMATIONS & EFFECTS --- */

/* 1. Animated Gradient Text for Headings */
.animated-gradient-text {
  background: linear-gradient(90deg, #2d5bff, #6c63ff, #48c6ef, #2d5bff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextMove 3s linear infinite;
}
@keyframes gradientTextMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 2. Floating/Parallax Background Shapes */
.floating-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.18;
  animation: floatParallax 7s ease-in-out infinite alternate;
}
@keyframes floatParallax {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-40px) scale(1.12) rotate(12deg); }
}

/* 3. Enhanced Glassmorphism (Animated Blur/Light) */
.glass-animated {
  background: rgba(255,255,255,0.18);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(60,60,120,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
}
.glass-animated::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  animation: glassLightMove 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glassLightMove {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* 4. Button Ripple Effect (CSS-only fallback) */
.btn.ripple {
  position: relative;
  overflow: hidden;
}
.btn.ripple:active::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: rgba(76,110,245,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleEffect 0.5s linear;
  z-index: 2;
}
@keyframes rippleEffect {
  to {
    width: 220%; height: 220%;
    opacity: 0;
  }
}

/* 5. Animated Gradient Border for Cards/Images */
.animated-border {
  position: relative;
  z-index: 1;
}
.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 0;
  background: linear-gradient(120deg, #6c63ff, #48c6ef, #2d5bff, #6c63ff);
  background-size: 200% 200%;
  animation: borderGradientMove 2.5s linear infinite;
  z-index: -1;
}
@keyframes borderGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 6. Staggered Card Entrance (add .staggered-card, .staggered-delay-N) */
.staggered-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.staggered-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.staggered-delay-1 { transition-delay: 0.1s; }
.staggered-delay-2 { transition-delay: 0.2s; }
.staggered-delay-3 { transition-delay: 0.3s; }
.staggered-delay-4 { transition-delay: 0.4s; }
.staggered-delay-5 { transition-delay: 0.5s; }

/* 7. Text Reveal Mask for Headings */
.text-reveal {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: textRevealAnim 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.text-reveal.visible span {
  animation-delay: 0.1s;
}
@keyframes textRevealAnim {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 8. Shadow Pulse on Hover (Cards, Modals) */
.shadow-pulse:hover {
  animation: shadowPulse 1.1s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes shadowPulse {
  0% { box-shadow: 0 8px 32px rgba(60,60,120,0.12); }
  100% { box-shadow: 0 16px 48px rgba(76,110,245,0.18); }
}

/* 9. Animated Icon Spin/Pulse */
.icon-spin:hover {
  animation: iconSpin 0.7s linear;
}
@keyframes iconSpin {
  100% { transform: rotate(360deg); }
}
.icon-pulse:hover {
  animation: iconPulse 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* --- END PROFESSIONAL ADVANCED ANIMATIONS & EFFECTS --- */
