/* Timeline Date Tag - Global for all sections */
.timeline-date-alt {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better scrolling on mobile */
* {
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Cambria', 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    padding: 2rem 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    position: relative;
    animation: profilePulse 3s infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover img {
    transform: scale(1.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

@keyframes profilePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-menu li {
    margin-bottom: 0rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.3rem 1.25rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff;
}

.nav-link:hover,
.nav-link.active {
    background: none;
    color: #ffffff;
    transform: translateX(5px);
    border-left: 3px solid #ffffff;
    padding-left: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 3.5rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 60px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

/* Home Section */
.home-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1470115636492-6d2b56f9146d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Cambria', 'Georgia', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    color: #fff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 2.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #e5e7eb;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}

.floating-element {
    position: absolute;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    }

    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.about-content {
    text-align: center;
}

.timeline-content-about-me-subheader {
    text-align: left;
}

.timeline-content-about-me-subheader h3 {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* New About Section Styles */
.about-content-new {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-info {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.about-detail-row {
    display: flex;
    gap: 2rem;
}

.about-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.about-detail-item i {
    color: #60a5fa;
    font-size: 0.8rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.detail-value {
    color: var(--text-secondary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-item {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.about-image {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    animation: countUp 2s ease-out;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Me Section Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes for About Me section */
.about-info {
    opacity: 0;
}

.about-info.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.about-image {
    opacity: 0;
}

.about-image.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.about-detail-item,
.highlight-item {
    opacity: 0;
}

.about-detail-item.animate-fade-in,
.highlight-item.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Experience Section */
.experience-section {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;

}

.timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-left: 2rem;
    padding-left: 3.5rem;
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    position: absolute;
    left: 5px;
    top: 0;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.7rem;
    z-index: 2;
    white-space: nowrap;
}

.timeline-content {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.timeline-content:hover {
    transform: none;
    box-shadow: none;
}

.timeline-content h3 {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0; /* Remove any default margin */
}

.timeline-content li {
    color: var(--text-muted);
    margin-bottom: 0.3rem; /* Slightly increased for better readability */
    position: relative;
    padding-left: 1rem; /* Reduced from 1.5rem */
    line-height: 1.4; /* Better line height for alignment */
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.2em; /* Adjusted to align with text baseline */
    color: var(--accent-color);
    font-size: 1rem; /* Reduced from 1.2rem */
    line-height: 0.7; /* Set to 1 for consistent positioning */
    display: flex;
    align-items: flex-start;
}

/* Education Section */
.education-section {
    background: var(--bg-secondary);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -20px; /* Reduced from -50px */
    padding-left: 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 15px; /* Reduced from 35px */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.education-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 40px; /* Reduced from 70px */
}

.education-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.education-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 15px; /* Reduced from 35px */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 1;
    transform: translateX(-50%);
}

.education-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
}

.education-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.education-timeline .timeline-date-alt {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.education-timeline .timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.education-timeline .timeline-content h4 .location {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.education-timeline .timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.education-timeline .transcript-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.education-timeline .transcript-link:hover {
    text-decoration: underline;
}

/* Certifications Section */
.certifications-section {
    background: var(--bg-secondary);
}

.certifications-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.certifications-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.certifications-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 70px;
}

.certifications-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.certifications-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 8px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--accent-color);
    z-index: 1;
}

.certifications-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.certifications-timeline .cert-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0rem;
}

.certifications-timeline .cert-details ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.certifications-timeline .cert-details li {
    color: var(--text-muted);
    margin-bottom: 0.05rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.certifications-timeline .cert-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

.cert-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cert-link:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--accent-color-hover);
}

/* Skills Section */
.skills-section {
    background: var(--bg-primary);
}

.skills-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -20px; /* Reduced from -50px */
    padding-left: 0;
}

.skills-timeline::before {
    content: '';
    position: absolute;
    left: 15px; /* Reduced from 35px */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.skills-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.05rem;
    padding-left: 40px; /* Reduced from 70px */
}

.skills-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.skills-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 15px; /* Reduced from 35px */
    top: 4px;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--accent-color);
    z-index: 1;
}

.skills-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
    transition: none;

}

.skills-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.02rem;
}

.skills-timeline .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Add smooth transitions for skill progress bars */
.skill-progress {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Projects Section */
.projects-section {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-credits {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Projects Section with Timeline Style */
.projects-section {
    background: var(--bg-primary);
}

.projects-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.projects-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 70px;
}

.projects-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.projects-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 1;
    transform: translateX(-50%);
}

.projects-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
}

.projects-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.projects-timeline .timeline-date-alt {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.projects-timeline .timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.work-experience-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.work-experience-tech span {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-links-simple {
    display: flex;
    gap: 1rem;
}

.project-links-simple a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-links-simple a:hover {
    text-decoration: underline;
}

/* Interests Section */
.interests-section {
    background: var(--bg-secondary);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.interest-card {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.interest-card:hover::before {
    left: 100%;
}

.interest-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.interest-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
    transform: scale(1.2) rotate(10deg);
}

.interest-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.interest-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .interest-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .interest-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1001;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Project Bullet List Style */
.project-bullet-list {
    list-style-type: disc;
    margin-left: 1rem;
    margin-bottom: 0.4rem;
}

.project-bullet-list li {
    color: var(--text-secondary);
    margin-bottom: 0.05rem;
    line-height: 1.2;
    font-size: 1rem;
}

/* Mobile Toggle Button Styles - Hamburger Menu */
.mobile-toggle {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    left: auto !important;
    z-index: 1001 !important;
    width: 50px !important;
    height: 50px !important;
    background: #000000 !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.mobile-toggle:hover {
    background: #333333 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.1) !important;
}

.mobile-toggle:active {
    transform: scale(0.95) !important;
}

/* Hamburger Menu Lines */
.hamburger {
    width: 20px !important;
    height: 16px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.hamburger .line {
    width: 100% !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform-origin: center !important;
}

/* Animation states for hamburger lines */
.mobile-toggle.active .line1 {
    transform: translateY(7px) rotate(45deg) !important;
}

.mobile-toggle.active .line2 {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}

.mobile-toggle.active .line3 {
    transform: translateY(-7px) rotate(-45deg) !important;
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px !important;
    height: 50px !important;
    background: #000000 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.scroll-to-top:hover {
    transform: scale(1.1) !important;
    background: #333333 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.scroll-to-top:active {
    transform: scale(0.95) !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ================================= */

/* Extra Large Desktop Screens (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .hero-title {
        font-size: 5.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .hero-description {
        font-size: 1.3rem;
        max-width: 800px;
        margin: 0 auto 3.5rem;
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }

    .sidebar {
        width: 320px;
        padding: 2.5rem 2rem;
    }

    .main-content {
        margin-left: 320px;
    }

    .profile-image {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }

    .profile-name {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.8rem;
    }

    .timeline-content h4 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .stats {
        gap: 5rem;
    }

    .stat-item h3 {
        font-size: 3.5rem;
    }

    .stat-item p {
        font-size: 1.1rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3.5rem;
    }

    .interest-card {
        padding: 2.5rem;
    }

    .interest-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .interest-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .interest-description {
        font-size: 1.1rem;
    }

    .contact-content {
        gap: 5rem;
    }

    .contact-form {
        padding: 3rem;
    }
}

/* Large Desktop Screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 2.5rem;
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 3.5rem;
    }

    .timeline-content h3 {
        font-size: 1.6rem;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
    }

    .stats {
        gap: 4.5rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 3rem;
    }
}

/* Medium Desktop/Laptop Screens (1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 1024px;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4.2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.6rem;
        margin-bottom: 3rem;
    }

    .sidebar {
        width: 260px;
        padding: 2rem 1.5rem;
    }

    .main-content {
        margin-left: 260px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .stats {
        gap: 3.5rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .contact-content {
        gap: 3.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 1rem 1.25rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-toggle {
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .mobile-toggle:hover {
        transform: scale(1.1) !important;
        background: #333333 !important;
    }

    .scroll-to-top {
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }
}

/* =================================
   DEVICE-SPECIFIC MEDIA QUERIES
   ================================= */

/* High-DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
    .profile-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .hero-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .section-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation for Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
    .section {
        padding: 1.5rem 1rem;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-around;
    }

    .stat-item {
        min-width: 120px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .sidebar {
        width: 280px;
        padding: 1.5rem 1rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 0.4rem;
    }

    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Portrait Orientation for Tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .section {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .stat-item {
        max-width: 200px;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Landscape Orientation for Tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .stats {
        flex-direction: row;
        gap: 2.5rem;
        justify-content: space-around;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Specific Device Breakpoints */

/* iPhone SE and similar small devices */
@media (max-width: 375px) and (max-height: 667px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 1.8rem 1rem;
    }

    .interest-card {
        padding: 1.2rem 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

/* iPhone 12/13/14 and similar */
@media (min-width: 375px) and (max-width: 428px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section {
        padding: 2rem 1.2rem;
    }

    .interest-card {
        padding: 1.4rem 1rem;
    }
}

/* iPad Mini and similar tablets */
@media (min-width: 768px) and (max-width: 820px) {
    .sidebar {
        width: 260px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* iPad Pro and larger tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .sidebar {
        width: 300px;
        padding: 2rem 1.8rem;
    }

    .main-content {
        margin-left: 300px;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-element {
        animation: none !important;
    }

    .profile-image {
        animation: none !important;
    }

    .hero-title {
        animation: none !important;
    }

    .section {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .timeline-item {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .sidebar,
    .mobile-toggle,
    .scroll-to-top,
    .social-links,
    .background-elements {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
        min-height: auto;
        background: white !important;
    }

    .section-title {
        color: black !important;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        color: black !important;
    }

    .timeline-content,
    .interest-description,
    .contact-info {
        color: black !important;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card,
    .interest-card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Focus and Accessibility Improvements */
@media (prefers-color-scheme: dark) {
    :focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }
}

@media (prefers-color-scheme: light) {
    :focus {
        outline: 2px solid #000000;
        outline-offset: 2px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .timeline::before {
        background: currentColor;
    }

    .timeline-date,
    .project-tech span,
    .work-experience-tech span {
        border: 2px solid currentColor;
    }

    .nav-link:hover,
    .nav-link.active {
        background: currentColor;
        color: var(--bg-primary);
    }
}

/* =================================
   END RESPONSIVE DESIGN
   ================================= */

/* Sidebar Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0.8;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    /* Show mobile toggle button on tablets and mobile */
    .mobile-toggle {
        display: flex !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        will-change: transform;
        width: 280px;
        padding: 2rem 1.5rem;
        touch-action: pan-y; /* Allow vertical scrolling inside sidebar */
    }

    .sidebar.open {
        transform: translateX(0);
        animation: slideInFromLeft 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Backdrop overlay when sidebar is open */
    .sidebar.open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        animation: fadeIn 0.4s ease;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .section {
        padding: 3rem 2rem;
        min-height: auto;
    }

    .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.8rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        max-width: 700px;
        margin: 0 auto 3rem;
    }

    .section-title {
        font-size: 2.4rem;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .stats {
        gap: 3rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .interest-card {
        padding: 2rem;
    }

    .interest-icon {
        font-size: 3.2rem;
    }

    .timeline {
        margin-left: -30px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        left: 25px;
    }

    /* New About Section Responsive */
    .about-content-new {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-info {
        padding-right: 0;
    }

    .about-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-subtitle {
        font-size: 1.6rem;
        text-align: center;
    }

    .about-description {
        text-align: center;
    }

    /* Profile section adjustments for tablets */
    .profile-image {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* Tablet Portrait (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        min-height: 2.3rem;
    }

    .home-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .stats {
        flex-direction: row;
        gap: 2.5rem;
        justify-content: space-around;
    }

    .stat-item {
        text-align: center;
        flex: 1;
        max-width: 200px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .timeline-content li {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
    }

    .timeline-content li::before {
        position: relative;
        left: auto;
        top: auto;
        margin-right: 0.4rem;
        flex-shrink: 0;
        margin-top: 0.05em;
    }

    /* Work Experience section tablet alignment */
    .experience-section .timeline-item {
        padding-left: 2rem;
        margin-left: 0.5rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .interest-card {
        padding: 1.8rem;
    }

    .interest-icon {
        font-size: 3rem;
    }

    .interest-title {
        font-size: 1.4rem;
    }

    .interest-description {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile Landscape and Small Tablets (568px to 767px) */
@media (min-width: 568px) and (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.8rem;
        min-height: 2.2rem;
    }

    .home-section {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 500px;
        margin: 0 auto 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .section {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }

    .container {
        padding: 0 1.5rem;
    }

    .stats {
        flex-direction: row;
        gap: 1.8rem;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat-item {
        text-align: center;
        min-width: 150px;
        flex: 1;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .interest-card {
        padding: 1.8rem;
        margin: 0 0.5rem;
    }

    .interest-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .interest-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .interest-description {
        font-size: 0.95rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content h4 {
        font-size: 1.05rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .timeline-content li {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
    }

    .timeline-content li::before {
        position: relative;
        left: auto;
        top: auto;
        margin-right: 0.4rem;
        flex-shrink: 0;
        margin-top: 0.05em;
    }

    /* Work Experience section mobile landscape alignment */
    .experience-section .timeline-item {
        padding-left: 1.5rem;
        margin-left: 0;
    }

    .experience-section .timeline::before {
        left: 0.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Sidebar adjustments for mobile landscape */
    .sidebar {
        width: 100%;
        padding: 1.5rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
        margin-bottom: 1.2rem;
    }

    .profile-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.7rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (320px to 567px) */
@media (max-width: 567px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 1rem;
        min-height: 100vh;
    }

    .section-title {
        font-size: 1.95rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.65rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
        min-height: 2rem;
    }

    .hero-description {
        font-size: 1.05rem;
        max-width: 100%;
        margin: 0 auto 2rem;
        line-height: 1.6;
    }

    .home-section {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .profile-name {
        font-size: 1.35rem;
        margin-bottom: 0.8rem;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .nav-link i {
        margin-right: 0.5rem;
        width: 18px;
    }

    .social-links {
        gap: 0.5rem;
        justify-content: center;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        min-width: 44px;
        min-height: 44px;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .stat-item {
        text-align: center;
        width: 100%;
        max-width: 250px;
    }

    .stat-item h3 {
        font-size: 2.15rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        padding: 1rem;
        text-align: left;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-date {
        left: 0.5rem;
        transform: none;
        position: relative;
        margin-bottom: 1rem;
        font-size: 0.85rem;
        padding: 0.1rem 0.4rem;
    }

    .timeline-content h3 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content h4 {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .timeline-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .timeline-content li {
        padding-left: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.4;
        font-size: 1rem;
        display: flex;
        align-items: flex-start;
    }

    .timeline-content li::before {
        position: relative;
        left: auto;
        top: auto;
        font-size: 1rem;
        line-height: 1.4;
        margin-right: 0.4rem;
        flex-shrink: 0;
        margin-top: 0.05em;
    }

    /* New About Section Mobile */
    .about-image {
        max-width: 300px;
    }

    .about-subtitle {
        font-size: 1.55rem;
    }

    .about-description {
        font-size: 1.05rem;
    }

    .detail-label {
        min-width: 70px;
        font-size: 1.05rem;
    }

    .detail-value {
        font-size: 1.05rem;
    }

    .highlight-item {
        font-size: 1.05rem;
    }

    .projects-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .interest-card {
        padding: 1.5rem 1rem;
        margin: 0 0.2rem;
    }

    .interest-icon {
        font-size: 2.65rem;
        margin-bottom: 0.8rem;
    }

    .interest-title {
        font-size: 1.35rem;
        margin-bottom: 0.8rem;
    }

    .interest-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1.05rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1.05rem;
    }

    /* Enhanced mobile alignment for Education and Skills */
    .education-timeline .timeline-item,
    .skills-timeline .timeline-item,
    .projects-timeline .timeline-item,
    .certifications-timeline .timeline-item {
        padding-left: 1rem;
        margin-bottom: 1rem;
    }

    .education-timeline::before,
    .skills-timeline::before,
    .projects-timeline::before,
    .certifications-timeline::before {
        left: 0.3rem;
    }

    .education-timeline .timeline-item::before,
    .skills-timeline .timeline-item::before,
    .projects-timeline .timeline-item::before,
    .certifications-timeline .timeline-item::before {
        left: 0.3rem;
    }

    /* Work Experience section mobile alignment */
    .experience-section .timeline-item {
        padding-left: 1rem;
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .experience-section .timeline::before {
        left: 0.3rem;
    }

    .experience-section .timeline-item::before {
        left: 0.3rem;
    }

    .project-tech,
    .work-experience-tech {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }

    .project-tech span,
    .work-experience-tech span {
        padding: 0.1rem 0.4rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .project-links-simple {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .project-links-simple a {
        font-size: 0.95rem;
    }

    .cert-link {
        font-size: 0.85rem;
        padding: 1px 6px;
        margin-left: 5px;
    }

    /* Mobile overlay for better sidebar visibility */
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .sidebar.open::after {
        left: 100%;
    }

    /* Mobile menu adjustments */
    .mobile-toggle {
        width: 45px !important;
        height: 45px !important;
        top: 1rem !important;
        right: 1rem !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .hamburger {
        width: 18px !important;
        height: 14px !important;
    }

    .hamburger .line {
        height: 2px !important;
    }

    .mobile-toggle.active .line1 {
        transform: translateY(6px) rotate(45deg) !important;
    }

    .mobile-toggle.active .line3 {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    /* Scroll to top button mobile adjustments */
    .scroll-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
}

/* Extra Small Mobile Devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.8rem;
    }

    .section {
        padding: 1.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.2rem;
    }

    .hero-title {
        font-size: 2.35rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }

    .stat-item h3 {
        font-size: 1.95rem;
    }

    .interest-card {
        padding: 1.2rem 0.8rem;
    }

    .interest-icon {
        font-size: 2.35rem;
    }

    .interest-title {
        font-size: 1.25rem;
    }

    .interest-description {
        font-size: 0.95rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .timeline-content li {
        font-size: 0.95rem;
        padding-left: 0;
        display: flex;
        align-items: flex-start;
    }

    .timeline-content li::before {
        position: relative;
        top: auto;
        font-size: 0.95rem;
        margin-right: 0.4rem;
        flex-shrink: 0;
        margin-top: 0.05em;
    }

    /* Work Experience section extra small mobile alignment */
    .experience-section .timeline-item {
        padding-left: 1rem;
        margin-left: 0;
    }

    .experience-section .timeline::before {
        left: 0.3rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    .mobile-toggle {
        width: 42px !important;
        height: 42px !important;
        top: 0.8rem !important;
        right: 0.8rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .scroll-to-top {
        bottom: 0.8rem !important;
        right: 0.8rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 0.9rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}