:root {
    --color-dark-base-1: #1a1a2e; /* Deep Navy/Graphite */
    --color-dark-base-2: #0e111a; /* Midnight */
    --color-accent-teal: #00e6e6; /* Holographic Teal */
    --color-accent-rose: #ff69b4; /* Holographic Rose */
    --color-text-light: #e0e0e0;
    --color-text-muted: #aaaaaa;
    --color-text-heading: #ffffff;

    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Manrope', sans-serif;

    --gradient-holographic-border: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-violet), var(--color-accent-rose), var(--color-accent-teal));
    --gradient-background-dark: linear-gradient(135deg, var(--color-dark-base-2) 0%, var(--color-dark-base-1) 100%);
    --gradient-button-primary: linear-gradient(45deg, var(--color-accent-teal), var(--color-accent-violet));
    --gradient-button-hover: linear-gradient(45deg, var(--color-accent-violet), var(--color-accent-rose));
    --shadow-holographic: 0 0 15px rgba(0, 230, 230, 0.5), 0 0 30px rgba(138, 43, 226, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-light);
    background: var(--gradient-background-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-heading);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    line-height: 1.2;
    background: var(--gradient-holographic-border);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-holographic-border);
    border-radius: 5px;
    opacity: 1;.7;
    animation: gradientShift 8s ease infinite;
}

h3 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent-teal);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    color: var(--color-accent-teal);
    text-decoration: none;
    transition: color 0.3s ease, background-image 0.3s ease;
}

a:hover {
    color: var(--color-accent-rose);
    text-decoration: none;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.button-primary {
    background: var(--gradient-button-primary);
    color: var(--color-text-heading);
    box-shadow: 0 5px 15px rgba(0, 230, 230, 0.4);
}

.button-primary:hover {
    background: var(--gradient-button-hover);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
    color: var(--color-text-heading); /* Ensure text color remains light */
}

.button-secondary {
    background: none;
    border: 2px solid;
    border-image: var(--gradient-holographic-border) 1;
    color: var(--color-accent-teal);
    padding: 0.8rem 1.8rem;
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.3);
}

.button-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--color-accent-rose);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background-color: var(--color-dark-base-2);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 230, 230, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -1px;
    background: var(--gradient-holographic-border);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav ul li a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-holographic-border);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: url('images/image_26.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Padding */
.section-padding {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Story Section - Card Grid */
.story-section {
    background-color: var(--color-dark-base-1);
    border-bottom: 1px solid rgba(0, 230, 230, 0.1);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background-color: var(--color-dark-base-2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-holographic);
    border: 1px solid transparent;
    border-image: var(--gradient-holographic-border) 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.6);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--color-accent-rose);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    flex-grow: 1; /* Allows paragraphs to take equal height */
}


/* Products Section - Feature Highlights */
.products-section {
    background-color: var(--color-dark-base-2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.feature-highlights {
    padding: 2rem 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    padding: 3rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 230, 230, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.feature-image {
    flex: 1;
    min-width: 400px;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.feature-block:hover .feature-image img {
    transform: scale(1.02);
}

.feature-content {
    flex: 1;
    min-width: 400px;
}

.feature-content h3 {
    font-size: 2rem;
    color: var(--color-accent-violet);
    margin-top: 0;
}

.feature-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.layout-left .feature-image {
    order: 1;
}

.layout-left .feature-content {
    order: 2;
}

.layout-right .feature-image {
    order: 2;
}

.layout-right .feature-content {
    order: 1;
    text-align: right;
}

.layout-right .feature-content .button {
    margin-left: auto;
}

/* Reviews Section - Video Testimonials (Simulated) */
.reviews-section {
    background-color: var(--color-dark-base-1);
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.video-testimonial {
    background-color: var(--color-dark-base-2);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-testimonial:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-button-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid var(--color-text-heading);
    margin-left: 5px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
}

.video-testimonial h3 {
    font-size: 1.35rem;
    color: var(--color-accent-teal);
    margin-bottom: 0.75rem;
}

.video-testimonial p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Gallery Section - Slideshow */
.gallery-section {
    background-color: var(--color-dark-base-2);
    border-bottom: 1px solid rgba(0, 230, 230, 0.1);
}

.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 230, 230, 0.3);
    border: 1px solid rgba(0, 230, 230, 0.2);
    background-color: var(--color-dark-base-1);
}

.slides {
    display: flex;
    width: 100%;
    position: relative;
    height: 500px;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.slideshow-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-text-light);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 5;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px;
}

.slideshow-nav button:hover {
    background-color: rgba(138, 43, 226, 0.7);
    color: var(--color-text-heading);
}

.nav-prev {
    left: 15px;
}

.nav-next {
    right: 15px;
}

.nav-prev::before { content: '<'; }
.nav-next::before { content: '>'; }

.slide-dots {
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 5;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--gradient-holographic-border);
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(0, 230, 230, 0.7);
}

/* Team Section - Circular Photos */
.team-section {
    background-color: var(--color-dark-base-1);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.team-member {
    background-color: var(--color-dark-base-2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 230, 230, 0.4);
}

.team-photo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid transparent;
    border-image: var(--gradient-holographic-border) 1;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .team-photo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.4rem;
    color: var(--color-accent-rose);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Portfolio/Gallery - Filterable Gallery */
.portfolio-section {
    background-color: var(--color-dark-base-2);
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: 2px solid;
    border-image: var(--gradient-holographic-border) 1;
    color: var(--color-accent-teal);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.2);
}

.tab-button:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--color-accent-rose);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.tab-button.active {
    background: var(--gradient-button-primary);
    color: var(--color-text-heading);
    box-shadow: 0 5px 15px rgba(0, 230, 230, 0.4);
    border-image: none;
}

