/* ===================================================================
   Civic Frame — shared site chrome (navbar, footer, buttons, reveal
   animation system, common utility classes). Loaded on every public
   page via includes/header.php so styling + fixes only live in one place.
   =================================================================== */

:root {
    --bg-matte-black: #0a0a0a;
    --accent-neon: #d5f340;
    --accent-neon-hover: #c4e030;
    --text-white: #ffffff;
    --text-gray: #a0aab2;
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-poppins: 'Poppins', sans-serif;

    --bg-primary: transparent;
    --accent-primary: #00d791;
    --accent-secondary: #00e5ff;
    --glass-bg: rgba(26, 26, 37, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }

body {
    background-color: var(--bg-matte-black);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.has-bg-image {
    background-image: url('uploads/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- Shared typography/utility --- */
.font-display { font-family: var(--font-display); }
.gradient-text { background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grid-pattern { background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 60px 60px; }
.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); }
.highlight { color: var(--accent-neon); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; font-weight: 600; border-radius: 50px;
    padding: 12px 24px; font-size: 0.95rem; cursor: pointer; position: relative; z-index: 20;
    border: none;
}
.btn-primary { background-color: var(--accent-neon); color: #000; box-shadow: 0 4px 15px rgba(213, 243, 64, 0.2); }
.btn-primary:hover { background-color: var(--accent-neon-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(213, 243, 64, 0.3); }
.btn-primary .arrow { background: #000; color: var(--accent-neon); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-radius: 50px;
    padding: 10px 20px; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--accent-neon);
    color: var(--accent-neon); background: transparent; transition: all 0.3s ease;
}
.btn-outline:hover { background: var(--accent-neon); color: #000; box-shadow: 0 4px 15px rgba(213, 243, 64, 0.2); transform: translateY(-2px); }

/* --- Navbar --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: sticky; top: 0; z-index: 999;
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-gray); font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-neon); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-white); font-size: 1.8rem; cursor: pointer; z-index: 51; }

@media (max-width: 1024px) {
    .navbar .btn-primary { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(15px); flex-direction: column; padding: 30px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); transform: translateY(-150%); opacity: 0; transition: all 0.4s ease-in-out; z-index: 998; }
    .nav-links.active { transform: translateY(0); opacity: 1; }
}

/* --- Reveal-on-scroll: SAFE BY DEFAULT.
   Content is visible (opacity:1) unless JS explicitly marks it pending.
   If site.js never runs (blocked/slow CDN, disabled JS), nothing is ever hidden. --- */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.reveal-pending { opacity: 0; transform: translateY(30px); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
.modern-footer { margin-top: auto; background: linear-gradient(135deg, #110f1c 0%, #1e1b33 100%); color: #d1d1e0; padding: 60px 0 20px; position: relative; overflow: hidden; border-top: 4px solid var(--accent-neon); font-family: var(--font-poppins); }
.modern-footer::before { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: rgba(213, 243, 64, 0.1); border-radius: 50%; filter: blur(50px); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; position: relative; z-index: 1; }
.brand-logo-footer { display: flex; align-items: center; gap: 15px; color: #fff; margin-bottom: 20px; }
.brand-logo-footer i { font-size: 2.5rem; color: var(--accent-neon); }
.brand-logo-footer h2 { font-weight: 600; font-size: 1.8rem; letter-spacing: 1px; font-family: var(--font-main); }
.contact-info li { list-style: none; margin-bottom: 15px; font-size: 0.9rem; line-height: 1.6; }
.contact-info li a { display: flex; align-items: flex-start; gap: 15px; color: inherit; text-decoration: none; transition: all 0.3s ease; }
.contact-info li a:hover { color: var(--accent-neon); }
.contact-info li a:hover i { color: #fff; }
.contact-info i { color: var(--accent-neon); margin-top: 5px; font-size: 1.1rem; transition: color 0.3s ease; }
.social-links { margin-top: 25px; display: flex; gap: 15px; align-items: center; }
.social-links span { font-weight: 500; color: #fff; margin-right: 10px; }
.social-icon { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(213, 243, 64, 0.05); color: #fff; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(213, 243, 64, 0.1); }
.social-icon:hover { background: var(--accent-neon); border-color: var(--accent-neon); color: #110f1c; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(213, 243, 64, 0.4); }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; font-family: var(--font-main); }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent-neon); border-radius: 2px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #d1d1e0; text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent-neon); transform: translateX(8px); }
.cta-text { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.cta-button-footer { display: inline-block; background: linear-gradient(90deg, var(--accent-neon), var(--accent-neon-hover)); color: #110f1c; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(213, 243, 64, 0.3); }
.cta-button-footer:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(213, 243, 64, 0.5); }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 0.85rem; color: #8c8c9e; z-index: 1; position: relative; }
.footer-bottom strong { color: var(--accent-neon); }

@media (max-width: 768px) {
    .brand-logo-footer { justify-content: center; }
    .contact-info li a { justify-content: center; text-align: center; }
    .social-links { justify-content: center; }
    .footer-col { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: translateX(0) scale(1.05); }
}

/* --- Shared "service/feature card" look (used on home + services page) --- */
.card-3d { transform-style: preserve-3d; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
.card-3d:hover { transform: translateY(-12px) rotateX(5deg); box-shadow: 0 25px 50px -12px rgba(0, 215, 145, 0.25); border-color: rgba(0, 215, 145, 0.3); }
.service-card-modern { position: relative; overflow: hidden; }
.service-card-modern::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.service-card-modern:hover::after { transform: scaleX(1); }
.service-icon-box { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 215, 145, 0.1), rgba(0, 229, 255, 0.1)); margin-bottom: 1.5rem; transition: all 0.3s ease; font-size: 1.5rem; }
.service-card-modern:hover .service-icon-box { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 25px rgba(0, 215, 145, 0.3); }

/* --- Shared project card (project.php listing + team_member.php portfolio) --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
@media (max-width: 480px) { .projects-grid { grid-template-columns: 1fr; gap: 20px; } }
.project-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
    overflow: hidden; transition: all 0.4s ease; position: relative; display: block;
    opacity: 1; transform: scale(1);
}
.project-card.hide { display: none; }
.project-card.fade-out { opacity: 0; transform: scale(0.95); }
.project-card:hover { transform: translateY(-10px); border-color: var(--accent-neon); box-shadow: 0 15px 30px rgba(213, 243, 64, 0.1); }
.project-img-wrap { width: 100%; height: 220px; overflow: hidden; position: relative; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(0.85); }
.project-card:hover .project-img-wrap img { transform: scale(1.05); filter: brightness(1); }
.project-info { padding: 24px; }
.project-category { color: var(--accent-neon); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.project-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; font-family: var(--font-display); }
.project-desc { color: var(--text-gray); font-size: 0.92rem; line-height: 1.6; }

/* --- Booking modal (shared across every page via footer.php) --- */
.booking-overlay {
    position: fixed; inset: 0; background: rgba(5, 5, 8, 0.75); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.booking-overlay.open { display: flex; }
.booking-modal {
    width: 100%; max-width: 480px; background: #0f1011; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 36px; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,0.6);
    animation: bookingIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes bookingIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.booking-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.06); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.booking-close:hover { background: rgba(255,255,255,0.15); }
.booking-modal h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px; }
.booking-modal p.sub { color: var(--text-gray); font-size: 0.88rem; margin-bottom: 24px; }
.booking-field { margin-bottom: 16px; }
.booking-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.booking-field input, .booking-field textarea {
    width: 100%; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 11px 14px; color: #fff; font-size: 0.9rem; outline: none;
    transition: all 0.25s ease; font-family: var(--font-main);
}
.booking-field textarea { resize: vertical; min-height: 80px; }
.booking-field input:focus, .booking-field textarea:focus { border-color: var(--accent-neon); box-shadow: 0 0 0 3px rgba(213,243,64,0.15); }
.booking-submit {
    width: 100%; padding: 13px; border: none; border-radius: 50px; background: var(--accent-neon);
    color: #000; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.booking-submit:hover { background: var(--accent-neon-hover); transform: translateY(-2px); }
.booking-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.booking-status { margin-top: 14px; font-size: 0.85rem; text-align: center; display: none; }
.booking-status.show { display: block; }
.booking-status.ok { color: var(--accent-primary); }
.booking-status.err { color: #ff4d6d; }
