:root {
    --deep-charcoal: #2A2D34;
    --metallic-copper: #B87333;
    --copper-light: #d6985f;
    --copper-cyan-fuser: rgba(184, 115, 51, 0.4);
    --light-bg: #F9F9FB;
    --white: #FFFFFF;
    --text-main: #4A4A4A;
    --radius: 12px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.05);
    --transition: 0.4s ease-in-out;
}

body.dark-theme {
    --bg-main: #121212;
    --bg-card: #1E1E1E;
    --bg-nav: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: #333333;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
    --input-bg: #121212;
    --glow-bg: #2A2D34;
    --card-glass: rgba(30, 30, 30, 0.85);
    --social-bg: #121212;
}

body.light-theme {
    --bg-main: #F9F9FB;
    --bg-card: #FFFFFF;
    --bg-nav: #FFFFFF;
    --text-primary: #2A2D34;
    --text-secondary: #4A4A4A;
    --border-color: #EEEEEE;
    --shadow: 0 10px 40px rgba(0,0,0,0.05);
    --input-bg: #FFFFFF;
    --glow-bg: #e0d5cd;
    --card-glass: rgba(255, 255, 255, 0.85);
    --social-bg: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); line-height: 1.6; transition: background-color var(--transition), color var(--transition); overflow-x: hidden; }

.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: 0.4; pointer-events: none; transition: background var(--transition); }
.glow-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--metallic-copper); }
.glow-2 { bottom: 10%; right: -5%; width: 400px; height: 400px; background: var(--glow-bg); opacity: 0.8; }
#tsparticles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: auto; }
.container { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Desktop Navigation */
.navbar { background-color: var(--bg-nav); padding: 24px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; transition: background-color var(--transition), padding var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.nav-left-spacer { flex: 1; display: block; max-width: 300px; } 

.logo-link-centered { display: flex; justify-content: center; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); z-index: 102; width: 180px; }
.logo-img { height: 90px; width: auto; transition: height 0.3s ease; }

body.light-theme .dark-mode-logo, body.dark-theme .light-mode-logo { display: none; }
body.light-theme .light-mode-logo, body.dark-theme .dark-mode-logo { display: block; }

.nav-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; max-width: calc(100% - 240px); }
.nav-controls { display: flex; align-items: center; gap: 20px; z-index: 115; }
.theme-toggle-btn { background: none; border: 2px solid var(--text-primary); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: var(--text-primary); transition: background-color 0.3s, color 0.3s; display: flex; justify-content: center; align-items: center; }
.theme-toggle-btn:hover { background: var(--text-primary); color: var(--bg-nav); }
body.dark-theme .moon-icon, body.light-theme .sun-icon { display: none; }
body.dark-theme .sun-icon, body.light-theme .moon-icon { display: block; }

/* Menu Button (Desktop View Style Definition) */
.hamburger-menu-btn { background: transparent; color: var(--text-primary); border: none; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: color 0.3s ease-in-out; padding: 10px 0; }
.hamburger-menu-btn:hover { color: var(--metallic-copper); background: transparent; }
.hamburger-lines { display: flex; flex-direction: column; gap: 5px; justify-content: center; width: 20px; }
.hamburger-menu-btn .bar { display: block; width: 20px; height: 3px; background-color: var(--text-primary); transition: background-color 0.3s, transform 0.3s, opacity 0.3s; }
.hamburger-menu-btn:hover .bar { background-color: var(--metallic-copper); }

.hamburger-menu-btn.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu-btn.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu-btn.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Navigation Drawer menu cards */
.nav-links { position: absolute; right: 20px; top: 92px; flex-direction: column; background: var(--bg-nav); min-width: 260px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); border: 1px solid var(--border-color); padding: 25px; gap: 15px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 110; list-style: none; text-align: center; }
.nav-links.active { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
.nav-links li { width: 100%; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.95rem; transition: color var(--transition); display: block; padding: 8px; width: 100%; }
.nav-links a:hover { color: var(--metallic-copper); }

/* Buttons UI Layout */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.btn-primary, .nav-btn, .action-btn { background-color: var(--metallic-copper); color: var(--white); text-decoration: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s; border: 2px solid var(--metallic-copper); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.btn-primary:hover, .nav-btn:hover { background-color: transparent; color: var(--metallic-copper); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184, 115, 51, 0.2); }
.nav-links .nav-enquire-btn { background-color: var(--metallic-copper); color: #FFFFFF !important; border-radius: 6px; padding: 12px 24px; font-weight: 700; width: 100%; margin-top: 5px; box-shadow: 0 4px 12px rgba(184, 115, 51, 0.15); }
.nav-links .nav-enquire-btn:hover { background-color: transparent; color: var(--metallic-copper) !important; }

/* Premium Glass Hero Header */
.app-header { text-align: center; padding: 60px 0 40px; position: relative; z-index: 10; }
.copper-text { color: var(--metallic-copper) !important; }

.hero-glass-card { background: var(--card-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px 30px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); border-top: 1px solid rgba(255, 255, 255, 0.1); transition: background-color var(--transition), border-color var(--transition); }
.hero-glass-card h1 { font-size: 3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.5px; line-height: 1.2; transition: color var(--transition); }
.hero-glass-card h2 { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; letter-spacing: -0.2px; }

.hero-description { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.hero-description p { margin: 0; font-size: 1.05rem; color: var(--text-secondary); font-weight: 500; text-align: center; transition: color var(--transition); max-width: 620px; }
.hero-description i, .hero-description svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--metallic-copper); }

/* Form Control Alignment Elements */
.form-container { background: var(--card-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); transition: background-color var(--transition), border-color var(--transition); margin-bottom: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; color: var(--text-primary); display: block; margin-bottom: 8px; }
.form-group input, .form-select { width: 100%; padding: 14px; background-color: var(--input-bg); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; }
.form-group input:focus, .form-select:focus { border-color: var(--metallic-copper); outline: none; box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.1); }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23B87333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }

