/* Custom Dark Theme Overrides */

:root {
    --bg-color: #090415;
    /* RockFlow Dark Navy */
    --card-bg: rgba(30, 41, 59, 0.6);
    /* Slightly more opaque for better contrast */
    --text-primary: #ffffff;
    /* Pure white */
    --text-secondary: #e2e8f0;
    /* Very light grey */
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}

body {
    background-color: var(--bg-color);
    /* Dual background: Top RockFlow Glow + Bottom stylized glow */
    background-image:
        url("https://web-cdn.rockflow.tech/rockflow-website/home/pc-b-v1.png"),
        radial-gradient(circle at 50% 100%, #1a0b2e 0%, #090415 70%);
    background-size: 100% auto, 100% 500px;
    background-repeat: no-repeat;
    background-position: center top, center bottom;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary) !important;
}

p {
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    /* Base paragraph size */
}

/* Header & Nav */
#header {
    background: transparent !important;
    /* Restore transparency */
    border-bottom: none !important;
    /* Remove border */
    transition: all 0.3s ease;
}

#header .header-content {
    padding: 25px 0 !important;
    /* Moderate padding for balance */
}

#header.fixed {
    background-color: rgba(9, 4, 21, 0.95) !important;
    /* Updated to new dark bg */
    /* Dark background on scroll */
    padding: 10px 0 !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#header.fixed .header-content {
    padding: 10px 0 !important;
}

.navigation a {
    color: var(--text-primary) !important;
    font-size: 20px !important;
    /* Increased to 20px */
    font-weight: 600;
    /* Increased weight */
}

.navigation a:hover,
.navigation a.active {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    /* Glow text */
}

.logo {
    display: block;
    float: left;
    margin-top: 0;
    font-size: 36px;
    /* Increased to 36px */
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Banner */
.banner {
    position: relative;
}

.banner::after {
    display: none;
    /* Remove overlay to show glow */
}

#first-slider .carousel-inner {
    z-index: 0;
}

#first-slider .slide1 h3,
#first-slider .slide1 h4,
#first-slider .slide2 h3,
#first-slider .slide2 h4,
#first-slider .slide3 h3,
#first-slider .slide3 h4 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
    font-weight: 700;
}

#first-slider .slide1 h4,
#first-slider .slide2 h4,
#first-slider .slide3 h4 {
    font-weight: 500;
    line-height: 1.6;
    font-size: 24px !important;
    /* Larger banner text */
}

/* Section Headers */
#first-slider .slide1,
#first-slider .slide2,
#first-slider .slide3 {
    background-image: none !important;
    background: transparent !important;
}

#first-slider .carousel-inner {
    z-index: 0;
}

#first-slider h3 {
    font-size: 48px !important;
    /* Larger banner title */
}

/* Section Headers Default */
.section-header h2 {
    position: relative;
    display: inline-block;
    font-size: 42px !important;
    /* Huge section titles */
    font-weight: 700;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--gradient-main);
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent-purple);
    /* Glow bar */
}

.section-header p {
    font-size: 24px !important;
    /* Very large section description */
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: #cbd5e1 !important;
}

/* Intro / Performance Section */
.intro {
    background-color: transparent !important;
    padding-top: 80px;
}

/* Intro Layout Fix */
#intro .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#intro .col-md-3 {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.intro-content {
    background: rgba(20, 10, 35, 0.6);
    /* More subtle purple tint */
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    /* Purple border hint */
    backdrop-filter: blur(10px);
    margin-bottom: 0;
    /* Remove margin bottom as it's handled by column */
    transition: all 0.3s ease;
    height: 100%;
    /* Ensure full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.intro-content p {
    font-size: 22px !important;
    /* Card Content: 22px */
    line-height: 1.5;
    color: #e2e8f0 !important;
    font-weight: 500;
    /* Thicker font */
}

.intro-content:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05);
    /* Inner glow */
}

