:root {
    /* Color Palette: Deep purples and midnight blacks with neon accents (magenta, cyan, electric blue) */
    --color-primary-dark: #0A0A0F; /* Midnight Black */
    --color-secondary-dark: #1A0F2B; /* Deep Purple */
    --color-accent-magenta: #FF00FF;
    --color-accent-cyan: #00FFFF;
    --color-accent-blue: #00EEFF; /* Electric Blue */
    --color-text-light: #E0E0E0;
    --color-text-muted: #B0B0B0;

    /* Typography: Sleek techno fonts (Orbitron, Audiowide, or Exo) */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo', sans-serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --section-padding: 6rem;
    --container-max-width: 1200px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* Section Padding */
.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden; /* For containing glowing borders and effects */
    z-index: 1; /* Ensure sections are layered correctly */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--color-accent-blue);
    text-shadow: 0 0 10px var(--color-accent-blue), 0 0 20px var(--color-accent-blue), 0 0 30px var(--color-accent-blue);
    position: relative;
    z-index: 2;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

h3 {
    font-size: 1.7rem;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 3px var(--color-accent-magenta);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-muted);
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

ul li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-light);
}

ul li::before {
    content: ''; /* No icon entities as per restriction */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
    border-radius: 50%;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent-magenta);
    text-shadow: 0 0 5px var(--color-accent-magenta);
}

.cta-button {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 2.5);
    background: linear-gradient(45deg, var(--color-accent-magenta), var(--color-accent-blue));
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.6);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--color-accent-blue), var(--color-accent-magenta));
    color: var(--color-text-light);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8), 0 0 35px rgba(0, 238, 255, 0.8);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.main-header {
    background-color: rgba(10, 10, 15, 0.9); /* Slightly transparent for layered effect */
    padding: calc(var(--spacing-unit) * 1.5) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-secondary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-accent-blue) inset;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 8px var(--color-accent-magenta);
    position: relative;
    z-index: 2;
}

.logo a {
    color: var(--color-accent-magenta);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.logo a:hover {
    text-shadow: 0 0 15px var(--color-accent-magenta), 0 0 25px var(--color-accent-blue);
}

.main-nav ul {
    display: flex;
    gap: calc(var(--spacing-unit) * 2.5);
}

.main-nav ul li a {
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: calc(var(--spacing-unit) * 0.5) 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 8px var(--color-accent-blue);
}

.main-nav ul li a:hover {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.8)), url('images/image_27.jpg') center center / cover no-repeat;
    min-height: 400px; /* Compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--spacing-unit) * 5) 0;
    border-bottom: 2px solid var(--color-accent-magenta);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,238,255,0.1) 0%, transparent 70%);
    animation: lightPulse 8s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes lightPulse {
    0% { transform: scale(0.8) translate(-50%, -50%); opacity: 1;.2; }
    50% { transform: scale(1.2) translate(-50%, -50%); opacity: 1;.4; }
    100% { transform: scale(0.8) translate(-50%, -50%); opacity: 1;.2; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: calc(var(--spacing-unit) * 2);
    background-color: rgba(26, 15, 43, 0.6); /* Semi-transparent deep purple */
    border-radius: 10px;
    border: 1px solid var(--color-accent-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 10px rgba(0, 238, 255, 0.3);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    text-shadow: 0 0 15px var(--color-accent-blue), 0 0 25px var(--color-accent-cyan);
    margin-bottom: var(--spacing-unit);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section (Timeline Layout) */
.about-section {
    background-color: var(--color-secondary-dark);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMuZ3Iub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMzMzMzMzMiPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMTBIMFYxMFY0MFoiLz48cGF0aCBkPSJNMCAwTDQwIDQwVjEwSDQwVjBIMTBWMTBIMFYwWiIgb3BhY2l0eT0iLjMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwIDApIi8+PHBhdGggZD0iTTAgMjBMNDAgNjBWNDBIMTBWMTAyLjcgMyAzMiA0IDIwIDIwIDEwIDYwIDIwIDQwVjEwSHAwVjQwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMjApIi8+PHBhdGggZD0iTTAgMjBMNDAgNjBWNDBIMTBWMTAyLjcgMyAzMiA0IDIwIDIwIDEwIDYwIDIwIDQwVjEwSHAwVjQwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjAgLTIwKSIvPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMTBIMFYxMFY0MFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwIC0yMCkiLz48cGF0aCBkPSJNMCAwTDQwIDQwVjEwSDQwVjBIMTBVMTBIMFYwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDAgMCkiLz48cGF0aCBkPSJNMCAyMEw0MCA2MFY0MEgxMFYxMCgyNy43IDM3IDQzIDMwIDQwIDIwVjEwSDQzVjYwWk0wIDIwTDQwIDYwVjQwSDEwVjEwIDI3LjcgMzdMMjggMzAgNDAgMjBWMTBIMzBWNjBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MCAtMjApIi8+PC9nPjwvZz48L3N2Zz4=');
    background-size: 200px; /* Subtle circuit pattern */
    opacity: 1;.08;
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2) 0;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-image: linear-gradient(to bottom, var(--color-accent-magenta), var(--color-accent-blue));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 10px rgba(0, 238, 255, 0.5);
}