/* Centered Form Actions */
.button-group { display: flex; gap: 15px; margin-top: 10px; justify-content: center; align-items: center; width: 100%; }
.btn-ghost { padding: 18px 24px; font-size: 1rem; font-weight: 600; border: 1px solid var(--border-color); border-radius: 6px; background-color: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.3s; display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.btn-ghost:hover { border-color: var(--text-primary); color: var(--text-primary); background-color: rgba(0,0,0,0.05); }

/* Output Views Arrangement */
.output-section { display: none; margin-bottom: 40px; animation: fadeIn 0.5s ease-in-out; }
.output-header { display: flex; flex-direction: column; align-items: center; text-align: center; border-bottom: 2px solid var(--border-color); padding-bottom: 25px; margin-bottom: 25px; gap: 20px; width: 100%; }
.output-header h2 { font-size: 1.9rem; color: var(--text-primary); font-weight: 800; width: 100%; text-align: center; }

.action-buttons { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; flex-wrap: wrap; }
.action-btn { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; text-align: center; }
.action-btn:hover { border-color: var(--metallic-copper); color: var(--metallic-copper); transform: translateY(-1px); }
.action-btn.primary-action { background: var(--bg-card); }
.action-btn.copied { background: var(--metallic-copper); color: var(--white); border-color: var(--metallic-copper); }

/* Main Brief Output Wrapper */
.output-box { background: var(--card-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); position: relative; margin-bottom: 30px; }
.output-content { color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; font-size: 1.05rem; }

.day-block { margin-bottom: 45px; padding-bottom: 30px; border-bottom: 1px dashed var(--border-color); }
.day-block:last-of-type { border-bottom: none; margin-bottom: 20px; }
.day-block h2 { color: var(--text-primary); font-size: 1.6rem; margin-bottom: 12px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.day-block h2 span { color: var(--metallic-copper); }
.day-block p { margin-bottom: 15px; color: var(--text-secondary); font-size: 1.05rem; }
.day-block strong { color: var(--text-primary); }

.prompt-container { margin: 20px 0 10px; }
.prompt-label { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--metallic-copper); margin-bottom: 6px; display: block; }
.prompt-box { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); padding: 22px; border-radius: 8px; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.95rem; color: var(--text-secondary); white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; }

