/* 
 * CSS FOR SMART CITY PORTAL
 * Theme: Modern Dark Mode, Glassmorphism, Neon Accents
 */

:root {
    /* Color Palette */
    --bg-main: #0B0F19;
    --bg-secondary: #131A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-accent: #38BDF8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38BDF8 0%, #3B82F6 100%);
    --gradient-hover: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    --gradient-glow: linear-gradient(90deg, #38BDF8, #818CF8, #38BDF8);
    
    /* Accents */
    --accent-red: #F43F5E;
    --accent-yellow: #FBBF24;
    --accent-green: #10B981;

    /* Glass Effect (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Lights */
.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.light-1 {
    width: 400px;
    height: 400px;
    background: #0ea4e9;
    top: -100px;
    left: -100px;
}

.light-2 {
    width: 500px;
    height: 500px;
    background: #818cf8;
    bottom: 20%;
    right: -200px;
    opacity: 0.3;
}

.light-3 {
    width: 300px;
    height: 300px;
    background: #10b981;
    top: 40%;
    left: 10%;
    opacity: 0.2;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.gradient-text {
    background: var(--gradient-glow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-accent);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.btn i { margin-left: 8px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--text-accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

/* Dashboard Mockup - Pure CSS */
.main-dashboard-mockup {
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}

.main-dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green { background: var(--accent-green); }

.mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-chart {
    height: 150px;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    gap: 12px;
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.h-70 { height: 70%; }
.h-90 { height: 90%; background: var(--gradient-glow); }
.h-40 { height: 40%; }
.h-100 { height: 100%; }
.h-60 { height: 60%; }
.h-85 { height: 85%; }
.h-50 { height: 50%; }

.mockup-widgets {
    display: flex;
    gap: 16px;
}

.widget {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Floating Cards in Hero */
.float-card {
    position: absolute;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.c-1 {
    top: -20px;
    right: -20px;
}

.c-2 {
    bottom: 30px;
    left: -30px;
    animation-delay: 2s;
}

/* Stats Section */
.stats {
    padding: 50px 0;
}

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

.stat-card {
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.3s;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border-color: rgba(56, 189, 248, 0.3);
}

.icon-wrapper {
    font-size: 2rem;
    color: var(--text-accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service-card:hover .service-link {
    gap: 12px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    padding: 60px 40px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, rgba(11, 15, 25, 0) 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 20px;
    background: rgba(0,0,0,0.2);
}

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

.footer-logo {
    margin-bottom: 20px;
}

.brand-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--text-accent);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--text-accent);
}

.contact-info li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--text-accent);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: block; }
    
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-actions { justify-content: center; }
    .main-dashboard-mockup { transform: none; margin-top: 40px; }
    .main-dashboard-mockup:hover { transform: none; }
    
    .stats-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .contact-info li { justify-content: center; }
}
