:root {
    --color-primary: #1a0a2a; /* Deep Purple */
    --color-secondary: #0a0a1a; /* Midnight Black */
    --color-accent-magenta: #ff00ff; /* Neon Magenta */
    --color-accent-cyan: #00ffff; /* Neon Cyan */
    --color-accent-electric-blue: #00aaff; /* Electric Blue */
    --color-text-light: #e0e0e0;
    --color-text-dark: #888;
    --border-glow: 2px solid var(--color-accent-cyan);
    --text-glow: 0 0 5px var(--color-accent-cyan);
    --box-shadow-glow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo', sans-serif;
    line-height: 1.6;
    color: var(--color-text-light);
    background: var(--color-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent-magenta);
    text-shadow: var(--text-glow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--color-accent-electric-blue);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-accent-magenta), var(--color-accent-cyan));
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--color-accent-cyan);
}

.section-subtitle {
    font-family: 'Exo', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.main-header {
    background: var(--color-primary);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-accent-magenta);
    text-shadow: var(--text-glow);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--color-text-light);
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* For parallax effect */
    text-align: center;
    background-image: url('images/image_14.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 1;
    color: var(--color-text-light);
    max-width: 900px;
    transform: translateY(-50px); /* Floating content */
    animation: floatContent 3s ease-in-out infinite alternate;
}

@keyframes floatContent {
    0% { transform: translateY(-50px); opacity: 1;.9; }
    100% { transform: translateY(-30px); opacity: 1; }
}

.hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 15px var(--color-accent-magenta), 0 0 20px var(--color-accent-cyan);
}

.hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--color-text-light);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    perspective: 1000px;
}

.hero-cards .card {
    background: rgba(26, 10, 42, 0.8); /* Primary color with transparency */
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: var(--box-shadow-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.hero-cards .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-cards .card:hover::before {
    opacity: 1;
    animation: cardLightPulse 2s infinite alternate;
}

@keyframes cardLightPulse {
    0% { transform: scale(1) rotate(45deg); opacity: 1;.1; }
    100% { transform: scale(1.1) rotate(45deg); opacity: 1;.2; }
}

.hero-cards .card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 0 25px var(--color-accent-electric-blue), 0 0 15px var(--color-accent-magenta);
}

.hero-cards .card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.hero-cards .card p {
    font-size: 1.1em;
    font-weight: 300;
    color: var(--color-text-light);
}

/* Services Section - Feature Highlights */
.services-section {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 L 0 10" fill="none" stroke="%233a1f4a" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 1;.3;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    background: rgba(10, 10, 26, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid rgba(255, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-block:last-of-type {
    margin-bottom: 0;
}

.feature-block::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--color-accent-cyan) 0%, var(--color-accent-magenta) 100%);
    z-index: -1;
    filter: blur(15px);
    opacity: 1;.1;
    transition: opacity 0.5s ease;
}

.feature-block:hover::before {
    opacity: 1;.3;
}

.feature-image {
    flex: 1;
    min-width: 40%;
    padding: 20px;
    position: relative;
}

.feature-image img {
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border: 1px solid var(--color-accent-cyan);
    transition: transform 0.5s ease;
}

.feature-block:hover .feature-image img {
    transform: scale(1.02);
}

.feature-text {
    flex: 1;
    padding: 20px;
}

.feature-block h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.feature-block p {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 1em;
}

.alt-layout-left .feature-image {
    order: 2;
}

.alt-layout-left .feature-text {
    order: 1;
}

/* Portfolio Section - Case Study Cards */
.portfolio-section {
    background: var(--color-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background: var(--color-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid var(--color-accent-electric-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-accent-cyan), 0 0 15px var(--color-accent-magenta);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-accent-cyan);
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card .card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.portfolio-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--color-accent-electric-blue);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.portfolio-card p {
    font-size: 1.05em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.portfolio-card .before-after-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-accent-magenta);
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* About Section - Timeline Layout */
.about-section {
    background: var(--color-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-accent-cyan), var(--color-accent-magenta));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px var(--color-accent-cyan);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--color-accent-electric-blue);
    border: 3px solid var(--color-secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--color-accent-electric-blue);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--color-accent-magenta);
    box-shadow: 0 0 20px var(--color-accent-magenta);
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(10, 10, 26, 0.9);
    position: relative;
    border-radius: 6px;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-accent-cyan), 0 0 15px var(--color-accent-magenta);
}

