/* =============================================
   FOCUS LABS — GitHub Copilot-Inspired Design
   ============================================= */

:root {
    --color-dark-bg: #000000;
    --color-darker-bg: #0a0a0a;
    --color-surface: #0d1117;
    --color-light-bg: #ffffff;
    --color-white: #ffffff;
    --color-text-light: #e6edf3;
    --color-text-muted: #8b949e;
    --color-text-dark: #111111;
    --color-border-dark: rgba(255, 255, 255, 0.08);
    --color-border-light: #e5e5e5;
    --color-accent: #802040;
    --color-accent-bright: #c0406a;
    --gradient-accent: linear-gradient(135deg, #802040 0%, #c0406a 50%, #602080 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #c0406a 50%, #602080 100%);
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    
    --font-primary: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    overflow-x: hidden;
    line-height: 1.6;
    user-select: none;
}

input, textarea {
    user-select: auto;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

/* Eyebrow label — small pill text above titles (GitHub-style) */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-bright);
    border: 1px solid rgba(192, 64, 106, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    background: rgba(128, 32, 64, 0.1);
}

.hero-content .section-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    opacity: 0;
    animation: cascadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0s forwards;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 5rem;
    font-weight: 400;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

/* =============================================
   GLOW ORBS — Atmospheric Background Effects
   ============================================= */

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(40px, -60px) scale(1.05); }
    50%  { transform: translate(-30px, 30px) scale(0.95); }
    75%  { transform: translate(20px, -20px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    animation: float 25s infinite ease-in-out;
}

.glow-orb-1 {
    width: 800px;
    height: 800px;
    background: rgba(128, 32, 64, 0.35);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(60, 30, 120, 0.35);
    bottom: -150px;
    left: -150px;
    animation-delay: -8s;
}

.glow-orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(30, 100, 180, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}

/* Glowing Horizon Line */
.hero-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    z-index: 5;
    box-shadow: 0 0 80px 20px rgba(128, 32, 64, 0.4),
                0 0 200px 60px rgba(128, 32, 64, 0.15);
}

/* =============================================
   THEME CLASSES
   ============================================= */

body.dark-theme {
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
}

body.light-theme {
    background-color: var(--color-light-bg);
    color: var(--color-text-dark);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

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

.section {
    padding: 140px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.relative { position: relative; }
.z-10 { z-index: 10; }

/* =============================================
   FLOATING PILL NAVIGATION
   ============================================= */

nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 800px;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 0.8rem 1.8rem;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

nav.scrolled {
    background: rgba(8, 10, 15, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

nav.nav-light.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

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

.logo {
    height: 28px;
    transition: var(--transition-smooth);
    mix-blend-mode: screen;
}

#nav-logo {
    transform: translateY(4.5px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-light .nav-links a {
    color: var(--color-text-dark);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent-bright);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    animation: slowZoom 40s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--color-dark-bg));
}

@keyframes cascadeUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.98); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.95;
    padding-bottom: 0.12em;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    opacity: 0;
    animation: cascadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}

.hero-title span {
    display: inline-block;
    padding-top: 0.12em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    opacity: 0;
    animation: cascadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.35s forwards;
}

.hero-content .cta-button {
    opacity: 0;
    animation: cascadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.55s forwards;
}

/* =============================================
   BUTTONS
   ============================================= */

@keyframes pulseGlow {
    0%   { box-shadow: 0 4px 20px rgba(128, 32, 64, 0.3); }
    50%  { box-shadow: 0 4px 40px rgba(128, 32, 64, 0.6), 0 0 80px rgba(128, 32, 64, 0.15); }
    100% { box-shadow: 0 4px 20px rgba(128, 32, 64, 0.3); }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent-bright);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(128, 32, 64, 0.3);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* =============================================
   TEAM SECTION
   ============================================= */

.team {
    background-color: var(--color-dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.team-card {
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2rem;
    background: rgba(13, 17, 23, 0.6);
    transition: var(--transition-smooth);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.team-card:hover {
    border-color: rgba(192, 64, 106, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(128, 32, 64, 0.15),
                0 0 0 1px rgba(192, 64, 106, 0.2);
    background: rgba(13, 17, 23, 0.8);
}

.team-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.team-img-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: block;
}

.team-img-container .team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    margin: 0;
}

.team-img-container .team-img.zoomed-in {
    transform: scale(7.0) translate(3.5%, -18%);
}

.placeholder-img {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(128, 32, 64, 0.2), rgba(60, 30, 120, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-info h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    color: var(--color-white);
}

.team-info .role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
    color: var(--color-accent-bright);
    font-weight: 600;
}

.team-info .desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 10px;
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */

.portfolio {
    background-color: var(--color-light-bg);
    color: var(--color-text-dark);
}

.dark-text {
    color: var(--color-text-dark);
}

.masonry-grid {
    column-count: 4;
    column-gap: 0.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--color-text-dark);
    border-color: rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    background: var(--color-dark-bg);
    color: var(--color-white);
    border-color: var(--color-dark-bg);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent-bright);
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact {
    background-color: var(--color-dark-bg);
}

.contact-content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 1;
    width: 100%;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-details {
    flex: 1;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-bright);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(128, 32, 64, 0.15);
}

.full-width {
    width: 100%;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-details .email {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.social-links {
    margin-bottom: 2.5rem;
}

.social-icon {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
}

.social-icon:hover {
    background: var(--gradient-accent);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 32, 64, 0.25);
}

.map-placeholder {
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: inline-block;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background-color: var(--color-dark-bg);
    padding: 5rem 0 2.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 28px;
    margin-bottom: 2.5rem;
    mix-blend-mode: screen;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    color: #484f58;
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .masonry-grid { column-count: 3; }
}

@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .hero-title { font-size: 4rem; }
    .contact-content { flex-direction: column; gap: 3rem; }
    .contact-form-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
    .masonry-grid { column-count: 2; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .section { padding: 100px 0; }
}

@media (max-width: 480px) {
    .masonry-grid { column-count: 1; }
    .team-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
