@import url('images/image_20.jpg');

:root {
    --bg-color: #000000;
    --text-color: #00FF00; /* Green terminal text */
    --accent-color: #00CC00; /* Slightly darker green for accents */
    --border-color: #006600; /* Even darker green for borders */
    --secondary-text-color: #009900; /* Faded green for subtle text */
    --selection-bg: #00FF00; /* Green selection background */
    --selection-text: #000000; /* Black selection text */
    --glitch-color-1: #00FF00;
    --glitch-color-2: #00CC00;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', Courier New, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.8em;
    color: var(--text-color);
    text-transform: uppercase;
}

h3.section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
}

h3.section-title::after {
    content: '_';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

.section {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

/* Glitch Effect on Hover (for interactive elements, here used on titles) */
.section-title:hover, .logo a:hover {
    animation: glitch 0.5s linear infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 1px 0 0 var(--glitch-color-1), -1px 0 0 var(--glitch-color-2);
        transform: translate(0.5px, 0.5px);
    }
    20% {
        text-shadow: -1px 0 0 var(--glitch-color-1), 1px 0 0 var(--glitch-color-2);
        transform: translate(-0.5px, -0.5px);
    }
    40% {
        text-shadow: 1px 0 0 var(--glitch-color-1), -1px 0 0 var(--glitch-color-2);
        transform: translate(0.5px, 0.5px);
    }
    60% {
        text-shadow: -1px 0 0 var(--glitch-color-1), 1px 0 0 var(--glitch-color-2);
        transform: translate(-0.5px, -0.5px);
    }
    80% {
        text-shadow: 1px 0 0 var(--glitch-color-1), -1px 0 0 var(--glitch-color-2);
        transform: translate(0.5px, 0.5px);
    }
    100% {
        text-shadow: none;
        transform: none;
    }
}

/* Header */
header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    letter-spacing: 2px;
}

.logo a {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.9em;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 40vh; /* Compact height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: 
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        url('images/image_21.jpg'); /* Subtle background */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,255,0,0.05) 1px, rgba(0,255,0,0.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0,255,0,0.05) 1px, rgba(0,255,0,0.05) 2px);
    opacity: 1;.3;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.typewriter-text {
    font-size: 2.5em;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    display: inline-block;
    border-right: 2px solid var(--accent-color); /* Blinking cursor */
    animation: typing 3s steps(45, end) forwards, blink 1s step-end infinite;
    max-width: 100%; /* Ensure it doesn't overflow */
}

/* For the JS-added cursor */
.blinking-cursor {
    font-size: 1.2em;
    animation: blink 1s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-right-color: transparent }
    50% { border-right-color: var(--accent-color); }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Large feature blocks */
    gap: 40px;
}

.service-block {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: rgba(0, 50, 0, 0.2); /* Darker transparent green */
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex-direction: row; /* Default layout */
}

.service-block:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-block.reverse {
    flex-direction: row-reverse; /* Alternating layout */
}

.service-block img {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    margin-right: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-block.reverse img {
    margin-right: 0;
    margin-left: 30px;
}

.service-block h4 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 0.5em;
}

.service-block p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
}

/* Portfolio Section (Case Studies) */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-study-card {
    background-color: rgba(0, 50, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-study-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    border-color: var(--accent-color);
}

.case-study-images {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.case-study-images::before {
    content: 'BEFORE';
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: var(--text-color);
    padding: 3px 8px;
    font-size: 0.7em;
    z-index: 1;
    border: 1px solid var(--border-color);
}
.case-study-images::after {
    content: 'AFTER';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: var(--text-color);
    padding: 3px 8px;
    font-size: 0.7em;
    z-index: 1;
    border: 1px solid var(--border-color);
}


.case-study-card img {
    width: 48%; /* Before/After images */
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    filter: brightness(80%);
    transition: filter 0.3s ease;
}

.case-study-card:hover img {
    filter: brightness(100%);
}

.case-study-card h4 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 0.5em;
}

.case-study-card .subtitle {
    font-size: 0.85em;
    color: var(--secondary-text-color);
    margin-bottom: 1em;
}

.case-study-card p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-bottom: 0.5em;
}

.case-study-card p strong {
    color: var(--text-color);
}

/* About Section */
.about-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 cards */
    gap: 40px;
}

.about-card {
    background-color: rgba(0, 50, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.about-card h4 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 0.8em;
}

.about-card p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
}

/* Pricing Section */
.pricing-table {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr); /* Feature column + 3 plan columns */
    border: 1px solid var(--border-color);
    background-color: rgba(0, 50, 0, 0.2);
    font-size: 0.9em;
}

.pricing-header, .pricing-row {
    display: contents; /* Allows grid items to flow into grid columns directly */
}

