/* =========================================
   1. GENERAL RESET & BODY
   ========================================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =========================================
   2. APP HEADER STYLES (Fixed Mobile Single Line)
   ========================================= */
.app-header {
    background-color: #003366; /* Indian Blue */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    height: 60px;
    z-index: 1000;
}

/* Left Side (Logo + Buttons) */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* Header Buttons */
.btn-small {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-login { background: transparent; border: 1px solid white; color: white; }
.btn-login:hover { background: rgba(255,255,255,0.1); }

.btn-join { background: #ff9933; color: white; border: 1px solid #ff9933; }
.btn-join:hover { background: #e68a00; }

.btn-dash { background: #28a745; color: white; }
.btn-out { background: #dc3545; color: white; }

/* Menu Icon */
.menu-toggle {
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}
.menu-toggle:hover { color: #ff9933; }

/* Dropdown Menu */
.dropdown-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #002244;
    width: 220px;
    box-shadow: -2px 5px 10px rgba(0,0,0,0.3);
    border-bottom-left-radius: 10px;
}

.dropdown-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.dropdown-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 15px;
    transition: 0.3s;
}
.dropdown-nav ul li a:hover { background-color: #ff9933; padding-left: 25px; }

/* =========================================
   3. HERO SECTION (Home Page)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 { font-size: 42px; margin-bottom: 10px; text-shadow: 2px 2px 5px black; }
.hero p { font-size: 18px; margin-bottom: 30px; max-width: 800px; margin: 0 auto 30px; }

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    border: 2px solid white;
    transition: 0.3s;
}
.btn-primary { background: #ff9933; border-color: #ff9933; }
.btn-primary:hover { background: #e68a00; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: white; color: #003366; }

/* =========================================
   4. STATS BAR (Live Counts)
   ========================================= */
.stats-bar {
    background: #003366;
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
    margin-top: -60px;
    position: relative;
    width: 90%;
    margin-left: 5%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.stat-item h2 { font-size: 30px; margin: 0; color: #ff9933; }
.stat-item p { margin: 5px 0 0; font-size: 14px; opacity: 0.9; }
.stat-item i { font-size: 24px; margin-bottom: 5px; opacity: 0.7; }

/* =========================================
   5. SERVICES / ECOSYSTEM GRID
   ========================================= */
.section-title { text-align: center; color: #003366; margin: 80px 0 40px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 50px;
    max-width: 1200px;
    margin: auto;
}

.service-box {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-bottom: 4px solid #ddd;
    cursor: pointer;
}
.service-box:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 45px; margin-bottom: 15px; display: block; }

/* Specific Border Colors */
.box-startup:hover { border-color: #007bff; }
.box-invest:hover { border-color: #28a745; }
.box-estate:hover { border-color: #6f42c1; }
.box-community:hover { border-color: #ff9933; }
.box-charity:hover { border-color: #dc3545; }
.box-nri:hover { border-color: #17a2b8; }

/* =========================================
   6. REAL ESTATE CARD STYLES
   ========================================= */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.prop-card { 
    background: white; border-radius: 10px; overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; 
}
.prop-card:hover { transform: translateY(-5px); }
.prop-img { width: 100%; height: 200px; object-fit: cover; }
.prop-details { padding: 20px; }
.tag { background: #003366; color: white; padding: 3px 8px; font-size: 12px; border-radius: 3px; }
.tag-rent { background: #ff9933; }
.price { font-size: 22px; color: #28a745; font-weight: bold; margin: 10px 0; }
.location { color: #666; font-size: 14px; margin-bottom: 10px; }

/* =========================================
   7. CHARITY CARD STYLES
   ========================================= */
.fund-card { 
    background: white; padding: 25px; border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-align: center; 
    border-top: 5px solid #28a745; position: relative;
    transition: 0.3s;
}
.fund-card:hover { transform: translateY(-5px); }
.progress-container { background: #e9ecef; height: 10px; border-radius: 5px; margin: 15px 0; overflow: hidden; }
.progress-bar { background: #28a745; height: 100%; }

/* Donation Inputs */
.donate-group { display: flex; gap: 5px; margin-top: 15px; }
.currency-select { padding: 10px; border: 1px solid #ccc; background: #f8f9fa; font-weight: bold; width: 35%; border-radius: 5px; }
.amount-input { padding: 10px; border: 1px solid #ccc; width: 65%; border-radius: 5px; }
.btn-donate {
    background: #28a745; color: white; border: none; padding: 12px; 
    width: 100%; margin-top: 10px; border-radius: 5px; 
    cursor: pointer; font-weight: bold;
}

/* =========================================
   8. CONTACT PAGE STYLES
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.info-box { background: #003366; color: white; padding: 40px; border-radius: 10px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-item i { font-size: 24px; color: #ff9933; margin-right: 15px; }
.form-box { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
.btn-send { background: #ff9933; color: white; border: none; padding: 12px 30px; font-weight: bold; border-radius: 5px; cursor: pointer; width: 100%; }

/* =========================================
   9. FORMS & TABLES (General)
   ========================================= */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%; padding: 10px; margin: 5px 0 15px 0; 
    display: inline-block; border: 1px solid #ccc; border-radius: 4px; 
    box-sizing: border-box;
}

table { width: 100%; border-collapse: collapse; margin-top: 15px; background: white; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #003366; color: white; }
tr:hover { background-color: #f5f5f5; }

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #222;
    color: #bbb;
    padding: 40px 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-col h3 { color: white; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #bbb; text-decoration: none; }
.footer-col ul li a:hover { color: #ff9933; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #444; margin-top: 20px; }

/* =========================================
   11. MOBILE RESPONSIVE MEDIA QUERIES
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* Header Fixes */
    .app-header { padding: 10px 15px; }
    .header-left { gap: 10px; }
    .logo-link img { height: 32px; }
    .btn-small { padding: 5px 12px; font-size: 12px; border-radius: 15px; }
    .header-buttons { gap: 5px; }
    .menu-toggle { font-size: 24px; }

    /* Hero Fixes */
    .hero { height: auto; padding: 60px 15px; }
    .hero h1 { font-size: 26px; }
    
    /* Stats Bar (2 Columns) */
    .stats-bar { 
        width: 90%; margin-left: 5%; margin-top: -30px; 
        padding: 20px 10px;
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* Grids to Single Column */
    .services-grid, .prop-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        padding: 15px; gap: 20px;
    }
    
    /* Footer */
    .footer-container { text-align: center; }
}
