:root {
    --primary-color: #0dcaf0;
    --secondary-color: #0dcaf0;
    --secondary-color-darker: #0a9eb8;
    --text-dark-blue: #2c3e50;
    --text-grey: #555555;
    --text-soft-grey: #7f8c8d;
    --body-text-color: #444444;
    --white-color: #ffffff;
    --white-background: var(--white-color);
    --navbar-logo-icon-bg: #0dcaf0; /* Keeping this specific as it was a placeholder */

    /* Services Section Specific Colors */
    --service-icon-orange: #f39c12;
    --service-icon-blue: var(--primary-color);
    --service-icon-green: #198754; /* Bootstrap success green */
    --service-icon-bg-orange-light: rgba(243, 156, 18, 0.1);
    --service-icon-bg-blue-light: rgba(13, 202, 240, 0.1); /* primary-color with alpha */
    --service-icon-bg-green-light: rgba(25, 135, 84, 0.1); /* Bootstrap success green with alpha */
    --services-badge-bg: #e6f9ee; /* Light green for badge background */
    --services-badge-text: #28a745; /* Darker green for badge text */

    /* Resume Section Specific Colors */
    --resume-badge-bg: #e6f9ee; /* Same as services badge for consistency, or change if needed */
    --resume-badge-text: #28a745; /* Same as services badge text */
    --resume-item-bg-hover: #f8f9fa; /* Light background for expanded/hovered resume item */
    --resume-item-border: #e9ecef;
    --skill-tag-bg: #e9ecef;
    --skill-tag-text: var(--text-grey);

    /* Testimonial Section Specific Colors */
    --testimonial-title-color: #495a7d; /* A muted blue, adjust as needed */
    --testimonial-star-color: #ffc107; /* Standard Bootstrap warning/gold color for stars */
    --testimonial-arrow-bg: rgba(13, 202, 240, 0.15); /* Light primary color with opacity */
    --testimonial-arrow-icon-color: var(--primary-color);

    /* Freelance CTA Section Specific Colors */
    --cta-button-bg: #2c3e50; /* Dark blue, same as --text-dark-blue or a new specific one */
    --cta-button-text: var(--white-color);
    --cta-input-border: #ced4da; /* Standard Bootstrap input border */

    /* Projects Section Specific Colors & Styles */
    --projects-badge-bg: #e6f9ee; /* Light green, same as services/resume badge */
    --projects-badge-text: #28a745; /* Darker green */
    --project-card-bg: var(--white-color);
    --project-card-border: #e9ecef; /* Light border, similar to resume items */
    --project-card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.07);
    --project-card-shadow-hover: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
    --project-filter-active-bg: var(--primary-color);
    --project-filter-active-text: var(--white-color);
    --project-filter-text: var(--text-grey);
    --project-filter-hover-bg: #e9ecef; /* Light grey for hover on non-active filters */
    --project-tag-bg: rgba(13, 202, 240, 0.1); /* Light primary color background for tags */
    --project-tag-text: var(--primary-color);
    --project-link-color: var(--text-soft-grey);
    --project-link-hover-color: var(--primary-color);

    /* Contact Section Specific Colors & Styles */
    --contact-form-label-color: var(--text-dark-blue);
    --contact-form-input-border: #ced4da;
    --contact-form-input-focus-border: var(--primary-color);
    --contact-form-input-focus-shadow: rgba(13, 202, 240, 0.25);
    --contact-button-bg: var(--primary-color);
    --contact-button-text: var(--white-color);
    --contact-button-hover-bg: var(--secondary-color-darker);
    --contact-info-icon-bg: rgba(13, 202, 240, 0.1);
    --contact-info-icon-color: var(--primary-color);

    /* Footer Specific Colors (if needed, most are direct or rgba) */
    --footer-bg: #2c3e50; /* Example, can be set directly */
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-sub-text: rgba(255, 255, 255, 0.6);
    --footer-border-color: rgba(255, 255, 255, 0.1);
}

