/* =========================================
   3Dinebase Global Styles
   ========================================= */

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    /* Accents */
    --accent-blue: #0ea5e9; /* Light blue / Electric */
    --accent-blue-glow: rgba(14, 165, 233, 0.5);
    --accent-orange: #f97316; /* Vibrant orange */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-snappy: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-snappy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Headings */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

/* =========================================
   Components
   ========================================= */
   
/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform var(--transition-smooth), background var(--transition-snappy), box-shadow var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-snappy);
    border: 1px solid transparent;
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn.primary {
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn.primary:hover {
    background-color: #0284c7;
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    border-color: var(--glass-border);
    color: var(--text-main);
}

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

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color var(--transition-snappy);
}
.btn-text:hover {
    color: var(--text-main);
}

/* =========================================
   Layout Sections
   ========================================= */

/* Header */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.global-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 6rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-image {
    padding: 1rem;
    transform: perspective(1000px) rotateY(-15deg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(14, 165, 233, 0.2);
    border-radius: 24px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.feature-card {
    padding: 2.5rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
}

.feature-card p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Elaborative Hardware Section */
.elaborative-hardware-section {
    padding: 8rem 0;
    position: relative;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.hardware-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 100%);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hardware-card.featured {
    grid-column: span 4;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(14,165,233,0.05) 100%);
}

.hardware-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    transition: transform var(--transition-smooth);
}

.hardware-card.featured .hardware-img {
    max-height: 380px;
    margin: 0;
    order: 2;
    flex: 1;
}

.hardware-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(14, 165, 233, 0.3);
}

.hardware-card:hover .hardware-img {
    transform: scale(1.05);
}

.hardware-card.featured .hardware-info {
    flex: 1;
    padding-right: 2rem;
    order: 1;
}

.hardware-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.hardware-card.featured .hardware-info h3 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hardware-info p {
    color: var(--text-muted);
}

/* Media Queries for Hardware Section */
@media (max-width: 900px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hardware-card.featured {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    .hardware-card.featured .hardware-info {
        padding-right: 0;
        margin-top: 2rem;
        order: 2;
    }
    .hardware-card.featured .hardware-img {
        order: 1;
        max-height: 250px;
    }
}
@media (max-width: 600px) {
    .hardware-grid {
        grid-template-columns: 1fr;
    }
    .hardware-card.featured {
        grid-column: span 1;
    }
}

/* Solutions Section */
.solutions-section {
    padding: 6rem 0;
}

.solutions-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.solution-card {
    flex: 1;
    min-width: 300px;
    padding: 3rem 2.5rem;
    border-top: 4px solid transparent;
}

.solution-card:hover, .solution-card.active {
    border-top-color: var(--accent-blue);
    background: rgba(255,255,255,0.05);
    transform: scale(1.02);
}

.solution-features {
    list-style: none;
    margin-top: 2rem;
}

.solution-features li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.solution-features li::before {
    content: '✓';
    color: var(--accent-blue);
    margin-right: 12px;
    font-weight: bold;
}

.solution-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
}

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

.cta-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.global-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info .address {
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.email-link {
    color: var(--accent-blue);
    font-weight: 500;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   Animations
   ========================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 900px) {
    .hero-section .container,
    .hardware-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        transform: perspective(1000px) rotateY(0deg);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .actions {
        display: none; /* simple mobile hide for now */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hardware-container {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
