/* --- Base Styles & Variables --- */
:root {
    --primary-color: #0A192F;
    --secondary-color: #172A45;
    --accent-color: #B48F4C;
    --accent-hover: #caa35a;
    --text-light: #ccd6f6;
    --text-dark: #1a1a1a;
    --text-muted: #8892b0;
    --background-light: #f8f8f8; /* Kept for potential future use */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.3s;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --focus-glow-color: rgba(180, 143, 76, 0.5);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body); background-color: var(--primary-color); color: var(--text-light);
    line-height: 1.6; font-size: 16px; overflow-x: hidden;
}
.container { max-width: auto; margin: 0 auto; padding: 0 20px; width: 100%; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-light); margin-bottom: 1rem; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-color); margin-bottom: 3rem; text-align: center; position: relative; padding-bottom: 15px; opacity: 0; transform: translateY(30px); }
h2.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--accent-color); opacity: 0.6; }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

.cta-button { display: inline-block; background-color: var(--accent-color); color: var(--primary-color) !important; padding: 12px 25px; border-radius: 5px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; font-family: var(--font-body); position: relative; overflow: hidden; transition: background-color 0.3s ease, transform 0.2s ease; z-index: 1; }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%); transition: left 0.4s ease; z-index: -1; }
.cta-button:hover::before { left: 100%; }
.cta-button:hover { background-color: var(--accent-hover); }
.cta-button:disabled { background-color: var(--text-muted); cursor: not-allowed; opacity: 0.7; }
.cta-button:disabled::before { left: -100%; }

.content-section { padding: 80px 0; }
.dark-bg { background-color: var(--secondary-color); }

/* --- Header Styles --- */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: rgba(10, 25, 47, 0.85); backdrop-filter: blur(10px); padding: 15px 0; box-shadow: var(--shadow); transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
#main-header nav.container { display: flex; justify-content: space-between; align-items: center; position: relative; }
#main-header .logo a {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center items horizontally */
    text-decoration: none; /* Remove underline from link */
    color: var(--text-light); /* Initial text color (white-ish) */
    transition: color var(--transition-speed) ease; /* Transition for text color */
}

/* Logo Image Styling */
#main-header .logo a img#logo-img {
    /* Adjust height as needed for the graphic */
    height: 35px;
    width: auto;
    display: block;
    margin-bottom: 4px; /* Space between image and text */
    transition: height var(--transition-speed) ease;
    /* Add transition for filter if changing color on hover */
    /* filter: brightness(0) invert(1); */ /* Example: Makes PNG white if needed */
    /* transition: filter var(--transition-speed) ease; */
}

/* Logo Text Styling */
#main-header .logo a span.logo-text {
    font-family: var(--font-body); /* Or keep heading font if preferred */
    font-size: 0.9rem; /* Adjust size */
    font-weight: 400; /* Adjust weight */
    line-height: 1; /* Tighten line height */
    display: block; /* Ensure it takes its own line */
    color: inherit; /* Inherit color from parent <a> */
}

/* Logo Hover Effect */
#main-header .logo a:hover {
    color: var(--accent-color); /* Change text color to gold */
}
#main-header .logo a:hover img#logo-img {
     /* How to change image color depends on the image type: */
     /* Option 1: If SVG (best), change fill via CSS or JS */
     /* fill: var(--accent-color); */ /* Example for SVG */

     /* Option 2: If PNG/JPG (trickier), use filter to approximate gold */
     /* This is an example filter - needs tuning for exact gold color */
     /* filter: invert(75%) sepia(25%) saturate(1500%) hue-rotate(350deg) brightness(95%) contrast(90%); */
     /* Or if logo graphic is white/light, maybe just change opacity */
     /* opacity: 0.9; */
}
#main-header nav ul {
    list-style: none;
    display: flex; /* Use flex for desktop layout */
    align-items: center; /* Vertically align list items */
    margin: 0;
    padding: 0;
    display: none; /* Start hidden for mobile-first approach in media queries */}
/* Navigation List Items - Desktop */
#main-header nav ul li {
    margin-left: 25px; /* Space between items */}
    #main-header nav ul li a { /* Styles for regular nav links */
        color: var(--text-light);
        font-weight: 400;
        padding: 5px 0;
        position: relative;
        transition: color var(--transition-speed) ease;
    }
