:root {
    --primary-color: #ff5722; /* High-vis construction orange */
    --primary-dark: #e64a19;
    --dark-bg: #1f1f1f;
    --darker-bg: #121212;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gray-light: #f4f4f4;
    --card-bg: #f4f4f4;
    --section-bg: #ffffff;
    
    /* Top Section Toggle Variables */
    --nav-bg: var(--darker-bg);
    --nav-text: var(--text-light);
    --hero-overlay: rgba(0, 0, 0, 0.75);
    --hero-text: var(--text-light);
    --hero-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    --call-box-bg: linear-gradient(135deg, #1c1c1c, #333333);
    --premier-bg: #222222;
    --premier-text: #dddddd;
}

body.dark-mode {
    --nav-bg: #ffffff;
    --nav-text: #121212;
    --hero-overlay: rgba(255, 255, 255, 0.85);
    --hero-text: #121212;
    --hero-shadow: 2px 2px 10px rgba(255,255,255,0.8);
    --call-box-bg: linear-gradient(135deg, #ffffff, #e6e6e6);
    --premier-bg: #ffffff;
    --premier-text: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--text-dark);
}

h1, h2, h3, h4, .tji-text {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-call-btn {
    background-color: #00aa00; /* Green for trust and "call" action */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 0 15px rgba(0, 170, 0, 0.6);
    animation: pulseGreen 2s infinite;
}

.nav-call-btn:hover {
    background-color: #008800;
    transform: translateY(-2px) scale(1.05);
}

.nav-call-btn i {
    animation: wigglePhone 1.5s infinite;
}

/* Red Arrow Pointing at Phone */
.call-now-arrow {
    color: #ff0000;
    font-size: 1.3rem; /* Made slightly smaller overall */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    text-transform: uppercase;
    animation: pointArrow 1s infinite alternate;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* Animations */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 200, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 200, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 200, 0, 0); }
}

@keyframes pointArrow {
    from { transform: translateX(-10px); }
    to { transform: translateX(5px); }
}

@keyframes wigglePhone {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.tji-text {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.admin-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.admin-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--nav-text);
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 15px;
    margin-right: 5px;
    transition: transform 0.3s, color 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 85vh; /* Increased height to prevent chopping */
    background: url('pics/hero-bg-placeholder.jpg') center/cover no-repeat;
    background-color: var(--dark-bg); /* Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-video-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-container video {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border: 4px solid var(--primary-color);
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-weight: 800;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.hero-logo-container {
    margin-bottom: 20px;
}

.hero-font-logo {
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--hero-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: var(--hero-shadow);
    animation: neonPulseLogo 2s infinite alternate;
}

.tji-orange {
    color: var(--primary-color);
}

@keyframes neonPulseLogo {
    from { filter: drop-shadow(0 0 5px rgba(255, 87, 34, 0.4)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 87, 34, 0.8)); }
}

.hero h1 {
    font-size: 2.2rem; /* Shrunk as requested to not overpower the top logo */
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: var(--hero-shadow);
}

.hero-subtext {
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: #4cd137; /* Trust green */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* Call Action Box */
.call-action-box {
    background: var(--call-box-bg);
    border-radius: 50px;
    padding: 30px 50px;
    display: inline-block;
    color: var(--hero-text);
    position: relative;
    margin-bottom: 30px;
    border: 3px solid #00aa00;
    box-shadow: 0 10px 40px rgba(0, 170, 0, 0.3);
}

.call-text {
    background: linear-gradient(90deg, #ff4747, #ff0000);
    color: white !important;
    font-weight: 800;
    padding: 10px 25px;
    border-radius: 30px;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    font-size: 1.3rem !important;
    display: inline-block;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.8), 0 0 10px rgba(255,0,0,0.8); }
    70% { box-shadow: 0 0 0 12px rgba(255, 0, 0, 0), 0 0 20px rgba(255,0,0,0.4); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0), 0 0 10px rgba(255,0,0,0.8); }
}

.phone-number {
    font-size: 3.4rem; /* Reduced from 4.5rem to fit desktop box better */
    font-weight: 900;
    color: #4cd137;
    line-height: 1;
    text-shadow: 0 0 20px rgba(76, 209, 55, 0.5);
    animation: neonGlow 2s infinite alternate;
    white-space: nowrap; /* Forces it to stay on one line */
}

