/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8vh; /* Accounts for fixed header */
}

body {
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Home Section */
.home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(44, 62, 80, 0.85),
        rgba(44, 62, 80, 0.95)
    );
    z-index: -1;
}

.home-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Home Section Social Links */
.home .social-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.home .social-links a {
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home .social-links a:hover {
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive Home Social Links */
@media screen and (max-width: 768px) {
    .home .social-links {
        margin: 1.2rem 0;
        gap: 1rem;
    }

    .home .social-links a {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .home .social-links {
        margin: 1rem 0;
        gap: 0.8rem;
    }

    .home .social-links a {
        font-size: 1.1rem;
    }
}

/* Landscape Mode Home Social Links */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .home .social-links {
        margin: 0.8rem 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0 1rem;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #2c3e50;
}

/* Sections */
section {
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
}

.skills li {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

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

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

.timeline-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: calc(50% - 30px);
    margin-left: auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

.timeline-content .employment-type {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.3rem 0;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-item {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

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

.cert-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.cert-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.cert-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.cert-link i {
    font-size: 0.8rem;
    margin: 0;
}

.cert-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: white;
    padding: 0 0.5rem;
    border-radius: 8px;
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background-color: white;
    padding: 0 0.5rem;
    color: #3498db;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Dark Mode Footer */
body.dark-mode footer {
    background-color: #44475a;
    border-top: 1px solid rgba(189, 147, 249, 0.1);
}

/* Mobile Responsive Footer */
@media screen and (max-width: 768px) {
    footer {
        padding: 0.8rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 0.6rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav {
        padding: 0 1rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    body.dark-mode nav {
        background-color: rgba(40, 42, 54, 0.98);
    }

    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding: 2rem;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    body.dark-mode .nav-links {
        background-color: rgba(40, 42, 54, 0.98);
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    /* Burger Animation */
    .burger.toggle div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    /* When menu is active */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .home-content,
    body.menu-open section,
    body.menu-open footer {
        opacity: 0.3;
        transition: opacity 0.3s ease;
    }

    body.menu-open .nav-links {
        opacity: 1;
    }

    /* Adjust content to account for fixed nav */
    .home {
        padding-top: 8vh;
    }

    section {
        padding-top: calc(5rem + 8vh);
    }

    /* Home Section */
    .home {
        padding: 0 1rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 0.15rem;
    }

    .home-content p {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
        padding: 1rem 2rem;
    }

    /* Sections */
    section {
        padding: 4rem 1rem;
    }

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

    /* About Section */
    .about-content {
        padding: 0 1rem;
    }

    .skills ul {
        gap: 0.8rem;
    }

    .skills li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Timeline */
    .timeline {
        padding: 1rem 0;
    }

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

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

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

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .timeline-content ul {
        margin-left: 0.5rem;
    }

    .timeline-content ul li {
        font-size: 0.95rem;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-category {
        padding: 1.5rem;
    }

    .skill-item {
        margin-bottom: 1.2rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .contact-info {
        margin-top: 2rem;
        padding: 1rem;
    }

    .info-item {
        padding: 0.8rem;
        background-color: #f8f9fa;
        border-radius: 5px;
    }

    /* Certifications Section */
    .cert-item {
        padding: 1.5rem;
    }

    .cert-item h3 {
        font-size: 1.2rem;
    }

    .cert-item i {
        font-size: 2rem;
    }

    .cert-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 0.8rem;
    }

    .social-links {
        margin-bottom: 0.3rem;
    }

    .social-links a {
        font-size: 1.1rem;
        margin: 0 0.6rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* Additional Mobile Breakpoints */
@media screen and (max-width: 480px) {
    nav {
        padding: 0 0.5rem;
    }

    .nav-links {
        padding: 1rem;
    }

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

    .burger div {
        width: 20px;
        height: 2px;
    }

    .home-content h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.1rem;
    }

    .home-content p {
        font-size: 1rem;
        line-height: 1.2;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-content {
        padding: 0 0.5rem;
    }

    .skills ul {
        gap: 0.5rem;
    }

    .skills li {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content ul {
        padding-left: 1rem;
    }

    .education-item, .cert-item {
        padding: 1.2rem;
    }

    .cert-item h3 {
        font-size: 1.1rem;
    }

    .cert-item i {
        font-size: 1.8rem;
    }

    .cert-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .info-item {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .social-links a {
        font-size: 1rem;
        margin: 0 0.5rem;
    }

    footer {
        padding: 0.6rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* Tablet Specific Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }

    .home-content h1 {
        font-size: 3rem;
    }

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

    .timeline-content {
        width: calc(50% - 20px);
        padding: 1.8rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

/* Landscape Mode Adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    nav {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        padding: 1rem;
    }

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

    .nav-links a {
        font-size: 1rem;
    }

    .home {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        width: auto;
        min-width: 150px;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .background-animation {
        background-size: 200% 200%;
    }
}

/* Print Styles */
@media print {
    .nav-links, .burger, .cta-buttons, .contact-form {
        display: none;
    }

    .home {
        height: auto;
        background: none;
        padding: 2rem;
    }

    .background-animation,
    .background-overlay {
        display: none;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem;
    }

    .progress-bar {
        border: 1px solid #000;
    }

    .progress {
        background: none;
        border: 1px solid #000;
    }

    .skills-container {
        display: block;
    }

    .skills-category {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .home-content h1,
    .home-content p {
        color: #333;
        text-shadow: none;
    }
}

/* Animation Classes */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Skills Section */
.skills-section {
    background-color: #f8f9fa;
}

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

.skills-category {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Animation for progress bars */
.skills-section.visible .progress {
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}

/* Responsive adjustments for skills section */
@media screen and (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skills-category {
        padding: 1.5rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle i {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.5s ease;
}

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

/* Dark Mode Theme Toggle */
body.dark-mode .theme-toggle {
    background-color: #bd93f9;
    box-shadow: 0 2px 10px rgba(189, 147, 249, 0.3);
}

body.dark-mode .theme-toggle:hover {
    box-shadow: 0 4px 15px rgba(189, 147, 249, 0.4);
}

body.dark-mode .theme-toggle i {
    color: #282a36;
}

/* Mobile Responsive Theme Toggle */
@media screen and (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .theme-toggle i {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }
}

/* Print Styles for Theme Toggle */
@media print {
    .theme-toggle {
        display: none;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #282a36;
    color: #f8f8f2;
}

body.dark-mode nav {
    background-color: rgba(40, 42, 54, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

body.dark-mode .logo {
    color: #f8f8f2;
    font-weight: 600;
}

body.dark-mode .nav-links a {
    color: #f8f8f2;
    font-weight: 500;
}

body.dark-mode .nav-links a:hover {
    color: #bd93f9;
    text-shadow: 0 0 8px rgba(189, 147, 249, 0.5);
}

body.dark-mode section {
    background-color: #282a36;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.dark-mode section.visible {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode section h2 {
    color: #f8f8f2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .about {
    background-color: #282a36;
}

body.dark-mode .about h2 {
    color: #f8f8f2;
}

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

body.dark-mode .about-content {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

body.dark-mode .about-content:hover {
    transform: none;
    box-shadow: none;
}

body.dark-mode .skills li {
    background-color: #bd93f9;
    color: #282a36;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(189, 147, 249, 0.3);
}

body.dark-mode .progress-bar {
    background-color: #44475a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .progress {
    background: linear-gradient(90deg, #bd93f9, #ff79c6);
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

body.dark-mode .cert-item i {
    color: #bd93f9;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

body.dark-mode .cert-link {
    color: #bd93f9;
    border-color: #bd93f9;
    background-color: transparent;
    transition: all 0.3s ease;
}

body.dark-mode .cert-link:hover {
    background-color: #bd93f9;
    color: #282a36;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(189, 147, 249, 0.3);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #44475a;
    border-color: #6272a4;
    color: #f8f8f2;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #bd93f9;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.2);
}

body.dark-mode .form-group label {
    background-color: #44475a;
    color: #6272a4;
    border-radius: 8px;
}

body.dark-mode .form-group input:focus ~ label,
body.dark-mode .form-group textarea:focus ~ label,
body.dark-mode .form-group input:valid ~ label,
body.dark-mode .form-group textarea:valid ~ label {
    color: #bd93f9;
    background-color: #44475a;
}

body.dark-mode .info-item {
    background-color: transparent;
    color: #f8f8f2;
    border: none;
    transition: transform 0.3s ease;
    padding: 0.2rem 0;
}

body.dark-mode .info-item:hover {
    transform: translateX(5px);
}

body.dark-mode .info-item i {
    color: #bd93f9;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
}

body.dark-mode footer {
    background-color: #44475a;
    border-top: 1px solid rgba(189, 147, 249, 0.1);
}

body.dark-mode .social-links a {
    color: #f8f8f2;
    transition: all 0.3s ease;
}

body.dark-mode .social-links a:hover {
    color: #bd93f9;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

body.dark-mode .btn {
    border-color: #bd93f9;
    color: #bd93f9;
    background-color: transparent;
    transition: all 0.3s ease;
}

body.dark-mode .btn:hover {
    background-color: #bd93f9;
    color: #282a36;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(189, 147, 249, 0.3);
}

/* Dark Mode Mobile Menu */
body.dark-mode .nav-links {
    background-color: rgba(40, 42, 54, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(189, 147, 249, 0.1);
}

body.dark-mode .menu-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

body.dark-mode .burger div {
    background-color: #f8f8f2;
}

/* Dark Mode Print Styles */
@media print {
    body.dark-mode {
        background-color: white;
        color: #333;
    }

    body.dark-mode .progress-bar {
        border: 1px solid #000;
    }

    body.dark-mode .progress {
        background: none;
        border: 1px solid #000;
    }
}

/* Theme Toggle Animation */
.theme-toggle i {
    transition: transform 0.5s ease;
}

body.dark-mode .theme-toggle i {
    transform: rotate(360deg);
}

/* Dark Mode Scrollbar */
body.dark-mode::-webkit-scrollbar {
    width: 10px;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #282a36;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #44475a;
    border-radius: 5px;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #6272a4;
}

/* Dark Mode Skills Section */
body.dark-mode .skills-section {
    background-color: #282a36;
}

body.dark-mode .skills-category {
    background-color: #44475a;
    border: 1px solid rgba(189, 147, 249, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .skills-category h3 {
    color: #f8f8f2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .skill-info {
    color: #f8f8f2;
}

body.dark-mode .progress-bar {
    background-color: #44475a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .progress {
    background: linear-gradient(90deg, #bd93f9, #ff79c6);
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

/* Dark Mode Certifications Section */
body.dark-mode .cert-grid {
    gap: 2rem;
}

body.dark-mode .cert-item {
    background-color: #44475a;
    border: 1px solid rgba(189, 147, 249, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body.dark-mode .cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(189, 147, 249, 0.3);
}

body.dark-mode .cert-item h3 {
    color: #f8f8f2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cert-item p {
    color: #f8f8f2;
    opacity: 0.9;
}

body.dark-mode .cert-item i {
    color: #bd93f9;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
    transition: transform 0.3s ease;
}

body.dark-mode .cert-item:hover i {
    transform: scale(1.1);
}

body.dark-mode .cert-link {
    color: #bd93f9;
    border-color: #bd93f9;
    background-color: transparent;
    transition: all 0.3s ease;
}

body.dark-mode .cert-link:hover {
    background-color: #bd93f9;
    color: #282a36;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(189, 147, 249, 0.3);
}

/* Dark Mode Skills List */
body.dark-mode .skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark-mode .skills li {
    background-color: #bd93f9;
    color: #282a36;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(189, 147, 249, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .skills li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(189, 147, 249, 0.4);
    background-color: #ff79c6;
}

/* Dark Mode Skills Category Hover */
body.dark-mode .skills-category:hover {
    border-color: rgba(189, 147, 249, 0.3);
}

/* Dark Mode Skills Progress Animation */
body.dark-mode .skills-section.visible .progress {
    animation: fillProgressDark 1.5s ease-out forwards;
}

@keyframes fillProgressDark {
    from {
        width: 0;
        box-shadow: 0 0 5px rgba(189, 147, 249, 0.3);
    }
    to {
        box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
    }
}

/* Dark Mode Mobile Adjustments */
@media screen and (max-width: 768px) {
    body.dark-mode .cert-item {
        padding: 1.5rem;
    }

    body.dark-mode .cert-item h3 {
        font-size: 1.2rem;
    }

    body.dark-mode .cert-item p {
        font-size: 0.9rem;
    }

    body.dark-mode .cert-item i {
        font-size: 2rem;
    }

    body.dark-mode .cert-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    body.dark-mode .skills li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Dark Mode Print Styles */
@media print {
    body.dark-mode .skills-category,
    body.dark-mode .cert-item {
        background-color: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    body.dark-mode .skills-category h3,
    body.dark-mode .cert-item h3 {
        color: #333;
        text-shadow: none;
    }

    body.dark-mode .skills li {
        background-color: #f0f0f0;
        color: #333;
        box-shadow: none;
    }

    body.dark-mode .progress-bar {
        border: 1px solid #000;
    }

    body.dark-mode .progress {
        background: none;
        border: 1px solid #000;
    }
}

/* Dark Mode Home Section */
body.dark-mode .background-overlay {
    background: linear-gradient(
        rgba(40, 42, 54, 0.85),
        rgba(40, 42, 54, 0.95)
    );
}

/* Dark Mode Timeline */
body.dark-mode .timeline::before {
    background-color: #bd93f9;
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

body.dark-mode .timeline-content {
    background-color: #44475a;
    border: 1px solid rgba(189, 147, 249, 0.1);
}

body.dark-mode .timeline-content h3 {
    color: #f8f8f2;
}

body.dark-mode .timeline-content p,
body.dark-mode .timeline-content ul li {
    color: #f8f8f2;
    opacity: 0.9;
}

/* Dark Mode Education Section */
body.dark-mode .education-grid {
    gap: 2rem;
}

body.dark-mode .education-item {
    background-color: #44475a;
    border: 1px solid rgba(189, 147, 249, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body.dark-mode .education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(189, 147, 249, 0.3);
}

body.dark-mode .education-item h3 {
    color: #f8f8f2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .education-item p {
    color: #f8f8f2;
    opacity: 0.9;
}

body.dark-mode .education-item i {
    color: #bd93f9;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
    transition: transform 0.3s ease;
}

body.dark-mode .education-item:hover i {
    transform: scale(1.1);
}

/* Mobile Responsive Dark Mode Education */
@media screen and (max-width: 768px) {
    body.dark-mode .education-item {
        padding: 1.5rem;
    }

    body.dark-mode .education-item h3 {
        font-size: 1.2rem;
    }

    body.dark-mode .education-item p {
        font-size: 0.9rem;
    }

    body.dark-mode .education-item i {
        font-size: 2rem;
    }
}

/* Print Styles for Dark Mode Education */
@media print {
    body.dark-mode .education-item {
        background-color: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    body.dark-mode .education-item h3 {
        color: #333;
        text-shadow: none;
    }

    body.dark-mode .education-item p {
        color: #333;
        opacity: 1;
    }

    body.dark-mode .education-item i {
        color: #333;
        text-shadow: none;
    }
}

/* Mobile Responsive Dark Mode Contact Info */
@media screen and (max-width: 768px) {
    body.dark-mode .info-item {
        padding: 0.15rem 0;
    }
}

@media screen and (max-width: 480px) {
    body.dark-mode .info-item {
        padding: 0.1rem 0;
        font-size: 0.9rem;
    }
}

/* Contact Form Submit Button */
.submit-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Dark Mode Submit Button */
body.dark-mode .submit-btn {
    background-color: #bd93f9;
    color: #282a36;
}

body.dark-mode .submit-btn:hover {
    background-color: #a67ee9;
    box-shadow: 0 4px 15px rgba(189, 147, 249, 0.3);
}

/* Mobile Responsive Submit Button */
@media screen and (max-width: 768px) {
    .submit-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

.job-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.employment-type {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Dark mode styles */
body.dark-mode .job-header h3 {
    color: #f8f9fa;
}

body.dark-mode .employment-type {
    background-color: #bd93f9;
    color: #282a36;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .job-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .job-header h3 {
        font-size: 1.3rem;
    }
    
    .employment-type {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .job-header h3 {
        font-size: 1.2rem;
    }
    
    .employment-type {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
} 