/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #6366f1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6366f1;
    text-decoration: none;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #6366f1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-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;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-profile {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #6366f1;
    object-fit: cover;
    animation: fadeInUp 1s ease-out 0.3s both;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6366f1, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.hero .description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #6366f1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: #cccccc;
}

.about-text h3 {
    color: #6366f1;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-item i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

/* Technical Skills Section */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 1.8rem;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.category-title {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.skill-item {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #6366f1;
    transition: color 0.3s ease;
}

.skill-name {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.skill-item:hover .skill-name {
    color: #ffffff;
}

/* Custom icons for specific technologies */
.python-icon { color: #3776ab; }
.java-icon { color: #f89820; }
.js-icon { color: #f7df1e; }
.react-icon { color: #61dafb; }
.node-icon { color: #339933; }
.next-icon { color: #ffffff; }
.docker-icon { color: #2496ed; }
.git-icon { color: #f05032; }

.skill-item:hover .python-icon,
.skill-item:hover .java-icon,
.skill-item:hover .js-icon,
.skill-item:hover .react-icon,
.skill-item:hover .node-icon,
.skill-item:hover .next-icon,
.skill-item:hover .docker-icon,
.skill-item:hover .git-icon {
    color: #6366f1;
}

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

.project-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-card h3 {
    color: #6366f1;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}
.project-card {
    position: relative;
    z-index: 1;
}


.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}




.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* prevents overflow on smaller screens */
}

.project-links a {
    color: #6366f1;            /* base link color */
    text-decoration: none;
    display: inline-flex;      /* keeps icon + text aligned */
    align-items: center;
    gap: 0.5rem;               /* space between icon and text */
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 10;               /* ensures it stays above overlays */
    transition: color 0.3s ease, transform 0.2s ease;
}

.project-links a:hover {
    color: #ffffff;            /* hover color */
    transform: translateY(-2px); /* subtle lift effect */
}

.project-links i {
    font-size: 1.1rem;         /* keep icons slightly larger */
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
}

.timeline-item h3 {
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.timeline-item .date {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #6366f1;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}




/* General Styles */
body {
  background: #121212;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

/* Education Card */


.card {
  background: #1e1e22;
  border-radius: 12px;
  padding: 20px;
  width: 350px;       /* ✅ force a good width */
  min-height: 150px;  /* ✅ avoid too skinny height */
  margin: 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::before {
  content: "🎓";
  font-size: 18px;
}

.card p {
  font-size: 15px;
  color: #d1d5db;
  margin: 4px 0;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::before {
  content: "🎓";
  font-size: 18px;
}

.card p {
  margin: 4px 0;
  font-size: 14px;
  color: #d1d5db;
}

/* Expand Button (⤢) */
.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2c2c30;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.expand-btn:hover {
  background: #3a3a40;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Modal Content */
.modal-content {
  background: #1e1e22;
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h3 {
  font-size: 20px;
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.highlight {
  color: #34d399; /* green for college name */
  font-weight: bold;
}

.gpa {
  float: right;
  font-weight: bold;
  color: #9ca3af;
}

/* Tags */
.course-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #2c2c30;
  color: #d1d5db;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