#main-header nav ul li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0%; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease-out; }
#main-header nav ul li a:hover::after { width: 100%; }
#main-header nav ul li a:hover { color: var(--accent-color); }
#main-header.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 10px 0; /* Adjust padding */
    box-shadow: 0 5px 15px rgba(2, 12, 27, 0.5);
}
/* === ADDED: Resize logo when header shrinks === */
#main-header.scrolled .logo a img#logo-img {
    /* Adjust height when scrolled */
   height: 28px;
   margin-bottom: 4px; /* Adjust space */
}
#main-header.scrolled .logo a span.logo-text {
   font-size: 0.7rem; /* Slightly smaller text when scrolled */
}
/* Mobile Menu Toggle (Hamburger) */
.menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1010; }
.menu-toggle .bar { width: 100%; height: 3px; background-color: var(--text-light); border-radius: 10px; transition: all 0.3s ease-in-out; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* === UPDATED: Header Social List Item === */
li.header-social-list-item {
    margin-left: 25px; /* Maintain spacing */
}

/* === NEW: Header Social Follow Styles === */
.follow-us-button {
    background: none; border: none; color: var(--text-light);
    font-size: 1.1rem; cursor: pointer; padding: 5px;
    transition: color var(--transition-speed) ease;
    line-height: 1; vertical-align: middle;
}    
.follow-us-button:hover { color: var(--accent-color); }

.header-social-icons {
    position: absolute;
    top: 100%;
    right: 0; /* Align to the right edge of the LI */
    margin-top: 0;
    background-color: var(--primary-color);
    border-radius: 4px; padding: 10px 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex; gap: 15px; z-index: 1005;
    /* Initial hidden state */
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    min-width: 120px; /* Give it some minimum width */
}

/* Reveal icons on container hover/focus */
/* Targeting the LI now */
li.header-social-list-item:hover .header-social-icons,
li.header-social-list-item:focus-within .header-social-icons {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
    pointer-events: auto;
}

.header-social-icons a {
    color: var(--text-light); /* Match nav text */
    font-size: 1.3rem;
    text-decoration: none;
    transition: color var(--transition-speed) ease, transform 0.2s ease;
    display: inline-block;
}
.header-social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}
/* === END: Header Social Follow Styles === */

/* --- Hero Section --- */
#hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: url('images/hero-background.webp') no-repeat center center/cover; background-color: var(--primary-color); overflow: hidden; perspective: 1500px; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.7); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; opacity: 0; will-change: transform; }
#hero h1 { margin-bottom: 1rem; color: #fff; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
#hero p { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text-light); max-width: 600px; margin-left: auto; margin-right: auto; text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6); font-weight: 400; }
.scroll-down-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 40px; border: 2px solid var(--accent-color); border-radius: 12px; opacity: 0.7; }
.scroll-down-indicator span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background-color: var(--accent-color); border-radius: 2px; animation: scroll-pulse 1.5s infinite ease-in-out; }
@keyframes scroll-pulse { 0% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-50%, 10px); opacity: 0.5; } 100% { transform: translate(-50%, 0); opacity: 1; } }

/* --- Introduction Section --- */
#intro p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; text-align: center; opacity: 0; transform: translateY(20px); will-change: opacity, transform; }

/* --- Services Section --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 3rem; perspective: 1000px; }
.service-card {
    background-color: transparent; min-height: 360px; /* Adjusted for taller image */ border-radius: 8px; cursor: pointer;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(40px) scale(0.98); /* ScrollTrigger target */
    position: relative; /* For pseudo-elements */
    overflow: hidden; /* Contain pseudo-elements */
}
/* Gold Accent Border on Outer Card */
.service-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background-color: var(--accent-color); border-radius: 8px 0 0 8px; z-index: 1; transition: background-color 0.3s ease; }
/* Shine Effect on Outer Card */
.service-card::after { content: ''; position: absolute; top: 0; left: -100%; bottom: 0; width: 100%; max-width: 5px; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); transition: left 0.5s ease-out; z-index: 2; border-radius: 8px 0 0 8px; pointer-events: none; }
/* Trigger Shine */
.service-card:hover::after { left: 100%; }
.service-card:hover::before { background-color: var(--accent-hover); }

