/* FlowLogic Solutions - Theme and Variables */
:root {
    --bg-main: #1C1F22;
    --bg-light: #25282D;
    --bg-dark: #121416;
    --text-main: #FFFFFF;
    --text-muted: #A0AAB2;
    --primary-cyan: #00FFD1;
    --primary-blue: #0088FF;
    --gradient-brand: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    --gradient-brand-hover: linear-gradient(135deg, #33FFDD 0%, #339EFF 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.btn-gradient {
    background: #000;
    color: #FFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
    background: #25282D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 20, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

.logo-img {
    height: 100px;
    width: auto;
    /* Basic fallback styling empty image state */
    background-color: transparent;
    color: var(--primary-cyan);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}
/* Authentication & Dashboard Styles */
.hidden { display: none !important; }

.small-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-cyan);
    cursor: pointer;
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(0, 255, 209, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 0.5rem;
    color: #fff;
}

.full-width { width: 100%; }

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Dashboard */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 209, 0.15);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

/* Admin Panel */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.admin-table th {
    background: rgba(0,0,0,0.2);
    color: var(--primary-cyan);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.checkbox-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
}

footer {
    margin-top: 4rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 170px;
    padding-bottom: 80px;
    background-color: var(--primary-cyan); /* Fallback */
    background: linear-gradient(135deg, rgba(0, 255, 209, 0.9) 0%, rgba(0, 136, 255, 0.9) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    display: none; /* Removed the dark radial dots pattern */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #000; /* Better contrast against the bright background */
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: #121416; /* Better contrast */
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 209, 0.3);
}

.intro-card {
    background: transparent;
    border: none;
    padding-left: 0;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 209, 0.1);
    border-radius: 12px;
}

.card-icon img {
    width: 24px;
    height: 24px;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-muted);
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--primary-cyan); /* Fallback */
    background: linear-gradient(135deg, rgba(0, 255, 209, 0.9) 0%, rgba(0, 136, 255, 0.9) 100%);
}

.services .section-title {
    color: #000;
}

.services .section-title::after {
    background: #000;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.service-item:hover {
    border-color: rgba(0, 136, 255, 0.4);
}

.service-item:hover::before {
    opacity: 1;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-content p {
    color: var(--text-muted);
}

/* Contact */
.contact {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.info-card {
    height: 100%;
    background: url('assets/quote_bg.png') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 20, 22, 0.95) 0%, rgba(18, 20, 22, 0.6) 100%);
}

.info-graphics,
.testimonial {
    position: relative;
    z-index: 10;
}

.info-graphics {
    display: flex;
    gap: 2rem;
    margin-bottom: auto;
}

.chart-icon,
.mark-icon {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 209, 0.3));
}

.testimonial {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4rem;
}

.testimonial footer {
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--primary-cyan);
}

/* Footer */
.footer {
    background-color: var(--primary-cyan); /* Fallback */
    background: linear-gradient(135deg, rgba(0, 255, 209, 0.9) 0%, rgba(0, 136, 255, 0.9) 100%);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-contact .phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #121416;
    font-weight: 600;
}

.footer-contact .phone-link:hover {
    color: #000;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: #121416;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-socials a:hover {
    color: #000;
    transform: translateY(-2px);
}

.footer-copyright {
    color: #121416;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .info-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    
    .nav-links.nav-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .nav-links a {
        padding: 1.5rem 2rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}