/* General Styles */
body {
    font-family: Georgia, serif;
    color: var(--body-text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: var(--secondary-color); /* Using Bootstrap cyan as a base for links */
}

a:hover {
    color: var(--secondary-color-darker);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
}

/* Navbar */
.site-navbar {
    border-top: 3px solid var(--primary-color); /* Orange top border */
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark-blue); /* Dark blue for logo text */
}

.navbar-brand .logo-icon {
    /* This is a placeholder for the S icon. You might want to use an SVG or an actual image */
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--navbar-logo-icon-bg); /* Placeholder icon color */
    color: var(--white-color);
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 5px;
}

.navbar-nav .nav-link {
    margin: 0 10px;
    color: var(--text-grey); /* Grey for nav links */
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color); /* Orange for hover/active link */
}

.btn-hire-me {
    background-color: var(--secondary-color); /* Light blue */
    color: var(--white-color);
    border-radius: 20px;
    padding: 8px 25px;
    transition: 0.3s;
    font-weight: 500;
}

.btn-hire-me:hover {
    background-color: var(--secondary-color-darker); /* Darker shade of light blue */
    color: var(--white-color);
}

/* Hero Section */
#hero {
    width: 100%;
    height: 700px;
    /* Updated background with image and gradient */
    background-image: 
        linear-gradient(111deg, 
            rgba(255, 255, 255, 1) 30%,  /* Opaque white on the far left for text readability */
            rgba(255, 255, 255, 0.904) 48%, /* Fading white */
            rgba(255, 255, 255, 0) 70%), /* Transparent to show image towards the right */
        url('../images/bg.jpg'); /* <<<<<<< REPLACE with your actual background image path here */
    background-size: cover;
    background-position: center center; /* Center the background image */
    background-repeat: no-repeat;
    padding-top: 80px; /* To offset fixed navbar */
    position: relative;
    overflow: hidden; /* To contain pseudo-elements if used for background */
}

#hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

#hero .sub-heading {
    color: var(--text-soft-grey); /* Soft grey */
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

#hero h1 {
    margin: 0 0 20px 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark-blue); /* Dark blue */
    text-align: center;
}

#hero .highlight-python {
    color: var(--text-dark-blue); /* Dark blue */
    border-bottom: 4px solid var(--primary-color); /* Orange underline */
    padding-bottom: 2px;
}

.btn-download-cv {
    font-family: "Georgia", serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    transition: 0.5s;
    color: var(--white-color);
    background: var(--secondary-color); /* Light blue */
    border: 2px solid var(--secondary-color);
}

.btn-download-cv:hover {
    background: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    color: var(--white-color);
}

.hero-img-container {
    position: relative;
    text-align: center; /* Center the image if it's smaller than the column */
}

.hero-person-img {
    max-width: 80%; /* Adjust as needed */
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 10px; /* Slight rounding if desired */
}

/* Code background for the right side of the hero section */
.hero-code-bg {
    position: absolute;
    top: 0;
    left: 0; /* Start from the left edge of its container */
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animation for hero image (optional, from template inspiration) */
.animated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Responsive adjustments */

@media (max-width: 1200px) {
    #hero{
        height: 550px;
    }
}

@media (max-width: 991px) {
    #hero {
        height: 100%;
        text-align: center;
        padding-top: 70px; /* Adjust for navbar */
    }

    #hero .hero-img-container {
        text-align: center;
        margin-top: 30px;
        order: 1;
    }

    #hero .hero-person-img {
        max-width: 70%;
    }

    #hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    #hero .sub-heading {
        font-size: 16px;
    }

    .navbar-nav {
        margin-top: 15px;
    }

    .btn-hire-me {
        margin-top: 10px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

/* About Section General */
.about-section {
    background-color: var(--white-color);
    /* padding: 60px 0; // py-5 from bootstrap handles this */
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    color: var(--text-dark-blue);
}



.personal-details-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color); /* Orange underline for Personal Details */
    bottom: 0;
    left: 0;
}

.skills-section .section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color); /* Main primary color for other section titles */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-section .lead {
    color: var(--text-grey);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Social Icons */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d4d4d4; /* Light grey border */
    color: var(--text-grey);
    margin-right: 10px;
    transition: all 0.3s ease-in-out;
}

.social-icons .social-icon:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.social-icons .social-icon i {
    font-size: 18px;
}

