/* ==========================================================================
   1. GLOBAL RESET & SHARED STYLES (Applies to all pages)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
html { width: 100%; min-height: 100vh; }

/* Custom Cursors */
button, a, .glow-button, .filter-btn, .form-submit, .hamburger, .dl-icon-btn, select { 
    cursor: url('drone-cursor.png') 16 16, pointer !important; 
} 
body { 
    cursor: url('drone-cursor.png') 16 16, auto !important; 
    width: 100%; 
}

/* Shared Utility Classes */
.hidden { display: none !important; }
.nav-brand { font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; color: #fff; }

/* Universal Brand Typography */
.drone-i { color: #ff0000; position: relative; display: inline-block; transform: translateY(-5px); text-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }

/* --- Glowing Navigation Effects --- */
/* 1. Red Glow for the Selected/Active Nav Link */
.nav-links a.active, 
.nav-links a.current-page {
    color: #ff0000 !important;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9) !important;
}

/* 2. White Glow for Hovered Nav Links */
.nav-links a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9) !important;
}

/* 3. White Glow for All Hovered Buttons */
.glow-button:hover, 
.dl-icon-btn:hover, 
.small-btn:hover,
.nav-cta:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.02);
}


/* ==========================================================================
   2. MAIN SITE (index.html) STYLES
   ========================================================================== */
body.home-page {
    background-color: #1a1a1a; 
    color: #e0e0e0; 
    scroll-behavior: smooth;
}

