/* --- Variables & Reset --- */
:root {
    --primary-blue: #1e73be;
    --primary-hover: #155a96;
    --light-blue: #e8f0fe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

html {
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Background decorative waves */
.bg-shape {
    position: fixed;
    z-index: -1;
    background: radial-gradient(circle, rgba(232,240,254,1) 0%, rgba(248,250,252,0) 70%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes slow-move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, 15px) scale(1.05); }
    50% { transform: translate(0, 30px); }
    75% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(0, 0); }
}

.bg-shape-1 { top: -200px; left: -300px; animation: slow-move 40s infinite ease-in-out alternate; }
.bg-shape-2 { bottom: 100px; right: -200px; animation: slow-move 50s infinite ease-in-out; }

/* Add a media query to disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bg-shape-1, .bg-shape-2 { animation: none; }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Global Image Responsiveness --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography & Buttons --- */
a { text-decoration: none; }

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    outline: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover, .btn-outline:focus-visible {
    background-color: var(--light-blue);
    outline: none;
}

.hidden-on-current-page {
    display: none !important;
}

.whatsapp-btn {
    margin-top: 10px;
    background-color: #25D366; /* WhatsApp Green */
    border: 2px solid #25D366;
    color: var(--white);
}

.whatsapp-btn:hover, .whatsapp-btn:focus-visible {
    background-color: #128C7E; /* Darker WhatsApp Green */
    border-color: #128C7E;
    outline: none;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1001; /* Ensure it's above content but below modals/toasts */
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.nav-logo img { /* New style for the image logo */
    height: 100px; /* Adjust as needed */
    vertical-align: middle; /* Align image nicely */
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a:focus-visible {
    color: var(--primary-hover); /* Using a darker blue for hover */
}

.nav-menu a.active {
    color: var(--primary-blue);
    font-weight: 700; /* Bolder font for active link */
    position: relative;
    z-index: 1; /* Ensure text is above the pseudo-element */
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    z-index: -1; /* Place background behind the text */
    inset: -8px -15px; /* Creates padding around the link */
    background-color: var(--light-blue);
    border-radius: 25px; /* Pill shape */
}

/* --- Dropdown Menu --- */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .nav-link i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px; /* space between nav item and dropdown */
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    min-width: 200px;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Show dropdowns on click via JS by adding the .open class */
.nav-item.dropdown.open > .dropdown-menu,
.dropdown-submenu.open > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-menu li a:hover, .dropdown-menu li a:focus-visible {
    background-color: var(--light-blue);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: -11px; /* Aligns submenu with parent item */
    left: 100%;
    margin-top: 0;
    margin-left: 1px;
    display: none;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu .fa-chevron-right {
    font-size: 10px;
    margin-left: 10px;
}

.hamburger { /* New style for the hamburger icon */
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    z-index: 1000;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark); /* Or adjust color */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-button { /* New style for the 'GET A QUOTE' button */
    display: block;
}

/* --- Special Day Wishes Banner --- */
#special-day-banner {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    text-align: center;
    position: relative;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.special-day-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.special-day-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.special-day-message {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
}

#special-day-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
    background: none;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#special-day-close:hover {
    transform: translateY(-50%) scale(1.2);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 80px 0;
    gap: 40px;
    position: relative; /* For particle background positioning */
}

.hero-content {
    flex: 1;
    position: relative; /* Ensure content is above particles */
    z-index: 1;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a202c;
    min-height: 166px; /* Approx 3 lines of text to prevent layout shift */
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative; /* For overlay positioning */
    border-radius: 12px;
    overflow: hidden; /* To clip the overlay */
    box-shadow: var(--card-shadow);
    z-index: 1; /* Ensure image is above particles */
}

.hero-image img {
    max-width: 100%;
    display: block; /* Removes bottom space under image */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent); /* Semi-transparent gradient */
    padding: 40px 20px 20px;
    text-align: center;
}

.image-overlay p {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 400px; /* Constrain text width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* --- Particle Background --- */
#tsparticles, #footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Place particles behind content */
}

.hero-content h1::after {
    content: '|';
    font-weight: 800; /* Match h1 font-weight */
    animation: blink-caret-dark 1s step-end infinite;
}

.typing-effect::after {
    content: '|';
    font-weight: 400;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret-dark {
    from, to { color: transparent }
    50% { color: var(--text-dark); }
}

@keyframes blink-caret {
    from, to { color: transparent }
    50% { color: var(--white); }
}

/* --- Page Header --- */
.page-header {
    padding: 60px 40px;
    text-align: center;
    background-color: var(--white);
    margin-bottom: 60px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services Page --- */
.services-page-section {
    padding-bottom: 80px;
}
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* --- Services Section --- */
.services-section {
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning child elements */
    overflow: hidden; /* To clip the ribbon */
}

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

.service-icon {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    min-width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.service-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.service-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.coming-soon-label {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #ff9800; /* A bright color for visibility */
    color: var(--white);
    padding: 5px 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.service-info .tech-stack {
    margin-top: 10px;
    font-size: 12px;
}

.tech-stack strong {
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    font-size: 22px;
    color: var(--text-muted);
}

.tech-icons i {
    transition: color 0.3s ease;
    cursor: help;
}

.tech-icons i:hover, .tech-icons i:focus-visible {
    color: var(--primary-blue);
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-item p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* --- Footer --- */
footer {
    background-color: var(--white);
    padding: 50px 0 20px;
    border-top: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.footer-col {
    flex: 1;
}

.footer-col.logo-col {
    flex: 1.5;
}

.footer-logo {
    height: 100px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover, .footer-col ul a:focus-visible {
    color: var(--primary-blue);
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding-bottom: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
    background-color: var(--light-blue);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-link {
    margin-top: auto;
    padding-top: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.portfolio-link:hover, .portfolio-link:focus-visible {
    color: var(--primary-hover);
}

.portfolio-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(4px);
}

/* --- Map Section --- */
.map-section {
    padding-bottom: 80px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* --- Contact Page --- */
.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: linear-gradient(135deg, var(--white) 0%, #f7f9fb 100%);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eef2f7;
}

.contact-info-col h3,
.contact-form-col h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-info-col > p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-item i {
    font-size: 22px;
    color: var(--primary-blue);
    margin-top: 5px;
}

.contact-detail-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-detail-item p,
.contact-detail-item a {
    color: var(--text-muted);
    font-size: 14px;
}

.contact-detail-item a:hover, .contact-detail-item a:focus-visible {
    color: var(--primary-blue);
}

/* Form Styles */
.contact-form-col form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group {
    width: 100%;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: #f0f4f8;
    border: 2px solid transparent;
    color: var(--text-dark);
}

.form-group input {
    padding-left: 45px; /* Make space for icon */
}

.form-group textarea {
    padding-left: 45px; /* Make space for icon */
    padding-top: 14px; /* Align text with icon */
    resize: vertical;
}

.footer-contact-details {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: none;
}

.input-wrapper:focus-within i {
    color: var(--primary-blue);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc3545; /* Red for error */
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.btn.full-width {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn.full-width .btn-text {
    transition: opacity 0.2s ease;
}

.btn.full-width i {
    transition: transform 0.3s ease;
}

.btn.full-width:hover i {
    transform: translateX(4px);
}

/* Button loading state */
.btn.loading {
    cursor: not-allowed;
    background-color: var(--primary-hover);
}

.btn.loading .btn-text,
.btn.loading i {
    opacity: 0;
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.footer-contact-details p {
    margin-bottom: 10px;
}

.footer-contact-details a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-contact-details a:hover, .footer-contact-details a:focus-visible {
    color: var(--primary-blue);
}

.footer-contact-details i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover, .social-links a:focus-visible {
    color: var(--primary-blue);
}

.footer-payments {
    margin-top: 30px;
}

.footer-payments img {
    max-width: 200px;
    height: auto;
    margin-top: -10px; /* Adjust for h4 margin-bottom */
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- About Page --- */
.about-section {
    padding-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.values-list {
    list-style: none;
    margin-top: 20px;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.values-list i {
    color: var(--primary-blue);
    font-size: 18px;
}

/* --- Team Section --- */
.team-section {
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--light-blue);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
}

.team-socials a:hover, .team-socials a:focus-visible {
    color: var(--primary-blue);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Dark background */
    color: var(--white);
    padding: 20px 40px;
    display: none; /* Hidden by default, JS will manage visibility */
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    gap: 20px;
    box-sizing: border-box;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner .btn {
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.back-to-top:hover, .back-to-top:focus-visible {
    background-color: var(--primary-hover);
    color: var(--white);
    outline: none;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1002;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.toast-notification.success {
    background-color: #28a745; /* Green for success */
}

.toast-notification.error {
    background-color: #dc3545; /* Red for error */
}

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

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-dots span {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 15px 0;
    }

    .nav-logo img {
        height: 70px;
    }

    .hero { flex-direction: column; text-align: center; }
    .hero-image { justify-content: center; margin-top: 40px; }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image { order: -1; }
    .hero-buttons { justify-content: center; }

    /* Responsive Navbar */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 100px; /* Corrected to match mobile header height */
        flex-direction: column;
        background-color: var(--white);
        width: 70%;
        max-width: 90%;
        height: calc(100vh - 100px); /* Corrected for new top value */
        text-align: left;
        padding: 20px 40px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1002; /* Higher than sticky header */
        gap: 0; /* Reset gap for vertical layout */
        overflow-y: auto;
    }

    .nav-menu.active { /* Class added by JS to show menu */
        right: 0;
    }

    .nav-menu a {
        margin: 15px 0;
        font-size: 16px;
        color: var(--text-dark);
        display: block; /* Make the whole area clickable */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-actions {
        gap: 15px;
    }

    /* Hamburger animation */
    .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);
    }

    .dropdown-submenu {
        position: static;
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
        min-width: auto;
        animation: none;
        padding-left: 15px; /* Indent submenu items */
    }

    .nav-item.dropdown .nav-link i {
        transition: transform 0.3s ease;
    }

    .dropdown-menu {
        position: static; /* Not absolute on mobile */
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        min-width: auto;
        animation: none;
        padding-left: 20px; /* Indent dropdown items */
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 15px;
    }

    .nav-button {
        display: none;
    }

    #special-day-banner {
        padding: 15px 20px;
        flex-direction: column;
    }

    .special-day-title {
        font-size: 20px;
    }

    .special-day-message {
        font-size: 14px;
    }

    #special-day-close {
        position: static;
        transform: none;
        margin-top: 10px;
        font-size: 20px;
    }

    #special-day-close:hover {
        transform: scale(1.2);
    }

    .nav-item.dropdown.open .nav-link i {
        transform: rotate(180deg);
    }

    .dropdown-submenu > a .fa-chevron-right {
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.open > a .fa-chevron-right {
        transform: rotate(90deg);
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-banner p {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 20px 0;
    }

    .nav-logo img {
        height: 60px;
    }

    #special-day-banner {
        padding: 12px 15px;
    }

    .special-day-title {
        font-size: 18px;
    }

    .special-day-message {
        font-size: 13px;
    }

    #special-day-close {
        right: 10px;
        top: 10px;
        position: absolute;
        font-size: 18px;
    }

    .hero {
        padding: 40px 0 50px;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 32px;
        min-height: auto;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-image {
        margin-top: 20px;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .image-overlay p {
        max-width: 100%;
        font-size: 14px;
        padding: 0 10px;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
    }

    .toast-notification {
        left: 50%;
        right: auto; /* Override desktop 'right' */
        bottom: 20px;
        width: calc(100% - 40px); /* Full width with padding */
        max-width: 400px; /* Max width for larger small screens */
        text-align: center;
        transform: translateX(-50%) translateY(20px); /* Center and initial position */
    }

    .toast-notification.show {
        transform: translateX(-50%) translateY(0); /* Center and final position */
    }

    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        padding: 30px 20px;
    }
    .about-content h2 {
        font-size: 28px;
    }
    .section-title {
        margin-bottom: 32px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    .stats-section {
        padding: 40px 0;
        margin-bottom: 50px;
    }
    .services-section,
    .portfolio-section,
    .map-section,
    .contact-section,
    .about-section,
    .team-section {
        padding-bottom: 50px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .cookie-banner p {
        margin-bottom: 15px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-bottom: none;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .footer-col {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .services-page-grid {
        grid-template-columns: 1fr;
    }
    .stat-item:not(:last-child) {
        margin-bottom: 40px;
    }

    .loading-dots span {
        width: 12px;
        height: 12px;
    }

    /* Map iframe responsive */
    .map-section iframe {
        height: 300px;
    }

    /* Portfolio and images responsive */
    .portfolio-image img,
    .about-image img,
    .team-card-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* Contact form responsive */
    .form-group input,
    .form-group textarea {
        max-width: 100%;
    }

    /* Ensure no horizontal overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}