/* Personal Info List */
.personal-info li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-grey);
}

.personal-info li strong {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-dark-blue);
    width: 150px; /* Fixed width for labels */
    display: inline-block;
}

/* Skills Section */
.skill-card {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    text-align: left; /* Align text to the left as per image */
    transition: all 0.3s ease-in-out;
    height: 100%; /* Ensure cards in a row have same height if content differs */
    display: flex;
    align-items: center; /* Vertically align icon and text */
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
}

.skill-card .skill-icon {
    font-size: 36px; /* Size of the icon */
}
.skill-card .skill-icon.android-icon i { color: #a4c639; } /* Android Green */
.skill-card .skill-icon.angular-icon i { color: #dd0031; } /* Angular Red */
.skill-card .skill-icon.bootstrap-icon i { color: #7952b3; } /* Bootstrap Purple */
.skill-card .skill-icon.vue-icon i { color: #4FC08D; } /* Vue Green */
.skill-card .skill-icon.react-icon i { color: #61DAFB; } /* React Blue */
.skill-card .skill-icon.mongodb-icon i { color: #47A248; } /* MongoDB Green */
.skill-card .skill-icon.laravel-icon i { color: #FF2D20; } /* Laravel Red */
.skill-card .skill-icon.nodejs-icon i { color: #339933; } /* Node.js Green */


.skill-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark-blue);
}

.skill-card p {
    font-size: 14px;
    color: var(--text-soft-grey);
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    background-color: #f8f9fa; /* Or a very light grey if preferred */
}

.services-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px; /* Pill shape */
    background-color: var(--services-badge-bg);
    color: var(--services-badge-text);
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    height: 100%; /* Works with d-flex on parent col */
    /* text-align: center; is set in HTML */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 10px; /* Rounded square */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 20px; Spacing handled by card padding & h5 margin */
}

.service-icon-wrapper i {
    font-size: 32px;
}

.service-icon-wrapper.icon-bg-1 {
    background-color: var(--service-icon-bg-orange-light);
}
.service-icon-wrapper.icon-bg-1 i {
    color: var(--service-icon-orange);
}

.service-icon-wrapper.icon-bg-2 {
    background-color: var(--service-icon-bg-blue-light);
}
.service-icon-wrapper.icon-bg-2 i {
    color: var(--service-icon-blue);
}

.service-icon-wrapper.icon-bg-3 {
    background-color: var(--service-icon-bg-green-light);
}
.service-icon-wrapper.icon-bg-3 i {
    color: var(--service-icon-green);
}

.service-card h5 {
    font-weight: 600;
    color: var(--text-dark-blue);
    font-size: 1.1rem; /* Slightly smaller than default h5 if needed */
}

.service-card p.small {
    color: var(--text-grey);
    line-height: 1.6;
}

/* Resume Section (Education & Experience) */
.resume-section {
    background-color: var(--white-background);
}

.resume-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px; /* Pill shape */
    background-color: var(--resume-badge-bg);
    color: var(--resume-badge-text);
}

.resume-category-img {
    max-width: 150px; /* Adjust as needed */
    margin-bottom: 1rem;
}

.resume-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 2rem; /* Space below 'Education'/'Experience' titles */
}

.resume-item {
    border: 1px solid var(--resume-item-border);
    border-radius: 0.25rem;
    /* margin-bottom: 1rem; Handled by mb-3 on element */
}

.resume-item-header {
    margin-bottom: 0; /* Reset default h5 margin */
}

.resume-item-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark-blue);
    background-color: transparent;
    border: none;
    text-align: left;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.resume-item-toggle:hover,
.resume-item-toggle:not(.collapsed) {
    background-color: var(--resume-item-bg-hover);
}

.resume-item-toggle .resume-item-title {
    flex-grow: 1;
}

.resume-item-toggle .resume-item-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 1rem;
    white-space: nowrap;
}

.resume-item-toggle .toggle-icon-plus,
.resume-item-toggle .toggle-icon-minus {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: var(--primary-color);
}

.resume-item-toggle.collapsed .toggle-icon-minus,
.resume-item-toggle:not(.collapsed) .toggle-icon-plus {
    display: none;
}

.resume-item-toggle:not(.collapsed) .toggle-icon-minus {
    display: inline-block;
}

.resume-item-body {
    padding: 1rem 1.25rem;
    background-color: var(--resume-item-bg-hover);
    border-top: 1px solid var(--resume-item-border);
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.resume-item-body p {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
}

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

.resume-item-body strong {
    color: var(--text-dark-blue);
    font-weight: 600;
}

.skill-tags .skill-tag {
    display: inline-block;
    background-color: var(--skill-tag-bg);
    color: var(--skill-tag-text);
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa; /* Light grey background, similar to resume item hover */
    padding-top: 80px;
    padding-bottom: 80px;
}

.testimonial-main-title {
    font-family: 'Georgia', serif; /* Or another serif font if available/preferred */
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--testimonial-title-color);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--white-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-stars {
    color: var(--testimonial-star-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.testimonial-stars .bi {
    margin-right: 2px;
}

/* Custom Carousel Controls */
.custom-carousel-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--testimonial-arrow-bg);
    opacity: 1;
    transition: background-color 0.2s ease-in-out;
    top: 50%;
    transform: translateY(-50%);
}

.custom-carousel-control:hover {
    background-color: rgba(13, 202, 240, 0.3);
}

.custom-carousel-control .carousel-control-icon {
    background-image: none; /* Remove default Bootstrap icon */
    width: auto;
    height: auto;
}

.custom-carousel-control .carousel-control-icon i {
    font-size: 1.5rem;
    color: var(--testimonial-arrow-icon-color);
}

.carousel-control-prev.custom-carousel-control {
    left: -60px; /* Adjust position as needed */
}

.carousel-control-next.custom-carousel-control {
    right: -60px; /* Adjust position as needed */
}

.carousel-item{
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--resume-item-border);
}

/* Adjust control positions for smaller screens */
@media (max-width: 991.98px) {
    .carousel-control-prev.custom-carousel-control {
        left: 10px;
    }
    .carousel-control-next.custom-carousel-control {
        right: 10px;
    }
    .testimonial-main-title {
        font-size: 2.2rem;
    }
    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .testimonials-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .carousel-control-prev.custom-carousel-control,
    .carousel-control-next.custom-carousel-control {
        top: auto;
        bottom: 0; /* Position below carousel on small screens */
        transform: none;
    }
    .carousel-control-prev.custom-carousel-control {
        left: 35%;
    }
    .carousel-control-next.custom-carousel-control {
        right: 35%;
    }
    #testimonialCarousel .carousel-inner {
        padding-bottom: 60px; /* Space for controls */
    }
}

