/* FOUNDATION */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #000; color: #fff; overflow-x: hidden; }

/* 3D BACKGROUND */
#bg3d { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* NAVBAR & RESPONSIVE MENU */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 8%; position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.logo-wrapper { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.nav-logo-circle { width: 35px; height: 35px; border: 2px solid #00e5ff; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.logo { font-weight: 900; font-size: 0.9rem; letter-spacing: 1px; }
.logo span { color: #00e5ff; }

.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: #fff; font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; transition: 0.3s; }
.nav-links a.active, .nav-links a:hover { opacity: 1; color: #00e5ff; }
.btn-connect-nav { border: 1px solid #00e5ff !important; padding: 6px 15px !important; border-radius: 50px; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 2px; background: #fff; transition: 0.3s; }

/* LAYOUT SPACING */
.content-wrapper { padding-top: 100px; }
.section-padding { padding: 80px 8%; }
.container { max-width: 1200px; margin: 0 auto; position: relative; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 50px; letter-spacing: -2px; text-transform: uppercase; }
.text-center { text-align: center; }

/* FILTER SYSTEM */
.filter-wrapper { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 10px 22px; border-radius: 50px; cursor: pointer; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; transition: 0.3s; backdrop-filter: blur(10px); }
.filter-btn:hover { border-color: #00e5ff; }
.filter-btn.active { background: #00e5ff; color: #000; border-color: #00e5ff; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }

/* CARD SYSTEM */
.card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; backdrop-filter: blur(10px); transition: 0.3s; transform-style: preserve-3d; position: relative; min-width: 0; width: 100%; }
.card:hover { border-color: #00e5ff; background: rgba(0, 229, 255, 0.05); }

.architect-grid, .core-grid, .production-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.profile-card { padding: 40px; border-left: 6px solid #00e5ff; margin-bottom: 40px; font-size: 1.1rem; line-height: 1.6; }
.architect-item { padding: 25px; display: flex; align-items: center; gap: 15px; }
.founder-photo { width: 60px; height: 60px; border-radius: 50%; border: 1px solid #00e5ff; overflow: hidden; flex-shrink: 0; }
.highlight-title { color: #00e5ff; font-weight: 800; font-size: 1.1rem; margin-bottom: 5px; }

.card p, .portfolio-info p { white-space: normal; overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; }
.core-card, .production-item { padding: 40px 30px; }
.workflow-card { padding: 50px 25px 30px; }
.step-num { font-size: 3.5rem; font-weight: 900; opacity: 0.1; position: absolute; top: 10px; left: 20px; color: #00e5ff; }

/* PORTFOLIO MEDIA */
.portfolio-card { overflow: hidden; transition: transform 0.4s, opacity 0.4s; }
.portfolio-card.hide { display: none; opacity: 0; }

.placeholder-media { height: 220px; background: #000; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bg-blur { position: absolute; width: 110%; height: 110%; object-fit: cover; filter: blur(15px) brightness(0.4); z-index: 1; }
.main-media { position: relative; z-index: 2; max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; }
.portfolio-info { padding: 20px; position: relative; z-index: 3; background: rgba(0,0,0,0.5); }

/* CONNECT PAGE */
.connect-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.info-card, .form-card { padding: 40px; }

/* New Brief Styling */
.form-header { margin-bottom: 25px; border-bottom: 1px solid rgba(0, 229, 255, 0.2); padding-bottom: 15px; }
.brief-title { font-weight: 900; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -1px; }
.brief-title span { color: #00e5ff; }
.brief-section label { display: block; font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #00e5ff; margin-bottom: 10px; letter-spacing: 1px; }

.social-links-container { display: flex; gap: 15px; margin-top: 20px; }
.social-item { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 10px; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.social-item:hover { background: #00e5ff; color: #000; }
input, textarea { width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 10px; margin-bottom: 15px; font-family: inherit; transition: 0.3s; }
input:focus, textarea:focus { border-color: #00e5ff; outline: none; background: rgba(0, 229, 255, 0.05); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.hero-logo-circle { width: 120px; height: 120px; border: 3px solid #00e5ff; border-radius: 50%; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: #00e5ff; }
.hero p { max-width: 600px; margin: 0 auto 40px; opacity: 0.6; font-size: 1rem; }
.btn-primary { background: #00e5ff; color: #000; padding: 15px 35px; text-decoration: none; font-weight: 900; border-radius: 10px; font-size: 0.8rem; text-transform: uppercase; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }

/* NEXT SECTION */
.next-page-section { padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.next-btn-large { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.next-label { font-size: 0.8rem; color: #00e5ff; letter-spacing: 5px; margin-bottom: 10px; font-weight: 800; }
.next-title { font-size: clamp(1.5rem, 4vw, 3rem); color: #fff; font-weight: 900; text-transform: uppercase; transition: 0.3s; }
.next-btn-large:hover .next-title { color: #00e5ff; transform: translateY(-5px); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.footer { padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; right: 0; width: 100%; background: rgba(0,0,0,0.95); padding: 40px 0; border-bottom: 1px solid #00e5ff; gap: 20px; text-align: center; }
    .nav-links.active { display: flex; }
    .architect-grid, .core-grid, .production-grid, .portfolio-grid, .connect-grid, .workflow-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 5%; }
    .hero { padding-top: 140px; }
    .hero h1 { font-size: 2.8rem; }
    .info-card, .form-card { padding: 30px; }
}