@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep: #080c14;
    --bg-dark: #0d1321;
    --bg-card: rgba(22, 30, 49, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(62, 168, 179, 0.3);
    
    --primary-cyan: #3ea8b3;
    --primary-cyan-hover: #4dc2ce;
    --secondary-gold: #f7a33b;
    --secondary-gold-hover: #fbc04e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glow-cyan: 0 0 25px rgba(62, 168, 179, 0.2);
    --glow-gold: 0 0 25px rgba(247, 163, 59, 0.15);
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Page Layout */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-logo {
    height: 38px;
    width: auto;
}

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

.nav-menu-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-gold));
    transition: var(--transition-smooth);
}

.nav-menu-links a:hover::after, .nav-menu-links a.active::after {
    width: 100%;
}

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

/* Typography & Gradients */
.text-gradient-cyan {
    background: linear-gradient(135deg, #a5f3fc 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fde047 0%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan-gold {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--primary-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Buttons */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-cyan {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #2b8490 100%);
    color: #0b0f19;
    box-shadow: var(--glow-cyan);
}

.btn-cyan:hover {
    background: linear-gradient(135deg, var(--primary-cyan-hover) 0%, var(--primary-cyan) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(62, 168, 179, 0.4);
    color: #0b0f19;
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, #c27a20 100%);
    color: #0b0f19;
    box-shadow: var(--glow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--secondary-gold-hover) 0%, var(--secondary-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(247, 163, 59, 0.3);
    color: #0b0f19;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 168, 179, 0.05) 0%, rgba(247, 163, 59, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 10px 30px rgba(8, 12, 20, 0.5), var(--glow-cyan);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card-content {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 1.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(62, 168, 179, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(247, 163, 59, 0.05) 0%, transparent 40%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-container {
    width: 320px;
    height: 320px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 168, 179, 0.25) 0%, rgba(247, 163, 59, 0.15) 50%, transparent 70%);
    filter: blur(15px);
    animation: rotate-glow 15s linear infinite;
}

.hero-logo-img {
    width: 200px;
    height: 200px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(62, 168, 179, 0.3));
}

/* Feature/Services Section */
.services-section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(62, 168, 179, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    border: 1px solid rgba(62, 168, 179, 0.2);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-cyan);
    color: #0b0f19;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(62, 168, 179, 0.4);
}

.service-card.gold-style .service-icon-wrapper {
    background: rgba(247, 163, 59, 0.1);
    color: var(--secondary-gold);
    border-color: rgba(247, 163, 59, 0.2);
}

.service-card.gold-style:hover .service-icon-wrapper {
    background: var(--secondary-gold);
    color: #0b0f19;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 15px rgba(247, 163, 59, 0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.service-link:hover {
    color: var(--primary-cyan-hover);
    gap: 0.8rem;
}

/* Info Section (Values) */
.info-section {
    padding: 6rem 1.5rem;
    background: rgba(13, 19, 33, 0.5);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* AI Chatbot Playground */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(13, 19, 33, 0.8);
    overflow: hidden;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: rgba(22, 30, 49, 0.7);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    animation: message-appear 0.25s ease forwards;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-top-left-radius: 2px;
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(62, 168, 179, 0.2) 0%, rgba(62, 168, 179, 0.3) 100%);
    border: 1px solid var(--primary-cyan);
    border-top-right-radius: 2px;
}

.chat-message p {
    margin: 0;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(22, 30, 49, 0.7);
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.8rem;
}

.chat-input {
    flex: 1;
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

.suggested-prompts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.suggested-prompt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggested-prompt-btn:hover {
    background: rgba(62, 168, 179, 0.1);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

/* Architecture Explorer */
.arch-explorer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.arch-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.arch-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.arch-nav-btn.active {
    background: rgba(62, 168, 179, 0.08);
    border-color: var(--primary-cyan);
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
}

.arch-diagram-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.arch-visualizer {
    flex: 1;
    min-height: 250px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(8, 12, 20, 0.3);
    padding: 1rem;
}

/* Estimator Tool */
.estimator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

.estimator-options {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.estimator-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.estimator-chips {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.estimator-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.estimator-chip.active {
    background: rgba(247, 163, 59, 0.1);
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
    box-shadow: var(--glow-gold);
}

.estimator-result-card {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.6) 0%, rgba(8, 12, 20, 0.8) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.estimator-result-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 163, 59, 0.05) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    z-index: 0;
}

.estimator-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary-gold);
    margin: 1rem 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control-custom {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-control-custom:focus {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: rgba(8, 12, 20, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 1.5rem 2rem 1.5rem;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 250px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Keyframes Animations */
@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid and Adjustments */
@media (max-width: 991.98px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .info-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .estimator-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .nav-menu-links {
        display: none; /* Mobile menu can toggle using Blazor dynamic class */
    }
    
    .nav-menu-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-glass);
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .arch-explorer {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Cookie Banner */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 800px;
    animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner-card {
    background: rgba(13, 19, 33, 0.95);
    border: 1px solid var(--border-active);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--glow-cyan);
    padding: 1.5rem !important;
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 767.98px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Cookie switch styling */
.cookie-switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}

.cookie-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: 50%;
}

.cookie-switch-label input:checked + .cookie-switch-slider {
    background-color: rgba(62, 168, 179, 0.2);
    border-color: var(--primary-cyan);
}

.cookie-switch-label input:checked + .cookie-switch-slider:before {
    transform: translateX(20px);
    background-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(62, 168, 179, 0.5);
}

.cookie-switch-slider.disabled {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed;
}

.cookie-switch-slider.disabled:before {
    background-color: var(--text-muted) !important;
}

.contact-item {
    transition: var(--transition-smooth);
}

.contact-item:hover {
    border-color: var(--border-active) !important;
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}