/* Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1000;
    transition: width 0.3s ease;
}

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background: var(--primary-color);
    color: white;
}

.btn-signup {
    background: var(--secondary-color);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

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

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: var(--bg-light);
}

.skills h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

.projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.projects-wrapper {
    overflow: hidden;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Blue Gradient Overlay - Appears on Hover */
.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
    visibility: visible;
}

/* GitHub View Button */
.github-view-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem 2.5rem;
    border: 3px solid white;
    border-radius: 0.8rem;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.project-card:hover .github-view-btn {
    transform: scale(1);
}

.github-view-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.github-view-btn i {
    font-size: 2.5rem;
}

.github-view-btn span {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.0rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 200px;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-light);
    min-height: 3em;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tech span {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn.show {
    display: flex;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}


/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Side - Contact Info */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-item span {
    font-size: 1rem;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-download-cv {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Right Side - Contact Form */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-right input,
.contact-right textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-right input:focus,
.contact-right textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-right textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-form {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-right {
        padding: 2rem 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .projects-carousel {
        padding: 0 3rem;
    }

    .project-card {
        min-width: 100%;
    }

    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --text-light: #9ca3af;
        --bg-color: #111827;
        --bg-light: #1f2937;
    }

    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }

    .skill-card,
    .project-card,
    .contact-card,
    .carousel-btn {
        background: var(--bg-light);
    }

    .project-tech span {
        background: #374151;
    }
}
/* Skill List with Logos */
.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.skill-list li:hover {
    background: #f3f4f6;
}

.skill-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.skill-list li span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}


/* Smooth Transitions for All Elements */
.skill-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.skill-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover .skill-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.skill-card h3 {
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover h3 {
    color: var(--primary-color);
}

.skill-list li {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-list li:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    transform: translateX(5px);
}

.skill-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-list li:hover .skill-logo {
    transform: scale(1.15) rotate(5deg);
}

.skill-list li span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-list li:hover span {
    color: var(--primary-color);
    font-weight: 600;
}
/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: var(--bg-light);
}

.education h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.education-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.education-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.education-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.education-skills span {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        margin: 0 auto;
    }
}
/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: var(--bg-light);
}

.education h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.education-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.education-icon {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover .education-icon {
    transform: scale(1.1) rotate(5deg);
}

.education-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-year {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.education-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.education-skills span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-color);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.education-skills span:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Resume Section */
.resume {
    padding: 5rem 0;
    background: white;
}

.resume h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.resume-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-download-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.35);
}

.btn-download-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.45);
}

.btn-download-resume i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}
/* Updated Education Section - Smaller Fonts */
.education h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.education-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.education-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.education-year {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.education-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.education-skills span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Updated Download CV Button */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

/* Smaller Download CV Button */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-download-cv i {
    font-size: 1rem;
}
/* Updated Education with Logos */
.education-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.education-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.education-logo-wrapper {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover .education-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.education-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.education-skills span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.skill-tag-logo {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.education-skills span:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.education-skills span:hover .skill-tag-logo {
    filter: brightness(0) invert(1);
}
/* Updated Education with Icon + Logo */
.education-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover .education-icon {
    transform: scale(1.1) rotate(5deg);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.education-title-group {
    flex: 1;
}

.college-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background: white;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.education-item:hover .college-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.education-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Smaller Download CV Button - Normal Size */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    width: auto;
    max-width: fit-content;
}

.btn-download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(37, 99, 235, 0.35);
}

.btn-download-cv i {
    font-size: 0.9rem;
}

/* Bold Education Text */
.education-description strong,
.education-year strong {
    font-weight: 700;
    color: var(--text-color);
}

/* Blinking Cursor for Typewriter Effect */
.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: normal;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Force cursor blink animation */
.hero h1 .cursor {
    display: inline-block !important;
    margin-left: 3px;
    animation: blink 0.8s infinite !important;
    font-weight: 400;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Better Navigation Spacing - Spread items evenly */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: flex-end;
    padding-right: 0;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

/* Better Hero Section Fonts */
.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Better Button Styles */
.btn-primary,
.btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}


.about h2,
.skills h2,
.projects h2,
.education h2,
.contact h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
}


.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}


.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.skill-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}


.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.project-content p {
    color: var(--text-light);
    min-height: 3em;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}


.education-content h3 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.education-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ===========================
   Mobile Responsiveness Fix
   =========================== */

@media (max-width: 768px) {

  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  section {
    padding: 60px 20px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    padding: 12px 0;
    font-size: 16px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
  }

  .hero p {
    font-size: 15px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    width: 100%;
  }

  .carousel-controls {
    margin-top: 20px;
  }

  .about-container,
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .about-left img {
    max-width: 220px;
    margin: 0 auto;
  }

  .contact-right input,
  .contact-right textarea {
    font-size: 15px;
    padding: 10px;
  }

  .footer {
    font-size: 13px;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {

  .hero h1 {
    font-size: 21px;
  }

  .section-title {
    font-size: 22px;
  }

  .nav-item {
    font-size: 15px;
  }
}

/* ===== White mobile menu with blue text ===== */
@media (max-width: 768px) {

  .nav-links {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
  }

  .nav-item {
    color: #2563eb !important;   /* blue */
    font-weight: 600;
  }

  .nav-item:hover {
    color: #1d4ed8 !important;   /* darker blue */
  }

  .nav-item.active {
    color: #1e40af !important;   /* active item */
  }

}
/* ===== Mobile navbar render fix ===== */
@media (max-width: 768px) {
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transform: none !important;
  }

  .main-container {
    transform: none !important;
  }

  body {
    padding-top: 70px;
  }
}
