/* CSS Variables for Cyberpunk Neon Theme */
:root {
    --color-midnight-black: #0A0A0A;
    --color-deep-purple: #2C073E;
    --color-neon-magenta: #FF00FF;
    --color-neon-cyan: #00FFFF;
    --color-electric-blue: #0000FF;
    --color-light-grey: #CCC;
    --color-white: #FFF;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo', sans-serif;

    --glow-intensity: 0 0 10px var(--color-neon-magenta),
                      0 0 20px var(--color-neon-cyan);
    --text-glow-light: 0 0 5px var(--color-neon-magenta),
                       0 0 10px var(--color-neon-cyan);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-light-grey);
    background-color: var(--color-midnight-black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-neon-magenta);
    text-shadow: var(--text-glow-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 0.8em;
    text-shadow: var(--text-glow-light);
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

h2 {
    font-size: 2.8em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.2em;
    color: var(--color-neon-cyan);
}

h3 {
    font-size: 1.8em;
    font-weight: 400;
    color: var(--color-neon-magenta);
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 20px;
    font-size: 2.8em;
}

.section-description {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1em;
    color: var(--color-light-grey);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-electric-blue), var(--color-neon-magenta));
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-intensity);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--color-neon-magenta), var(--color-electric-blue));
    box-shadow: 0 0 15px var(--color-neon-magenta), 0 0 25px var(--color-neon-cyan);
    transform: translateY(-2px);
}

/* Glow Effect for Cards and Borders */
.glow-border {
    position: relative;
    border-radius: var(--border-radius-md);
    padding: 20px;
    background-color: var(--color-deep-purple);
    border: 1px solid rgba(0, 255, 255, 0.3); /* Cyan border */
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2), inset 0 0 5px rgba(255, 0, 255, 0.1); /* Subtle internal/external glow */
    transition: all 0.3s ease;
}

.glow-border:hover {
    border-color: var(--color-neon-magenta);
    box-shadow: var(--glow-intensity), inset 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Pulse Effect for CTA */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: var(--glow-intensity); }
    50% { transform: scale(1.02); box-shadow: 0 0 15px var(--color-neon-magenta), 0 0 25px var(--color-neon-cyan); }
    100% { transform: scale(1); box-shadow: var(--glow-intensity); }
}

.pulse-effect {
    animation: pulse 2s infinite ease-in-out;
}

/* Header */
.main-header {
    background-color: var(--color-midnight-black);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-neon-cyan);
    text-shadow: var(--text-glow-light);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    color: var(--color-light-grey);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-neon-magenta), var(--color-neon-cyan));
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-neon-cyan);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.menu-toggle span::before {
    content: '';
    position: absolute;
    top: 0;
}

.menu-toggle span::after {
    content: '';
    position: absolute;
    bottom: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/image_16.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 0 15px var(--color-neon-magenta), 0 0 25px var(--color-neon-cyan);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* About Section - Card Grid */
.about-section {
    background-color: var(--color-midnight-black);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.card-grid .card {
    background-color: var(--color-deep-purple);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: var(--glow-intensity);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--color-neon-magenta), 0 0 30px var(--color-electric-blue);
}

.card-grid .card h3 {
    color: var(--color-neon-magenta);
    margin-bottom: 15px;
    font-size: 1.9em;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.card-grid .card p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-grid .card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.card-grid .card ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 8px;
    color: var(--color-light-grey);
}

.card-grid .card ul li::before {
    color: var(--color-neon-cyan);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    text-shadow: 0 0 5px var(--color-neon-cyan);
}

/* Services Section - Icon Grid */
.services-section {
    background-color: var(--color-deep-purple);
    background-image: linear-gradient(135deg, var(--color-deep-purple) 0%, var(--color-midnight-black) 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--color-midnight-black);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    font-size: 2.5em;
    color: var(--color-neon-cyan);
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 700;
}

.service-item:hover .service-icon {
    background-color: rgba(255, 0, 255, 0.1);
    border-color: var(--color-neon-magenta);
    box-shadow: 0 0 20px var(--color-neon-magenta);
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--color-neon-magenta);
    text-shadow: none; /* Remove redundant text glow */
}

.service-item p {
    font-size: 1em;
    color: var(--color-light-grey);
}