.service-card-inner { position: relative; width: 100%; height: 100%; min-height: 360px; text-align: center; transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; will-change: transform; border-radius: 8px; /* Keep radius */ /* overflow: hidden; */ /* Remove overflow to maybe help rendering? Test. */ }
/* Trigger Flip */
.service-card:hover .service-card-inner { transform: rotateY(180deg); }
/* Front/Back Faces */
.service-card-front, .service-card-back { position: absolute; width: 100%; height: 100%; min-height: 360px; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px; /* Reverted padding */ box-sizing: border-box; /* border: 1px solid var(--secondary-color); */ /* Reverted to no border */ }
.service-card-front { background-color: var(--secondary-color); color: var(--text-light); /* No z-index needed */ }
.service-card-image { width: 100%; height: 250px; object-fit: cover; object-position: center center; margin-bottom: 15px; border-radius: 4px; }
.service-card-front h3.front-heading { font-family: var(--font-body); font-size: 1.3rem; color: var(--text-light); margin: 0; padding: 0 10px; line-height: 1.3; }
.service-card-back { background-color: var(--primary-color); color: var(--text-light); transform: rotateY(180deg); justify-content: space-around; }
.service-card-back .service-icon { font-size: 2rem; margin-bottom: 0.8rem; color: var(--accent-color); display: inline-block; width: 50px; text-align: center; }
.service-card-back h3 { font-family: var(--font-body); font-size: 1.3rem; color: var(--text-light); margin-bottom: 0.8rem; }
.service-card-back p { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0; line-height: 1.5;}
.service-card-back .learn-more { font-weight: bold; font-size: 0.9rem; display: inline-block; margin-top: 10px; }
.service-card-back .learn-more i { margin-left: 5px; transition: transform 0.2s ease-out; display: inline-block; }
.service-card-back:hover .learn-more i { transform: translateX(4px); }

/* --- About Us Section (Dark Textured) --- */
#about { background-color: var(--secondary-color); 
    background-image: url('images/about-background-2.jpg'); /* <<< USE YOUR FILENAME */
    background-size: cover; /* Cover the entire section */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;
    position: relative; /* Keep for pseudo-element */
    z-index: 0;
    min-height: 100vh;
    padding-top: 80px; /* e.g., space above title */
    padding-bottom: 80px; /* e.g., space below text */
    box-sizing: border-box; /* Include padding in height calculation */
}
/* Overlay to darken image for text readability */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Adjust RGBA alpha (0.7 = 70% opaque) for desired darkness/contrast */
    background-color: rgba(10, 25, 47, 0.7); /* Example: 70% overlay */
    z-index: 1; /* Above background image, below content */
}
#about .container {
    position: relative; /* To stack above overlay */
    z-index: 2;       /* To stack above overlay */
/* Make this container a flex column */
display: flex;
flex-direction: column;
align-items: center; /* Center items horizontally */
padding-top: 80px; /* Keep overall padding */
    padding-bottom: 80px;
    width: 100%;
    /* max-width/margin inherited */
}

/* Keep title styles */
#about h2.section-title {
    color: var(--accent-color);
    position: relative;
    z-index: 2; /* Above overlay */
    text-align: center; /* Ensure text is centered */
    margin-bottom: 2.5rem; /* More space below title */
}
#about h2.section-title::after {
    background-color: var(--accent-color);
    opacity: 0.6;
}
.about-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* ============================================================== */
    text-align: center; /* Center align the text paragraphs */
    opacity: 1;
    position: relative;
    z-index: 2;
     width: 100%; /* Allow it to take width up to max-width */
}
/* Keep paragraph styles */
.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light); /* Keep text light */
    font-size: 1.05rem;
    opacity: 0; transform: translateY(20px); /* Keep animation state */
    will-change: opacity, transform;
}
/* Stats Container (Right side) */
.stats-container {
    flex: 1; /* Take roughly 1/3 width */
    min-width: 280px; /* Prevent excessive shrinking */
    display: flex;
    flex-wrap: wrap; /* Allow stat items to wrap if needed */
    justify-content: center; /* Center stat items within */
    gap: 30px 20px; /* Gap between stat items */
    /* position: relative; */ /* Not needed */
    /* z-index: 2; */ /* Not needed */
}

