:root {
    /* Light Mode (Default) */
    --primary-color: #ff9500;
    --primary-color-dark: #eea236;
    --text-color-darkest: #222;
    --text-color-dark: #333;
    --text-color-medium: #555;
    --text-color-muted: #666;
    --text-color-on-primary: #fff;
    --text-color-inverted: #f8f9fa; 
    --background-color-body: #f8f9fa;
    --background-color-sidebar: #ffffff;
    --background-color-section: #ffffff;
    --background-color-section2: #F8F9FA;
    --background-color-card: #ffffff;
    --background-color-input: #f8f9fa;
    --background-color-logo: #f8f9fa;
    --border-color-light: #e0e0e0;
    --border-color-medium: #ced4da;
    --border-color-primary: #f0ad4e;
    --shadow-color: rgba(0,0,0,0.07);
    --shadow-color-hover: rgba(0,0,0,0.1);
    --icon-color: #555;
}

body.dark-mode {
    /* Dark Mode */
    --primary-color: #f0ad4e; /* Primary might stay the same or be adjusted */
    --primary-color-dark: #eea236;
    --text-color-darkest: #f5f5f5;
    --text-color-dark: #e0e0e0;
    --text-color-medium: #b0b0b0;
    --text-color-muted: #909090;
    --text-color-on-primary: #111; 
    --text-color-inverted: #222;
    --background-color-body: #121212;
    --background-color-sidebar: #1e1e1e;
    --background-color-section: #1e1e1e;
    --background-color-section2: #272727;
    --background-color-card: #2a2a2a;
    --background-color-input: #2a2a2a;
    --background-color-logo: #2a2a2a;
    --border-color-light: #3a3a3a;
    --border-color-medium: #4a4a4a;
    --border-color-primary: #f0ad4e;
    --shadow-color: rgba(255,255,255,0.05);
    --shadow-color-hover: rgba(255,255,255,0.08);
    --icon-color: #b0b0b0;
}

:root {
    --primary-color: #f0ad4e;
    --primary-color-dark: #eea236;
    --text-color-darkest: #222;
    --text-color-dark: #333;
    --text-color-medium: #555;
    --text-color-muted: #666;
    --text-color-on-primary: #fff;
    --background-color-body: #f8f9fa;
    --background-color-sidebar: #ffffff;
    --background-color-logo: #f8f9fa;
    --border-color-light: #e0e0e0;
    --border-color-primary: #f0ad4e;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color-body);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

/* Sidebar */

.sidebar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--text-color-medium);
    font-size: 1.8rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1010;
}

.sidebar-toggler:hover {
    color: var(--primary-color);
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    background-color: var(--background-color-sidebar);
    border-right: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color-logo);
    border-radius: 50%;
    border: 2px solid var(--border-color-primary);
}

.text-logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.sidebar .nav-link {
    color: var(--text-color-medium);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 15px 5px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: var(--primary-color);
}

.theme-toggle {
    padding-bottom: 20px;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--icon-color);
    font-size: 1.5rem;
    color: var(--text-color-medium);
}

/* Main Content Area */
.main-content {
    margin-left: 100px;
    padding: 0;
    position: relative;
}

.top-bar {
    position: absolute;
    top: 20px;
    z-index: 900;
}

.top-bar a {
    color: rgb(32, 32, 32);
    margin-left: 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('../images/img3.jpg') no-repeat center center/cover;
    display: flex;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    color: var(--text-color-dark);
}

.hero-content-container {
    max-width: 700px;
}

.hero-section .intro-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
}

.hero-section .intro-text i {
    color: var(--primary-color);
    margin-right: 8px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgb(48, 48, 48);
}

.hero-section h1 strong {
    font-weight: 700;
    border-bottom: 4px solid var(--border-color-primary);
    padding-bottom: 2px;
}

.hero-section .description-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.more-about-me-btn {
    background-color: var(--primary-color);
    border-color: var(--border-color-primary);
    color:white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.more-about-me-btn i {
    margin-right: 8px;
}

.more-about-me-btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-color-on-primary);
}

