/* HEART Technology Park - Main CSS */
/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Color Palette Variables */
:root {
    --primary-blue: #4A6CF7;
    --secondary-blue: #667EEA;
    --orange-accent: #FFA726;
    --green-accent: #4CAF50;
    --purple: #764BA2;
    --dark-text: #333333;
    --light-text: #666666;
    --background: #ffffff;
    --light-bg: #f8fafc;
    --border: #e5e7eb;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header - Fixed Position with High Z-Index */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Logo with Rocket */
.logo {
    display: flex;
    align-items: center;
    color: #fbbf24;
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo::before {
    content: "🚀";
    margin-right: 0.75rem;
    font-size: 2.5rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav .active {
    background: #fbbf24;
    color: #1e40af;
    font-weight: 700;
}



.nav .contact-btn {
    background: #f59e0b;
    color: white;
}


/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Content Layout */
.content-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    gap: 0;
}

.content-main {
    flex: 0 0 70%;
    padding: 60px 40px;
    background: white;
    z-index: 2;
    position: relative;
    margin-bottom: 80px;
}

.content-sidebar {
    flex: 0 0 30%;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    background: var(--light-bg);
    border-left: 1px solid var(--border);
    z-index: 1;
    overflow: hidden;
}

/* Building Parallax Container */
.building-parallax {
    position: fixed;
    top: 0;
    right: 0;
    width: 33.33vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Main Building */
.main-building {
    width: 80%;
    height: 70%;
    max-width: 350px;
    max-height: 500px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--purple) 100%);
    border-radius: 20px;
    border: 3px solid #2937d4;
    padding: 20px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    box-shadow: 0 8px 40px rgba(59, 75, 240, 0.3);
    animation: buildingFloat 15s ease-in-out infinite;
    position: relative;
}

/* Building Header */
.building-header {
    background: var(--orange-accent);
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

/* Building Subtitle */
.building-subtitle {
    background: #ffffff;
    color: #6b7280;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

/* Windows Container */
.windows-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.floor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    margin: 2px 0;
}

/* Windows */
.window-light,
.window-dark,
.window-highlight {
    width: 45px;
    height: 20px;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.window-light {
    background: var(--orange-accent);
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
    animation: windowFlicker 4s ease-in-out infinite;
}

.window-dark {
    background: #8b5cf6;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
    animation: windowFlicker 6s ease-in-out infinite reverse;
}

.window-highlight {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    animation: windowFlicker 3s ease-in-out infinite;
}

/* Animations */
@keyframes windowFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes buildingFloat {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(-8px); }
    75% { transform: translateY(-4px); }
}

/* Performance optimizations */
.building-parallax {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-main {
        flex: 0 0 65%;
    }
    
    .content-sidebar {
        flex: 0 0 35%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.3rem;
        overflow-x: auto;
    }
    
    .nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .content-main {
        flex: 1;
        width: 100%;
    }
    
    .content-sidebar {
        position: relative;
        width: 100%;
        height: 60vh;
        order: -1;
        top: 0;
    }
    
    .building-parallax {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .content-main {
        flex: 1;
        width: 100%;
    }
    
    .content-sidebar {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .building-parallax {
        transform: none !important;
        transition: none !important;
    }
    
    .main-building {
        animation: none !important;
    }
}