@keyframes neonGlow {
    from { text-shadow: 0 0 10px rgba(76, 209, 55, 0.2), 0 0 20px rgba(76, 209, 55, 0.2); }
    to { text-shadow: 0 0 15px rgba(76, 209, 55, 0.6), 0 0 30px rgba(76, 209, 55, 0.4); }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.w-100 { width: 100%; }

/* Company Promise Ribbon */
.promise-ribbon {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.top-ribbon {
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.promise-ribbon i {
    margin-right: 15px;
    font-size: 1.4rem;
    vertical-align: middle;
}

/* Premier Banner Ribbon */
.premier-ribbon {
    background-color: var(--premier-bg);
    color: var(--premier-text);
    text-align: center;
    padding: 25px 15px;
    font-size: 1.5rem;
    font-weight: 600;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

/* Services Section */
.services-section {
    padding: 80px 5%;
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

/* Unique Glow Colors for each card based on child index */
.service-card:nth-child(1):hover { box-shadow: 0 0 30px #ff6b6b; border-color: #ff6b6b; }
.service-card:nth-child(2):hover { box-shadow: 0 0 30px #4facfe; border-color: #4facfe; }
.service-card:nth-child(3):hover { box-shadow: 0 0 30px #43e97b; border-color: #43e97b; }
.service-card:nth-child(4):hover { box-shadow: 0 0 30px #fa709a; border-color: #fa709a; }
.service-card:nth-child(5):hover { box-shadow: 0 0 30px #f6d365; border-color: #f6d365; }
.service-card:nth-child(6):hover { box-shadow: 0 0 30px #a18cd1; border-color: #a18cd1; }
.service-card:nth-child(7):hover { box-shadow: 0 0 30px #00f2fe; border-color: #00f2fe; }
.service-card:nth-child(8):hover { box-shadow: 0 0 30px #ff0844; border-color: #ff0844; }
.service-card:nth-child(9):hover { box-shadow: 0 0 30px #b224ef; border-color: #b224ef; }
.service-card:nth-child(10):hover { box-shadow: 0 0 30px #09203f; border-color: #09203f; }
.service-card:nth-child(11):hover { box-shadow: 0 0 30px #ffb199; border-color: #ffb199; }

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover i {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Admin Upload Target inside cards */
.admin-upload-target {
    display: none; /* Hidden for regular users, shown via JS for Admin */
    width: 100%;
    height: 100px;
    border: 2px dashed #999;
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #555;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.admin-upload-target.drag-over {
    background: #e3f2fd;
    border-color: #2196f3;
}

.admin-upload-target i {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 5px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 5%;
    background: var(--gray-light);
}

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

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: var(--section-bg);
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #777;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: white;
    text-align: center;
    padding: 30px;
}
footer strong {
    color: var(--primary-color);
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--section-bg);
    color: var(--text-dark);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: var(--darker-bg);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* Forms */
form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form textarea {
    height: 100px;
    resize: vertical;
}

/* Admin Dashboard Elements */
.stats-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    flex: 1;
    background: var(--gray-light);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.stat-box i { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; }
.stat-box h4 { font-size: 0.9rem; margin-bottom: 5px; }
.stat-box p { font-size: 1.5rem; font-weight: bold; }

.upload-area {
    border: 2px dashed #aaa;
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}
.upload-area:hover { background: #f0f0f0; border-color: var(--primary-color); }
.upload-area i { font-size: 2rem; color: #888; margin-bottom: 10px; }

.review-generator { margin-top: 20px; }
.review-desc { font-size: 0.85rem; margin-bottom: 10px; color: #666; }
.review-input-group { display: flex; gap: 10px; }
.review-input { margin-bottom: 0; flex: 1; }
.review-btn { padding: 10px 15px; font-size: 0.9rem; }

.alert-sim {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.alert-spaced { margin-top: 25px; }

/* AI Chatbot Widget */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}
.chat-toggle:hover { transform: scale(1.05); }

.ai-chatbot {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #ddd;
}

.chat-header {
    background: var(--darker-bg);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.chat-header button {
    background: none; border: none; color: white; cursor: pointer;
}

.chat-body {
    height: 300px;
    padding: 15px;
    background: #f9f9f9;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ai-msg {
    background: white;
    border: 1px solid #eee;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

.chat-input-area input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    background: #f4f4f4;
    border-radius: 20px;
}

.voice-btn, .send-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0 10px;
    cursor: pointer;
    color: #666;
}

.send-btn { color: var(--primary-color); }
.voice-btn:hover { color: red; }

.hero-main-text { white-space: nowrap; }

@media (max-width: 768px) {
    body, html { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }
    .hero-main-text { white-space: normal; display: block; text-align: center; line-height: 1.2; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; width: 100%; }
    .nav-links a { margin-left: 0; padding: 5px 10px; font-size: 0.95rem; }
    .navbar { flex-direction: column; gap: 10px; padding: 1.2rem 10px; }
    
    .logo-container { 
        flex-direction: column; 
        gap: 8px; 
        text-align: center; 
    }
    
    .call-now-arrow {
        font-size: 1.2rem; /* Shrunk for mobile */
        margin-bottom: 5px;
    }

    .hero { height: auto; min-height: 100vh; padding-top: 50px; padding-bottom: 50px; }
    .hero-content-wrapper { flex-direction: column; text-align: center; gap: 20px;}
    .hero-content { text-align: center; padding: 0 10px; width: 100%; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtext { font-size: 1.1rem; white-space: normal; }
    
    .call-action-box { padding: 15px 20px; width: 100%; max-width: 340px; }
    .call-text { font-size: 1rem !important; padding: 8px 15px; }

    /* Fix the phone number wrapping on mobile completely */
    .phone-number { 
        font-size: 9.5vw; /* Scales dynamically to guarantee 0% cut-off natively */
        white-space: nowrap;
    }
    
    .hero-font-logo {
        font-size: 8vw; /* Downscaled to protect horizontal boundaries */
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }
    
    .ai-chatbot { width: 90%; right: 5%; bottom: 80px; }
    
/* MEGA SCREENSAVER TJI LOGO & TICKER TAPE OVERHAUL */
.mega-hero-logo {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--hero-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.8);
    margin-bottom: 20px;
}
.dark-mode-mega .mega-hero-logo { color: #ffffff; }
.light-mode-mega .mega-hero-logo { color: #111111; }
.mega-ticker-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #ff5722;
    display: flex;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(255, 87, 34, 0.3);
}
.mega-ticker-item {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00e5ff;
    text-transform: uppercase;
    padding: 0 50px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

@media (max-width: 768px) {
    .mega-hero-logo {
        font-size: 7vw;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .mega-ticker-item {
        font-size: 0.95rem; /* Readable but conservative on phones */
    }
}    
    .ai-chatbot { width: 90%; right: 5%; bottom: 80px; }
    
    .promise-ribbon { font-size: 0.85rem; padding: 10px; }
    .promise-ribbon i { display: none; } /* Hide icon on mobile to save space */
    .premier-ribbon { font-size: 1.1rem; padding: 15px; }
}

/* Notepad Theme for Booking Modal */
.notepad-theme {
    background-color: white !important;
    position: relative;
    border-radius: 0 !important;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 1;
    overflow: hidden;
}
.notepad-theme::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; 
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    background-image: url('pics/tji_watermark.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.notepad-theme .modal-header {
    background: transparent !important;
    color: var(--text-dark) !important;
    padding: 0;
    display: block;
}
.notepad-theme .close-modal {
    color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.notepad-theme .close-modal:hover {
    background: var(--primary-color);
    color: white;
}
.notepad-header {
    padding: 30px 30px 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #555;
    margin-bottom: 10px;
}
.notepad-logo {
    max-width: 130px;
}
.notepad-company-details {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}
.notepad-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #1a1a1a;
}
.notepad-theme form input, .notepad-theme form select, .notepad-theme form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px dotted #888;
    border-radius: 0;
    margin-bottom: 25px;
    font-family: inherit;
    font-size: 1.05rem;
    padding: 8px 5px;
    color: #111;
}
.notepad-theme form input:focus, .notepad-theme form select:focus, .notepad-theme form textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color);
    background: rgba(255,255,255,0.5);
}
.voice-recorder-notepad {
    margin-top: 15px; 
    padding: 15px; 
    background: rgba(255,255,255,0.7); 
    border-radius: 8px; 
    text-align: center; 
    border: 2px dashed #888;
}

/* 3D Audio Reactive Button */
.record-btn-3d {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.3s;
    font-size: 1.1rem;
    padding: 15px !important;
    position: relative;
    z-index: 50;
}
.recording-active {
    background: linear-gradient(145deg, #ff1a1a, #cc0000) !important;
    border: 3px solid #ffcccc !important;
    color: white !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    padding: 25px 15px !important;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6), inset 0 5px 15px rgba(255, 255, 255, 0.4) !important;
}

/* Fullscreen Video Interface */
#fullscreen-video-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: #ffffff; /* Bright white to light up the face! */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#fullscreen-video-container.hidden {
    display: none !important;
}
#camera-preview {
    position: absolute;
    width: 90%;
    height: 80%;
    top: 5%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 5px solid white;
    background: #111;
}
.video-overlay-ui {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    pointer-events: none;
}
#countdown-display {
    font-size: 10rem;
    color: white;
    font-weight: 900;
    text-shadow: 0 5px 30px rgba(255,87,34,0.9);
    margin-bottom: 20px;
}
#recording-status {
    position: absolute;
    top: 40px;
    color: #ff4747;
    font-weight: 900;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 30px;
    animation: pulseRed 1.5s infinite;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
#audio-visualizer-container.hidden {
    display: none !important;
}
#audio-visualizer-container {
    position: absolute;
    bottom: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.fullscreen-active-btn {
    position: fixed !important;
    bottom: 40px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 400px;
    z-index: 10002 !important;
}

@media (max-width: 768px) {
    .recording-active {
        font-size: 1.6rem !important;
        padding: 30px 15px !important;
    }
}

/* MEGA CTA SCREENSAVER */
#mega-cta-screensaver {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, background 0.5s ease;
    opacity: 1;
}
#mega-cta-screensaver.mega-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Dark Mode (Default) */
#mega-cta-screensaver.dark-mode-mega {
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    color: white;
}
#mega-cta-screensaver.dark-mode-mega .neon-text {
    text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055, 0 0 40px #ff0055, 0 0 80px #ff0055;
    color: #fff;
}
#mega-cta-screensaver.dark-mode-mega .neon-text-blue {
    text-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff, 0 0 40px #00e5ff, 0 0 80px #00e5ff;
    color: #fff;
}

/* Light Mode */
#mega-cta-screensaver.light-mode-mega {
    background: radial-gradient(circle at center, #ffffff 0%, #e0e0e0 100%);
    color: #111;
}
#mega-cta-screensaver.light-mode-mega .neon-text {
    text-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
    color: #d32f2f;
}
#mega-cta-screensaver.light-mode-mega .neon-text-blue {
    text-shadow: 0 5px 15px rgba(0, 119, 255, 0.4);
    color: #0056b3;
}

/* Mega Elements */
.mega-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 20px;
}
.mega-btn-icon {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: inherit;
    font-size: 2rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
}
#mega-cta-screensaver.light-mode-mega .mega-btn-icon {
    background: rgba(0,0,0,0.05);
    border: 2px solid rgba(0,0,0,0.2);
}
.mega-btn-icon:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}
#mega-cta-screensaver.light-mode-mega .mega-btn-icon:hover {
    background: rgba(0,0,0,0.1);
}

.mega-content {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vh;
    padding: 20px 0;
    box-sizing: border-box;
    text-align: center;
}

.mega-html-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5), 0 0 30px rgba(0, 229, 255, 0.3);
    margin-bottom: 1vh;
    animation: megaFloat 4s ease-in-out infinite;
    letter-spacing: 2px;
}
.mega-html-logo .tji-text {
    color: #ff0055 !important;
    text-shadow: 0 0 15px rgba(255, 0, 85, 0.8), 0 0 30px rgba(255, 0, 85, 0.5) !important;
}
.light-mode-mega .mega-html-logo {
    color: #111;
    text-shadow: none;
}

.mega-phone-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 15px auto;
    padding: 10px 30px;
    letter-spacing: 5px;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 15px rgba(0, 229, 255, 0.1);
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8) !important;
}
.mega-phone-number:hover {
    transform: scale(1.05);
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.3);
    color: #fff !important;
    text-shadow: 0 0 15px #00e5ff, 0 0 30px white !important;
}
.light-mode-mega .mega-phone-number {
    color: #0056b3 !important;
    border-color: rgba(0,86,179,0.3);
    box-shadow: none;
    text-shadow: none !important;
}
.light-mode-mega .mega-phone-number:hover {
    background: rgba(0,86,179,0.1);
    color: #003d82 !important;
}
.mega-subtitle {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.pop-letter {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.1s, text-shadow 0.1s;
    transform-origin: center center;
    position: relative;
    text-transform: uppercase;
}
.mega-flash-word {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #00e5ff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0,229,255,0.6), 0 0 30px rgba(0,255,0,0.5);
    animation: wordPopZoom 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: block;
    text-align: center;
}
@keyframes wordPopZoom {
    0% { transform: scale(0.5); opacity: 0; }
    20% { opacity: 1; transform: scale(1.2); }
    80% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.mega-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 800px;
}

.mega-action-btn {
    padding: 30px;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(20,20,40,0.8) 0%, rgba(10,10,20,0.9) 100%);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.1), inset 0 -5px 15px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mega-action-btn i {
    text-shadow: 0 0 15px currentColor;
}
#mega-cta-screensaver.light-mode-mega .mega-action-btn {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.2);
    color: #111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mega-action-btn:hover {
    transform: translateY(-8px) scale(1.05);
}