/* Splash Section */
.splash-section { height: 100vh; width: 100%; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; background-color: #111; cursor: url('drone-cursor.png') 16 16, auto !important; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-image: url('splash-poster.jpg'); background-size: cover; background-position: center; }
.background-video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity 1s ease-in; will-change: transform; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.75); z-index: 2; }
.splash-content { position: relative; z-index: 3; text-align: center; }
.brand { margin-bottom: 50px; animation: fadeInDown 1.5s ease forwards; }
.logo { color: #ffffff; font-size: 6rem; font-weight: 900; letter-spacing: 10px; margin: 0; }
.subtitle { color: #aaaaaa; font-size: 1.5rem; letter-spacing: 15px; margin-top: -10px; text-transform: uppercase; }

/* Main Site Buttons */
.home-page .glow-button { display: inline-block; padding: 15px 40px; color: #ffffff; text-decoration: none; font-size: 1.2rem; font-weight: bold; letter-spacing: 2px; border: 2px solid #ff0000; border-radius: 30px; background: transparent; transition: all 0.3s ease-in-out; animation: fadeInUp 1.5s ease forwards; animation-delay: 0.5s; opacity: 0; }

/* Main Site Nav */
.main-content { min-height: 100vh; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background-color: rgba(26, 26, 26, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 1000; }
.hamburger { display: none; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger .bar { width: 25px; height: 3px; background-color: #fff; transition: all 0.3s ease; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #e0e0e0; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: color 0.3s ease; }
.nav-cta { color: #ff0000 !important; border: 1px solid #ff0000; padding: 8px 15px; border-radius: 20px; transition: all 0.3s ease; }

/* Main Site Sections */
.section { padding: 100px 50px; text-align: center; }
.dark-bg { background-color: #252525; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 3px; color: #ffffff; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.service-card { background-color: #2a2a2a; padding: 40px; border-top: 3px solid #ff0000; border-radius: 5px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 0, 0, 0.5); border-top-color: #ff3333; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 20px; color: #ff0000; }
.service-card p { color: #bbbbbb; line-height: 1.6; }

/* Portfolio */
.portfolio-filters { margin-bottom: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.filter-btn { background: transparent; color: #e0e0e0; border: 1px solid #555; padding: 10px 25px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; transition: all 0.3s ease; }
.filter-btn.active { background-color: #ff0000; color: #fff; box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); border-color: #ff0000; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.portfolio-item { width: 100%; height: 250px; background-color: #222; border-radius: 5px; border: 1px solid #444; overflow: hidden; position: relative; cursor: zoom-in; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover { border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); z-index: 2; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90vh; border: 2px solid #ff0000; border-radius: 5px; box-shadow: 0 0 30px rgba(255, 0, 0, 0.3); transform: scale(0.8); transition: transform 0.3s ease; }
.lightbox.active .lightbox-content { transform: scale(1); }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.close-lightbox:hover { color: #ff0000; }

/* About & Contact */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 1.2rem; color: #bbbbbb; line-height: 1.8; } 
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; max-width: 1000px; margin: 0 auto; text-align: left; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info h3 { font-size: 1.8rem; color: #ff0000; margin-bottom: 20px; }
.contact-info p { color: #bbbbbb; line-height: 1.6; margin-bottom: 30px; } 
.info-block { margin-bottom: 25px; }
.info-block h4 { color: #ffffff; margin-bottom: 5px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.info-block p { margin-bottom: 5px; color: #aaaaaa; }
.contact-form { background-color: #2a2a2a; padding: 40px; border-radius: 5px; border-top: 3px solid #ff0000; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #cccccc; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; background-color: #151515; border: 1px solid #444; color: #ffffff; border-radius: 4px; font-family: inherit; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 8px rgba(255, 0, 0, 0.3); }
.form-submit { width: 100%; margin-top: 10px; border: 2px solid #ff0000; background: transparent; color: #fff; padding: 15px; border-radius: 30px; font-weight: bold; }
footer { text-align: center; padding: 30px; background-color: #111111; color: #666; font-size: 0.9rem; }

/* Main Site Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Main Site Mobile Optimization */
@media (max-width: 1024px) {
    .background-video { display: none !important; }
    .logo { font-size: 3rem; letter-spacing: 5px; } 
    .subtitle { font-size: 1rem; letter-spacing: 8px; }
    .hamburger { display: flex; }
    .navbar { padding: 15px 20px; }
    .nav-links { position: absolute; top: 100%; left: 0; flex-direction: column; background-color: rgba(26, 26, 26, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); width: 100%; text-align: center; padding: 20px 0; border-bottom: 2px solid #ff0000; box-shadow: 0 10px 20px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.3s ease-in-out; }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links li { margin: 20px 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: #ff0000; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: #ff0000; }
    .section { padding: 60px 20px; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .portfolio-filters { gap: 10px; }
    .filter-btn { padding: 8px 15px; font-size: 0.8rem; }
    .contact-container { gap: 30px; }
    .close-lightbox { right: 20px; top: 10px; }
}


/* ==========================================================================
   3. CLIENT PORTAL (portal.html) STYLES
   ========================================================================== */
body.portal-page {
    background-color: #0b0b0b; 
    color: #ffffff;
}
.portal-page .active { display: flex !important; }

/* Portal Buttons */
.portal-page .glow-button { display: inline-block; width: 100%; padding: 15px 20px; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; border: 2px solid #ff0000; border-radius: 30px; background: transparent; transition: all 0.3s ease-in-out; margin-bottom: 10px; }

/* Login Screen */
#login-screen { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #050505; padding: 20px; }
.login-box { background-color: #111; padding: 50px 40px; border-radius: 5px; border-top: 3px solid #ff0000; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.8); width: 100%; max-width: 450px; }
.login-box h2 { font-size: 2rem; color: #fff; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px; }
.login-box p { color: #aaa; margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.login-box input { width: 100%; padding: 15px; margin-bottom: 20px; background-color: #000; border: 1px solid #333; color: #fff; border-radius: 4px; font-size: 1rem; text-align: center; letter-spacing: 2px; transition: all 0.3s ease; }
.login-box input:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
.return-home { color: #555; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 25px; display: inline-block; transition: color 0.3s ease; }
.return-home:hover { color: #ff0000; }
#error-message { color: #ff4444; font-size: 0.9rem; margin-top: 15px; margin-bottom: 0; letter-spacing: 1px; text-transform: none; }
#loader { color: #ff0000; font-size: 1.2rem; letter-spacing: 3px; margin-top: 20px; text-transform: uppercase; }

/* Dashboard Layout */
#client-dashboard { flex-direction: column; min-height: 100vh; }
.portal-page header { background-color: rgba(0, 0, 0, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 15px;}
.project-selector { background-color: #000; color: #ff0000; border: 1px solid #333; padding: 10px 20px; border-radius: 4px; font-size: 0.95rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; outline: none; transition: 0.3s; width: auto; min-width: 250px;}
.project-selector:focus, .project-selector:hover { border-color: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.2); }
.header-actions { display: flex; gap: 15px; align-items: center; }
.nav-btn { background: transparent; color: #aaa; border: 1px solid #555; padding: 8px 20px; text-decoration: none; border-radius: 20px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; }
.nav-btn:hover:not(:disabled) { color: #fff; border-color: #fff; background-color: #333; }
.nav-btn:disabled { opacity: 0.5; cursor: not-allowed !important; }
.portal-page main { padding: 50px; max-width: 1200px; margin: 0 auto; width: 100%; flex-grow: 1; }
.portal-section { background-color: #111; padding: 40px; border-top: 3px solid #ff0000; border-radius: 5px; margin-bottom: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.portal-section h3 { font-size: 1.5rem; color: #ff0000; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; }

/* Media Gallery & Locked Assets */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.gallery-card { background-color: #000; border: 1px solid #333; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.gallery-card:hover { border-color: #ff0000; box-shadow: 0 0 15px rgba(255,0,0,0.2); transform: translateY(-5px); }
.gallery-media-container { width: 100%; height: 220px; overflow: hidden; background-color: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-media-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-card:hover .gallery-media-container img { transform: scale(1.08); }
.gallery-media-container video { width: 100%; height: 100%; object-fit: contain; background-color: #000; outline: none; }
.gallery-info { padding: 15px; text-align: center; border-top: 1px solid #333; }
.gallery-info .file-name { display: block; margin-bottom: 12px; font-size: 0.95rem; color: #ddd; letter-spacing: 1px; word-break: break-all; }
.locked-image-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; background-color: #0b0b0b; pointer-events: none; user-select: none; }
.locked-blur-layer { width: 100%; height: 100%; background-size: cover; background-position: center; filter: blur(15px) brightness(0.4); transform: scale(1.1); }
.locked-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 10; }
.locked-badge { background-color: rgba(255, 0, 0, 0.9); color: #fff; font-weight: 900; padding: 8px 15px; border-radius: 4px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.dl-icon-btn { text-decoration: none; background-color: transparent; border: 1px solid #ff0000; padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; display: inline-block; color: #ff0000; }

/* 3D Viewer Container */
.iframe-container { position: relative; width: 100%; height: 600px; background-color: #050505; border: 1px solid #333; border-radius: 5px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 10; }
.placeholder-text { color: #555; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; z-index: 1; text-align: center; padding: 20px;}

/* Portal Mobile Optimization */
@media (max-width: 768px) {
    .portal-page header { flex-direction: column; text-align: center; }
    .project-selector { width: 100%; }
    .portal-page main { padding: 20px; }
    .portal-section { padding: 25px; }
    .iframe-container { height: 400px; }
    .dl-icon-btn { width: 100%; text-align: center; }
    .header-actions { flex-direction: column; width: 100%; }
    .nav-btn { width: 100%; }
}

/* ==========================================================================
   4. ADMIN PANEL & QUOTE ENGINE STYLES (admin.html)
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 1024px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-card { background: #111; padding: 20px; border-radius: 8px; border: 1px solid #333; }
.quote-card h3 { color: #ff0000; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.small-btn { padding: 5px 10px; font-size: 0.8rem; background: transparent; border: 1px solid #ff0000; color: #fff; border-radius: 20px; cursor: pointer; transition: 0.3s; }
.data-list { list-style: none; max-height: 300px; overflow-y: auto; }
.data-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #222; font-size: 0.9rem; }
.data-list li button { background: none; color: #ff0000; border: none; cursor: pointer; font-weight: bold; }

/* Quote Builder Specifics */
.customer-info, .builder-controls { display: flex; gap: 10px; margin-bottom: 15px; }
.customer-info input, .builder-controls input, .builder-controls select { padding: 8px; background: #222; border: 1px solid #444; color: #fff; width: 100%; border-radius: 4px; }
.builder-controls select { flex: 2; }
.builder-controls input { flex: none !important; width: 80px !important; text-align: center; font-size: 1.1rem; }
.quote-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.quote-table th, .quote-table td { padding: 10px; text-align: left; border-bottom: 1px solid #333; }
.quote-table th { color: #888; font-size: 0.85rem; text-transform: uppercase; }
.quote-totals { text-align: right; border-top: 2px solid #ff0000; padding-top: 15px; }
.remove-btn { color: #ff0000; cursor: pointer; font-weight: bold; text-align: center; }