/* ========================================
   Becklyn Clone - zlabstudio
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #1a1a1a;
    --bg-light: #222;
    --bg-card: #2a2a2a;
    --white: #fff;
    --gray: #888;
    --gray-light: #aaa;
    --border: rgba(255,255,255,0.1);
    --sans: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif: Georgia, 'Times New Roman', serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--white);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

em {
    font-style: italic;
    font-family: var(--serif);
}

.link-underline {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 400;
    border-bottom: 1px solid var(--white);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.link-underline:hover {
    opacity: 0.6;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
}

.header-tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-light);
}

.header-logo {
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    font-family: var(--serif);
    letter-spacing: -0.02em;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.rotating-text {
    display: inline-block;
    transition: opacity 0.4s, transform 0.4s;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 8rem 3rem;
}

.about-content {
    max-width: 900px;
}

.about-content h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

/* ========================================
   Cases
   ======================================== */
.cases {
    padding: 4rem 3rem 6rem;
}

.cases-headline {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 3rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.case-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s var(--transition);
    cursor: pointer;
}

.case-card:hover {
    transform: scale(0.98);
}

.case-tags {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.case-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
}

.case-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.case-info {
    padding: 1.5rem 0;
}

.case-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.case-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========================================
   Services Table
   ======================================== */
.services-table {
    padding: 6rem 3rem;
}

.services-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3rem;
}

.table-wrap {
    border-top: 1px solid var(--border);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
    cursor: pointer;
}

.table-row:hover {
    background: rgba(255,255,255,0.03);
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-primary {
    font-size: 1rem;
    font-weight: 500;
}

.table-secondary {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
}

.table-num {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: right;
    font-weight: 500;
}

/* ========================================
   Philosophy
   ======================================== */
.philosophy {
    padding: 6rem 3rem;
}

.philosophy p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--gray-light);
    max-width: 900px;
}

/* ========================================
   Partners
   ======================================== */
.partners {
    padding: 4rem 3rem 6rem;
}

.partners h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    align-items: center;
}

.partners-logos span {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.3;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.partners-logos span:hover {
    opacity: 0.8;
}

/* ========================================
   Team
   ======================================== */
.team {
    padding: 4rem 3rem 6rem;
}

.team h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3rem;
}

.team-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

.team-scroll::-webkit-scrollbar {
    display: none;
}

.team-member {
    flex-shrink: 0;
    width: 280px;
}

.team-photo {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.team-text {
    margin-bottom: 1rem;
    min-height: 50px;
}

.team-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-light);
}

.team-member h4 {
    font-size: 1rem;
    font-weight: 600;
}

.team-role {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========================================
   Blog
   ======================================== */
.blog {
    padding: 6rem 3rem;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.blog-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
}

.blog-arrow {
    background: none;
    border: 1px solid var(--border);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.blog-arrow:hover {
    background: var(--white);
    color: var(--bg);
}

.blog-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-scroll::-webkit-scrollbar {
    display: none;
}

.blog-card {
    flex-shrink: 0;
    width: 380px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    border-color: rgba(255,255,255,0.25);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-tags span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.blog-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: auto;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2rem;
}

/* ========================================
   Footer CTA
   ======================================== */
.footer-cta {
    padding: 10rem 3rem 6rem;
}

.footer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-cta h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.footer-contact {
    font-size: 1.3rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-center {
    display: flex;
    gap: 2rem;
}

.footer-center a {
    transition: opacity 0.3s;
}

.footer-center a:hover {
    opacity: 0.6;
}

.footer-right .link-underline {
    font-size: 0.8rem;
}

/* ========================================
   Bottom Nav
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.bottom-nav.visible {
    opacity: 1;
}

.bottom-nav-item {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: background 0.3s;
    white-space: nowrap;
}

.bottom-nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.bottom-nav-item sup {
    font-size: 0.55rem;
    color: var(--gray);
}

/* ========================================
   Scroll Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 990px) {
    .header { padding: 1.5rem 2rem; }
    .hero { padding: 0 2rem; }
    .about, .cases, .services-table, .philosophy, .partners, .team, .blog, .footer-cta { padding-left: 2rem; padding-right: 2rem; }
    .cases-grid { grid-template-columns: 1fr; }
    .table-row { grid-template-columns: 1fr 1fr auto; }
    .footer-cta-content { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .footer { padding: 2rem; }
}

@media (max-width: 600px) {
    .header { padding: 1.2rem 1rem; }
    .header-tagline { display: none; }
    .hero { padding: 0 1rem; }
    .about, .cases, .services-table, .philosophy, .partners, .team, .blog, .footer-cta { padding-left: 1rem; padding-right: 1rem; }
    .table-row { grid-template-columns: 1fr auto; }
    .table-secondary { display: none; }
    .blog-card { width: 300px; }
    .team-member { width: 240px; }
    .footer { flex-direction: column; gap: 1rem; text-align: center; }
    .bottom-nav { bottom: 1rem; }
    .bottom-nav-item { font-size: 0.7rem; padding: 0.4rem 0.7rem; }
}