.timeline-item {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    position: relative;
    width: 50%;
    animation: fadeIn 1s ease-out forwards;
    opacity: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(0);
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(calc(var(--spacing-unit) * 3));
    animation-delay: 0.3s;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: calc(var(--spacing-unit) * 2);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: calc(var(--spacing-unit) * 2);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary-dark);
    border: 3px solid var(--color-accent-blue);
    border-radius: 50%;
    top: calc(var(--spacing-unit) * 3);
    z-index: 1;
    box-shadow: 0 0 15px var(--color-accent-blue);
    animation: glowPulse 2s infinite alternate;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--color-primary-dark);
    border: 1px solid var(--color-secondary-dark);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.5);
}

.timeline-content h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
    font-size: 1.8rem;
    color: var(--color-accent-cyan);
}
.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--color-accent-magenta);
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

.stats-highlights {
    display: flex;
    justify-content: space-around;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.stat-card {
    background-color: var(--color-secondary-dark);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    border: 1px solid var(--color-accent-blue);
    text-align: center;
    flex: 1 1 150px;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.6);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 10px var(--color-accent-magenta);
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.stat-description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}


/* Services Section (Feature Highlights with alternating layouts) */
.services-section {
    background-color: var(--color-primary-dark);
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    background-color: var(--color-secondary-dark);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 12px;
    border: 1px solid var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
}

.feature-block.layout-alt-left {
    flex-direction: row;
}

.feature-block.layout-alt-right {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-accent-magenta);
    text-shadow: 0 0 5px var(--color-accent-magenta);
}
.feature-text h3 {
    font-size: 1.4rem;
    color: var(--color-accent-cyan);
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

.feature-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.5);
}

.feature-image img {
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.feature-block:hover .feature-image img {
    transform: scale(1.05);
}

/* Features Section (Visual Showcase with Tabs) */
.features-section {
    background-color: var(--color-secondary-dark);
}

.features-subheader {
    font-size: 2rem;
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.features-content-text {
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 4) auto;
    text-align: center;
    color: var(--color-text-muted);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border: 1px solid var(--color-accent-magenta);
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background-color: var(--color-accent-magenta);
    color: var(--color-primary-dark);
    box-shadow: 0 0 20px var(--color-accent-magenta);
}

.tab-button.active {
    background-color: var(--color-accent-blue);
    color: var(--color-primary-dark);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 20px var(--color-accent-blue), 0 0 30px var(--color-accent-cyan);
    transform: translateY(-3px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.8s ease-out forwards;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: calc(var(--spacing-unit) * 3);
}

.visual-showcase-item {
    background-color: var(--color-primary-dark);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 10px;
    border: 1px solid var(--color-secondary-dark);
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.visual-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 35px rgba(255, 0, 255, 0.3);
}

.visual-showcase-item img {
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    height: 200px; /* Fixed height for visual consistency */
    object-fit: cover;
    border: 1px solid var(--color-accent-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
    transition: transform 0.4s ease;
}

.visual-showcase-item:hover img {
    transform: scale(1.03);
}

.visual-showcase-item h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-unit);
    color: var(--color-accent-blue);
    text-shadow: 0 0 5px var(--color-accent-blue);
}

.visual-showcase-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Team Section (Circular Photos) */
.team-section {
    background-color: var(--color-primary-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: calc(var(--spacing-unit) * 4);
}

.team-member {
    background-color: var(--color-secondary-dark);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color-accent-magenta);
    box-shadow: 0 0 18px rgba(255, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 238, 255, 0.4);
}

.circular-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto calc(var(--spacing-unit) * 1.5) auto;
    border: 4px solid var(--color-accent-blue);
    box-shadow: 0 0 15px var(--color-accent-blue);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .circular-photo {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 25px var(--color-accent-cyan);
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.team-member h4 {
    font-size: 1.1rem;
    color: var(--color-accent-magenta);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.team-member p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: left;
}

/* Portfolio/Gallery (Carousel Slider) */
.portfolio-section {
    background-color: var(--color-secondary-dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-radius: 12px;
    background-color: var(--color-primary-dark);
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.4);
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
}

.carousel-item img {
    max-height: 500px;
    width: auto;
    margin: 0 auto calc(var(--spacing-unit) * 2) auto;
    border-radius: 8px;
    border: 2px solid var(--color-accent-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.carousel-item h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-unit);
    color: var(--color-accent-cyan);
    text-shadow: 0 0 8px var(--color-accent-cyan);
}

.carousel-item p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 0, 255, 0.6);
    color: var(--color-primary-dark);
    border: none;
    padding: calc(var(--spacing-unit) * 1);
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px var(--color-accent-magenta);
    font-family: var(--font-heading);
}

