/*
--- DIGITAL MARKETING WEBSITE STYLESHEET ---
Theme: Future-Forward & Technical
Primary Colors: Deep Navy, Electric Blue, Glowing Purple
Font: Inter, Roboto Mono
*/

/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --primary-bg: #0A0F1E;
    --card-bg: #10182c;
    --border-color: rgba(0, 191, 255, 0.2);
    --accent-primary: #00BFFF;
    /* DeepSkyBlue */
    --accent-secondary: #8A2BE2;
    /* BlueViolet */
    --heading-color: #E5E7EB;
    --text-color: #9CA3AF;
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* --- 2. GLOBAL & UTILITY STYLES --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    filter: brightness(1.2);
}

ul {
    list-style: none;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.cta-button-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}


/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-color);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--heading-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-subheading {
    font-family: var(--font-mono);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 2.8s;
}

/* After typing */
.animate-on-load:nth-child(4) {
    animation-delay: 3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. STACK SECTION (SERVICES) --- */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stack-card {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stack-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.card-tag {
    display: inline-block;
    margin-top: 20px;
    margin-right: 10px;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

/* --- 6. DATAFLOW SECTION (PROCESS) --- */
.dataflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 20px;
}

.dataflow-node {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    text-align: center;
    height: 100%;
}

.node-label {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.dataflow-node h4 {
    margin-bottom: 10px;
    color: var(--heading-color);
}

.dataflow-node p {
    font-size: 0.9rem;
}

.dataflow-connector {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-primary);
}

/* --- 7. DASHBOARD SECTION --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.dashboard-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.dashboard-header .section-title p {
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    padding: 1px;
}

.metric-card {
    background: var(--card-bg);
    padding: 30px;
}

.metric-card.main-metric {
    grid-column: 1 / -1;
    text-align: center;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    display: inline-block;
}

.main-metric .metric-value {
    font-size: 5rem;
}

.metric-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-block;
    margin-left: 5px;
}

.main-metric .metric-unit {
    font-size: 2.5rem;
}

/* --- 8. INDUSTRIES SECTION --- */
.industries-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    border-color: var(--accent-primary);
}

.tab-content {
    display: none;
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.tab-content h3 {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- 9. TESTIMONIALS SECTION --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border-left: 3px solid var(--accent-primary);
    padding: 30px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.author-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.author-name {
    display: block;
    color: var(--heading-color);
}

.author-title {
    color: var(--text-color);
}

/* --- 10. CTA SECTION --- */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-mono);
    color: var(--heading-color);
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- 11. FOOTER --- */
.site-footer {
    padding: 80px 0 0;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-column h4 {
    font-family: var(--font-mono);
    margin-bottom: 20px;
    color: var(--heading-color);
}

.footer-column p,
.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-contact p {
    font-family: var(--font-mono);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 0.8rem;
}

/* --- 12. OTHER PAGES (CONTACT, LEGAL) --- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-mono);
}

.page-header p {
    max-width: 700px;
    margin: 20px auto 0;
}

.contact-page-section {
    padding-bottom: 120px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.form-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    color: var(--text-color);
}

.contact-form {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    width: 100%;
}

.form-group.full-span {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: var(--font-mono);
    color: #4B5563;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.legal-content {
    padding-bottom: 120px;
}

.legal-content .container {
    max-width: 800px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.legal-content h3 {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style-type: '>';
    padding-left: 20px;
}

.legal-content li {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* --- 13. RESPONSIVENESS --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
        min-height: 100px;
    }

    .stack-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .dataflow-grid {
        grid-template-columns: 1fr;
    }

    .dataflow-connector {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-header .section-title {
        margin-bottom: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        min-height: 80px;
    }

    section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--primary-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metric-card.main-metric {
        grid-column: auto;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }
}