/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary: #0f172a;
    --secondary: #475569;
    --accent: #f39c12;
    --accent-dark: #e67e22;

    --light-bg: #f1f5f9;
    --light-bg-alt: #ffffff;
    --light-text: #0f172a;
    --light-card: #ffffff;
    --light-border: rgba(0, 0, 0, 0.08);

    --dark-bg: #0f172a;
    --dark-bg-alt: #0b1221;
    --dark-text: #e2e8f0;
    --dark-card: #1e293b;
    --dark-border: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

body {
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    max-width: 100vw;
    /* Ensure body doesn't exceed viewport width */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

body.light {
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.dark {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.container {
    width: 90%;
    max-width: 1200px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-4 {
    padding: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.grid {
    display: grid;
}

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

.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex {
    display: flex;
}

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.text-accent {
    color: var(--accent);
}

/* --- THEME TOGGLE --- */
.toggle-theme {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: transform 0.3s, color .3s;
}

body.light .toggle-theme {
    color: var(--light-text);
}

body.dark .toggle-theme {
    color: var(--dark-text);
}

.toggle-theme:hover {
    transform: scale(1.1) rotate(15deg);
}

/* --- NAVIGATION --- */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 50;
}

.nav-scrolled {
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

body.light .nav-scrolled {
    background: rgba(241, 245, 249, 0.8);
}

body.dark .nav-scrolled {
    background: rgba(15, 23, 42, 0.8);
}

.nav-logo img {
    height: 40px;
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.navbar-logo-img {
    width: 150px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

body.light .nav-links a {
    color: var(--secondary);
}

body.dark .nav-links a {
    color: var(--dark-text);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover:not(.btn) {
    color: var(--accent);
}

.nav-links a:hover:not(.btn)::after {
    width: 100%;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/bg-buildings.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    opacity: 0.08;
    z-index: -1;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 2.5rem;
    border-radius: 50%;
    border: 6px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 0 50px rgba(243, 156, 18, 0.5);
}

.hero-section h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    /* Added margin */
    font-weight: 500;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    /* Adjusted margin */
    max-width: 700px;
    /* Increased max-width */
    margin-left: auto;
    /* Centering */
    margin-right: auto;
    /* Centering */
    line-height: 1.5;
}

.hero-social-icons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-social-icons a i {
    transition: color 0.3s;
}

.hero-social-icons a {
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s;
}

.hero-social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
}

.hero-social-icons .social-phone i {
    color: #25D366;
}

.hero-social-icons .social-whatsapp i {
    color: #25D366;
}

.hero-social-icons .social-email i {
    color: #BB001B;
}

.hero-social-icons .social-instagram i {
    color: #E4405F;
}

.hero-social-icons .social-facebook i {
    color: #1877F2;
}

.hero-social-icons .social-linkedin i {
    color: #0A66C2;
}

.hero-social-icons .social-youtube i {
    color: #FF0000;
}

.hero-social-icons .social-telegram i {
    color: #0088CC;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stats>div {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

/* --- GENERAL SECTION STYLES --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.bg-alt {
    transition: background-color 0.5s;
}

body.light .bg-alt {
    background-color: var(--light-bg-alt);
}

body.dark .bg-alt {
    background-color: var(--dark-bg-alt);
}

.illustration {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

#about ul i {
    margin-right: 0.75rem;
}

/* --- CARD STYLES --- */
.card {
    padding: 2rem;
    border-radius: 15px;
    transition: background 0.4s, transform 0.3s, box-shadow 0.3s;
    border: 1px solid;
}

body.light .card {
    background: var(--light-card);
    border-color: var(--light-border);
    box-shadow: var(--shadow-md);
}

body.dark .card {
    background: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px);
}

body.light .card:hover {
    box-shadow: var(--shadow-lg);
}

body.dark .card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-icon-alt {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--accent);
}

/* --- PARTNERS SECTION --- */
.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.builder-logo {
    width: 180px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.5rem;
    transition: all .3s;
    overflow: hidden;
    margin: 0 20px;
    border: 1px solid;
}

body.light .builder-logo {
    border-color: var(--light-border);
}

body.dark .builder-logo {
    border-color: var(--dark-border);
}

.builder-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    /* Removed grayscale filter */
    opacity: 1;
    /* Removed opacity */
    transition: all .3s;
}

.builder-logo:hover img {
    transform: scale(1.1);
}

/* --- CONTACT SECTION --- */
.contact-card {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid;
}

body.light .contact-card {
    background: var(--light-card);
    border-color: var(--light-border);
}

body.dark .contact-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.contact-card h3 {
    font-size: 1.75rem;
}

.contact-card p {
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-card i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* --- FOOTER --- */
.footer {
    padding: 3rem 1rem;
    border-top: 1px solid;
}

body.light .footer {
    background: var(--light-bg-alt);
    border-color: var(--light-border);
}

body.dark .footer {
    background: var(--dark-bg-alt);
    border-color: var(--dark-border);
}

.footer .disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* --- FLOATING BUTTONS & BACK TO TOP --- */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.floating-buttons a,
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform .2s, box-shadow .2s;
}

.floating-buttons a:hover,
.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.back-to-top {
    position: fixed;
    bottom: -100px;
    left: 2rem;
    transition: bottom 0.4s;
}

.back-to-top.show {
    bottom: 2rem;
}

.hamburger-icon {
    display: none;
    /* Hidden by default */
    cursor: pointer;
    font-size: 1.5rem;
}

body.light .hamburger-icon {
    color: var(--light-text);
}

body.dark .hamburger-icon {
    color: var(--dark-text);
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 75%;
    max-width: 280px;
    height: 100%;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

body.light .mobile-nav-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

body.dark .mobile-nav-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-panel.open {
    right: 0;
}

.close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.mobile-nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light .mobile-nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

body.dark .mobile-nav-link {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav-link i {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body.dark .mobile-nav-link i {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .logo-marquee-content {
        animation-duration: 30s;
    }

    .desktop-controls {
        display: none;
    }

    /* Hide desktop nav links and toggle */
    .mobile-controls {
        display: flex;
        /* Show mobile controls container */
        align-items: center;
        gap: 1rem;
    }

    .hamburger-icon {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-section .subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid,
    .md\:grid-cols-2,
    .lg\:grid-cols-2,
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .floating-buttons,
    .back-to-top {
        bottom: 5rem;
        /* Increased from 1rem to avoid mobile browser UI */
    }

    .floating-buttons {
        right: 1rem;
    }

    .back-to-top {
        left: 1rem;
    }

    .hero-social-icons {
        gap: 1rem;
    }
}

/* --- FOOTER LINKS --- */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s, color 0.3s;
    border: 1px solid var(--light-border);
}

body.light .footer-link {
    background-color: var(--light-bg-alt);
    color: var(--secondary);
}

body.dark .footer-link {
    background-color: var(--dark-bg-alt);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.footer-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* --- FEATURED PROPERTY CARD (Compact Grid Layout) --- */
.featured-property-card {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

body.light .featured-property-card {
    background: var(--light-card);
}

body.dark .featured-property-card {
    background: var(--dark-card);
}

.featured-property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.featured-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-property-card:hover .featured-image img {
    transform: scale(1.15);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.featured-location {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    opacity: 0.8;
    line-height: 1.4;
}

.featured-location i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.featured-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.featured-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

body.light .featured-features span {
    background: rgba(243, 156, 18, 0.1);
}

body.dark .featured-features span {
    background: rgba(243, 156, 18, 0.2);
}

.featured-features span:hover {
    transform: translateX(3px);
    background: rgba(243, 156, 18, 0.2);
}

.featured-features i {
    color: var(--accent);
    font-size: 0.9rem;
}

.featured-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
}

.featured-price span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.featured-btn:hover {
    gap: 1rem;
}

/* Grid container for multiple properties */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .featured-image {
        height: 200px;
    }

    .featured-content {
        padding: 1.2rem;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .featured-price {
        font-size: 1.5rem;
    }
}

/* --- TOOL-SPECIFIC STYLES (from tool-style.css) --- */
.hero-gradient {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    color: transparent;
}

.tool-container p.subtitle {
    max-width: 600px;
    margin: -1rem auto 2rem;
}

.link-accent {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.link-accent:hover {
    text-shadow: 0 0 8px var(--accent);
}

.tool-container {
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    margin: 5rem auto;
}

body.light .tool-container {
    background: var(--light-card);
    border: 1px solid var(--light-border);
}

body.dark .tool-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

body.light .form-group label {
    color: var(--light-text);
}

body.dark .form-group label {
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dark);
    outline: none;
}

body.light .form-control {
    border: 1px solid var(--light-border);
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.dark .form-control {
    border: 1px solid var(--dark-border);
    background-color: var(--dark-bg-alt);
    color: var(--dark-text);
}

textarea.form-control {
    min-height: 150px;
}


/* Custom Checkbox Styling */
.form-group input[type="checkbox"] {
    /* Hide default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25rem;
    /* Size of custom checkbox */
    height: 1.25rem;
    border-radius: 0.25rem;
    /* Slightly rounded corners */
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: all 0.2s ease-in-out;
}

body.light .form-group input[type="checkbox"] {
    border: 2px solid var(--light-border);
    background-color: var(--light-bg);
}

body.dark .form-group input[type="checkbox"] {
    border: 2px solid var(--dark-border);
    background-color: var(--dark-bg-alt);
}

.form-group input[type="checkbox"]:checked {
    background-color: var(--accent);
    /* Green background when checked */
    border-color: var(--accent);
    /* Green border when checked */
}

.form-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-dark);
    /* Focus ring */
}

.form-group input[type="checkbox"]::before {
    content: '\f00c';
    /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    /* Ensure Font Awesome is correctly declared */
    font-weight: 900;
    color: var(--primary);
    /* Use primary color for checkmark for better contrast */
    font-size: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.form-group input[type="checkbox"]:checked::before {
    opacity: 1;
}

.form-group label[for] {
    cursor: pointer;
    vertical-align: middle;
}

body.light .form-group label[for] {
    color: var(--light-text);
}

body.dark .form-group label[for] {
    color: var(--dark-text);
}

.tool-container .btn {
    display: inline-block;
    /* Overriding for tool container */
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.tool-container .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--accent);
    /* A vibrant color for the display */
    font-family: 'monospace';
    /* Monospace font for time display */
}

body.light .display {
    background: var(--light-bg-alt);
    border: 1px solid var(--light-border);
}

body.dark .display {
    background: var(--dark-bg-alt);
    border: 1px solid var(--dark-border);
}

.results {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

body.light .results {
    background: var(--light-bg-alt);
    border: 1px solid var(--light-border);
}

body.dark .results {
    background: var(--dark-bg-alt);
    border: 1px solid var(--dark-border);
}

.results p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

body.light .results p {
    color: var(--light-text);
}

body.dark .results p {
    color: var(--dark-text);
}

.results p span {
    font-weight: 700;
    color: var(--accent);
}

.results #qrcode {
    margin: 1rem auto;
    width: 128px;
    height: 128px;
}

/* Styles for tools.html */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-grid .card {
    text-decoration: none;
    color: inherit;
}

.tool-grid .card p {
    color: var(--secondary);
}

body.dark .tool-grid .card p {
    color: #94a3b8;
    /* A lighter secondary text for dark mode */
}

.section {
    padding: 3rem 2rem;
    /* More vertical padding for sections */
    margin-bottom: 2rem;
    /* Space between sections */
    border-radius: 12px;
    /* Slightly rounded corners */
    max-width: 1200px;
    /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    /* Center section headings */
}

body.light .section h2 {
    color: var(--light-text);
}

body.dark .section h2 {
    color: var(--dark-text);
}

.section h2 .fas {
    margin-right: 0.75rem;
    color: var(--accent);
    /* Icon color */
}

.section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

body.light .section p {
    color: var(--light-text);
}

body.dark .section p {
    color: var(--dark-text);
}

.faq-item {
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

body.light .faq-item {
    background: var(--light-card);
    border: 1px solid var(--light-border);
}

body.dark .faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.faq-item p strong {
    font-weight: 600;
}

body.light .faq-item p strong {
    color: var(--light-text);
}

body.dark .faq-item p strong {
    color: var(--dark-text);
}

.content-section {
    max-width: 800px;
    margin: 5rem auto;
    padding: 2rem;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* --- SITEMAP STYLES --- */
.sitemap-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.sitemap-section {
    margin-bottom: 3rem;
}

.sitemap-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

body.light .sitemap-section-title {
    border-color: var(--light-border);
}

body.dark .sitemap-section-title {
    border-color: var(--dark-border);
}

.sitemap-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid;
}

body.light .sitemap-link {
    background-color: var(--light-card);
    color: var(--light-text);
    border-color: var(--light-border);
}

body.dark .sitemap-link {
    background-color: var(--dark-card);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.sitemap-link:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
}

.sitemap-link i:first-child {
    color: var(--accent);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.sitemap-link span {
    flex-grow: 1;
}

.sitemap-link i:last-child {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.sitemap-link:hover i:last-child {
    opacity: 1;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}