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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo h3 {
    color: #2563eb;
    font-weight: 600;
    font-size: 1.2rem;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight {
    color: #fbbf24;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}
/* Section Competitive programming*/
/* Competitive Programming Section */
.competitive-prog {
    padding: 80px 0;
    background: linear-gradient(135deg, #fbbf24 0%, #785e16 100%);
    color: white;
}

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

.cp-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e0eaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cp-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 3rem;
}

/* Grid for CP Cards */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}
.cp-subheading {
  margin: 2.5rem 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}

/* CP Card */
.cp-card {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    transition: 0.3s ease;
    font-weight: 600;
    font-size: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cp-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.4);
}

/* Icons */
.cp-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2563eb;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.about-content h3 {
    color: #1f2937;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-content a {
    color: #2563eb;
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #2563eb;
}

.education-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 41px;
    top: 8px;
    width: 20px;
    height: 20px;
    background-color: #2563eb;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
}

.education-year {
    min-width: 120px;
    font-weight: 600;
    color: #2563eb;
    margin-right: 2rem;
}

.education-content h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-content h4 {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.grade {
    color: #059669;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header i {
    font-size: 1.5rem;
    color: #2563eb;
}

.project-card h3 {
    color: #1f2937;
    font-size: 1.3rem;
}

.project-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #1d4ed8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-category i {
    color: #2563eb;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Experience Section */
.experience {
    background-color: #f9fafb;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #2563eb;
}

.experience-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 41px;
    top: 8px;
    width: 20px;
    height: 20px;
    background-color: #2563eb;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
}

.experience-date {
    min-width: 140px;
    font-weight: 600;
    color: #2563eb;
    margin-right: 2rem;
    font-size: 0.95rem;
}

.experience-content h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.experience-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.experience-content ul {
    list-style: none;
    margin-left: 0;
}

.experience-content li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-content li::before {
    content: '▸';
    color: #2563eb;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
}

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

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.achievement-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.achievement-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background-color: #fbbf24;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .education-timeline::before,
    .experience-timeline::before {
        left: 20px;
    }

    .education-item::before,
    .experience-item::before {
        left: 11px;
    }

    .education-item,
    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }

    .education-year,
    .experience-date {
        margin-bottom: 0.5rem;
    }
}

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

.project-card,
.skill-category,
.achievement-card,
.education-item,
.experience-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