/* Call to Action Inline Card Banner */
.cta-banner { background: var(--bg-main); border: 1px solid var(--border-color); border-left: 4px solid var(--metallic-copper); padding: 20px 25px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-banner-text strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
.cta-banner-text p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.cta-link { background: transparent; color: var(--metallic-copper); font-weight: 600; text-decoration: none; border: 1px solid var(--metallic-copper); padding: 10px 18px; border-radius: 6px; transition: all 0.3s; white-space: nowrap; }
.cta-link:hover { background: var(--metallic-copper); color: var(--white); }

/* External Direct Navigation Row Button elements */
.external-mid-nav-row { display: flex; justify-content: center; width: 100%; margin: 20px 0 50px; position: relative; z-index: 10; }
.mid-section-btn { padding: 16px 36px; font-size: 1.05rem; box-shadow: var(--shadow-sm); display: inline-flex; justify-content: center; align-items: center; text-align: center; }

/* Footer Copyright Component */
.footer { text-align: center; padding: 50px 0 40px; color: var(--text-secondary); font-size: 0.95rem; position: relative; z-index: 10; border-top: 1px solid var(--border-color); background-color: var(--bg-nav); transition: background-color var(--transition), border-color var(--transition); }
.footer-content-container { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-row-copyright p, .footer-row-rights p { margin: 0; line-height: 1.4; text-align: center; }
.footer-sync-link { color: var(--metallic-copper) !important; font-weight: 700; text-decoration: none !important; transition: color var(--transition); }
.footer-sync-link:hover { color: var(--copper-light) !important; text-decoration: none !important; }

/* Integrated Responsive Social Elements */
.footer-socials { display: flex; gap: 15px; margin-bottom: 12px; justify-content: center; width: 100%; }
.footer-socials a { color: var(--text-secondary); transition: color 0.3s, border-color 0.3s, transform 0.3s; width: 40px; height: 40px; border-radius: 50%; background-color: var(--social-bg); border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; text-decoration: none; }
.footer-socials a:hover { color: var(--metallic-copper); border-color: var(--metallic-copper); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }

/* Return To Top Controller element */
.return-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: rgba(184, 115, 51, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 50%; z-index: 99; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.return-to-top.show { opacity: 1; visibility: visible; }
.return-to-top:hover { transform: translateY(-3px); background: rgba(184, 115, 51, 1); }
.return-to-top svg { width: 22px; height: 22px; stroke: #FFFFFF; }

/* ========================================================================= */
/* PACKAGED RESPONSIVE SCREEN ADJUSTMENTS FOR MOBILE VIEWPORTS               */
/* ========================================================================= */
@media (max-width: 768px) {
    .navbar { padding: 8px 0; }
    
    .nav-container { justify-content: space-between; align-items: center; padding: 0 20px; }
    .nav-left-spacer { display: none; }
    .logo-link-centered { position: relative; left: auto; transform: none; display: flex; justify-content: flex-start; width: auto; top: auto; }
    .logo-img { height: 75px; }

    .nav-right { max-width: auto; flex: none; }
    .nav-controls { gap: 15px; padding-left: 0; }
    
    /* Mobile Hamburger Alignment Synchronization */
    .hamburger-menu-btn { display: block; background: none; border: none; padding: 0; cursor: pointer; z-index: 101; width: 25px; height: 24px; }
    .hamburger-menu-btn .menu-text { display: none; } 
    .hamburger-lines { display: block; width: 25px; }
    .hamburger-menu-btn .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-primary); transition: background-color 0.3s, transform 0.3s, opacity 0.3s; }
    .hamburger-menu-btn:hover .bar { background-color: var(--text-primary); }

    .hamburger-menu-btn.is-active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu-btn.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu-btn.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links { position: fixed; left: 0; top: 92px; right: auto; flex-direction: column; background: var(--bg-nav); width: 100%; z-index: 105; box-shadow: 0 10px 25px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-15px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; border-top: 1px solid var(--border-color); border-left: none; border-right: none; border-radius: 0; padding: 30px 20px; gap: 20px; text-align: center; }
    .nav-links.active { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px; font-size: 1.1rem; width: 100%; }
    .nav-links .nav-enquire-btn { background-color: var(--metallic-copper); color: #FFFFFF !important; border-radius: 6px; padding: 14px 24px; font-weight: 700; width: 100%; max-width: 280px; margin: 5px auto 0; box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2); display: inline-flex; justify-content: center; }

    .app-header { padding: 40px 0 25px; }
    .hero-glass-card { padding: 30px 20px; border-radius: 12px; }
    .hero-glass-card h1 { font-size: 2.2rem; }
    .hero-glass-card h2 { font-size: 1.2rem; }
    .hero-description { flex-direction: column; text-align: center; gap: 12px; }
    .hero-description p { text-align: center; font-size: 0.98rem; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .button-group { flex-direction: column; width: 100%; align-items: center; gap: 12px; }
    .btn-ghost { order: 2; width: 100%; max-width: 100%; justify-content: center; padding: 15px 20px; }
    .btn-primary { order: 1; width: 100%; max-width: 100%; justify-content: center; padding: 15px 20px; }
    
    .form-container { padding: 30px 20px; }
    .output-box { padding: 25px 20px; }
    
    .output-header { gap: 15px; padding-bottom: 15px; text-align: center; }
    .output-header h2 { font-size: 1.4rem; text-align: center; width: 100%; }
    .action-buttons { width: 100%; flex-direction: column; gap: 10px; align-items: center; }
    .action-btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 1rem; }
    
    .day-block h2 { font-size: 1.3rem; flex-direction: column; align-items: flex-start; gap: 4px; }
    .cta-banner { flex-direction: column; text-align: center; align-items: stretch; border-left: 1px solid var(--border-color); border-top: 4px solid var(--metallic-copper); }
    .cta-banner-text strong, .cta-banner-text p { text-align: center; }
    
    .external-mid-nav-row { display: flex; justify-content: center; width: 100%; margin: 20px 0 30px; }
    .mid-section-btn { width: 100%; max-width: 100%; text-align: center; justify-content: center; }
    .return-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 3px solid var(--metallic-copper); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }

/* Dynamic Typewriter Custom Blinking Cursor Styles */
.type-cursor {
    color: var(--metallic-copper);
    font-weight: 800;
    margin-left: 3px;
    animation: blinkCursor 0.8s infinite steps(2, start);
}
@keyframes blinkCursor { to { opacity: 0; } }

/* Rotating Loading Icon Animation */
.animate-spin {
    animation: spin 2s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}