/* Freelance CTA Section */
.freelance-cta-section {
    background-color: var(--white-background); /* Or a very light grey if needed, e.g., #f8f9fa */
    overflow: hidden; /* To contain the graphic if it uses absolute positioning or bleeds out */
}

.freelance-cta-title {
    color: var(--text-dark-blue);
    /* font-weight: 700; Bootstrap fw-bold is used */
}

.freelance-cta-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
}

.cta-email-input {
    border-color: var(--cta-input-border);
    box-shadow: none; /* Remove default focus glow if not desired */
}

.cta-email-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25); /* Bootstrap focus style */
}

.btn-cta-freelance {
    background-color: var(--cta-button-bg);
    color: var(--cta-button-text);
    border-color: var(--cta-button-bg);
    padding: 0.55rem 1.5rem; /* Ensure it's large enough */
    font-weight: 500;
}

.btn-cta-freelance:hover,
.btn-cta-freelance:focus {
    background-color: #1a252f; /* Darker shade of --cta-button-bg */
    color: var(--cta-button-text);
    border-color: #1a252f;
}

.freelance-cta-graphic {
    max-height: 250px; /* Adjust as needed to fit the design */
    /* Add more styles if the graphic needs specific positioning or effects */
}

@media (max-width: 991.98px) {
    .freelance-cta-title {
        font-size: 2.2rem; /* Adjust for smaller screens */
    }
    .freelance-cta-subtitle {
        font-size: 1rem;
    }
    .freelance-cta-graphic {
        display: none; /* Hide graphic on medium screens if it causes layout issues, or adjust */
    }
}