/* Portfolio Section - Carousel Slider */
.portfolio-section {
    background-color: var(--color-midnight-black);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glow-intensity);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%; /* Each item takes full width of container */
    flex-shrink: 0;
    text-align: center;
    background-color: var(--color-deep-purple);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    border: 2px solid var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.item-details h3 {
    color: var(--color-neon-magenta);
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: none;
}

.item-details p {
    font-size: 1.1em;
    color: var(--color-light-grey);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-neon-cyan);
    border: none;
    padding: 15px 10px;
    font-size: 2em;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.carousel-button:hover {
    background-color: var(--color-neon-magenta);
    color: var(--color-white);
    box-shadow: 0 0 15px var(--color-neon-magenta);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Our Approach (Tabs) Section */
.approach-section {
    background-color: var(--color-deep-purple);
    background-image: linear-gradient(45deg, var(--color-deep-purple) 0%, var(--color-midnight-black) 100%);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.tabs-container {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    color: var(--color-light-grey);
    font-family: var(--font-heading);
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease, border-bottom 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-button:hover {
    color: var(--color-neon-magenta);
    text-shadow: 0 0 8px var(--color-neon-magenta);
}

.tab-button.active {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 10px var(--color-neon-cyan);
    border-bottom: 3px solid var(--color-neon-cyan);
}

.tab-pane {
    background-color: var(--color-midnight-black);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h3 {
    color: var(--color-neon-magenta);
    margin-bottom: 15px;
    font-size: 1.9em;
}

.tab-pane p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.tab-pane ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.tab-pane ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 8px;
    color: var(--color-light-grey);
}

.tab-pane ul li::before {
    color: var(--color-neon-cyan);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    text-shadow: 0 0 5px var(--color-neon-cyan);
}

/* Team Section - Interactive Profiles */
.team-section {
    background-color: var(--color-midnight-black);
}

.team-profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--color-deep-purple);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-neon-cyan);
    box-shadow: 0 0 15px var(--color-neon-cyan);
    transition: all 0.3s ease;
}

.team-member:hover img {
    border-color: var(--color-neon-magenta);
    box-shadow: 0 0 20px var(--color-neon-magenta);
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--color-neon-magenta);
    font-size: 1.7em;
    margin-bottom: 5px;
    text-shadow: none;
}

.team-member .member-title {
    color: var(--color-light-grey);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 300;
}

.profile-toggle-button {
    background: linear-gradient(45deg, var(--color-electric-blue), var(--color-neon-cyan));
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95em;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--color-neon-cyan);
}

.profile-toggle-button:hover {
    background: linear-gradient(45deg, var(--color-neon-cyan), var(--color-electric-blue));
    box-shadow: 0 0 10px var(--color-neon-cyan);
}

.member-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    padding-top: 15px;
    text-align: left;
}

.member-details.active {
    max-height: 500px; /* Arbitrary large value to ensure content fits */
    opacity: 1;
}

.member-details p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.member-details ul {
    list-style: none;
    padding-left: 0;
}

.member-details ul li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 5px;
    color: var(--color-light-grey);
}

.member-details ul li::before {
    content: '\2022';
    color: var(--color-neon-magenta);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    text-shadow: 0 0 3px var(--color-neon-magenta);
}

/* Testimonials Section - Social Proof */
.testimonials-section {
    background-color: var(--color-deep-purple);
    background-image: linear-gradient(135deg, var(--color-midnight-black) 0%, var(--color-deep-purple) 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--color-midnight-black);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-card .client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--color-neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.testimonial-card .client-info h4 {
    margin: 0;
    color: var(--color-neon-cyan);
    font-size: 1.4em;
    text-shadow: none;
}

.testimonial-card .client-info p {
    margin: 0;
    color: var(--color-light-grey);
    font-size: 0.95em;
    font-weight: 300;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05em;
    color: var(--color-white);
    line-height: 1.7;
    flex-grow: 1; /* Ensure cards are same height if content varies */
}

/* Showcase Section - Highlights Grid */
.showcase-section {
    background-color: var(--color-midnight-black);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background-color: var(--color-deep-purple);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.highlight-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    border: 2px solid var(--color-electric-blue);
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color-electric-blue), 0 0 25px rgba(0, 0, 255, 0.6);
}

.highlight-card h3 {
    color: var(--color-neon-magenta);
    font-size: 1.6em;
    margin-bottom: 10px;
    text-shadow: none;
}