.intro-content h3 {
    font-size: 48px !important;
    /* Card Title: 48px */
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Services Section */
/* Services Layout Fix */
#services .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#services .col-md-4 {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.services-content {
    background: rgba(20, 10, 35, 0.6) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 24px;
    padding: 50px 40px !important;
    /* More padding */
    margin-top: 0 !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-content p {
    font-size: 20px !important;
    /* Card Content: 20px */
    line-height: 1.6;
    color: #e2e8f0 !important;
    font-weight: 400;
}

.services-content h5 {
    font-size: 28px !important;
    /* Card Title: 28px */
    margin-bottom: 25px !important;
    font-weight: 700;
    color: #ffffff !important;
}

.services-content:hover {
    transform: translateY(-12px);
    border-color: var(--accent-purple) !important;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.services .icon {
    background: transparent !important;
    color: var(--accent-cyan) !important;
    font-size: 60px !important;
    /* Huge icons */
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    display: block;
    margin: 0 auto 30px auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    /* Glow icon */
}

.services-content:hover .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8));
}

/* Process Section Layout Fix */
#process .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#process .services {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    /* Ensure spacing */
}

/* About Section */
.content-3-10 {
    background: transparent !important;
}

.content-3-10 .content {
    background: rgba(20, 10, 35, 0.8) !important;
    /* Darker background for readability */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    margin: 20px;
}

/* Remove old image and use gradient */
.content-3-10 .image-container .background-image-holder {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    background-size: cover !important;
    opacity: 1 !important;
    position: relative;
    overflow: hidden;
}

/* Add abstract shape to replace image */
.content-3-10 .image-container .background-image-holder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.editContent p {
    font-size: 22px !important;
    /* About Text: 22px */
    line-height: 1.8;
    margin-bottom: 25px;
    color: #f1f5f9 !important;
}

.editContent h3 {
    font-size: 42px !important;
    margin-bottom: 40px;
}

.highlight-check {
    color: var(--accent-cyan) !important;
    font-weight: bold;
    margin-right: 5px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Team Section Layout Fix */
#teams .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#teams .col-md-4 {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.person {
    background: rgba(20, 10, 35, 0.6);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 0;
    /* Remove margin bottom as it's handled by column */
    max-width: 100%;
    height: 100%;
    /* Ensure full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
}

.person-content p {
    font-size: 18px !important;
    /* Team Bio: 18px */
    line-height: 1.6;
    color: #cbd5e1 !important;
}

.person-content h4 {
    font-size: 26px !important;
    /* Team Name: 26px */
    font-weight: 700;
    margin-bottom: 5px;
}

.person:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}

