:root {
    --primary-bg: #000;
    --secondary-bg: #fff;
    --accent-color: #FF0077; /* Bright Pink */
    --text-light: #fff;
    --text-dark: #000;
    --overlay-color: rgba(0, 0, 0, 0.7);

    --font-heading: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;

    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.2;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; margin-bottom: 1em; text-align: center; }
h3 { font-size: 1.8em; margin-bottom: 0.8em; }
h4 { font-size: 1.4em; margin-bottom: 0.6em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.main-header {
    background-color: var(--primary-bg);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5em;
    color: var(--accent-color);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Sections General */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For animations, overlays */
}

section:nth-of-type(even) {
    background-color: #f5f5f5; /* Slightly off-white for contrast */
}

/* HERO SECTION: GRID OVERLAY (Revised) */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('images/image_19.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    color: var(--text-light);
    overflow: hidden;
}

.hero-section::before { /* Dark overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-overlay-grid {
    position: relative;
    z-index: 2; /* Ensure grid content is above overlay */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    align-items: center;
}

.hero-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding: 40px;
    background-color: var(--overlay-color); /* Content boxes have their own background */
    border-left: 5px solid var(--accent-color);
    animation: fadeInSlideLeft 1s forwards;
    transform: translateX(-50px);
    opacity: 1;
}

.hero-content h2 {
    font-size: 3.8em;
    color: var(--text-light);
    margin-bottom: 0.5em;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* This grid item is intentionally left mostly empty to create asymmetrical space */
.hero-image.grid-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background-color: rgba(255, 255, 255, 0.05); /* A subtle transparent box for visual structure */
    border-right: 5px solid var(--accent-color);
}

.hero-tagline {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: var(--accent-color);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    animation: fadeInSlideUp 1.2s forwards;
    transform: translateY(50px);
    opacity: 1;
}

.hero-tagline h3 {
    font-size: 2em;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Animations for Hero Section */
@keyframes fadeInSlideLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* STORY SECTION */
.story-section {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

.story-section h2 {
    color: var(--accent-color);
    margin-bottom: 2em;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-item-right {
    flex-direction: row-reverse;
}

.story-item-left {
    flex-direction: row;
}

.story-image-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--overlay-color);
    padding: 30px;
    color: var(--text-light);
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease-out;
    border-top: 5px solid var(--accent-color);
}

.story-item:hover .story-text-overlay {
    transform: translateY(0);
}

.story-text-overlay h3 {
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 0.5em;
}

.story-text-overlay p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* FEATURES SECTION */
.features-section {
    background-color: var(--secondary-bg);
    color: var(--text-dark);
}

.features-section h2 {
    color: var(--primary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--primary-bg);
    color: var(--text-light);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.feature-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    /* Attempt to make placeholder images match accent color or be monochrome */
    filter: invert(1) brightness(0.8) sepia(1) hue-rotate(-50deg) saturate(5); /* Tint towards pinkish */
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    padding: 5px;
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* PRODUCTS SECTION */
.products-section {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

.products-section h2 {
    color: var(--accent-color);
}

.tabs {
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--primary-bg);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.tab-button:hover:not(.active) {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--text-light);
    box-shadow: 0 0 15px var(--accent-color);
}

.tab-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.tab-pane p {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-detail-item {
    background-color: var(--overlay-color);
    padding: 25px;
    border-left: 3px solid var(--accent-color);
    transition: transform var(--transition-speed);
}

.service-detail-item:hover {
    transform: scale(1.02);
}

.service-detail-item h4 {
    color: var(--text-light);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.service-detail-item p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    text-align: left;
}

/* PORTFOLIO/GALLERY */
.portfolio-section {
    background-color: var(--secondary-bg);
    color: var(--text-dark);
}

.portfolio-section h2 {
    color: var(--primary-bg);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    overflow: hidden;
    border: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    min-width: 100%; /* Each slide takes full width of container */
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--overlay-color);
    color: var(--text-light);
    padding: 20px 30px;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.carousel-slide:hover .slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.slide-overlay h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.slide-overlay p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    line-height: 1;
}

.carousel-nav:hover {
    background-color: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.carousel-nav.next {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* REVIEWS SECTION */
.reviews-section {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

.reviews-section h2 {
    color: var(--accent-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 3-card layout */
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--overlay-color);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #333;
    margin-bottom: 20px;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-speed) ease-in-out, background-color var(--transition-speed);
    box-shadow: 0 0 20px rgba(255, 0, 119, 0.8);
    opacity: 1;.9;
}

.play-button::before {
    content: '▶';
    font-size: 2.5em;
    color: var(--primary-bg);
    margin-left: 5px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--text-light);
    box-shadow: 0 0 30px var(--accent-color);
}

.testimonial-card h3 {
    color: var(--text-light);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-card cite {
    display: block;
    font-size: 0.9em;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
}

/* LOCATION SECTION */
.location-section {
    background-color: var(--secondary-bg);
    color: var(--text-dark);
}

.location-section h2 {
    color: var(--primary-bg);
}

.location-section .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    color: #555;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quick-action-card {
    background-color: var(--primary-bg);
    color: var(--text-light);
    padding: 30px;
    text-align: center;
    border: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed);
    text-transform: uppercase;
}

.quick-action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.quick-action-card h4 {
    color: var(--accent-color);
    font-size: 1.6em;
    margin-bottom: 15px;
    transition: color var(--transition-speed);
}

.quick-action-card:hover h4 {
    color: var(--primary-bg);
}

.quick-action-card p {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    transition: color var(--transition-speed);
}

.quick-action-card:hover p {
    color: var(--primary-bg);
}

/* Footer */
.main-footer {
    background-color: var(--primary-bg);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    border-top: 5px solid var(--accent-color);
}

.main-footer p {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }

    .main-nav ul {
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 3em;
    }

    .story-item {
        flex-direction: column;
    }
    .story-item-right {
        flex-direction: column;
    }
    .story-item-left {
        flex-direction: column;
    }
    .story-image-wrapper {
        margin-bottom: 20px;
        min-height: 300px;
    }
    .story-text-overlay {
        position: static;
        transform: translateY(0);
        border-top: none;
        padding: 20px;
        background-color: rgba(0,0,0,0.8);
    }
    .story-item:hover .story-text-overlay {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .logo {
        margin-bottom: 10px;
    }

    .hero-overlay-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .hero-content {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        padding: 30px;
    }
    .hero-image.grid-item-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        height: 300px; /* Give it a fixed height on mobile */
    }
    .hero-tagline {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        padding: 20px;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-tagline h3 {
        font-size: 1.5em;
    }

    .features-grid, .testimonials-grid, .service-details-grid, .quick-contact-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .tab-buttons {
        flex-direction: column;
    }
    .tab-button {
        width: 100%;
    }

    .carousel-slide img {
        height: 300px; /* Adjust carousel image height */
    }
    .carousel-nav {
        font-size: 1.5em;
        padding: 10px 15px;
    }

    .story-image-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .main-nav ul {
        gap: 10px;
        font-size: 0.9em;
    }
    .main-nav a {
        padding: 5px 0;
    }

    .hero-content h2 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-tagline h3 {
        font-size: 1.2em;
    }

    section {
        padding: 60px 0;
    }
    .tab-content {
        padding: 30px 20px;
    }
    .slide-overlay h3 {
        font-size: 1.5em;
    }
    .slide-overlay p {
        font-size: 1em;
    }
}

/* 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);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