/* Contact Info Footer within Hero */
.contact-info-footer {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 40px;
}

.contact-info-footer div {
    font-size: 0.9rem;
}

.contact-info-footer strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
    font-size: 20px;
}

.contact-info-footer p {
    color: #666;
    margin: 0;
    font-size: 16px;
}


/* General Card & Section Backgrounds */
.about-section,
.projects-section,
.contact-section {
    background-color: var(--background-color-section);
}

.services-section,
.testimonials-section,.site-footer,.contact-form {
    background-color: var(--background-color-section2);
}

.stat-item,
.service-item,
.project-item,
.testimonial-item,
.contact-form,
.contact-info {
    background-color: var(--background-color-card);
    border-color: var(--border-color-light);
}

.contact-form .form-control {
    background-color: var(--background-color-section2);
    border: 1px solid var(--border-color-medium);
    color: var(--text-color-dark);
}

.form-control::placeholder{
    color: var(--text-color-dark);
}

.contact-form .form-control:focus {
    background-color: var(--background-color-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.25);
    color: var(--text-color-darkest);
}

.resume-item {
    background-color: var(--background-color-input);
}

.project-link {
    background-color: var(--background-color-input); 
    color: var(--text-color-medium);
}

.project-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color-on-primary);
}

.social-links-contact a {
    background-color: var(--background-color-input);
    color: var(--text-color-medium);
}

.social-links-contact a:hover {
    background-color: var(--primary-color);
    color: var(--text-color-on-primary);
}

#testimonialCarousel .carousel-indicators button {
    background-color: var(--border-color-medium);
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--primary-color); 
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-darkest);
    margin-bottom: 10px;
}

.section-title h2 .fa-circle {
    font-size: 0.7em;
    vertical-align: middle;
}

.section-title .lead {
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 0;
}

.about-image-container img {
    border-radius: 15px;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.about-content p {
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-color-muted);
}

.about-content strong {
    color: var(--text-color-dark);
}

.download-cv-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.download-cv-btn:hover {
    background-color: #eea236;
    border-color: #eea236;
    color: #fff;
}

.stats-row {
    margin-top: 50px;
}

.stat-item {
    background-color: var(--background-color-section2);
    border: 1px solid var(--border-color-medium);
    padding: 20px;
    border-radius: 10px;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-color-dark);
    margin-bottom: 0;
}

.text-warning {
    color: var(--primary-color) !important;
}

/* Resume (Experience & Education) Styles */
.resume-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color-darkest);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.resume-item {
    padding: 20px;
    background-color: var(--background-color-section2);
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    border-radius: 0 8px 8px 0;
}

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

.resume-icon {
    position: absolute;
    left: -18px;
    top: 20px;
    background-color: var(--primary-color);
    color: var(--text-color-inverted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--background-color-section);
}

.resume-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 5px;
    margin-left: 25px;
}

.resume-item h5 {
    font-size: 0.95rem;
    background: rgba(240, 173, 78, 0.1);
    padding: 3px 10px;
    display: inline-block;
    font-weight: 500;
    margin-bottom: 10px;
    border-radius: 4px;
    margin-left: 25px;
    color: var(--text-color-dark);
}

.resume-date {
    font-style: italic;
    font-size: 0.9em;
}

.resume-item p {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    line-height: 1.6;
    margin-left: 25px;
    margin-bottom: 0;
}

.service-item {
    background-color: var(--background-color-section);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.service-icon img {
    max-height: 120px;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color-medium);
}

.project-item {
    background-color: var(--background-color-section2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

.project-image {
    height: 220px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.project-content {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}

.project-content p {
    font-size: 0.85rem;
    color: var(--text-color-medium);
    margin-bottom: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #343a40;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.project-link i {
    font-size: 0.9rem;
}

.testimonial-item {
    background-color:var(--background-color-section);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 20px;
    margin-bottom: 20px;
}

.testimonial-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-item .small {
    font-size: 0.85rem;
}

/* Carousel Indicators Styling */
#testimonialCarousel .carousel-indicators button {
    background-color: #ccc;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 5px;
    border: none;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
}

#testimonialCarousel .carousel-inner {
    padding-bottom: 30px;
}

.carousel-inner.active-drag {
    cursor: grabbing;
}

.contact-form .form-control,
.contact-info {
    border-radius: 10px;
}

.contact-form{
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
     rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
      rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    }

.contact-form .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.25);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.send-message-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: var(--primary-color);
    width: 100%;
}

