/* Base Styles */
:root {
    /* Light Theme */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-secondary: #4b5563;
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    /* Dark Theme */
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, 
        #9c27b0 0%,      /* Purple */
        #e91e63 16.6%,   /* Pink */
        #4caf50 33.2%,   /* Green */
        #00bcd4 49.8%,   /* Sky Blue */
        #9c27b0 66.4%,   /* Purple */
        #e6e6fa 83%,     /* Lavender */
        #ff80ab 100%     /* Light Pink */
    );
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-size: 1rem;
    margin: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-linkedin {
    background-color: #0a66c2;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-linkedin i {
    margin-right: 8px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.home-btn i {
    font-size: 1.2rem;
}

/* Theme Toggle Styles */
.theme-toggle-container {
    margin: 0;
}

.hero-theme-toggle {
    margin-top: 1.5rem;
}

/* Enhanced Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: transparent;
    color: white;
}

.theme-toggle-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-toggle-btn .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(30deg);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn .theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle-btn {
    background: var(--card-bg);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

[data-theme="dark"] .theme-toggle-btn .fa-moon::before {
    content: "\f185"; /* Sun icon for dark theme */
}

[data-theme="dark"] .theme-toggle-btn .theme-text::after {
    content: "Light Mode";
}

[data-theme="light"] .theme-toggle-btn .theme-text::after {
    content: "Dark Mode";
}

.theme-text::after {
    content: "Dark Mode";
}

[data-theme="dark"] .theme-text::after {
    content: "Light Mode";
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

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

.nav-links li {
    margin: 0;
    white-space: nowrap;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a.contact-btn {
    background-color: #000;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a.contact-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.theme-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Dark theme adjustments for navigation */
[data-theme="dark"] .logo,
[data-theme="dark"] .nav-links a:not(.contact-btn) {
    color: #f5f5f5;
}

[data-theme="dark"] .bar {
    background-color: #f5f5f5;
}

[data-theme="dark"] .nav-links a.contact-btn {
    background-color: #f5f5f5;
    color: #000;
}

[data-theme="dark"] .nav-links a.contact-btn:hover {
background-color: var(--primary-color);
color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.hero-left {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

.hero-right {
    flex: 1;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    padding: 2rem 0;
}

.greeting {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 500;
}

.hero .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .location i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem 0 3rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.profile-image-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 80vh;
    max-height: 700px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.theme-toggle-pfp {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle-pfp:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(30deg);
}

/* Dark theme adjustments */
[data-theme="dark"] .hero-left {
    background-color: #1a1a1a;
}

[data-theme="dark"] .hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero h2,
[data-theme="dark"] .hero .location {
    color: #e5e7eb;
}

[data-theme="dark"] .social-icon {
    background-color: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .theme-toggle-pfp {
    background: rgba(45, 55, 72, 0.9);
    color: #e2e8f0;
}

[data-theme="dark"] .theme-toggle-pfp:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .greeting {
    color: #f5f5f5;
}

[data-theme="dark"] .hero h2 {
    color: #aaa;
}

[data-theme="dark"] .social-icon {
    background-color: #444;
}

[data-theme="dark"] .social-icon:hover {
    background-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
    color: var(--text-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-width: 250px;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    flex: 1;
    min-width: 150px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Skills Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 20%;
    border-radius: 3px;
}

.skills-category {
    margin-bottom: 3rem;
}

.category-title {
    color: #2d3748;
    margin-bottom: 1.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
}

.category-title i {
    color: #4a6ee0;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    background: rgba(74, 110, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #4a6ee0;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-chip:hover .skill-icon {
    background: #4a6ee0;
    color: white;
    transform: scale(1.1);
}

.skill-chip span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .skill-chip {
        padding: 0.6rem 1rem;
    }
    
    .skill-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-title i {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}

/* Animation for progress bars */
@keyframes fillProgress {
    from { width: 0; }
    to { width: var(--progress); }
}

.skill-item.animate .progress {
    animation: fillProgress 1.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .skills-category {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-percent {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .skills-category {
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .progress-bar {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-percent {
    background: rgba(37, 99, 235, 0.2);
}

/* Certificates Section */
#certificates {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.certificates-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.certificates-container::-webkit-scrollbar {
    height: 8px;
}

.certificates-container::-webkit-scrollbar-track {
    background: transparent;
}

.certificates-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.certificate-card {
    flex: 0 0 320px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificate-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-details h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.certificate-details .issuer {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certificate-details .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.certificate-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.certificate-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.certificate-actions .btn-view {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.certificate-actions .btn-download {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.certificate-actions .btn-view:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.certificate-actions .btn-download:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .certificate-card {
        flex: 0 0 280px;
    }
    
    .certificate-details h3 {
        font-size: 1rem;
    }
    
    .certificate-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.project-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.project-card:hover .btn-edit {
    opacity: 1;
    transform: translateY(0);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) !important;
}

.btn-edit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.project-image {
    height: 200px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-color);
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.tech-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 100%;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

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

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Experience Header */
.experience-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.experience-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.experience-header h3 {
    margin: 0 0 0.25rem 0;
    color: var(--heading-color);
    font-size: 1.25rem;
    line-height: 1.4;
}

.experience-header .company {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.timeline-date i {
    color: var(--primary-color);
    font-size: 0.9em;
}

/* Experience Details */
.experience-details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border-color);
}

.experience-details ul {
    margin: 0 0 1.25rem 0;
    padding-left: 1.25rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
}

.experience-details li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* Skills Container */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item:hover::before {
        transform: scale(1.1);
    }
    
    .timeline-content {
        margin-left: 20px;
    }
}

@media (max-width: 576px) {
    .experience-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .experience-icon {
        margin: 0 auto;
    }
    
    .experience-header > div {
        text-align: center;
        width: 100%;
    }
    
    .skills-container {
        justify-content: center;
    }
}

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

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.education-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 80px;
    transition: all 0.3s ease;
}

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

.education-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.education-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.education-item:hover .education-content {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.education-degree {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.education-dates {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-dates i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.education-highlights {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-color);
}

.education-highlights p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.education-highlights strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Responsive Design for Education Section */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 25px;
    }
    
    .education-item {
        padding-left: 70px;
    }
    
    .education-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .education-content {
        padding: 1.5rem;
    }
    
    .education-item h3 {
        font-size: 1.1rem;
    }
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* File Upload Styles */
.file-upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px dashed var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.file-upload-label:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
}

.file-upload-label i {
    font-size: 1.1rem;
}

#resume-upload {
    display: none;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Dark theme specific styles */
[data-theme="dark"] .file-upload-label {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .file-upload-label:hover {
    background-color: var(--bg-color);
}

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

.footer p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Contact Info */
.footer-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-contacts a {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-contacts a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .footer-contacts a {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 4rem;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 21px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .nav-links a.contact-btn {
        padding: 0.5rem 1rem;
    }
}

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

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

    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-links a.contact-btn {
        margin-top: 1rem;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .avatar {
        width: 250px;
        height: 250px;
        font-size: 8rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
}
