/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    /* Changed to light gray for dark background */
    overflow-x: hidden;
    background-color: #212121;
    /* Dark background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #212121;
    /* Dark background for navbar */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
    /* Subtle border */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-img {
    height: 100px;
    width: auto;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #f8f9fa;
    /* Changed to white */
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00BFFF;
    /* Blue accent */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00BFFF;
    /* Blue accent */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #f8f9fa;
    /* Changed to white */
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #212121 0%, #333333 100%);
    /* Dark gradient */
}

.hero-container {
    /* New container for better alignment */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 50px;
    /* Adjust padding to accommodate fixed nav */
}

.hero-content {
    display: flex;
    /* Use flexbox for content within hero-content */
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    text-align: left;
    /* Align text to the left */
}

.hero-title {
    font-size: 3.8rem;
    /* Slightly larger for impact */
    font-weight: 700;
    line-height: 1.1;
    /* Tighter line height */
    color: #f8f9fa;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    /* Slightly smaller for balance */
    color: #cccccc;
    margin-bottom: 2.5rem;
    /* More space below subtitle */
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    /* Increased gap for buttons */
}

.btn {
    padding: 14px 35px;
    /* Larger buttons */
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #00BFFF;
    color: white;
}

.btn-primary:hover {
    background: #0099CC;
    transform: translateY(-3px);
    /* More pronounced hover effect */
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.4);
    /* Stronger shadow */
}

.btn-secondary {
    background: transparent;
    color: #00BFFF;
    border: 2px solid #00BFFF;
}

.btn-secondary:hover {
    background: #00BFFF;
    color: white;
    transform: translateY(-3px);
    /* More pronounced hover effect */
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.2);
    /* Stronger shadow */
}

.hero-image img {
    width: 100%;
    height: 550px;
    /* Slightly taller image */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    /* Stronger shadow */
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f8f9fa;
    /* Changed to white */
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #00BFFF;
    /* Blue accent */
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #212121;
    /* Dark background */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: #cccccc;
    /* Lighter gray */
    /* margin-bottom: 1.5rem; */
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00BFFF;
    /* Blue accent */
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    /* Lighter gray */
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #2c2c2c;
    /* Slightly lighter dark for contrast */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #2a2a2a;
    /* Card background slightly lighter than section */
    padding: 40px;
    /* More padding inside cards */
    border-radius: 15px;
    /* Softer rounded corners */
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid #333333;
    /* Subtle border */
    display: flex;
    /* Use flexbox for vertical alignment */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the top */
}

.service-card:hover {
    transform: translateY(-12px);
    /* More pronounced lift effect */
    box-shadow: 0 25px 50px rgba(0, 191, 255, 0.2);
    /* Stronger blue accent shadow */
    border-color: #00BFFF;
    /* Blue accent border on hover */
}

/* .service-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
} */

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8f9fa;
    /* White text */
    margin-bottom: 1rem;
}

.service-description {
    color: #cccccc;
    /* Lighter gray */
    line-height: 1.6;
}

/* Projects Section */
.projects {
    /* padding: 100px 0; */
    background: #212121;
    /* Dark background */
}

.projects-grid {
    display: grid;
    /* This ensures that even with fewer items, they will center and spread out nicely */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    /* Center the grid items */
    max-width: 1200px;
    /* Constrain grid width for better centering */
    margin: 0 auto;
    /* Center the grid container */
}

.project-card {
    background: #333333;
    /* Darker card background */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Darker shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    /* Use flexbox for consistent card content */
    flex-direction: column;
    /* Stack content vertically */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
    /* Blue accent shadow */
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    /* Remove extra space below image */
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    /* Allows content to take up available space */
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8f9fa;
    /* White text */
    margin-bottom: 0.5rem;
}

.project-category {
    color: #00BFFF;
    /* Blue accent */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    color: #cccccc;
    /* Lighter gray */
    line-height: 1.6;
    margin-bottom: 1rem;
    /* Add some space below description */
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background: #2c2c2c;
    /* Slightly lighter dark for contrast */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.1rem;
    color: #cccccc;
    /* Lighter gray */
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    color: #00BFFF;
    /* Blue accent */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #cccccc;
    /* Lighter gray */
    line-height: 1.6;
}

.contact-form {
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444444;
    /* Darker border */
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: #2c2c2c;
    /* Input background */
    color: #f8f9fa;
    /* Input text color */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00BFFF;
    /* Blue accent on focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    /* Even darker for footer */
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    /* Align items to the top of their grid cell */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    /* Adjust as needed */
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.6;
}

.footer-links-section,
.footer-contact-info,
.footer-reviews-promo,
.footer-social-section {
    padding: 10px 0;
    /* Add some padding to each section */
}

.footer-grid h3 {
    font-size: 1.3em;
    color: #00BFFF;
    /* Blue accent for headings */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    /* Space for underline effect */
}

.footer-grid h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #00BFFF;
    /* Blue accent underline */
}


.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 10px;
}

.footer-nav-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-nav-menu a:hover {
    color: #00BFFF;
}

.footer-contact-info p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.95em;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info p .fas {
    margin-right: 10px;
    color: #00BFFF;
    font-size: 1.1em;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    padding-top: 2px;
    /* Align icon better with text baseline */
}