.send-message-btn i {
    font-size: 0.9em;
}

.contact-info h3 {
    font-weight: 600;
}

.contact-details li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-details li i {
    font-size: 1.2rem;
    width: 30px;
}

.social-links-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    margin-right: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links-contact a:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* Site Footer Styles */
.site-footer {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color-light);
}
/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    /* Animation */
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}


@media (max-width: 576px) {
    .hero-section h1, .section-title h2 {
        font-size: 2rem;
    }
    .more-about-me-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .contact-info-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .top-bar a {
        font-size: 0.9rem;
        margin-left: 10px;
    }

    .sidebar-logo{
        width: 50px;
        height: 50px;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--text-color-on-primary);
    text-align: center;
    line-height: 45px;
    font-size: 1.2rem;
    border-radius: 50%;
    z-index: 999;
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-color-on-primary);
}

.back-to-top-btn.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Page Loader Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Responsive Adjustments */

@media (max-width: 1400px) {
    .sidebar .nav-link{
        padding: 5px 5px;
        font-size: 0.7rem;
    }
    }
    
    @media (max-width: 992px) {
        .sidebar {
            width: 100%;
            height: auto;
            flex-direction: row;
            justify-content: space-between;
            padding: 10px 20px;
            border-right: none;
            border-bottom: 1px solid var(--border-color-light);
            position: fixed;
            top: 0;
            left: 0;
        }
    
        .sidebar-logo {
            margin-bottom: 0;
            order: 1;
        }
    
        .sidebar-toggler {
            display: block;
            position: static;
            order: 2;
        }
    
        #sidebarNavLinks {
            display: none;
            flex-direction: column;
            width: 100%;
            background-color: var(--background-color-sidebar);
            position: absolute;
            top: 70px;
            left: 0;
            border-top: 1px solid var(--border-color-light);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 10px 0;
            z-index: 1000;
        }
    
        #sidebarNavLinks.active {
            display: flex;
        }
    
        .sidebar .nav-link {
            writing-mode: horizontal-tb;
            text-orientation: mixed;
            transform: none;
            padding: 10px 20px;
            margin-bottom: 0;
            border-bottom: 1px solid var(--border-color-light);
            text-align: left;
        }
        .sidebar .nav-link:last-child {
            border-bottom: none;
        }
    
        .main-content {
            margin-left: 0;
            padding-top: 70px;
        }
    
        .theme-toggle {
            order: 3;
            padding-bottom: 0;
        }
    
        .hero-section {
            align-items: center;
            text-align: center;
        }
    
        .contact-info-footer {
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            justify-content: space-around;
            bottom: 20px;
            gap: 10px;
        }
        .contact-info-footer div {
            text-align: center;
        }
    
        .hero-section{
            height: 700px;
            background-position: left center;
        }
    
    }
    
    @media (max-width: 768px) {
        .sidebar {
            width: 100%;
            height: auto;
            flex-direction: row;
            padding: 10px 15px;
            border-right: none;
            border-bottom: 1px solid #e0e0e0;
        }
        .sidebar-logo img {
            margin-bottom: 0;
            width: 40px;
        }
        .sidebar .nav {
            flex-direction: row !important;
        }
        .sidebar .nav-link {
            writing-mode: horizontal-tb;
            transform: none;
            padding: 10px;
            font-size: 0.8rem;
            margin-bottom: 0;
            margin-right: 5px;
        }
        .theme-toggle {
            margin-top: 0;
            padding-bottom: 0;
            padding-left: 10px;
        }
        .main-content {
            margin-left: 0;
        }
        .hero-section h1 {
            font-size: 2.5rem;
        }
    }