/* 
   Symposium-inspired Dark Theme 
   Based on user reference
*/

:root {
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --bg-card: #1e293b;
    /* Slate 800 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */

    --accent-cyan: #06b6d4;
    /* Cyan 500 */
    --accent-yellow: #facc15;
    /* Yellow 400 */

    --radius-lg: 16px;
    --radius-xl: 24px;
    --white: #ffffff;
    --text-heading: #ffffff;
    --input-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    /* Slate 50 */
    --bg-darker: #f1f5f9;
    /* Slate 100 */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-heading: #0f172a;
    --input-border: #cbd5e1;
    --glass-border: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode Specific Overrides */
[data-theme="light"] .navbar-brand {
    color: #ffffff;
}

[data-theme="light"] .navbar-links a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .navbar-links a:hover {
    color: #ffffff;
}

[data-theme="light"] .hero-content h1 {
    color: #0f172a;
    /* Ensure main heading text is dark in light mode */
}

[data-theme="light"] .hero-content p {
    color: #64748b;
    /* Ensure paragraph text is readable in light mode */
}

[data-theme="light"] .navbar {
    background-color: #295683 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer {
    background-color: #295683 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="light"] .footer-brand h4,
[data-theme="light"] .footer-logo span,
[data-theme="light"] .footer-column h4,
[data-theme="light"] .footer-bottom {
    color: #ffffff;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-column a,
[data-theme="light"] .footer-social a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .footer-column a:hover {
    color: #ffffff;
}

[data-theme="light"] .features {
    background-color: #B3CDE7 !important;
}

[data-theme="light"] .section-header h2 {
    color: #0f172a !important;
}

[data-theme="light"] .about {
    background-color: #B3CDE7 !important;
}

[data-theme="light"] .section-title {
    color: #0f172a !important;
}

[data-theme="light"] .about-content p {
    color: #334155 !important;
}

[data-theme="light"] .btn-login {
    color: #475569;
    background: white;
    border: 1px solid #cbd5e1;
    /* Slightly darker border for better definition */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-weight: 500;
    border-radius: 8px;
    /* Match screenshot radius */
    padding: 10px 24px;
    /* Ensure correct sizing */
}

[data-theme="light"] .btn-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Ensure the primary CTA button in navbar is blue in light mode */
[data-theme="light"] .navbar-actions .btn-primary {
    background-color: #3b82f6 !important;
    border: none;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
    /* Add subtle shadow */
}

[data-theme="light"] .theme-toggle {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    /* Match Masuk button radius */
    padding: 10px;
    /* Square-ish padding for icon */
    height: 44px;
    /* Ensure same height as Masuk button if possible */
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .trust-infobox {
    background: rgba(59, 130, 246, 0.1) !important;
    border-left: 4px solid #3b82f6 !important;
    width: 100%;
    /* Make full width as per screenshot design */
    margin-top: 16px;
}

[data-theme="light"] .trust-infobox p {
    color: #2563eb !important;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    transition: all 0.3s ease;
    background-color: #05070F;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img,
.logo-container img,
.sidebar-logo .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.navbar-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--text-main);
}

.navbar-actions {
    display: flex;
    gap: 16px;
}

.btn-login {
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-login:hover {
    border-color: var(--text-main);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 120px 0 200px;
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h5 {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: -40px;
    margin-bottom: 56px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-content p {
    color: #e2e8f0;
    /* Matches Section Header */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Hero Visuals (The cutout images) */
.hero-visuals {
    position: relative;
    height: 600px;
}

.hero-card {
    position: absolute;
    border-radius: 100px 100px 0 100px;
    /* Unique shape */
    overflow: hidden;
}

.hero-card.main {
    width: 330px;
    height: 440px;
    background: #334155;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border: 4px solid var(--bg-dark);
}

.hero-card.secondary {
    width: 286px;
    height: 374px;
    background: var(--primary);
    left: 0;
    bottom: 50px;
    z-index: 10;
    border-radius: 100px 100px 100px 0;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-badge {
    position: absolute;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 30;
}

.float-badge.yellow {
    background: var(--accent-yellow);
    color: #422006;
    top: 60px;
    left: -20px;
}

.float-badge.cyan {
    background: var(--accent-cyan);
    color: white;
    bottom: 80px;
    right: 0;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-header h2 {
    color: var(--white);
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #252f45;
}

[data-theme="light"] .feature-card:hover {
    background: #f1f5f9;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--white);
}

.feature-card p {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.05rem;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-cyan);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    margin-bottom: 12px;
    font-weight: 500;
}

.map-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Widget */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.contact-btn:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.contact-form-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-form-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--white);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-status p {
    font-size: 0.9rem;
    text-align: center;
}

/* Contact Form Specific Styles */
.contact-form-card .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.contact-form-card .form-label {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form-card .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.contact-form-card .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-card .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Auth Pages (Login, Register, Tenant Register) */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.1), transparent);
}

.auth-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-heading);
}

[data-theme="light"] .auth-header h1 {
    color: #0f172a !important;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-form .form-input {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
}

[data-theme="light"] .auth-form .form-input {
    background: #ffffff;
    border-color: #cbd5e1;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

/* Footer */
.footer {
    background: #05070F;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-brand h4 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-logo span {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visuals {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}