/* static/css/main.css - Complete file with logo and header strip updates */

:root {
    --primary-gold: #DAA520;
    --primary-green: #2E8B57;
    --primary-navy: #1C2951;
    --secondary-charcoal: #4A5568;
    --accent-light-gold: #F4E4BC;
    --accent-light-green: #E8F5E8;
    --neutral-gray: #F8F9FA;
    --white: #FFFFFF;
    --gold-gradient: linear-gradient(135deg, #DAA520 0%, #F4E4BC 100%);
    --green-gradient: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    --navy-gradient: linear-gradient(135deg, #1C2951 0%, #2C3E50 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--secondary-charcoal);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Header */
header {
    background: var(--primary-gold);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(28, 41, 81, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Updated Logo Styling */
.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(28, 41, 81, 0.1);
}

.logo-icon::before {
    display: none; /* Hide the emoji */
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.logo-text .solutions {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary-charcoal);
    letter-spacing: 2px;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--secondary-charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-navy);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section with Jumbotron */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Image Carousel Background */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(28, 41, 81, 0.8) 0%,
        rgba(46, 139, 87, 0.6) 50%,
        rgba(218, 165, 32, 0.7) 100%
    );
    z-index: 2;
}

/* Slide specific backgrounds - Using direct static paths */
.hero-slide-1 {
    background-image: url('/static/images/driving-mirror.jpg');
}

.hero-slide-2 {
    background-image: url('/static/images/geo-surveying.jpg');
}

.hero-slide-3 {
    background-image: url('/static/images/digital-solutions.jpg');
}

.hero-slide-4 {
    background-image: url('/static/images/mfariji-memorial.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent-light-gold);
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: var(--primary-navy);
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(218, 165, 32, 0.6);
    scale: 1.05;
}

.cta-button::after {
    content: '🌱';
    font-size: 1.3rem;
}

/* Carousel Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--primary-gold);
    border-color: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Slide Content Animation */
.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Entities Section */
.entities {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-charcoal);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Updated Entity Card Styling */
.entity-card {
    background: var(--white);
    border-radius: 20px;
    padding: 0; /* Remove padding - header strip will handle spacing */
    box-shadow: 0 10px 40px rgba(28, 41, 81, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.entity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(28, 41, 81, 0.15);
}

.entity-card::before {
    display: none; /* Remove the top gold line */
}

/* Header Strip Styling */
.entity-header-strip {
    width: 100%;
    height: 120px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-bottom: 0;
}

.strip-overlay {
    background: rgba(28, 41, 81, 0.85);
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.entity-name {
    color: var(--primary-navy);
    font-size: 1.4rem !important;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Strip Background Images - Using direct static paths */
.geo-strip {
    background-image: url('/static/images/geo-surveying.jpg');
}

.digital-strip {
    background-image: url('/static/images/digital-solutions.jpg');
}

.driving-strip {
    background-image: url('/static/images/driving-mirror.jpg');
}

.mfariji-strip {
    background-image: url('/static/images/mfariji-memorial.jpg');
}

.future-strip {
    background: var(--gold-gradient);
}

.future-strip .strip-overlay {
    background: transparent;
}

.future-strip .entity-name {
    color: var(--primary-navy) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.future-strip .entity-status {
    background: rgba(28, 41, 81, 0.9) !important;
    color: white !important;
}

/* Status Badge in Header */
.entity-header-strip .entity-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-active {
    background: rgba(46, 139, 87, 0.9) !important;
    color: #90EE90 !important;
}

.status-active::before {
    content: '●';
    color: #90EE90;
    animation: pulse 2s infinite;
}

.status-coming {
    background: rgba(218, 165, 32, 0.9) !important;
    color: #FFE066 !important;
}

.status-coming::before {
    content: '⏳';
}

.status-development {
    background: rgba(74, 144, 226, 0.9) !important;
    color: #87CEEB !important;
}

.status-development::before {
    content: '🔧';
}

/* Entity Content Area */
.entity-content {
    padding: 2rem 2.5rem 2.5rem;
}

.entity-content p {
    color: var(--secondary-charcoal);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Remove old entity icon styling */
.entity-icon {
    display: none;
}

/* Entity Action Button */
.entity-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.action-visit {
    background: var(--green-gradient);
    color: white;
}

.action-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

.action-notify {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-gold);
}

.action-notify:hover {
    background: var(--primary-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

/* Recent Updates */
.updates {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-light-green) 0%, var(--neutral-gray) 100%);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.update-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
    overflow: hidden;
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gold);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(28, 41, 81, 0.1);
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.update-meta::before {
    content: '🌿';
    font-size: 1rem;
}

.update-title {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.update-card p {
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--navy-gradient);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="rgba(218,165,32,0.05)" cx="20" cy="20" r="10"/><circle fill="rgba(46,139,87,0.05)" cx="80" cy="60" r="15"/><circle fill="rgba(218,165,32,0.03)" cx="60" cy="10" r="8"/></svg>');
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: white;
    margin-bottom: 1rem;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.form-select option {
    background: var(--primary-navy);
    color: white;
}

.submit-btn {
    background: var(--gold-gradient);
    color: var(--primary-navy);
    padding: 18px 45px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(218, 165, 32, 0.4);
}

.submit-btn::after {
    content: '📤';
}

/* Form Error Styling */
.form-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-group .form-input.error,
.form-group .form-select.error,
.form-group .form-textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(46, 139, 87, 0.2);
    border: 2px solid rgba(46, 139, 87, 0.3);
    color: #90EE90;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #FFE066;
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ffb3b3;
}

/* Footer */
footer {
    background: #0F1419;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.footer-section p {
    color: #B0B0B0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #B0B0B0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .entities-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .entity-header-strip {
        height: 100px;
        padding: 0 1.5rem;
    }
    
    .strip-overlay {
        padding: 0 1.5rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .entity-name {
        font-size: 1.2rem !important;
    }
    
    .entity-content {
        padding: 1.5rem 2rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .entities {
        padding: 60px 0;
    }
    
    .updates {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }

    .entity-header-strip {
        height: 90px;
        padding: 0 1rem;
    }
    
    .strip-overlay {
        padding: 0 1rem;
    }
    
    .entity-name {
        font-size: 1.1rem !important;
    }
    
    .entity-status {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }
}