.carousel-nav.prev-button {
    left: calc(var(--spacing-unit) * 2);
}

.carousel-nav.next-button {
    right: calc(var(--spacing-unit) * 2);
}

.carousel-nav:hover {
    background-color: var(--color-accent-blue);
    box-shadow: 0 0 25px var(--color-accent-blue), 0 0 35px var(--color-accent-cyan);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev-button::before {
    content: '<';
}

.carousel-nav.next-button::before {
    content: '>';
}

/* Showcase/Highlights (Success Stories) */
.success-stories-section {
    background-color: var(--color-primary-dark);
}

.success-story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: calc(var(--spacing-unit) * 4);
}

.story-card {
    background-color: var(--color-secondary-dark);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 10px;
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 0 18px rgba(0, 238, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
}

.story-card img {
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    height: 250px; /* Consistent image height */
    object-fit: cover;
    border: 2px solid var(--color-accent-magenta);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.02);
}

.story-card h3 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--color-accent-magenta);
    text-shadow: 0 0 5px var(--color-accent-magenta);
}

.story-card h4 {
    font-size: 1.1rem;
    color: var(--color-accent-cyan);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.story-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.testimonial-quote {
    font-style: italic;
    color: var(--color-text-light);
    margin-top: calc(var(--spacing-unit) * 2);
    border-left: 3px solid var(--color-accent-blue);
    padding-left: calc(var(--spacing-unit) * 1.5);
    font-weight: 300;
}

/* Testimonials Section (Social Proof Style) */
.testimonials-section {
    background-color: var(--color-secondary-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: calc(var(--spacing-unit) * 4);
}

.testimonial-card {
    background-color: var(--color-primary-dark);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 10px;
    border: 1px solid var(--color-accent-cyan);
    box-shadow: 0 0 18px rgba(0, 238, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: calc(var(--spacing-unit) * 1.5);
    border: 2px solid var(--color-accent-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    flex-shrink: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    position: relative;
}

.testimonial-header h3 {
    font-size: 1.5rem;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 4px var(--color-accent-magenta);
    margin-bottom: 0;
}

.testimonial-handle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-left: var(--spacing-unit);
    margin-bottom: 0;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
    margin-bottom: 0;
}

/* Newsletter Section (Social Integration - interpreted as community focus, no external links) */
.newsletter-section {
    background-color: var(--color-primary-dark);
    text-align: center;
    position: relative;
    padding-bottom: calc(var(--section-padding) / 2);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMuZ3JvdmUuY29tL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjMzMzMzMzIj48cGF0aCBkPSJNMCA0MEw0MCAwSDEwSDBWMTBWNDBaIi8+PHBhdGggZD0iTTAgMEw0MCA0MFYxMEg0MFYwSDEwVjEwSDBWMFoiIG9wYWNpdHk9Ii4zIiB0cmFuc2Zvcm09InRyYW5zbGF0Z2FteSB0cmFuc2xhdGUoMjAgMCkiLz48cGF0aCBkPSJNMCAyMEw0MCA2MFY0MEgxMFYxMDkuNyAzMiAzNyA0MzAzMCAyMFYxMEgxMHY2MFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTIwKSIvPjxwYXRoIGQ9Ik0wIDIwTDQwIDYwVjQwSDEwVjEwMi43IDMyIDQzIDMwIDIwVjEwMHY2MFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwIC0yMCkiLz48cGF0aCBkPSJNMCA0MEw0MCAwSDEwSDBWMTBWNDBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSh2biAtMjApIi8+PHBhdGggZD0iTTAgMEw0MCA0MFYxMEg0MFYwSDEwVjEwSDBWMFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQwIDApIi8+PHBhdGggZD0iTTAgMjBMNDAgNjBWNDBIMTBWMTAyLjcgMzcgNDMgMzAgNDAgMjBWMTBIMzBWNjBaIiB0cmFuc2Zvcm09InRyYW5zZGVkKDQwIC0yMCkiLz48L2c+PC9nPjwvc3ZnPg==');
    background-size: 150px;
    opacity: 1;.1;
    z-index: 0;
    animation: backgroundGlow 20s infinite linear;
}

@keyframes backgroundGlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.newsletter-description {
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2) auto;
    font-size: 1.1rem;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

.newsletter-cta {
    margin-top: calc(var(--spacing-unit) * 3);
    position: relative;
    z-index: 1;
}

/* Contact Section (Multi Column) */
.contact-section {
    background-color: var(--color-secondary-dark);
}

.contact-intro {
    max-width: 900px;
    margin: 0 auto calc(var(--spacing-unit) * 2) auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.contact-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

.contact-method {
    background-color: var(--color-primary-dark);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-method:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.6), 0 0 35px rgba(255, 0, 255, 0.4);
}

.contact-method h3 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-accent-blue);
    text-shadow: 0 0 5px var(--color-accent-blue);
}

.contact-method p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
    flex-grow: 1;
}