/* === Styles for Individual Stat Items (Moved from #stats) === */
.stat-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    flex-basis: 100px; /* Base width per item */
    flex-grow: 1;
    opacity: 0; transform: translateY(30px); /* Animation state */
    will-change: opacity, transform;
}
.stat-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 10px; line-height: 1; }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--text-light); margin-bottom: 5px; line-height: 1.1; }
.stat-number.non-numeric { font-size: 2rem; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
/* === END Styles for Stat Items === */

/* --- Contact Section --- */
#contact { /* Uses .dark-bg */ }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 3rem; align-items: start; }
.contact-container > div { opacity: 0; transform: translateY(30px); }
.contact-info h3, .contact-form h3 { color: var(--accent-color); margin-bottom: 1.5rem; font-size: 1.5rem; }
.contact-info p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.7; }
.contact-info p strong { color: var(--text-light); }
.contact-info a { color: var(--accent-color); word-break: break-all; }
.contact-info a:hover { text-decoration: underline; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px; background-color: var(--primary-color); border: 1px solid var(--secondary-color); border-radius: 4px; color: var(--text-light); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition-speed) ease, box-shadow 0.2s ease; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--focus-glow-color); }
.form-group select[multiple] { padding: 10px; min-height: 120px; background-color: var(--primary-color); border: 1px solid var(--secondary-color); color: var(--text-light); }
.form-group select[multiple] option { padding: 5px; }
.form-group select[multiple] option:checked { background-color: var(--accent-color); color: var(--primary-color); }
.form-group select:-moz-focusring { color: transparent; text-shadow: 0 0 0 var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.error-message { color: #ffaaaa; font-size: 0.9em; margin-top: 5px; min-height: 1.2em; }
.contact-form button[type="submit"] { width: auto; padding: 14px 30px; }
#form-status { margin-top: 20px; padding: 15px; border-radius: 5px; display: none; font-size: 0.95rem; line-height: 1.5; border-width: 1px; border-style: solid; }
#form-status.success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
#form-status.error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

/* --- Footer --- */
#main-footer {
    background-color: #061121;
    padding: 20px 0;
    text-align: center;
    margin-top: 0;
    border-top: 1px solid var(--secondary-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-right: auto; /* Add space between contact and copyright */
    margin-left: auto;
}

.footer-content {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 15px 0px; /* Row gap, Column gap */
    margin-right: auto;
    margin-left: auto;

}

/* Individual footer sections */
.footer-item {
     flex-shrink: 0; /* Prevent shrinking by default */
}

/* Item 1: Contact Info (Left - Now Naturally First) */
.footer-contact-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    /* order: 1; REMOVED */
    margin-right: auto; /* Add space between contact and copyright */
    margin-left: auto;
}
.footer-contact-inline a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; white-space: nowrap; display: flex; align-items: center;}
.footer-contact-inline a i { margin-right: 6px; color: var(--accent-color); font-size: 0.9em; }
.footer-contact-inline a:hover { color: var(--accent-color); }


/* Item 2: Copyright & Links (Center - fills space) */
.footer-copyright {
    display: flex;
    flex-direction: column; /* Stack the wrapper and credits vertically */
    align-items: center;    /* Center them horizontally */
    gap: 5px;               /* Vertical gap between the two lines */
    text-align: center;
    flex-grow: 1;           /* Allows this section to take available space */
    flex-basis: 0;
    /* min-width: 0; /* Important for flex-grow in some cases */
}
/* NEW: Wrapper for copyright text and nav links */
.copyright-and-links-wrapper {
    display: flex;          /* Arrange copyright <p> and <nav> side-by-side */
    flex-wrap: wrap;        /* Allow them to wrap if space is extremely tight */
    justify-content: center;/* Center this group if it wraps or if there's extra space */
    align-items: center;
    gap: 5px 10px;          /* Gap between <p> and <nav> */
}
.footer-copyright p { margin: 0; white-space: nowrap; }
.footer-nav { display: inline-flex; white-space: nowrap;}
.footer-nav a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; margin: 0 5px; }
.footer-nav a:hover { color: var(--accent-color); }
.footer-separator { color: var(--text-muted); opacity: 0.5; display: inline-block; }

/* CodifyPoint Credit Styles */
.footer-credits {
    display: flex;           /* To align "Designed..." text with CodifyPoint link+logo */
    justify-content: center; /* Center its own content */
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    /* width: 100%; /* Not strictly necessary as align-items: center on parent handles centering */
}