.highlight-card p {
    font-size: 1em;
    color: var(--color-light-grey);
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight-card .stat-highlight {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--color-neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Features Section - Comparison Table */
.features-section {
    background-color: var(--color-deep-purple);
    background-image: linear-gradient(45deg, var(--color-deep-purple) 0%, var(--color-midnight-black) 100%);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.comparison-table-container {
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-midnight-black);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: var(--glow-intensity);
}

.comparison-table-container h3 {
    text-align: center;
    color: var(--color-neon-magenta);
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.comparison-table th {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--color-neon-cyan);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.comparison-table td {
    color: var(--color-light-grey);
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover td {
    background-color: rgba(255, 0, 255, 0.05);
}

.comparison-table tbody tr td:first-child {
    font-weight: 500;
    color: var(--color-white);
}

.comparison-table .table-note {
    font-size: 0.85em;
    color: var(--color-light-grey);
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Gallery Section - Interactive Zoom (CSS only) */
.gallery-section {
    background-color: var(--color-midnight-black);
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1.1em;
    text-align: center;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter Section - Inline Form (conceptual) */
.newsletter-section {
    background-color: var(--color-deep-purple);
    background-image: linear-gradient(135deg, var(--color-midnight-black) 0%, var(--color-deep-purple) 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.newsletter-inline-content {
    max-width: 700px;
    margin: 50px auto 0;
    background-color: var(--color-midnight-black);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.newsletter-inline-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--color-white);
}

.newsletter-inline-content .cta-button {
    margin-bottom: 20px;
    font-size: 1.2em;
    padding: 18px 35px;
}

.newsletter-inline-content .note {
    font-size: 0.9em;
    color: var(--color-light-grey);
    font-style: italic;
}


/* Footer */
.main-footer {
    background-color: var(--color-midnight-black);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--color-light-grey);
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
}

.footer-nav li {
    margin: 0 15px;
}

.footer-nav a {
    color: var(--color-light-grey);
    font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }
    .hero-content p { font-size: 1.1em; }
    .section-padding { padding: 80px 0; }

    .card-grid,
    .icon-grid,
    .team-profiles,
    .social-proof-grid,
    .highlights-grid,
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carousel-item {
        padding: 20px;
    }

    .carousel-button {
        padding: 10px 5px;
        font-size: 1.5em;
    }

    .comparison-table-container {
        padding: 20px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Move nav below logo */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px 0;
        background-color: var(--color-midnight-black);
        border-top: 1px solid rgba(0, 255, 255, 0.1);
        box-shadow: inset 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav-list li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    body.nav-open .main-nav {
        max-height: 500px; /* Adjust as needed */
    }

    .menu-toggle span {
        background-color: transparent;
    }
    .menu-toggle span::before {
        top: 0;
        transform: rotate(45deg);
    }
    .menu-toggle span::after {
        top: 0; /* Adjust this if needed */
        transform: rotate(-45deg);
    }
    body.nav-open .menu-toggle span::before {
        top: 0px;
        transform: rotate(45deg);
    }
    body.nav-open .menu-toggle span::after {
        top: 0px; /* Aligns with 'before' to form an 'X' */
        transform: rotate(-45deg);
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-content p { font-size: 1em; }

    .card-grid,
    .icon-grid,
    .team-profiles,
    .social-proof-grid,
    .highlights-grid,
    .image-gallery-grid {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-button.prev { left: 5px; }
    .carousel-button.next { right: 5px; }

    .tabs-container {
        margin: 30px auto;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
        text-align: center;
    }

    .tab-button.active {
        border-bottom: 3px solid var(--color-neon-cyan);
    }

    .main-footer .footer-nav ul {
        flex-direction: column;
    }

    .main-footer .footer-nav li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .section-description { font-size: 0.95em; }
    .cta-button { padding: 12px 25px; font-size: 1em; }
    .hero-content { padding: 0 10px; }

    .service-icon { font-size: 2em; width: 60px; height: 60px; }
    .service-item h3 { font-size: 1.4em; }

    .testimonial-card .client-info img { width: 50px; height: 50px; }
    .testimonial-card .client-info h4 { font-size: 1.2em; }

    .newsletter-inline-content p { font-size: 1em; }
    .newsletter-inline-content .cta-button { font-size: 1em; padding: 15px 25px; }
}

/* 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;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
