:root {
    /* Light Theme Variables - Softer Color Palette */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #4a90e2;
    --text-color: #2c3e50;
    --text-light: #6c7a89;
    --background-light: #f8f9fa;
    --background-main: #ffffff;
    --background-alt: #f1f4f8;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
    --transition: all 0.3s ease;
    --border-color: rgba(44, 62, 80, 0.1);
    --gradient: linear-gradient(135deg, #3498db, #4a90e2);
}

[data-theme="dark"] {
    /* Dark Theme Variables - Modern Dark Palette */
    --primary-color: #e0e0e0;
    --secondary-color: #64b5f6;
    --accent-color: #90caf9;
    --text-color: #e0e0e0;
    --text-light: #b0bec5;
    --background-light: #263238;
    --background-main: #1a2327;
    --background-alt: #263238;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.05);
    --gradient: linear-gradient(135deg, #64b5f6, #90caf9);
}

/* Dark theme specific overrides */
[data-theme="dark"] .navbar {
    background: rgba(26, 35, 39, 0.95);
}

[data-theme="dark"] .contact-info {
    background: var(--background-alt);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-item {
    background: var(--background-main);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-item:hover {
    background: var(--background-light);
    transform: translateX(5px);
}

[data-theme="dark"] .contact-item a {
    color: var(--text-color);
}

[data-theme="dark"] .contact-item i {
    color: var(--secondary-color);
}

[data-theme="dark"] .contact-form {
    background: var(--background-alt);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--background-main);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .skill-icon {
    background: var(--gradient);
    color: var(--background-main);
}

[data-theme="dark"] .btn-linkedin {
    color: var(--white);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .scroll-to-top {
    background: var(--gradient);
    color: var(--background-main);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 38, 52, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-main);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.language-select:hover {
    border-color: var(--secondary-color);
}

[data-theme="dark"] .language-select {
    background: var(--background-alt);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background-main);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    clip-path: polygon(70% 0, 100% 0, 100% 100%, 40% 100%);
    opacity: 0.1;
}

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

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    opacity: 1;
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-linkedin {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.btn-linkedin:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.btn-linkedin:hover::before {
    left: 100%;
}

.btn-linkedin i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-linkedin:hover i {
    transform: rotate(360deg);
}

.btn-linkedin span {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(-5deg);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: rotate(0deg);
}

.hero-image-wrapper img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.1) translateX(-8%);
    transition: transform 0.3s ease;
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    transform: translateX(-50%);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1.5rem;
    width: 50px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    opacity: 0.5;
}

/* About Section */
.about-section {
    background: var(--background-main);
    position: relative;
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Education Section */
.education-section {
    background: var(--background-alt);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.education {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.education-item {
    background: var(--background-main);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.education-item h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.education-item .department {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.education-item .period {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Mobile Slider Styles */
@media (max-width: 768px) {
    .education {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 20px;
        margin: 0 -20px;
    }

    .education::-webkit-scrollbar {
        display: none;
    }

    .education {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .education-item {
        flex: 0 0 300px;
        scroll-snap-align: center;
        margin: 0 auto;
        min-width: 300px;
        transform: none;
    }

    .education-item:first-child {
        margin-left: auto;
    }

    .education-item:last-child {
        margin-right: auto;
    }

    .education-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .education-item {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 1.5rem;
    }

    .education-item h4 {
        font-size: 1.2rem;
    }

    .education-item .institution {
        font-size: 1rem;
    }

    .education-item .department {
        font-size: 0.95rem;
    }

    .education-item .period {
        font-size: 0.9rem;
    }
}

/* Skills Section */
.skills-section {
    background: var(--background-main);
    padding: 6rem 0;
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-item {
    background: var(--background-main);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.skill-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Experience Section */
.experience-section {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background-main) 100%);
    padding: 6rem 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

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

.timeline-content {
    background: var(--background-main);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    width: calc(50% - 30px);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    top: 30px;
    box-shadow: 0 0 0 4px var(--background-alt);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--gradient);
    top: 39px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -20px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -20px;
}

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

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.company {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.period {
    display: inline-block;
    background: var(--background-alt);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.area {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    background: var(--background-main);
    padding: 6rem 0;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--background-main);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.03;
    z-index: -1;
}

.project-content i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: var(--background-alt);
    padding: 6rem 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--background-main), transparent);
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gradient);
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--white);
    height: fit-content;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form {
    background: var(--background-main);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(83, 109, 254, 0.1);
    outline: none;
}

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

.form-status {
    margin-top: 1rem;
    text-align: center;
}

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

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-light);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 40px;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    color: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.theme-toggle i {
    transition: var(--transition);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    background: var(--gradient);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--background-main);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem;
        z-index: 999;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-color);
    }

    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

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

    .hero-image-container {
        order: -1;
        padding: 0.5rem;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
        border-radius: 50%;
        margin: 0 auto;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .hero-text {
        padding: 0 1rem;
    }

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

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-welcome {
        font-size: 0.8rem;
    }

    .skill-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .skill-icon {
        margin-bottom: 1rem;
    }

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

    .contact-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group textarea {
        height: 100px;
    }

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

    .timeline-content {
        padding: 1.5rem;
        width: calc(100% - 30px);
        margin-left: 30px !important;
    }

    .timeline-content::before {
        left: -25px !important;
        width: 15px;
        height: 15px;
    }

    .timeline-content::after {
        left: -10px !important;
        width: 10px;
    }

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

    .theme-toggle {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .nav-content {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        margin-left: 1rem;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-grid {
        gap: 2rem;
    }

    .education-section,
    .skills-section,
    .experience-section,
    .projects-section,
    .contact-section {
        padding: 3rem 0;
    }

    .education,
    .skills {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .education-item, .skill-item {
        margin-bottom: 0;
    }

    .skill-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skill-icon {
        margin-bottom: 1rem;
    }

    .skill-info {
        text-align: center;
    }

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

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .nav-links {
        background: var(--background-main);
    }
    
    [data-theme="dark"] .nav-links {
        background: var(--background-main);
    }

    .btn-linkedin {
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .nav-right {
        gap: 0.5rem;
    }
    
    .language-select {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}

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

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }

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

    .btn-linkedin {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item i {
        font-size: 1.1rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: contain;
}

/* Projects Section Updates */
.project-list,
.publications-list,
.certificates-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.project-list li,
.publications-list li,
.certificates-list li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
}

.project-list li::before,
.publications-list li::before,
.certificates-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.project-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .education {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-item {
        margin-bottom: 0;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-main);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid var(--background-main);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

[data-theme="dark"]::-webkit-scrollbar-track {
    background: var(--background-main);
    border-left: 1px solid var(--border-color);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border: 3px solid var(--background-main);
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.form-group .g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .form-group .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
    }
}

/* Base Mobile Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

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

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .education-item,
    .skill-item,
    .project-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
        width: calc(100% - 30px);
        margin-left: 30px !important;
    }

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

    .timeline-content::before {
        left: -25px !important;
        width: 15px;
        height: 15px;
    }

    .timeline-content::after {
        left: -10px !important;
        width: 10px;
    }

    .contact-content {
        padding: 0;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .theme-toggle,
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .theme-toggle {
        left: 15px;
        bottom: 15px;
    }

    .scroll-to-top {
        right: 15px;
        bottom: 15px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        padding: 1rem;
        width: 250px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        width: 25px;
        height: 20px;
    }

    .mobile-menu-btn span {
        height: 2px;
        margin: 4px 0;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
    }

    .projects-grid,
    .skills,
    .education {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-list li,
    .publications-list li,
    .certificates-list li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
}

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

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }

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

    .btn-linkedin {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item i {
        font-size: 1.1rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: contain;
}

.email-protect {
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.email-protect:hover {
    color: var(--accent-color);
}

.form-group input:disabled,
.form-group textarea:disabled {
    background-color: var(--background-alt);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.info {
    background-color: var(--background-alt);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Publications Slider Styles */
.publications-section {
    background: var(--background-main);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.publications-slider-container {
    position: relative;
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.publications-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 20px 0;
}

.publications-slider::-webkit-scrollbar {
    display: none;
}

.publication-card {
    background: var(--background-alt);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.publication-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.publication-content h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.publication-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.publication-link:hover {
    color: var(--secondary-color);
}

.presentation-badge {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow);
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .publications-slider {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .publications-slider {
        grid-auto-columns: 100%;
    }
    
    .publications-slider-container {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .publications-slider-container {
        padding: 0 35px;
    }

    .publication-card {
        min-width: 220px;
    }

    .publication-content {
        padding: 1.2rem;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
    }
}

.timeline-item.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.show-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    position: relative;
}

.show-more-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    opacity: 0.5;
}

#showMoreExperience {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

#showMoreExperience:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

#showMoreExperience.hidden {
    display: none;
} 