/* --- CSS Variables --- */
:root {
    --bg-dark: #111827;
    --bg-mid: #1f2937;
    --bg-light: #374151;
    --text-main: #f3f4f6; /* Brightened base text */
    --text-heading: #ffffff;
    --text-muted: #cbd5e1; /* Brightened from dark gray to a frosty light gray */
    --accent-blue: #60a5fa;
    --accent-blue-hover: #93c5fd;
    --btn-blue: #2563eb;
    --btn-blue-hover: #1d4ed8;
}

/* --- Global Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-dark);
}

a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; }

/* --- Video Background --- */
.bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* Gradient Overlay: Darker on the left and top edges to protect menus, clearer in the middle */
.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,24,39,0.7) 0%, rgba(17,24,39,0.3) 50%, rgba(17,24,39,0.6) 100%);
    z-index: -1;
}

/* --- Frosted Glass Panels --- */
.glass-panel {
    background-color: rgba(17, 24, 39, 0.45); /* Slightly darker backing */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Bright, visible grid lines for layout framing */
.border-b-highlight { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.border-r-highlight { border-right: 1px solid rgba(255, 255, 255, 0.2); }

/* --- Top Bar (Global Nav) --- */
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 2rem; height: 4.5rem; z-index: 10;
}
.brand {
    font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; color: var(--text-heading);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* Added shadow */
}
.top-nav { display: flex; gap: 1rem; height: 100%; }
.top-btn {
    background: none; border: none; color: var(--text-muted); font-family: 'Inter', sans-serif;
    font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 0 1.5rem;
    border-bottom: 3px solid transparent; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9); /* Lifesaver shadow for bright skies */
}
.top-btn:hover { color: var(--text-heading); text-shadow: 0 2px 10px rgba(0,0,0,1); }
.top-btn.active { color: var(--text-heading); border-bottom: 3px solid var(--accent-blue); text-shadow: 0 2px 10px rgba(0,0,0,1); }

/* --- App Layout Wrapper --- */
.app-layout {
    display: flex; flex: 1; height: calc(100vh - 4.5rem); overflow: hidden;
}

/* --- Left Sidebar (Local Page Nav) --- */
.side-bar {
    width: 260px; padding: 2rem 0;
    display: flex; flex-direction: column;
}
.side-section { margin-bottom: 1rem; }
.side-heading {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); padding: 0 2rem; margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.side-divider {
    height: 1px; background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 2rem;
}
.side-nav { display: flex; flex-direction: column; }
.side-link {
    padding: 0.75rem 2rem; color: var(--text-muted); font-weight: 600;
    border-left: 3px solid transparent; transition: all 0.2s;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9); /* Shadows here too */
}
.side-link:hover {
    color: var(--text-heading);
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
}
.side-link.active {
    color: var(--text-heading);
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-blue);
}

/* --- Main Content Area --- */
.main-content {
    flex: 1; overflow-y: auto; scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-light) transparent;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb { background-color: var(--bg-light); border-radius: 4px; }