.timeline-content h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.timeline-content p {
    font-size: 1.05em;
    color: var(--color-text-light);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(10, 10, 26, 0.9);
    right: -10px;
    top: 15px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(10, 10, 26, 0.9) transparent transparent;
    left: -10px;
    top: 15px;
}

/* Features Section - Icon with Text */
.features-section {
    background: var(--color-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: var(--color-primary);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid var(--color-accent-magenta);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.1) 0%, transparent 70%);
    transform: rotate(-45deg);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.feature-item:hover::before {
    opacity: 1;
    animation: featureLightPulse 2s infinite alternate;
}

@keyframes featureLightPulse {
    0% { transform: scale(1) rotate(-45deg); opacity: 1;.1; }
    100% { transform: scale(1.1) rotate(-45deg); opacity: 1;.2; }
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-accent-magenta), 0 0 15px var(--color-accent-cyan);
}

.feature-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-accent-electric-blue);
    margin-bottom: 25px;
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.7);
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 1.1em;
    color: var(--color-text-light);
}

/* Gallery Section - Slideshow */
.gallery-section {
    background: var(--color-primary);
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border: 2px solid var(--color-accent-cyan);
    box-shadow: var(--box-shadow-glow);
    border-radius: 10px;
    overflow: hidden;
}

.slideshow-container .slide {
    display: none;
    text-align: center;
}

.slideshow-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.slide-text {
    color: var(--color-text-light);
    font-size: 1.5em;
    padding: 15px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--text-glow);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--color-accent-cyan);
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    text-shadow: var(--text-glow);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 0, 255, 0.5);
    color: var(--color-accent-magenta);
    text-shadow: 0 0 15px var(--color-accent-magenta);
}

.slide-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: var(--color-text-dark);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: 1px solid var(--color-accent-cyan);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.dot.active, .dot:hover {
    background-color: var(--color-accent-magenta);
    box-shadow: 0 0 10px var(--color-accent-magenta);
}

/* Team Section - Interactive Profiles */
.team-section {
    background: var(--color-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    background: var(--color-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid var(--color-accent-cyan);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(0, 170, 255, 0.05));
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-accent-electric-blue), 0 0 15px var(--color-accent-cyan);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-accent-magenta);
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member .member-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.team-member h3 {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.team-member p {
    font-size: 1.1em;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--color-primary);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 40px;
    border: 2px solid var(--color-accent-cyan);
    border-radius: 10px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    box-shadow: var(--box-shadow-glow);
    position: relative;
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 1; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--color-accent-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.modal-content h3 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-accent-electric-blue);
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
}

.modal-content p {
    text-align: center;
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.modal-content p:last-of-type {
    margin-bottom: 0;
}

.close-button {
    color: var(--color-accent-magenta);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 0 10px var(--color-accent-magenta);
}

.close-button:hover,
.close-button:focus {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 15px var(--color-accent-cyan);
    text-decoration: none;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden; /* Prevent background scroll */
}

/* FAQ Section - Tabbed Interface */
.faq-section {
    background: var(--color-primary);
}

.faq-tabs {
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid var(--color-accent-cyan);
    border-radius: 10px;
    box-shadow: var(--box-shadow-glow);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 10px;
}

.tab-button {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    padding: 15px 25px;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    border-radius: 5px 5px 0 0;
}

.tab-button:hover {
    color: var(--color-accent-electric-blue);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.tab-button.active {
    color: var(--color-accent-magenta);
    text-shadow: 0 0 10px var(--color-accent-magenta);
    border-bottom: 2px solid var(--color-accent-magenta);
    background: rgba(26, 10, 42, 0.5);
}

.tab-pane {
    display: none; /* Hidden by default, shown by JS */
    padding: 20px 0;
}

.tab-pane h3 {
    font-size: 2em;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    margin-bottom: 25px;
    text-align: center;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(10, 10, 26, 0.8);
    border-left: 3px solid var(--color-accent-electric-blue);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    border-radius: 5px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 1.4em;
    color: var(--color-accent-magenta);
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.4);
}

.faq-item p {
    font-size: 1.1em;
    color: var(--color-text-light);
}

/* Testimonials Section - Star Ratings */
.testimonials-section {
    background: var(--color-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--color-primary);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid var(--color-accent-electric-blue);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.05), rgba(0, 255, 255, 0.05));
    transition: opacity 0.3s ease;
    z-index: 1;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-accent-cyan), 0 0 15px var(--color-accent-electric-blue);
}

