/* ===== Base Styles ===== */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #2ec4b6;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #2ec4b6;
    --text-color: #f8f9fa;
    --text-light: #c5c5c5;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #0a0a0a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-bg {
    background-color: var(--bg-light);
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.secondary-btn {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: none;
}

.dark-theme .secondary-btn {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: #e9ecef;
}

.dark-theme .secondary-btn:hover {
    background-color: #2d3135;
}

.linkedin-btn {
    background-color: #0A66C2;
    color: white;
    border: none;
}

.linkedin-btn:hover {
    background-color: #084e96;
}

.btn i {
    margin-left: 8px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dark-theme .header {
    background-color: rgba(18, 18, 18, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--bg-light);
}

.dark-theme .theme-toggle {
    background-color: var(--bg-dark);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.mobile-menu a.active,
.mobile-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dark-theme .mobile-menu a.active,
.dark-theme .mobile-menu a:hover {
    background-color: var(--bg-dark);
}

.theme-toggle-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin-top: 12px;
    border-top: 1px solid var(--bg-light);
}

.dark-theme .theme-toggle-mobile {
    border-top-color: var(--bg-dark);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    text-align: center;
    margin-bottom: 48px;
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.typing-container {
    height: 40px;
    margin-bottom: 24px;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--text-light);
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

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

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn.linkedin-btn {
    background-color: #0077b5; /* LinkedIn Blue */
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .btn.linkedin-btn i {
    font-size: 1.1rem;
  }
  
  .btn.linkedin-btn:hover {
    background-color: #005983;
    transform: translateY(-2px);
  }
  

.hero-image {
    position: relative;
    margin-top: 32px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    background-color: #718096;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-image img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
}


.dark-theme .profile-image {
    border-color: var(--bg-dark);
}

.profile-image .initials {
    font-size: 3rem;
    font-weight: 700;
}

.profile-image .subtitle {
    font-size: 1rem;
    margin-top: 8px;
}

.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    background-color: rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.hero-image::before {
    width: 450px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image::after {
    width: 350px;
    height: 350px;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 196, 182, 0.2);
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-text h3,
.about-skills h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

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

.languages {
    margin-bottom: 32px;
}

.languages h4,
.quick-info h4,
.about-skills h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.language-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dark-theme .language-item {
    background-color: var(--bg-dark);
}

.language-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

.dark-theme .info-icon {
    background-color: rgba(67, 97, 238, 0.2);
}

.info-text h5 {
    font-size: 0.875rem;
    color: var(--text-light);
}
.education h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.education-item {
    background-color: var(--bg-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.dark-theme .education-item {
    background-color: var(--bg-dark);
}

.education-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.education-place {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.education-desc {
    color: var(--text-light);
}

.skill-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.dark-theme .skill-bar {
    background-color: var(--bg-dark);
}

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

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.soft-skill-tag {
    padding: 8px 16px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 100px;
}

.dark-theme .soft-skill-tag {
    background-color: rgba(67, 97, 238, 0.2);
}

/* ===== Projects Section ===== */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.dark-theme .filter-btn {
    background-color: var(--bg-dark);
}

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


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

.project-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-theme .project-card {
    background-color: var(--bg-dark);
}

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

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

.project-image svg {
    color: var(--bg-color);
    font-size: 2rem;
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: var(--border-radius);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background-color: var(--bg-light);
    border-radius: 100px;
    color: var(--text-light);
}

.dark-theme .tech-tag {
    background-color: var(--bg-dark);
}

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

.project-link {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
}

.load-more {
    text-align: center;
}
/* Improved Show More Button */
.show-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .show-more-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .show-more-btn i {
    transition: transform 0.3s ease;
  }
  
  .show-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
  }
  
/* ===== Certifications Section ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.cert-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .cert-card {
    background-color: var(--bg-dark);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cert-icon {
    width: 48px; /* Adjust the size as needed */
    height: 48px;
    object-fit: contain;  /* Ensures the image doesn't get distorted */
    max-width: 100%;       /* Ensures the image doesn't exceed container size */
    max-height: 100%;
}

.cert-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.cert-issuer {
    color: var(--text-light);
}

.cert-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

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

.cert-date {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cert-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--primary-dark);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-color);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    transition: var(--transition);
}

.dark-theme .timeline-item::before {
    border-color: var(--bg-dark);
}

.timeline-item:hover::before {
    background-color: var(--primary-dark);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(67, 97, 238, 0.3);
}

.timeline-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    width: 45%;
    position: relative;
    transition: var(--transition);
}

.dark-theme .timeline-content {
    background-color: var(--bg-dark);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dark-theme .timeline-item:hover .timeline-content {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent var(--bg-color) transparent transparent;
}

.dark-theme .timeline-item:nth-child(odd) .timeline-content::after {
    border-color: transparent transparent transparent var(--bg-dark);
}

.dark-theme .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--bg-dark) transparent transparent;
}

.timeline-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-organization {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-tag {
    font-size: 0.8rem;
    padding: 5px 14px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 100px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.timeline-tag:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.dark-theme .timeline-tag {
    background-color: rgba(67, 97, 238, 0.2);
}

.dark-theme .timeline-tag:hover {
    background-color: rgba(67, 97, 238, 0.3);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: translateX(0);
    }
    
    .timeline-item:hover::before {
        transform: translateX(0) scale(1.2);
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
        text-align: left !important;
        padding: 25px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--bg-color) transparent transparent;
    }
    
    .dark-theme .timeline-item:nth-child(odd) .timeline-content::after,
    .dark-theme .timeline-item:nth-child(even) .timeline-content::after {
        border-color: transparent var(--bg-dark) transparent transparent;
    }
    
    /* Ensure proper spacing on mobile */
    .timeline-item {
        margin-bottom: 50px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 30px;
    }
    
    /* Enhance timeline line visibility */
    .timeline::before {
        width: 3px;
        background-color: var(--primary-color);
        opacity: 0.3;
    }
}

/* ===== Contact Section ===== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-card,
.info-card,
.social-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.dark-theme .form-card,
.dark-theme .info-card,
.dark-theme .social-card {
    background-color: var(--bg-dark);
}

.form-card h3,
.info-card h3,
.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    border-color: #444;
    background-color: var(--bg-dark);
}

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

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.submit-btn i {
    margin-left: 8px;
}

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

.contact-info .info-item {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

.linkedin {
    background-color: #0A66C2;
}

.github {
    background-color: #333;
}

.twitter {
    background-color: #1DA1F2;
}

.facebook {
    background-color: #4267B2;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background-color: white;
    color: #333;
    padding: 16px;
    border-left: 4px solid #4BB543;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease;
    z-index: 1000;
}

.toast.show {
    bottom: 20px;
}

.toast.error {
    border-left-color: #e53e3e;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.dark-theme .toast {
    background-color: var(--bg-dark);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    color: #4BB543;
    font-size: 1.5rem;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    animation: progress 3s linear forwards;
}

@keyframes progress {
    to {
        width: 0%;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-text {
        text-align: left;
        flex: 1;
        margin-bottom: 0;
    }

    .hero-text p,
    .hero-btns {
        margin-left: 0;
        justify-content: flex-start;
    }

    .about-content {
        flex-direction: row;
    }

    .about-text, 
    .about-skills {
        flex: 1;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 45%;
        padding-right: 60px;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 55%;
        padding-right: 0;
        padding-left: 60px;
        text-align: left;
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-form-container,
    .contact-info-container {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section {
        padding: 100px 0 50px;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

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

    .about-text h3,
    .about-skills h3 {
        font-size: 1.5rem;
    }

    .skill-group {
        grid-template-columns: 1fr;
    }

    .contact-info-container {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}