.tab-content {
    padding: 2rem 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--color-accent-violet);
    font-size: 2rem;
}

.filterable-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 230, 230, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    color: var(--color-accent-rose);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Achievements Section - Timeline */
.achievements-section {
    background-color: var(--color-dark-base-1);
    border-bottom: 1px solid rgba(0, 230, 230, 0.1);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient-holographic-border);
    transform: translateX(-50%);
    animation: gradientShiftVertical 8s ease infinite;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.timeline-item:nth-child(odd) {
    text-align: left;
    padding-right: 50%; /* Space for content on left */
}

.timeline-item:nth-child(even) {
    text-align: right;
    padding-left: 50%; /* Space for content on right */
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-holographic-border);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.6);
    z-index: 2;
}

.timeline-content {
    background-color: var(--color-dark-base-2);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--color-accent-teal);
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.timeline-content h3 { /* For "Future Horizons" which is H3 */
    font-size: 1.5rem;
    color: var(--color-accent-teal);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Location Section - Side By Side */
.location-section {
    background-color: var(--color-dark-base-2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.side-by-side-layout {
    display: flex;
    gap: 4rem;
    padding: 2rem 0;
    align-items: stretch;
}

.info-panel {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 230, 230, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.info-panel:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.info-panel p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.map-panel {
    flex: 1;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 230, 230, 0.3);
}

.map-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark-base-2);
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 230, 230, 0.2);
}

.site-footer .container {
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-text-heading);
    background: var(--gradient-holographic-border);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.footer-about p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-nav h4 {
    font-size: 1.25rem;
    color: var(--color-accent-violet);
    margin-bottom: 1.2rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav ul li a {
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--color-accent-teal);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShiftVertical {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .feature-image, .feature-content {
        min-width: unset;
        width: 100%;
    }

    .layout-right .feature-content {
        text-align: center;
    }

    .layout-right .feature-content .button {
        margin: 0 auto;
    }

    .side-by-side-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        left: 15px; /* Move timeline to the left */
        transform: translateX(0);
    }

    .timeline-item {
        padding-left: 50px; /* Space for dot and line */
        padding-right: 0;
        text-align: left !important; /* Force all text to left */
    }

    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 15px; /* Align dots with line */
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .site-header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .card, .video-testimonial, .team-member, .gallery-item {
        padding: 1.5rem;
    }

    .slides {
        height: 350px;
    }

    .slideshow-nav button {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem;
    }

    .tab-buttons {
        flex-direction: column;
    }
    .tab-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.8rem 0;
    }
    .logo a {
        font-size: 1.8rem;
    }
    .main-nav ul {
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    .main-nav ul li a {
        font-size: 0.9rem;
    }

    .hero-section {
        height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    h3 {
        font-size: 1.2rem;
    }

    .card img {
        height: 150px;
    }

    .feature-image img {
        height: 250px;
    }

    .video-thumbnail {
        height: 150px;
    }
    .play-button {
        width: 50px;
        height: 50px;
    }
    .play-button::before {
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 16px solid var(--color-text-heading);
    }

    .slides {
        height: 250px;
    }

    .team-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .timeline-content h4, .timeline-content h3 {
        font-size: 1.2rem;
    }

    .info-panel {
        padding: 2rem;
    }
    .info-panel p {
        font-size: 0.95rem;
    }
    .map-panel {
        min-height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-nav {
        text-align: center;
    }
}

.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 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);
}

/* 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 */
.scroll-animate {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-animate.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;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