.codifypoint-link {
    display: inline-flex; /* Align logo and text within the link */
    align-items: center;
    color: var(--accent-color); /* Make CodifyPoint name stand out */
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    margin-left: 5px; /* Space between "by" and the logo/name */
    font-weight: 500; /* Optional: slightly bolder */
}

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

.codifypoint-logo {
    height: 25px; /* Adjust size as needed */
    width: auto;
    margin-right: 5px; /* Space between logo and "CodifyPoint" text */
    vertical-align: middle; /* Helps with alignment */
}
/* === END: CodifyPoint Credit Styles === */


/* Item 3: Social Icons (Right - Pushed by auto margin) */
 .footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align own content right */
    flex-wrap: nowrap;
    gap: 10px;
    /* order: 3; REMOVED */
    margin-left: auto; /* <<< Still needed to push this specific item right */
    margin-right: auto;
}
.footer-social span { white-space: nowrap; }
.social-icons { display: flex; align-items: center; }
.social-icons a { color: var(--text-muted); font-size: 1.3rem; margin-left: 12px; text-decoration: none; transition: color 0.3s ease, transform 0.2s ease; display: inline-block; }
.social-icons a:hover { color: var(--accent-color); transform: scale(1.1); }


/* Footer Responsive Adjustments */
@media (max-width: 1024px) { /* Stacking breakpoint */
    .footer-content {
        flex-direction: column; /* Stack items */
        gap: 15px;
        align-items: center; /* Center align items */
    }
    /* Reset margins for stacking */
    .footer-copyright, .footer-contact-inline, .footer-social {
         justify-content: center;
         width: auto;
         text-align: center;
         margin-left: 0; /* Reset margin */
         margin-right: 0; /* Reset margin */
         /* order: 0 !important; Optional: Remove if natural stack order is fine */
    }
    /* Optional: Define stacking order */
    .footer-contact-inline { order: 1 !important; }
    .footer-social { order: 2 !important; }
    .footer-copyright { order: 3 !important; }
}

/* --- Back to Top Button --- */
#back-to-top { position: fixed; bottom: 80px; right: 30px; width: 50px; height: 50px; background-color: var(--accent-color); color: var(--primary-color); border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease-out, background-color 0.3s ease; }
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background-color: var(--accent-hover); transform: translateY(-3px); }
#back-to-top i { line-height: 1; }


/* --- Responsiveness --- */
/* Desktop Nav Display */
@media (min-width: 769px) {
    #main-header nav ul { display: flex; }
    .menu-toggle { display: none; }
    /* Ensure social list item is shown on desktop */
    li.header-social-list-item { display: list-item; }
}
@media (max-width: 992px) { .service-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; } h2.section-title { font-size: 1.8rem; }
    #main-header nav.container {
        /* Example: maybe wrap items */
        /* flex-wrap: wrap; */
    }

    /* Style menu toggle */
    .menu-toggle { display: flex; order: 3; } /* Make sure it comes last visually */

    #main-header nav ul { flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(10, 25, 47, 0.98); padding: 15px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.2); border-top: 1px solid var(--secondary-color); }
    #main-header nav ul.active { display: flex; }
    #main-header nav ul li { margin-left: 0; width: 100%; text-align: center; }
    #main-header nav ul li a { padding: 12px 20px; display: block; width: 100%; }
    #main-header nav ul li a::after { display: none; }
    #hero p { font-size: 1rem; }
    .service-grid { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { margin-top: 0; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-left, .footer-center, .footer-right { text-align: center; min-width: 100%; }
}

@media (max-width: 860px) { /* Adjust breakpoint as needed */
    .about-flex-wrapper {
        flex-direction: column; /* Stack text and stats */
        gap: 50px; /* Increase gap when stacked */
    }
    .about-content {
        flex-basis: auto; /* Reset flex basis */
        text-align: center; /* Center text when stacked */
        max-width: 700px; /* Allow text to take more width */
        margin-left: auto;
        margin-right: auto;
    }
    .stats-container {
        flex-basis: auto; /* Reset flex basis */
        justify-content: space-around; /* Space out stats */
        width: 100%; /* Take full width */
    }
     .stat-item {
        flex-basis: 150px; /* Adjust basis for stacked view */
    }
}