.footer-reviews-promo p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.footer-reviews-promo .reviewer-footer {
    font-style: normal;
    font-weight: 600;
    color: #00BFFF;
    text-align: right;
    margin-top: -10px;
    /* Pull up to the quote */
    margin-bottom: 15px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-links .social-link {
    color: #ccc;
    font-size: 1.6em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-links .social-link:hover {
    color: #00BFFF;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85em;
}


/* Loading animation */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* New Styles for Page Differentiation */

/* Home Page Specifics */
.hero.home-hero {
    height: 100vh;
    /* Make home hero full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #f8f9fa;
    /* Ensure text is visible on dynamic background */
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.home-hero .hero-image img {
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken image for better text contrast */
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(33, 33, 33, 0.4) 0%, rgba(33, 33, 33, 0.8) 100%);
    z-index: 1;
}

/* About Page Specifics */
.about-header {
    background-color: #2a2a2a;
    /* Slightly lighter dark background */
    color: #f8f9fa;
    padding: 120px 0 60px 0;
    /* Adjust padding for fixed nav */
    text-align: center;
}

.about-header .section-title {
    margin-bottom: 15px;
    font-size: 3em;
    font-weight: 700;
    color: #00BFFF;
    /* Highlight color */
}

.about-header .about-tagline {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

.about-section {
    padding: 80px 0;
    background-color: #212121;
}

.about-section.team-section {
    background-color: #2a2a2a;
    padding-bottom: 0;
    /* Remove padding from bottom to make stats stick to bottom */
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-intro-grid .about-text h2 {
    color: #f8f9fa;
    margin-bottom: 20px;
}

.about-intro-grid .about-text p {
    color: #b0b0b0;
    line-height: 1.8;
}

.about-intro-grid .about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-stats {
    background-color: #1a1a1a;
    /* Darker background for stats */
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 60px;
    /* Space from content above */
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.about-stats .stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.about-stats .stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #00BFFF;
    margin-bottom: 5px;
}

.about-stats .stat-label {
    font-size: 1.1em;
    color: #b0b0b0;
}

/* Projects Page Specifics */
.projects-header {
    background-color: #2a2a2a;
    padding: 120px 0 60px 0;
    text-align: center;
    color: #f8f9fa;
}

.projects-header .section-title {
    font-size: 3em;
    font-weight: 700;
    color: #00BFFF;
    margin-bottom: 15px;
}

.projects-header .projects-intro {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* More flexible grid */
    gap: 40px;
    /* Increased gap */
    padding: 60px 0;
}

.project-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    /* More rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    /* Subtle border */
}

.project-card:hover {
    transform: translateY(-8px);
    /* Slightly less aggressive lift */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.project-card .project-image {
    height: 250px;
    /* Consistent image height */
    overflow: hidden;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Smooth zoom on hover */
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card .project-content {
    padding: 25px;
}

.project-card .project-title {
    color: #00BFFF;
    /* Highlight title */
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
}

.project-card .project-category {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card .project-description {
    color: #d0d0d0;
    font-size: 0.95em;
    line-height: 1.7;
}

.project-card .btn {
    margin-top: auto;
    /* Push button to the bottom */
}

/* Services Page Specifics */
.services-header {
    background-color: #2a2a2a;
    padding: 120px 0 60px 0;
    text-align: center;
    color: #f8f9fa;
}

.services-header .section-title {
    font-size: 3em;
    font-weight: 700;
    color: #00BFFF;
    margin-bottom: 15px;
}

.services-header .services-intro {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.service-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    /* Ensure image fits circle */
    border: 2px solid #00BFFF;
    /* Accent border changed to blue */
    display: flex;
    align-items: center;
    justify-content: center;
}


.service-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .service-title {
    color: #00BFFF;
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card .service-description {
    color: #d0d0d0;
    font-size: 0.95em;
    line-height: 1.7;
}

/* Contact Page Specifics */
.contact-section {
    padding: 120px 0 80px 0;
    background-color: #212121;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for info and form */
    gap: 60px;
    align-items: flex-start;
    /* Align to top */
}

.contact-info .section-title {
    color: #00BFFF;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.contact-info .contact-description {
    color: #b0b0b0;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details .contact-item {
    margin-bottom: 25px;
}

.contact-details .contact-item h4 {
    color: #f8f9fa;
    font-size: 1.3em;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.contact-details .contact-item h4::before {
    content: '';
    /* Placeholder for icon or small decorative element */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: #00BFFF;
    border-radius: 3px;
    opacity: 0.7;
}

.contact-details .contact-item p {
    color: #d0d0d0;
    font-size: 1em;
    margin-left: 25px;
}

.contact-form {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #333;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f8f9fa;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(140, 122, 230, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background-color: #00BFFF;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn-primary:hover {
    background-color: #7a68d4;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {

    /* Adjusted breakpoint for larger screens */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        /* Adjust padding for mobile view */
    }

    .hero-content {
        align-items: center;
        /* Center content for mobile */
        text-align: center;
    }

    .hero-image {
        margin-top: 3rem;
        /* Space between content and image */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        /* Center buttons */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #212121;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ABOUT SECTION CHANGES FOR MOBILE */
    .about-content,
    .about-intro-grid {
        grid-template-columns: 1fr;
        /* Stack columns on small screens */
        gap: 2rem;
        /* Adjust gap for stacked content */
    }

    .about-intro-grid .about-text {
        order: 1;
        /* Ensure text comes first */
    }

    .about-intro-grid .about-image {
        order: 2;
        /* Ensure image comes second */
        margin-top: 2rem;
        /* Add some space above the image */
    }

    .about-image img {
        height: auto;
        /* Allow image to scale proportionally */
        max-height: 300px;
        /* Set a max height for images on mobile */
    }

    .about-stats {
        justify-content: center;
        flex-direction: column;
        /* Stack stats vertically */
        gap: 1.5rem;
        /* Adjust gap between stacked stats */
    }

    /* END ABOUT SECTION CHANGES */

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        /* Further reduced for very small screens */
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}