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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 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;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* Ensure hero doesn't visually overlap following sections */
.hero { transform: none !important; }
.projects, .about, .experience, .skills, .education, .contact {
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    will-change: transform;
    transform: translateY(var(--hero-shift, 0px));
    transition: transform 0.1s linear;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #333;  /* Ensure color for the text */
    display: inline-block;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}


.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

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

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: translateY(20px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0px); }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.profile-info p {
    color: #64748b;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #2563eb;
}

/* Section Styles */
section {
    padding: 5rem 0;
    scroll-margin-top: 100px;
}

/* Section header fix for spacing */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - FIXED */
.about {
    background: #f8fafc;
    position: relative;
    z-index: 1;
    min-height: 400px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    scroll-margin-top: 100px; /* Ensures section is not hidden by navbar */
}

body.dark-mode .about {
    background: #18181b;
}

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

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.7;
}

body.dark-mode .about-text p {
    color: #e5e7eb;
}

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

.stat {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, background 0.3s, color 0.3s;
    min-width: 140px;
}

body.dark-mode .stat {
    background: #23272f;
    color: #f3f4f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

.stat h3 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

body.dark-mode .stat h3 {
    color: #7c3aed;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .stat p {
    color: #bfc7d5;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 0 0 4px white, 0 0 0 8px #e2e8f0;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Improve contrast for role titles in dark mode */
body.dark-mode .timeline-header h3 {
    color: #e5e7eb;
}

.company {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 600;
    margin-right: 1rem;
}

.duration {
    color: #64748b;
    font-weight: 500;
    margin-right: 1rem;
}

.location {
    color: #64748b;
    font-style: italic;
}

.timeline-description p {
    color: #475569;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-description li {
    color: #475569;
    margin-bottom: 0.5rem;
}

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

.tech-tag {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: #f8fafc;
}

/* Dark mode for Skills and Experience */
body.dark-mode .skills { background: #0f172a; }
body.dark-mode .skill-category {
    background: #23272f;
    color: #f3f4f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
body.dark-mode .skill-item {
    background: #1f2937;
}
body.dark-mode .skill-item span { color: #e5e7eb; }
body.dark-mode .skill-item i { color: #60a5fa; }

body.dark-mode .timeline-content {
    background: #23272f;
    color: #f3f4f6;
}
body.dark-mode .timeline-description p,
body.dark-mode .timeline-description li,
body.dark-mode .company,
body.dark-mode .duration,
body.dark-mode .location { color: #cbd5e1; }

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}
body.dark-mode .skill-category h3 { color: #e5e7eb; }

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    transform: translateY(-3px);
}

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

.skill-item:hover i {
    color: white;
}

.skill-item span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

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

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
}

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

.education-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-content {
    flex: 1;
    text-align: left;
}

.education-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
    text-align: left;
}
/* Dark mode typography for Education */
body.dark-mode .education-content h3 { color: #e5e7eb; }
body.dark-mode .institution { color: #93c5fd; }
body.dark-mode .duration { color: #cbd5e1; }
body.dark-mode .grade { color: #34d399; }
body.dark-mode .description { color: #cbd5e1; }

.institution {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.duration {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

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

.description {
    color: #475569;
    line-height: 1.6;
}

.coursework h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}

/* Horizontal bullet list for course tags */
.course-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.8rem;
    margin-top: 0.5rem;
    padding-left: 0;
}

.course-tag {
    color: #475569;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
    text-align: left;
    display: list-item;
    list-style-type: disc;
    list-style-position: inside;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0.2rem;
    white-space: normal;
    word-break: normal;
}

body.dark-mode .course-tag {
    color: #a5b4fc;
}

.course-desc {
    color: #475569;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.6;
}

body.dark-mode .course-desc {
    color: #a5b4fc;
}

@media (max-width: 900px) {
    .course-tags {
        grid-template-columns: 1fr;
    }
}

body.dark-mode .education-card {
    background: #23272f;
    color: #f3f4f6;
}

body.dark-mode .course-tag {
    background: #353945;
    color: #a5b4fc;
}

.certifications, .achievements {
    margin-top: 3rem;
}

.certifications h3, .achievements h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

/* Dark mode for Certifications and Achievements headings */
body.dark-mode .certifications h3,
body.dark-mode .achievements h3 {
    color: #f3f4f6;
}

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

.cert-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

/* Dark mode card */
body.dark-mode .cert-card {
    background: #23272f;
    color: #f3f4f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
body.dark-mode .cert-card h4 { color: #e5e7eb; }
body.dark-mode .cert-card p { color: #cbd5e1; }
body.dark-mode .cert-card i { color: #60a5fa; }

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

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

.cert-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.cert-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dark mode achievement chip */
body.dark-mode .achievement-item {
    background: #23272f;
    color: #f3f4f6;
}
body.dark-mode .achievement-item span { color: #e5e7eb; }

.achievement-item i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.achievement-item span {
    color: #475569;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark mode contact form and inputs */
body.dark-mode .contact { background: #0f172a; }
body.dark-mode .contact-form {
    background: #111827;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #0b1220;
    color: #e5e7eb;
    border: 2px solid #374151;
}
body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #9ca3af;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

body.dark-mode .project-card {
    background: #23272f !important;
    color: #f3f4f6 !important;
    border: 1px solid #333;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  }
  body.dark-mode .btn-primary {
    background: #6366f1;
    color: #fff;
    border: none;
  }
  body.dark-mode .btn-secondary {
    background: transparent;
    color: #a5b4fc;
    border: 1px solid #6366f1;
  }
  body.dark-mode .project-tags span {
    background: #374151;
    color: #a5b4fc;
  }

/* Dark mode enhancements */
body.dark-mode .nav-link { color: #e5e7eb; }
body.dark-mode .nav-link:hover { color: #ffffff; }
body.dark-mode .nav-menu { background: #23272f; }

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
}
body.dark-mode .hero::before {
    opacity: 0.15;
}
body.dark-mode .hero-title { color: #f3f4f6; }
body.dark-mode .hero-subtitle { color: #cbd5e1; }
body.dark-mode .hero-description { color: #cbd5e1; }

body.dark-mode .section-title { color: #f3f4f6; }
body.dark-mode .section-subtitle { color: #cbd5e1; }

body.dark-mode .contact { background: #111827; }
body.dark-mode .contact-item, 
body.dark-mode .contact-form { 
    background: #23272f; 
    color: #f3f4f6; 
}
body.dark-mode .contact-item h4 { color: #e5e7eb; }
body.dark-mode .contact-item p { color: #cbd5e1; }
  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

/* Guides slider */
.guides-slider { position: relative; display: flex; align-items: center; }
.guides-track { display: flex; gap: 2rem; overflow: hidden; scroll-behavior: smooth; width: 100%; }
.guide-card { flex: 0 0 100%; max-width: 700px; margin: 0 auto; }
.slider-btn { background: #111827; color: #fff; border: none; width: 40px; height: 40px; border-radius: 9999px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.slider-btn:hover { transform: translateY(-1px); }
.slider-btn.prev { margin-right: 1rem; }
.slider-btn.next { margin-left: 1rem; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 1rem; }
.slider-dots button { width: 8px; height: 8px; border-radius: 9999px; border: none; background: #cbd5e1; cursor: pointer; }
.slider-dots button.active { background: #2563eb; }

@media (min-width: 900px) {
  .guide-card { flex-basis: 60%; }
}

body.dark-mode .slider-btn { background: #1f2937; }
body.dark-mode .slider-dots button { background: #475569; }
body.dark-mode .slider-dots button.active { background: #6366f1; }
  .project-card {
    background: #fff;
    color: #23272f;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 350px;
    min-width: 280px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    transition: background 0.3s, color 0.3s;
  }
  .project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .project-desc {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .project-tags {
    margin-bottom: 1rem;
  }
  .project-tags span {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
  }
  .project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

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

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

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

    .hamburger.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-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 11px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .education-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}