/* ============================================
   TBYTE - Main Stylesheet
   Refined Architectural Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
    --accent: #c45d3e;
    --accent-dark: #a84a2f;
    --accent-light: #d9806a;
    --dark: #0b0b0b;
    --dark-soft: #1a1a1a;
    --gray-900: #222222;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-100: #eeeeee;
    --cream: #f7f5f2;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.78rem;
}

.btn-full {
    width: 100%;
}

/* --- Section Styling --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 64px;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 3px;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    display: inline-block;
    margin-bottom: -2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    padding: 24px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dark);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--dark);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 960px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s ease;
}

.slide.active .slide-bg {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.4) 0%, rgba(11, 11, 11, 0.7) 100%);
}

.slide-content {
    position: absolute;
    left: 8%;
    bottom: 18%;
    z-index: 3;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
}

.slide-divider {
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 420px;
    line-height: 1.7;
    font-weight: 300;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 8%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-mono);
    color: var(--white);
    font-size: 0.85rem;
}

.current-slide {
    font-size: 1.2rem;
    font-weight: 500;
}

.slide-separator {
    color: rgba(255, 255, 255, 0.3);
}

.total-slides {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--dark);
    padding: 56px 0;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.stat-line {
    width: 20px;
    height: 1px;
    background: var(--accent);
    margin: 12px auto;
}

.stat-item p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    overflow: hidden;
}

.about-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 160px;
    overflow: hidden;
    border: 4px solid var(--white);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: -24px;
    left: -24px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.exp-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.about-description {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 40px;
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--border);
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.feature-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 2px;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 400;
}

.feature-text p {
    font-size: 0.88rem;
    color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 120px 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.service-card {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--white);
}

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-body {
    padding: 32px 28px 36px;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-300);
    display: block;
    margin-bottom: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--accent);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 400;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
    padding: 120px 0;
    background: var(--white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.portfolio-item {
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-hover {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.7);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
    padding: 32px;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.portfolio-hover h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 400;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    padding: 120px 0;
    background: var(--dark);
    color: var(--white);
}

.process-section .section-title {
    color: var(--white);
}

.process-section .section-tag {
    color: var(--gray-500);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.process-step {
    padding: 40px 32px;
    background: var(--dark);
    position: relative;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.process-step p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=85') center/cover no-repeat fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.8);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 400;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 120px 0;
    background: var(--cream);
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
}

.testimonial-card {
    min-width: calc(50% - 12px);
    background: var(--white);
    padding: 48px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    filter: grayscale(100%);
}

.testimonial-author h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark);
    font-weight: 400;
}

.testimonial-author span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gray-500);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.test-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-arrow:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    font-size: 2.4rem;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.contact-detail {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail h5 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-detail p {
    font-size: 0.95rem;
    color: var(--dark);
}

.contact-form-wrapper {
    background: var(--cream);
    padding: 48px;
    border: 1px solid var(--border);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 93, 62, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.5);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-dot {
    background: var(--accent);
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom .container {
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-text {
    display: block;
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--white);
    margin-bottom: 24px;
    animation: loaderPulse 1.5s ease infinite;
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* --- Scroll reveal: Fade In Up --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll reveal: Fade In Left --- */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Scroll reveal: Fade In Right --- */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Scroll reveal: Scale Up --- */
.scale-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Staggered children animation --- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.8s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.9s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 1.0s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 1.1s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Slide divider grow animation --- */
.slide-divider {
    transform-origin: left;
}

.slide.active .slide-divider {
    animation: growWidth 0.8s ease 0.6s both;
}

@keyframes growWidth {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --- Hero slide Ken Burns effect (enhanced) --- */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.slide.active .slide-bg {
    animation: kenBurns 12s ease forwards;
}

/* --- Stats counter pop --- */
@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.stat-item.counted h3 {
    animation: countPop 0.4s ease;
}

/* --- Accent line pulse for stat-line --- */
@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.stat-line {
    transform-origin: center;
    transform: scaleX(0);
}

.stat-item.visible .stat-line {
    animation: lineGrow 0.6s ease 0.3s forwards;
}

/* --- Service card hover lift --- */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease,
                background 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* --- Portfolio image overlay slide up --- */
.portfolio-hover {
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-hover span,
.portfolio-hover h4 {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.35s ease;
}

.portfolio-item:hover .portfolio-hover span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.08s;
}

.portfolio-item:hover .portfolio-hover h4 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.16s;
}

/* --- Process step number glow on hover --- */
.process-step {
    transition: background 0.4s ease;
}

.process-step:hover {
    background: var(--dark-soft);
}

.process-step:hover .process-number {
    text-shadow: 0 0 20px rgba(196, 93, 62, 0.4);
}

/* --- Button ripple effect --- */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.btn:hover::after {
    transform: scaleX(1);
}

/* --- Testimonial card hover --- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

/* --- Experience badge pulse --- */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 93, 62, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(196, 93, 62, 0); }
}

.experience-badge {
    animation: badgePulse 3s ease infinite;
}

/* --- Gallery Showcase Section --- */
.gallery-showcase {
    overflow: hidden;
    background: var(--dark);
    padding: 4px 0;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.gallery-img {
    overflow: hidden;
    height: 300px;
    position: relative;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%);
}

.gallery-img:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* --- Cursor dot trail (subtle) --- */
@keyframes fadeOutDot {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0; transform: scale(0); }
}

/* --- Floating back-to-top bounce --- */
@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.back-to-top.visible {
    animation: subtleBounce 2s ease infinite;
}

/* --- Filter button ink spread --- */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    transform: scaleY(1);
}

.filter-btn:hover {
    color: var(--white);
    border-color: var(--dark);
}

/* --- Form input focus glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 93, 62, 0.08);
}

/* --- Logo dot spin on hover --- */
.logo:hover .logo-dot {
    animation: dotSpin 0.6s ease;
}

@keyframes dotSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.6); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- Smooth image reveal clip --- */
@keyframes imageReveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.about-img-main.visible img {
    animation: imageReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* --- Section tag slide in --- */
.section-tag {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Nav link hover effect enhanced --- */
.main-nav a {
    transition: color 0.3s ease;
}

/* --- Parallax-ready transforms --- */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Portfolio item hiding/showing */
.portfolio-item.hide {
    display: none;
}

/* Selection colors */
::selection {
    background: var(--accent);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