.pricing-feature-col, .pricing-plan-col {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pricing-feature-col {
    justify-content: flex-start;
    color: var(--accent-color);
    font-weight: 700;
}

.pricing-header .pricing-feature-col {
    background-color: rgba(0, 50, 0, 0.4);
}

.pricing-header .pricing-plan-col {
    background-color: rgba(0, 50, 0, 0.4);
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1em;
}

.pricing-plan-col:last-child,
.pricing-feature-col:last-child {
    border-right: none;
}

.pricing-row:last-child .pricing-feature-col,
.pricing-row:last-child .pricing-plan-col {
    border-bottom: none;
}

.pricing-plan-col.check {
    color: var(--accent-color);
    font-weight: 700;
}

.pricing-plan-col.cross {
    color: #FF0000; /* Red for 'no' */
    opacity: 1;.6;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 50, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out, filter 0.3s ease;
    filter: brightness(80%) grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect */
    filter: brightness(100%) grayscale(0%);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    font-size: 0.9em;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* FAQ Section */
.faq-tabs {
    background-color: rgba(0, 50, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.tabs-header {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    gap: 15px;
}

.tab-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.tabs-content {
    padding: 0 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 0.6em;
}

.faq-item p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

/* Newsletter Section (Static Placeholder) */
.newsletter-section {
    text-align: center;
    background-color: rgba(0, 50, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 60px 0;
}

.newsletter-section h3 {
    margin-bottom: 1em;
}

.newsletter-section p {
    font-size: 1em;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.newsletter-static-info p {
    font-style: italic;
    color: var(--border-color);
    margin-top: 20px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start; /* Align top */
}

.contact-left, .contact-right {
    background-color: rgba(0, 50, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.contact-left h3, .contact-right h3 {
    color: var(--accent-color);
    margin-bottom: 1em;
    font-size: 1.8em;
}

.contact-left p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    margin-bottom: 1em;
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: rgba(0, 50, 0, 0.4);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(50%) contrast(150%) sepia(100%) hue-rotate(90deg) saturate(300%); /* Greenish tint to map */
    opacity: 1;.7;
}

.map-placeholder p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 10px;
    font-size: 0.85em;
    text-align: center;
    border-top: 1px solid var(--border-color);
}


/* Footer */
footer {
    background-color: var(--bg-color);
    color: var(--secondary-text-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.footer-nav ul {
    list-style: none;
    display: flex;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    color: var(--secondary-text-color);
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr; /* Stack services on smaller screens */
    }
    .service-block, .service-block.reverse {
        flex-direction: column;
        text-align: center;
    }
    .service-block img, .service-block.reverse img {
        max-width: 80%;
        margin: 0 auto 20px auto;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .about-card-grid {
        grid-template-columns: 1fr;
    }
    .pricing-table {
        grid-template-columns: 1fr; /* Stack pricing on smaller screens */
    }
    .pricing-header, .pricing-row {
        display: block; /* Each row/header becomes a block */
        border-bottom: 1px solid var(--border-color);
    }
    .pricing-header .pricing-feature-col, .pricing-header .pricing-plan-col,
    .pricing-row .pricing-feature-col, .pricing-row .pricing-plan-col {
        border-right: none; /* Remove right borders for stacking */
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .pricing-row .pricing-plan-col::before {
        content: attr(data-plan-name) ": ";
        font-weight: bold;
        color: var(--accent-color);
    }
    .pricing-header .pricing-plan-col {
        display: none; /* Hide individual plan headers on mobile */
    }
    .pricing-header .pricing-feature-col {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 0 0 10px 0;
    }
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .hero-section {
        min-height: 30vh;
    }
    .typewriter-text {
        font-size: 1.8em;
    }
    h3.section-title {
        font-size: 1.8em;
    }

    .footer-content {
        flex-direction: column;
    }
    .footer-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-nav ul li {
        margin: 5px 10px;
    }
}

@media (max-width: 480px) {
    .typewriter-text {
        font-size: 1.4em;
    }
    h3.section-title {
        font-size: 1.5em;
    }
    .tabs-header {
        flex-direction: column;
        gap: 10px;
    }
    .tab-button {
        width: 100%;
    }
    .case-study-images::before, .case-study-images::after {
        font-size: 0.6em;
        padding: 2px 5px;
    }
}

/* Ensure pricing plan names are accessible on mobile for stacked rows */
@media (max-width: 992px) {
    .pricing-row:nth-child(2) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(2) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(2) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(3) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(3) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(3) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(4) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(4) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(4) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(5) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(5) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(5) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(6) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(6) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(6) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }
    
    .pricing-row:nth-child(7) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(7) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(7) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(8) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(8) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(8) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }

    .pricing-row:nth-child(9) .pricing-plan-col:nth-child(2)::before { content: "Basic Integration: "; }
    .pricing-row:nth-child(9) .pricing-plan-col:nth-child(3)::before { content: "Advanced Flow: "; }
    .pricing-row:nth-child(9) .pricing-plan-col:nth-child(4)::before { content: "Enterprise Command: "; }
}

/* 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;
}