.person h5 {
    color: var(--accent-cyan) !important;
    font-size: 18px !important;
    /* Role: 18px */
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Contact Section */
.conForm {
    background: rgba(20, 10, 35, 0.8);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

input,
textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    font-size: 18px !important;
    padding: 15px 20px !important;
    height: auto !important;
    border-radius: 12px;
    /* Smooth corners */
}

input:focus,
textarea:focus {
    border-color: var(--accent-cyan) !important;
    background: rgba(15, 23, 42, 0.9) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.submitBnt {
    background: var(--gradient-main) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.submitBnt:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
    /* Slight grow */
}

/* Footer */
.footer {
    background: rgba(9, 4, 21, 0.8);
    /* Darker footer */
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
    font-size: 16px;
    padding: 30px 0;
    backdrop-filter: blur(5px);
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Banner Text Sizing */
    #first-slider h3 {
        font-size: 28px !important;
        /* Reduced from 48px */
        word-wrap: break-word;
        /* Ensure long words break */
        margin-top: 10px;
    }

    #first-slider .slide1 h4,
    #first-slider .slide2 h4,
    #first-slider .slide3 h4 {
        font-size: 16px !important;
        /* Reduced from 24px */
        line-height: 1.4;
    }

    /* Banner Layout Alignment */
    #first-slider .col-md-3,
    #first-slider .col-md-9 {
        text-align: center !important;
        /* Center align on mobile */
    }

    #first-slider img {
        margin: 0 auto 10px auto;
        /* Center image and add bottom margin */
        max-width: 100px !important;
        /* Reduce image size on mobile */
        display: block;
    }

    /* Adjust container padding */
    #first-slider .carousel-inner {
        padding-top: 10px;
    }

    /* Override fixed height from main.css */
    #first-slider .carousel .item {
        min-height: auto !important;
        /* Allow height to adjust to content */
        height: auto !important;
        padding-bottom: 40px !important;
        /* Add some bottom padding for indicators */
    }

    /* Ensure container is relative to flow with content */
    .carousel-inner .item .container {
        position: relative !important;
        /* Reset absolute positioning */
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        padding-top: 100px;
        /* Increased to clear header */
        padding-bottom: 20px;
    }

    /* About Us - Increase text width */
    .content-3-10 {
        background: transparent !important;
    }

    .content-3-10 .content {
        background: var(--card-bg) !important;
        backdrop-filter: blur(10px);
        padding: 30px 20px !important;
        margin-top: 30px !important;
        /* Reduce top margin too */
    }

    /* Performance - Uniform Card Height */
    .intro-content {
        height: 320px !important;
        /* Enforce strict fixed height */
        min-height: 320px !important;
        margin-bottom: 20px !important;
    }

    .intro-content h3 {
        font-size: 36px !important;
    }

    /* Ensure column spacing */
    #intro .col-md-3 {
        margin-bottom: 20px !important;
    }

    /* Team Section */
    /* Team Layout Fix */
    #teams .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #teams .col-md-4 {
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .person {
        background: var(--card-bg);
        padding: 40px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        margin-bottom: 0;
        /* Remove margin bottom as it's handled by column */
        max-width: 100%;
        height: 100%;
        /* Ensure full height */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .person-content p {
        font-size: 18px !important;
        /* Team Bio: 18px */
        line-height: 1.6;
        color: #cbd5e1 !important;
    }

    .person-content h4 {
        font-size: 26px !important;
        /* Team Name: 26px */
        font-weight: 700;
        margin-bottom: 5px;
    }

    .person:hover {
        transform: translateY(-8px);
        border-color: var(--accent-cyan);
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
    }

    .person h5 {
        color: var(--accent-cyan) !important;
        font-size: 18px !important;
        /* Role: 18px */
        margin-bottom: 15px;
        font-weight: 600;
    }

    /* Contact Section */
    .conForm {
        background: var(--card-bg);
        padding: 60px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    input,
    textarea {
        background: rgba(15, 23, 42, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: var(--text-primary) !important;
        font-size: 18px !important;
        padding: 15px 20px !important;
        height: auto !important;
    }

    input:focus,
    textarea:focus {
        border-color: var(--accent-cyan) !important;
        background: rgba(15, 23, 42, 0.9) !important;
    }

    .submitBnt {
        background: var(--gradient-main) !important;
        color: white !important;
        border: none !important;
        padding: 15px 40px !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        font-size: 20px !important;
    }

    .submitBnt:hover {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    }

    /* Footer */
    .footer {
        background: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-secondary);

    }

    /* FIXED: Mobile Navigation Overlay */
    .navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(9, 4, 21, 0.98) !important;
        z-index: 999 !important;
        /* Below toggle button */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        float: none !important;
        /* Reset float */
        transform: translateY(-20px);
    }

    .navigation.open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }

    .navigation ul {
        width: 100%;
        text-align: center;
        padding-top: 20px;
    }

    .navigation li {
        display: block !important;
        margin: 20px 0 !important;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInData 0.5s forwards 0.2s;
    }

    .navigation.open li {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .navigation a {
        font-size: 24px !important;
        margin-left: 0 !important;
    }

    @keyframes fadeInData {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .section-header h2 {
        font-size: 32px !important;
    }
}

/* Particle Background */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}