/* ================================================= */
/* ===== YOUR CUSTOM THEME FOR THE NEW WEBSITE ===== */
/* ================================================= */

/* --- 1. CORE & BACKGROUND --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=fallback');

body {
    font-family: 'Roboto', sans-serif;
    color: #f0f0f0 !important;
    background-color: #121212;
    background: radial-gradient(ellipse at top, #1f1f1f, #121212);
}


/* --- 2. MAIN ACCENT COLOR & TYPOGRAPHY --- */
h1 strong {
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #a5f3fc, #6ac392, #a5f3fc) !important;
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    animation: gradient-flow 4s linear infinite;
    /* font-weight: 300 !important; */
}
@keyframes gradient-flow { to { background-position: 200% center; } }


/* --- 3. THE DEFINITIVE BUTTON FIX --- */
.max-w-7xl .bg-primary {
    background-color: #6ac392 !important;
    color: #1e1f1f !important;
}
.max-w-7xl .hover\\:bg-primary-600:hover {
    background-color: #58b182 !important;
}


/* --- 4. GENERAL BUTTON STYLING --- */
.btn-primary { border-radius: 50px !important; font-weight: 600 !important; transition: all 0.3s ease !important; }
.btn-primary:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 20px rgba(106, 195, 146, 0.4); }
.btn-secondary { border: 1px solid #6ac392 !important; color: #f0f0f0 !important; background: transparent !important; border-radius: 50px !important; transition: all 0.3s ease !important; }
.btn-secondary:hover { background-color: rgba(106, 195, 146, 0.1) !important; transform: translateY(-2px); }


/* --- 5. NAVIGATION BAR --- */
.navbar { background-color: rgba(30, 33, 37, 0.7) !important; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; }
.navbar a { color: #f0f0f0 !important; }


/* --- 6. "GLASS CARD" EFFECT --- */
.glass-card {
    background-color: rgba(30, 33, 37, 0.85) !important;
    background-image: 
        radial-gradient(circle at 0% 100%, hsla(148, 60%, 50%, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, hsla(188, 95%, 82%, 0.15) 0%, transparent 40%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(106, 195, 146, 0.5);
    box-shadow: 0 0 35px rgba(106, 195, 146, 0.25);
    padding: 40px;
    border-radius: 12px;
}
.glass-card > p {
    margin-bottom: 40px;
}


/* --- 7. CUSTOM HAZE/GLOW COLORS --- */
.blur-3xl > div {
    background-image: linear-gradient(to right, #a5f3fc, #6ac392) !important;
    opacity: 0.2 !important; 
}


/* --- 8. HIDE BACKGROUND GRID PATTERN --- */
svg[class*="stroke-white"] {
    display: none !important;
}


/* --- 9. FINAL DIGITAL RAIN & SERVICE GRID --- */
.hero {
    position: relative;
    padding-bottom: 40px;
    overflow: hidden;
}
.digital-rain-container {
    position: absolute;
    top: 320px;
    bottom: 0;
    left: 0;
    right: 37.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}
#digital-rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.service-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 230px);
    justify-content: center;
    gap: 30px;
}
.service-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 20px;
    min-height: 210px; 
    color: #f0f0f0;
    background-color: rgba(30, 33, 37, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 195, 146, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative; /* ADD THIS LINE: Makes it an anchor for the shield */
    z-index: 1;          /* ADD THIS LINE: Helps define the layer order */
}

/* ADD THIS ENTIRE NEW RULE */
/* This is the invisible shield that covers the card */
.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2; /* Ensures it's the topmost layer within the card */
}

.service-panel:hover {
    transform: translateY(-10px);
    border-color: #6ac392;
    box-shadow: 0 0 40px rgba(106, 195, 146, 0.7);
}
.service-panel .panel-icon {
    width: 40px;
    height: 40px;
    color: #6ac392;
    margin-bottom: 15px;
}
.service-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #fff;
}
.service-panel p {
    font-size: 0.85rem;
    color: #c2c7d0;
    line-height: 1.5;
}


/* --- 10. HIDE OLD DECORATIVE LINES --- */
section[class*="after:bg-gradient-to-l"]::before,
section[class*="after:bg-gradient-to-l"]::after {
    display: none !important;
}


/* --- 11. FINAL COLOR TWEAKS --- */
.text-accent {
    color: #6ac392 !important;
}
::selection {
    background: #6ac392 !important;
    color: #1e1f1f !important;
}
::-moz-selection {
    background: #6ac392 !important;
    color: #1e1f1f !important;
}


/* --- 12. NEW: RESPONSIVE STYLES FOR MOBILE --- */
@media (max-width: 992px) {
    /* Hide the large dashboard image on tablets and mobile */
    .hero > .max-w-7xl > .flex.lg\\:mt-0 {
        display: none;
    }

    /* Make the rain container full-width on smaller screens */
    .digital-rain-container {
        right: 0;
        z-index: -1;
    }

    /* Adjust the main text card for smaller screens */
    .glass-card {
        padding: 30px;
    }
    .glass-card h1 {
        font-size: 2.5rem;
    }

    /* Allow panels to shrink and have a bit of side padding */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Stack the main hero layout */
    .hero > .max-w-7xl {
        flex-direction: column;
    }

    /* Make the rain container a normal block element */
    .digital-rain-container {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin-top: 40px;
        z-index: 1;
    }

    /* Stack the service panels in one column */
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-panel {
        min-height: auto; /* Remove the min-height on mobile */
    }
}

