:root {
    --color-dark-blur-1: rgba(26, 30, 40, 0.7); /* Deep dark blue-gray for backdrops */
    --color-dark-blur-2: rgba(35, 40, 50, 0.7); /* Slightly lighter dark blur */
    --color-translucent-white: rgba(255, 255, 255, 0.15); /* Translucent white for glass panels */
    --color-translucent-white-hover: rgba(255, 255, 255, 0.25); /* Lighter on hover */
    --color-text-light: #e0e0e0;
    --color-text-medium: #c0c0c0;
    --color-accent-blue: #007bff; /* A subtle blue for highlights */
    --color-accent-blue-hover: #0056b3;
    --color-overlay-dark: rgba(0, 0, 0, 0.5);

    --font-primary: 'Inter', sans-serif; /* Poppins, Manrope also good */
    --border-radius-soft: 12px;
    --spacing-unit: 1rem;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-light);
    background: radial-gradient(circle at top left, #1a2a3a, #0d121c 70%, #06090f);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    backdrop-filter: blur(8px); /* Base blur for overall background */
}

/* No-scroll class for modal open */
body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-accent-blue);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-light);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-accent-blue);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-text-medium);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden; /* For glassmorphic effects */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Ensure some height for all sections */
}

/* Glassmorphic Styles */
.glass-panel {
    background: var(--color-translucent-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-soft);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
.header {
    width: 100%;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-dark-blur-1); /* Darker blur for header */
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-blue);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-accent-blue);
    color: var(--color-text-light);
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.button:hover {
    background-color: var(--color-accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh; /* Compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background-image: url('images/image_27.jpg'); /* Subtle background */
    background-size: cover;
    background-position: center;
    border-radius: 0; /* Full width hero */
    margin-bottom: 0;
    overflow: hidden;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    backdrop-filter: blur(5px); /* Soft blur for the background image */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    background: var(--color-translucent-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Story Section - Interactive Map */
.interactive-map-container {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for the map */
    background: var(--color-dark-blur-2);
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) blur(2px);
    transition: filter 0.5s ease;
}

.interactive-map-container:hover .map-image {
    filter: brightness(0.8) blur(1px);
}

.map-point {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--color-accent-blue);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px var(--color-accent-blue);
    animation: pulse 2s infinite ease-in-out;
    transform: translate(-50%, -50%); /* Center the point */
    transition: all 0.3s ease;
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: var(--color-accent-blue-hover);
    box-shadow: 0 0 20px var(--color-accent-blue-hover);
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1;.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1;.8; }
}

.map-modal, .team-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-dark);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.map-modal-content, .team-modal-content {
    background: var(--color-translucent-white);
    padding: 30px;
    border-radius: var(--border-radius-soft);
    max-width: 600px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

.modal-img {
    max-width: 100%;
    border-radius: var(--border-radius-soft);
    margin-bottom: 1rem;
    filter: brightness(0.9);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--color-text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-accent-blue);
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 1; }
    to { transform: translateY(0); opacity: 1; }
}

/* Products Section - Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.pricing-card {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure cards are same height */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0); /* For subtle hover effect */
}

.pricing-card.featured {
    border: 2px solid var(--color-accent-blue);
    transform: scale(1.03);
    box-shadow: 0 8px 40px rgba(0, 123, 255, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-accent-blue);
}

.pricing-card .price {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding: 0 1rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--color-text-medium);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* Showcase/Highlights - Success Stories (uses card grid) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.case-study-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-soft);
    margin-bottom: 1rem;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.case-study-card img:hover {
    filter: brightness(1);
}

.card-img-before, .card-img-after {
    margin-bottom: 0.5rem;
}

.card-img-before {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-img-after {
    border: 2px solid var(--color-accent-blue);
    transform: translateY(-5px); /* Visual emphasis for 'after' */
}

.case-study-card h4 {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.case-study-card blockquote {
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1rem;
    color: var(--color-accent-blue);
    border-left: 3px solid var(--color-accent-blue);
    padding-left: 10px;
}

/* Reviews Section - Card Grid */
.testimonial-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-accent-blue);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--color-text-medium);
    font-style: italic;
    max-width: 80%;
}

.testimonial-author {
    font-weight: 500;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Team Section - Interactive Profiles */
.team-profile-card {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--color-accent-blue);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-profile-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

.team-profile-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-profile-card p {
    font-size: 1rem;
    color: var(--color-text-medium);
    margin-bottom: 1rem;
}

.team-modal-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--color-accent-blue);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
}

.team-modal-content .modal-title {
    color: var(--color-accent-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Gallery Section - Masonry Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-column-ish */
    grid-gap: 1.5rem;
    grid-auto-rows: minmax(150px, auto); /* Allows items to stretch */
    grid-auto-flow: dense; /* Fill gaps */
    margin-top: 3rem;
}

.masonry-item {
    background: var(--color-translucent-white);
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    break-inside: avoid; /* For actual masonry, consider JS or column layout */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.masonry-item:hover img {
    filter: brightness(1);
    transform: scale(1.02);
}

/* Variations for masonry items */
.masonry-item:nth-child(2n) {
    grid-row-end: span 2; /* Make some items span 2 rows */
}
.masonry-item:nth-child(3n) {
    grid-row-end: span 3; /* Make some items span 3 rows */
}
.masonry-item:nth-child(5n) {
    grid-column-end: span 2; /* Make some items span 2 columns */
}


/* FAQ Section - Searchable FAQ */
.faq-search-container {
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-soft);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--border-radius-soft);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-search-input::placeholder {
    color: var(--color-text-medium);
}

.faq-search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px var(--color-accent-blue);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08); /* Slightly darker glass for buttons */
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: var(--border-radius-soft);
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question:hover {
    background-color: var(--color-translucent-white-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px; /* Initial padding must match 'closed' state */
    color: var(--color-text-medium);
    text-align: left;
}

.faq-answer p {
    margin-top: 15px;
}

/* Location Section - Multi Column (Connect Section) */
.multi-column-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.multi-column-layout .column {
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.multi-column-layout .column h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-accent-blue);
}

.multi-column-layout .column p {
    margin-bottom: 1.5rem;
    color: var(--color-text-medium);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-accent-blue);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .pricing-table,
    .card-grid,
    .masonry-grid,
    .multi-column-layout {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide for smaller screens, can be a hamburger later */
    }

    .nav {
        justify-content: center;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    .section {
        padding: 4rem 0;
    }

    .pricing-table,
    .card-grid,
    .multi-column-layout {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .testimonial-card,
    .case-study-card,
    .pricing-card,
    .team-profile-card,
    .multi-column-layout .column {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .map-modal-content, .team-modal-content {
        max-width: 90%;
        padding: 20px;
    }

    .map-point {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .pricing-card, .testimonial-card, .team-profile-card, .case-study-card, .multi-column-layout .column, .faq-item {
        margin: 0.5rem;
    }

    .map-point {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Missing animation classes from JS */
.animate-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