@media (max-width: 767.98px) {
    .freelance-cta-title {
        font-size: 1.8rem; /* Further adjust for small screens */
    }
    .freelance-cta-section .display-5 {
        font-size: 2.5rem; /* Adjust Bootstrap's display-5 */
    }
}

/* Projects Section */
.projects-section {
    background-color: #f8f9fa; /* Light grey background */
}

.projects-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    background-color: var(--projects-badge-bg);
    color: var(--projects-badge-text);
}

/* Project Filter Navigation */
.project-filters .nav-link {
    color: var(--project-filter-text);
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 20px; /* Pill shape */
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.project-filters .nav-link:hover {
    background-color: var(--project-filter-hover-bg);
    color: var(--text-dark-blue);
}

.project-filters .nav-link.active {
    background-color: var(--project-filter-active-bg);
    color: var(--project-filter-active-text);
}

/* Project Cards */
.project-item {
    /* Used for JS filtering, initially all visible */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.project-item.hide {
    transform: scale(0.9);
    opacity: 0;
    display: none; /* Will be set by JS after transition */
}

.project-card {
    background-color: var(--project-card-bg);
    border: 1px solid var(--project-card-border);
    border-radius: 8px;
    padding: 20px;
    height: 100%; /* For equal height cards in a row */
    box-shadow: var(--project-card-shadow);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

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

.project-card-top {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 15px;
}

.project-tech-icon {
    width: 48px; /* Adjust size as needed */
    height: 48px;
    margin-right: 15px;
    object-fit: contain;
    background-color: #f0f0f0; /* Light grey background for icon container */
    padding: 8px;
    border-radius: 8px;
}

.project-details {
    flex-grow: 1;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 0.25rem;
}

.project-link {
    font-size: 0.85rem;
    color: var(--project-link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.project-link:hover {
    color: var(--project-link-hover-color);
    text-decoration: underline;
}

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

.project-tags {
    margin-top: auto; /* Pushes tags to the bottom if card is flex container */
}

.project-tag {
    display: inline-block;
    background-color: var(--project-tag-bg);
    color: var(--project-tag-text);
    padding: 0.3em 0.8em;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 15px; /* Pill shape */
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
    background-color: var(--white-background);
    position: relative; 
    overflow: hidden; /* To contain the pattern if it overflows */
}

.contact-section .section-title {
    color: var(--text-dark-blue);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--contact-form-label-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 1px solid var(--contact-form-input-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.25rem; /* Standard Bootstrap border-radius */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form .form-control:focus {
    border-color: var(--contact-form-input-focus-border);
    box-shadow: 0 0 0 0.25rem var(--contact-form-input-focus-shadow);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-contact-send {
    background-color: var(--contact-button-bg);
    border-color: var(--contact-button-bg);
    color: var(--contact-button-text);
    padding: 0.65rem 1.5rem; /* Adjusted padding to match image */
    font-weight: 500;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    width: 100%;
}

.btn-contact-send:hover {
    background-color: var(--contact-button-hover-bg);
    border-color: var(--contact-button-hover-bg);
    color: var(--contact-button-text);
}

.contact-illustration {
    max-width: 100%; /* Allow it to be responsive within its column */
    height: auto;
    margin-bottom: 2rem; /* Space below illustration */
}

.contact-info-wrapper {
    position: relative;
}

.contact-detail-item {
    /* Uses d-flex from Bootstrap in HTML */
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 44px; /* Slightly smaller to match image */
    height: 44px;
    background-color: var(--contact-info-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper i {
    color: var(--contact-info-icon-color);
    font-size: 1.25rem; /* Adjusted icon size */
}

.contact-info-title {
    font-size: 1.05rem; /* Adjusted size */
    font-weight: 500; /* Medium weight */
    color: var(--text-dark-blue);
}

.contact-info-subtitle {
    font-size: 0.85rem; /* Adjusted size */
    color: var(--text-grey);
}

.contact-pattern {
    position: absolute;
    bottom: -50px; 
    right: -20px; 
    max-width: 180px;
    opacity: 0.5; /* Slightly more subtle */
    z-index: 0; /* Ensure it's behind interactive elements if any overlap */
}

/* Responsive adjustments for Contact Section */

/* Footer Section */
.footer-section {
    background-color: #2c3e50; /* Dark blue from image - adjust if needed */
    /* The curved top border is complex and might require an SVG or pseudo-elements.
       For now, a straight top border or simple background.
       A more advanced approach for the curve:
       position: relative;
    */
}

/* Optional: If you want to attempt the curve with CSS (can be tricky and browser-dependent) */
/*
.footer-section::before {
    content: '';
    position: absolute;
    top: -50px; 
    left: 0;
    width: 100%;
    height: 50px; 
    background: #2c3e50; 
    border-top-left-radius: 50% 100%; 
    border-top-right-radius: 50% 100%;
    transform: scaleX(1.5); 
}
*/

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem; /* Adjust as per image */
    color: var(--white-color);
}

.footer-logo i {
    color: var(--primary-color); /* Icon color for logo */
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Slightly muted white */
    line-height: 1.6;
}

.footer-social-icons a i {
    font-size: 1.2rem;
    transition: color 0.2s ease-in-out;
}

.footer-social-icons a:hover i {
    color: var(--primary-color);
}

.footer-heading {
    font-size: 1rem; /* Slightly smaller than h5 */
    font-weight: 600;
    color: var(--white-color);
    text-transform: capitalize; /* 'Company', 'Information', 'More info' */
}

.footer-links li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
    /* background-color: #233140; /* Slightly darker if preferred */
}

.sub-footer p,
.sub-footer a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.sub-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.sub-footer .bi-heart-fill {
    color: var(--danger-color, #dc3545); /* Use Bootstrap danger or define custom */
}

/* Responsive adjustments for Footer */
@media (max-width: 991.98px) {
    .footer-social-icons {
        margin-bottom: 2rem;
    }
    .footer-heading {
        margin-top: 1rem; /* Add some space when columns stack */
    }
}

@media (max-width: 767.98px) {
    .footer-section {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    .footer-logo {
        font-size: 1.6rem;
    }
    .sub-footer .row > div {
        margin-bottom: 0.5rem;
    }
}

/* Responsive adjustments for Contact Section */
@media (max-width: 991.98px) {
    .contact-illustration {
        max-width: 250px; /* Control size on medium screens */
        margin-left: auto;
        margin-right: auto;
    }

    .contact-detail-item {
       text-align: left; 
    }
    .contact-detail-item .contact-icon-wrapper {
        margin-bottom: 0.5rem; /* Space if icon and text stack on very small screens */
    }
    .contact-pattern {
        /* display: none;  Let's try to keep it if it doesn't break layout */
        right: 0;
        bottom: -30px;
        max-width: 120px;
    }
}

@media (max-width: 767.98px) {
    .contact-section .section-title {
        font-size: 1.8rem; /* Adjusted for smaller screens */
    }
    .contact-form .form-control {
        font-size: 0.9rem;
    }
    .btn-contact-send {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%; /* Full width button on small screens */
    }
    .contact-illustration {
        max-width: 200px;
    }
    .contact-detail-item {
        flex-direction: column; /* Stack icon and text vertically */
        align-items: center; /* Center items in the column */
        text-align: center; /* Center text */
    }
     .contact-detail-item .contact-icon-wrapper {
        margin-right: 0 !important; /* Remove right margin when stacked */
        margin-bottom: 0.5rem;
    }
    .contact-pattern {
        display: none; /* Hide on very small screens if it's too much */
    }
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    visibility: hidden; /* Initially hidden */
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50px; /* Make it circular */
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 28px;
    color: var(--white-color);
    line-height: 0; /* Helps center icon if it's slightly off */
}

.back-to-top:hover {
    background: var(--secondary-color-darker);
    color: var(--white-color);
}

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

/* Preloader Styles Start */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff; /* Or your site's primary background */
    z-index: 99999; /* Ensure it's on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    border: 5px solid var(--primary-color); /* Light grey border */
    border-top: 5px solid var(--secondary-color-darker); /* Blue border for the spinning part */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Preloader Styles End */