/* --- Content Blocks --- */
.content-block {
    padding: 6rem 3rem;
    max-width: 1152px;
    margin: 0 auto;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.muted-text { color: var(--text-muted); text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 1rem; }
.text-lg { font-size: 1.25rem; }
.flex-center { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.relative-z10 { position: relative; z-index: 10; }

/* --- Typography (Added drop shadows to main text) --- */
.page-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; text-shadow: 0 4px 12px rgba(0,0,0,0.6); }
.section-title { font-size: clamp(1.875rem, 4vw, 2.25rem); margin-bottom: 3rem; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-text { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.8; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }

/* --- Buttons & Links --- */
.btn-outline {
    display: inline-block; color: var(--text-heading); font-weight: 600; padding: 0.75rem 2rem;
    border: 2px solid var(--text-heading); border-radius: 0.5rem; position: relative; overflow: hidden; transition: color 0.3s; z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.btn-outline::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--text-heading); transform: translateX(-100%); transition: transform 0.3s ease-in-out; z-index: -1;
}
.btn-outline:hover { color: #000; text-shadow: none; }
.btn-outline:hover::before { transform: translateX(0); }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 2rem; background-color: var(--btn-blue); color: var(--text-heading); font-weight: 600; border-radius: 0.5rem; transition: background-color 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.btn-primary:hover { background-color: var(--btn-blue-hover); }

.text-link { display: inline-block; color: var(--accent-blue); font-size: 1.125rem; transition: color 0.2s, background-color 0.2s; padding: 0.25rem; border-radius: 0.25rem; margin: -0.25rem 0 0 -0.25rem; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.text-link:hover { color: var(--accent-blue-hover); background-color: rgba(17, 24, 39, 0.5); }

/* --- Components & Grids --- */
.card { background-color: rgba(31, 41, 55, 0.85); padding: 2rem; border-radius: 0.5rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.05); }
.card-alt { background-color: rgba(55, 65, 81, 0.85); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.card h4 { font-size: 1.125rem; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.card p { text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.grid-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; text-align: center; }
.col-span-2 { grid-column: span 2; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* --- Tags --- */
.tags-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tag { font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 9999px; transition: transform 0.3s ease-in-out; display: inline-block; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.tag:hover { transform: scale(1.1); }
.tag-blue { background: #1e3a8a; color: #bfdbfe; }
.tag-green { background: #14532d; color: #bbf7d0; }
.tag-yellow { background: #713f12; color: #fef08a; }
.tag-purple { background: #4c1d95; color: #e9d5ff; }
.tag-indigo { background: #312e81; color: #c7d2fe; }
.tag-pink { background: #831843; color: #fbcfe8; }
.tag-red { background: #7f1d1d; color: #fecaca; }
.tag-gray { background: #374151; color: #e5e7eb; }

/* --- Quote Block --- */
.quote-block { text-align: center; border-bottom: 4px solid var(--accent-blue); padding-bottom: 1rem; font-style: italic; color: var(--text-main); text-shadow: 0 2px 4px rgba(0,0,0,0.6); }

/* --- Scroll Animations --- */
.animate-on-scroll .letter { display: inline-block; opacity: 0; transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.04s * var(--i)); }
.animate-on-scroll.is-visible .letter { opacity: 1; transform: translateY(0); }
.footer-gradient-bg { background: linear-gradient(-45deg, #4f46e5, #7c3aed, #2563eb, #3b82f6); background-size: 400% 400%; animation: gradient-footer 10s ease infinite; }
@keyframes gradient-footer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- Footer --- */
.footer-top { background-color: rgba(31, 41, 55, 0.9); padding: 2rem 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-flex { max-width: 1152px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
@media (min-width: 768px) { .footer-flex { flex-direction: row; justify-content: space-between; } .footer-flex > div { flex: 1; } }
.logo-toggle { position: relative; height: 6rem; width: 6rem; display: block; margin: 0 auto; }
.logo-toggle img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.logo-color { opacity: 0; }
.logo-toggle:hover .logo-gray { opacity: 0; }
.logo-toggle:hover .logo-color { opacity: 1; }
.footer-badge { padding: 3rem 1rem; display: flex; justify-content: center; }
.badge-pill { background-color: #dc2626; border-radius: 9999px; padding: 1rem 3rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); }
.badge-text { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 900; text-transform: uppercase; background-clip: text; -webkit-background-clip: text; color: transparent; }

/* --- Profile Card --- */
.profile-card { background-color: #202124; max-width: 20rem; margin: 0 auto; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255,255,255,0.1); }
.profile-header { background-color: #3c4043; padding: 1rem; text-align: left; }
.profile-header img { height: 1.5rem; }
.profile-body { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; }
.profile-pic { width: 6rem; height: 6rem; border-radius: 50%; border: 2px solid #6b7280; margin-bottom: 1rem; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-note { font-size: 0.75rem; font-style: italic; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* --- Skyline & Crane Animation --- */
.contact-section { position: relative; overflow: hidden; min-height: 600px; display: flex; flex-direction: column; justify-content: center; text-align: center; border-bottom: none;}
.skyline-wrapper { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; opacity: 0.8; pointer-events: none; z-index: 0; }
.skyline-container { max-width: 1152px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1rem; }
.city-block { display: flex; align-items: flex-end; gap: 1rem; filter: drop-shadow(0 -4px 10px rgba(0,0,0,0.5)); }
.building { background-color: var(--bg-mid); border-radius: 0.5rem 0.5rem 0 0; position: relative; }
.building-roof { position: absolute; top: 0; left: 0; width: 100%; height: 1rem; background-color: rgba(75, 85, 99, 0.8); border-radius: 0.5rem 0.5rem 0 0; }
.building-alt { background-color: var(--bg-light); }
.b-sm { width: 4rem; height: 10rem; }
.b-md { width: 5rem; height: 14rem; }
.b-lg { width: 6rem; height: 20rem; }
.b-xl { width: 6rem; height: 24rem; }
.window-light { position: absolute; width: 1rem; height: 1rem; background-color: #fde047; border-radius: 2px; box-shadow: 0 0 15px 2px #fde047; }
.w-1 { top: 2rem; left: 50%; transform: translateX(-50%); }
.w-2 { top: 6rem; left: 1rem; }
@keyframes swing { 0% { transform: rotate(-2deg); } 100% { transform: rotate(2deg); } }
.crane-base { position: absolute; top: -6rem; left: 50%; transform: translateX(-50%); width: 1rem; height: 6rem; background-color: #4b5563; }
.crane-arm { position: absolute; top: 0; left: -8rem; width: 16rem; height: 0.5rem; background-color: #4b5563; transform-origin: right center; animation: swing 8s ease-in-out infinite alternate; }
.crane-line { position: absolute; top: 100%; left: 2rem; width: 2px; height: 6rem; background-color: #6b7280; }
.crane-hook { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 1rem; height: 1rem; background-color: var(--bg-light); }