.camera-flash-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
}
.camera-flash-overlay.flash {
    animation: cameraFlashAnim 1s ease-out forwards;
}
@keyframes cameraFlashAnim {
    0% { opacity: 0; }
    15% { opacity: 1; }
    30% { opacity: 0; }
    45% { opacity: 1; }
    100% { opacity: 0; }
}

.mega-pulse-active {
    animation: megaPulseUI 0.6s infinite alternate !important;
}
@keyframes megaPulseUI {
    0% { background: rgba(0,0,0,0.9); box-shadow: inset 0 0 50px rgba(0,229,255,0.2); }
    100% { background: rgba(30,0,40,0.98); box-shadow: inset 0 0 150px rgba(255,0,255,0.7); }
}
.dark-mode-mega .btn-call { border-color: #00ffcc; color: #00ffcc; box-shadow: 0 15px 35px rgba(0,255,204,0.15), inset 0 0 20px rgba(0,255,204,0.3), inset 0 -5px 15px rgba(0,0,0,0.6); }
.dark-mode-mega .btn-call:hover { background: linear-gradient(135deg, rgba(0,255,204,0.15) 0%, rgba(0,50,40,0.9) 100%); box-shadow: 0 20px 50px rgba(0,255,204,0.4), inset 0 0 30px rgba(0,255,204,0.5); }

.dark-mode-mega .btn-text { border-color: #ff00ff; color: #ff00ff; box-shadow: 0 15px 35px rgba(255,0,255,0.15), inset 0 0 20px rgba(255,0,255,0.3), inset 0 -5px 15px rgba(0,0,0,0.6); }
.dark-mode-mega .btn-text:hover { background: linear-gradient(135deg, rgba(255,0,255,0.15) 0%, rgba(50,0,50,0.9) 100%); box-shadow: 0 20px 50px rgba(255,0,255,0.4), inset 0 0 30px rgba(255,0,255,0.5); }

.dark-mode-mega .btn-video { border-color: #ff0055; color: #ff0055; box-shadow: 0 15px 35px rgba(255,0,85,0.15), inset 0 0 20px rgba(255,0,85,0.3), inset 0 -5px 15px rgba(0,0,0,0.6); }
.dark-mode-mega .btn-video:hover { background: linear-gradient(135deg, rgba(255,0,85,0.15) 0%, rgba(50,0,20,0.9) 100%); box-shadow: 0 20px 50px rgba(255,0,85,0.4), inset 0 0 30px rgba(255,0,85,0.5); }

.dark-mode-mega .btn-estimate { border-color: #ffaa00; color: #ffaa00; box-shadow: 0 15px 35px rgba(255,170,0,0.15), inset 0 0 20px rgba(255,170,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.6); }
.dark-mode-mega .btn-estimate:hover { background: linear-gradient(135deg, rgba(255,170,0,0.15) 0%, rgba(50,30,0,0.9) 100%); box-shadow: 0 20px 50px rgba(255,170,0,0.4), inset 0 0 30px rgba(255,170,0,0.5); }

@keyframes megaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .mega-phone-number { font-size: 1.8rem; margin: 0; text-align: center; padding: 10px 20px; letter-spacing: 2px; }
    .mega-subtitle { font-size: 1.1rem; }
    .mega-action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px; }
    .mega-action-btn { font-size: 1.1rem; padding: 15px 5px; flex-direction: column; gap: 8px; border-radius: 12px; }
    .mega-content { gap: 10px; }
    .mega-controls { top: 15px; right: 15px; gap: 10px; }
    .mega-btn-icon { width: 50px; height: 50px; font-size: 1.5rem; }
}