.testimonial-card .stars {
    color: var(--color-accent-magenta);
    font-size: 1.8em;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

.testimonial-card p {
    font-size: 1.1em;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-card .reviewer {
    font-weight: 600;
    color: var(--color-accent-cyan);
    font-style: normal;
    text-align: right;
    margin-bottom: 0;
}

/* Contact Section - Side by Side */
.contact-section {
    background: var(--color-primary);
}

.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info-panel,
.contact-map-panel {
    flex: 1;
    min-width: 300px;
    background: rgba(10, 10, 26, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-glow);
    border: 1px solid var(--color-accent-cyan);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before,
.contact-map-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 1;
    animation: contactLightPulse 3s infinite alternate;
}

@keyframes contactLightPulse {
    0% { transform: scale(1) rotate(45deg); opacity: 1;.05; }
    100% { transform: scale(1.05) rotate(45deg); opacity: 1;.15; }
}

.contact-info-panel h3,
.contact-map-panel h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.contact-info-panel p,
.contact-map-panel p {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border: 1px dashed var(--color-accent-electric-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--color-accent-cyan);
    font-size: 1.2em;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;.6;
    filter: grayscale(100%) blur(1px);
    z-index: 0;
}

.map-placeholder .map-text {
    position: relative;
    z-index: 1;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 10px var(--color-accent-cyan);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Footer */
.main-footer {
    background: var(--color-secondary);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    color: var(--color-text-dark);
    text-align: center;
    margin-top: auto; /* Pushes footer to bottom */
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-footer p {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: var(--color-text-dark);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 0.95em;
    color: var(--color-text-dark);
}

.footer-nav ul li a:hover {
    color: var(--color-accent-electric-blue);
    text-shadow: none; /* remove hover text-shadow from main a */
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav ul {
        display: none; /* Hide for smaller screens, could add a hamburger menu */
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 3.5em;
    }

    .hero-description {
        font-size: 1.2em;
    }

    .hero-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 2.5em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
    }

    .alt-layout-left .feature-image {
        order: 1; /* Reset order for single column */
    }

    .alt-layout-left .feature-text {
        order: 2; /* Reset order for single column */
    }

    .feature-image, .feature-text {
        padding: 15px;
    }

    .feature-block h3 {
        font-size: 2em;
    }

    .portfolio-grid,
    .features-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .timeline::after {
        left: 20px; /* Move timeline line to left */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(10, 10, 26, 0.9) transparent transparent;
        left: -10px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(10, 10, 26, 0.9) transparent transparent;
        left: -10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .faq-tabs .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 90%;
        margin-bottom: 10px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .footer-nav ul li {
        margin: 0 10px 10px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.5em;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-description {
        font-size: 1em;
    }

    .hero-cards .card {
        padding: 20px;
    }

    .hero-cards .card h3 {
        font-size: 1.5em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
    }

    .feature-block h3 {
        font-size: 1.8em;
    }

    .feature-label {
        font-size: 2em;
    }

    .slideshow-container img {
        height: 350px;
    }

    .slide-text {
        font-size: 1.2em;
    }

    .prev, .next {
        font-size: 24px;
        padding: 12px;
    }

    .team-member img {
        height: 200px;
    }

    .team-member h3 {
        font-size: 1.5em;
    }

    .faq-item h4 {
        font-size: 1.2em;
    }

    .testimonial-card .stars {
        font-size: 1.5em;
    }
}

/* 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; } }

/* 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);
}
.fade-in-on-load {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in-on-load.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;
}