/* Footer */
.main-footer {
    background-color: var(--color-primary-dark);
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
    border-top: 1px solid var(--color-secondary-dark);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5), inset 0 0 15px var(--color-accent-magenta);
}

.main-footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px var(--color-accent-blue); }
    50% { box-shadow: 0 0 20px var(--color-accent-blue), 0 0 30px var(--color-accent-cyan); }
    100% { box-shadow: 0 0 10px var(--color-accent-blue); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: calc(var(--spacing-unit) * 1.5);
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .feature-block, .feature-block.layout-alt-right {
        flex-direction: column;
    }
    .feature-image {
        min-width: 100%;
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    .feature-text {
        text-align: center;
    }
    .feature-text h2 {
        font-size: 1.8rem;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        transform: translateX(0) !important;
        padding-left: calc(var(--spacing-unit) * 2);
        padding-right: 0;
    }
    .timeline-item::before {
        left: 0;
    }
    .timeline::after {
        left: 10px;
    }
    .timeline-dot {
        left: 0px !important;
        margin-left: -10px;
    }
    .timeline-content {
        padding-left: calc(var(--spacing-unit) * 3);
        text-align: left !important;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        padding-right: calc(var(--spacing-unit) * 2);
    }
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: calc(var(--spacing-unit) * 2);
    }
    .stats-highlights {
        flex-direction: column;
        align-items: center;
    }
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    .tab-pane.active {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .team-grid, .success-story-grid, .testimonials-grid, .contact-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: var(--spacing-unit);
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-unit);
    }
    .hero-section {
        min-height: 350px;
        padding: calc(var(--spacing-unit) * 3) 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: calc(var(--spacing-unit) * 3);
    }
    .timeline::after {
        left: 18px; /* Adjust for smaller timeline line position */
    }
    .timeline-dot {
        left: 8px !important; /* Adjust dot position */
    }
    .timeline-item {
        padding-left: calc(var(--spacing-unit) * 4); /* Ensure content doesn't overlap line */
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: var(--spacing-unit);
        padding-right: var(--spacing-unit);
    }
    .tab-buttons {
        flex-direction: column;
        gap: var(--spacing-unit);
    }
    .tab-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .tab-pane.active, .team-grid, .success-story-grid, .testimonials-grid, .contact-columns {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    .carousel-nav.prev-button {
        left: calc(var(--spacing-unit) * 0.5);
    }
    .carousel-nav.next-button {
        right: calc(var(--spacing-unit) * 0.5);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .cta-button {
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
        font-size: 1rem;
    }
    .logo {
        font-size: 1.8rem;
    }
    .main-nav ul li a {
        font-size: 0.9rem;
    }
    .carousel-item h3 {
        font-size: 1.5rem;
    }
}

/* 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: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* 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;}
