/* ============== RESET & BASE ============== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
         
        url('assets/img/bg-texture.jpg') center / cover no-repeat fixed;
    color: #f5f5f5;
    line-height: 1.6;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 13px;
    letter-spacing: 0.25em;
    font-weight: 600;
}

.logo-sub {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.15em;
}

/* Mobile */
@media (max-width: 768px) {
    .logo-image {
        height: 34px;
    }

    .logo-main {
        font-size: 11px;
    }

    .logo-sub {
        font-size: 10px;
    }
}

/* ============== GENERIC LAYOUT ============== */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: 3.5rem 0;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.two-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.two-cols > div {
    flex: 1 1 300px;
}

/* ============== HEADER & NAV ============== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #333;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.75rem;
    color: #aaa;
}

.main-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav a {
    text-decoration: none;
    color: #ccc;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: #f97316;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #666;
    color: #fff;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 1.1rem;
}

/* ============== HERO & SLIDESHOW ============== */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #181818;
}

.hero-slide-wrapper {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0,0,0,0.7), rgba(0,0,0,0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: 8%;
    margin-top: 40vh;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 200;
    letter-spacing: 0.2em;
}

.hero-subtitle {
    font-size: 1rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #ddd;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    margin-right: 0.75rem;
}

.btn-primary {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.btn-primary:hover {
    background: #fb923c;
    border-color: #fb923c;
}

.btn-light {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-light:hover {
    background: rgba(255,255,255,0.1);
}

/* hero dots */
.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    width: 26px;
    background: #fff;
}

/* ============== PHILOSOPHY ============== */

.philosophy {
    text-align: center;
    padding: 3rem 1rem;
    background: #111;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.philosophy h2 {
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f5f5f5;
}

/* ============== PROJECTS GRID ============== */

.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    background: #181818;
    
    border-radius: 10px;
    overflow: hidden;
      
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        display: block;
    min-height: auto !important;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #404040;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.project-image {
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    
    
}


.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
}


 
.project-info {
    padding: 1rem 1.2rem 1.3rem;
}

.project-info h3,
.project-info h2 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    
}

.project-info p {
    font-size: 0.9rem;
    color: #f97316;
}

/* ========================================= */
/* ABOUT SECTION – Final Premium Layout      */
/* ========================================= */

.about-home {
    display: grid;
   grid-template-columns: 1fr 1fr;
    gap: 70px; /* space between text and image */
    align-items: center;

    padding-top: 100px;
    padding-bottom: 100px;

    padding-left: 60px;   /* NEW – left margin */
    padding-right: 60px;  /* NEW – right margin */
}

.about-text {
    max-width: 520px; /* better readability */
}

.about-text h2 {
    font-size: 2.1rem;
    margin-bottom: 18px;
    color: #111;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #111;
}

.about-text .about-intro {
    font-size: 1.15rem;
    color: #111;
}
/* ============================== */
/* FULL ABOUT PAGE WITH PARALLAX  */
/* ============================== */

.about-page {
    padding: 100px 60px;
}

.about-page-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-page-text {
    max-width: 600px;
}

.about-page-text h1 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: #111;
}

.about-lead {
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 20px;
}

.about-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #111;
}

/* Right side parallax block */
.about-page-photo {
    height: 420px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Reuse parallax */
.parallax-container {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.parallax-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.15s linear;
}

/* frame */
.about-frame {
    position: absolute;
    inset: 24px;
    border-radius: 16px;
    border: 2px solid #f97316;
    pointer-events: none;
    opacity: 0.8;
}

/* Mobile responsive */

/* ============== PARALLAX IMAGE BOX ============== */

.parallax-container {
    position: relative;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
}

.parallax-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(0);
    transition: transform 0.15s linear;
    will-change: transform;
}

/* Elegant architectural frame */
.about-frame {
    position: absolute;
    inset: 20px;
    border-radius: 14px;
    border: 2px solid #f97316;
    opacity: 0.8;
    pointer-events: none;
}

/* ============== SERVICES ============== */
/* ====================== */
/* LUXURY SERVICES SECTION */
/* ====================== */
/* Global section spacing */
.section,
.featured-projects,
.about-home,
.services,
.cta-portfolio,
.philosophy {
    padding-top: 80px;
    padding-bottom: 80px;
}

.services {
    background: #0d0d0d;
    padding: 90px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.services .section-title {
    color: #eaeaea;
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.services .section-title::after {
    content: "";
    width: 60px;
    height: 2px;
    background: #276ef1;
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
     grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 30px;
}

.service-box {
    background: #151515;
    border: 1px solid #242424;
    padding: 36px 30px;
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-box:hover::before {
    opacity: 1;
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: #3a3a3a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
}

.service-box h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-box p {
    color: #c6c6c6;
    font-size: 0.92rem;
    line-height: 1.55;
}
/* Icon style */
.service-icon {
    font-size: 32px;
    color: #f97316;
    margin-bottom: 16px;
    display: block;
}
/* ============================= */
/*  FULL SERVICES PAGE REDESIGN  */
/* ============================= */

.services-page {
    padding: 100px 60px;
    position: relative;
}

/* Title with architectural line */
.services-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
    position: relative;
    color: #ffffff;
}

.services-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 3px;
    background: #f97316;
    border-radius: 4px;
}

/* GRID */
.services-grid-page {
    display: grid;
 
    gap: 40px;
}

/* CARD STYLE */
.service-box-page {
    background: linear-gradient(145deg, #141414, #0e0e0e);
    border: 1px solid #222;
    padding: 30px;
    border-radius: 18px;

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Floating hover effect */
.service-box-page:hover {
    transform: translateY(-10px);
    border-color: #333;
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}

/* ICONS */
.service-icon-page {
    font-size: 42px;
    margin-bottom: 18px;
    color: #f97316;
}

/* TEXT */
.service-box-page h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-box-page p {
    color: #c8c8c8;
    line-height: 1.6;
    font-size: 0.95rem;
}



/* ============== PROJECT DETAIL ============== */

.project-detail-page {
    
       background:
         
        url('https://thefoxinthebox.net/assets/img/bg-texture.jpg') center / cover no-repeat fixed !important;
}

.project-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-image-large {
    flex: 1 1 360px;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.project-info-detail {
    flex: 1 1 300px;
    color: #111;
}

.project-info-detail h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

.project-meta {
    color: #080808;
    margin-bottom: 0.5rem;
}

.project-type {
    color: #080808;
    margin-bottom: 0.8rem;
}

.back-link a {
    color: #080808;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ============== CTA PORTFOLIO ============== */

.cta-portfolio {
    padding: 3.5rem 1rem;
    background: #000;
    text-align: center;
}

.cta-portfolio h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* ============== CONTACT & FORMS ============== */

.contact-form {
    background: #161616;
    padding: 1.7rem;
    border-radius: 10px;
    border: 1px solid #262626;
}

.form-group {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0b0b0b;
    color: #f5f5f5;
    font-size: 0.9rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #f97316;
}

/* ============== SCROLL ANIMATIONS ============== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============== FOOTER ============== */

.site-footer {
    background: #000;
    padding: 1.7rem 0;
    font-size: 0.8rem;
    color: #999;
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
}

/* ============== RESPONSIVE ============== */

@media (max-width: 900px) {
    .hero-content {
        margin-left: 7%;
        margin-top: 32vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }
   .about-home {
    grid-template-columns: 1fr;
    gap: 0px;
    padding-left: 20px;
    padding-right: 20px;
}
.about-page-inner {
     
    grid-template-columns: 1fr;
    
    padding-left: 5px;
    padding-right: 5px;
}
    .about-text {
        max-width: 100%;
    }

    .about-photo {
        height: 260px;
    }

    .about-frame {
        inset: 12px;
    }

 /*   .services-page {
        padding: 80px 30px;
    }
    .about-page-photo {
        margin-top: 40px;
        height: 320px;
    }*/
     .projects-grid {
        padding: 0.5rem 0;
    }
}
/* RESPONSIVE */

    
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 56px;
        right: 0;
        background: rgba(0,0,0,0.94);
        flex-direction: column;
        width: 220px;
        padding: 0.8rem 1rem;
        display: none;
    }

    .main-nav.open {
        display: flex;
    } 

    .nav-toggle {
        display: block;
    }

    .hero-content {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        margin-top: 32vh;
    }
    

    .projects-grid,
    .services-grid {
        padding: 0.5rem 0;
    }
    .services-grid {
    display: grid;
     grid-template-columns: 1fr ;
    gap: 30px;
    padding: 0 30px;
}

}

/* Desktop grid visible only on large screens */
.desktop-projects {
    display: grid;
}

/* Mobile project list hidden by default */
.mobile-projects {
    display: none;
}

/* --- MOBILE FIX --- */
@media (max-width: 700px) {

    /* Hide desktop grid */
    .desktop-projects {
        display: none !important;
    }

    /* Show mobile list */
    .mobile-projects {
        display: block !important;
        margin-top: 20px;
    }

    .mobile-project-card {
        display: block;
        padding: 16px 20px;
        background: #1a1a1a;
        border-radius: 10px;
        margin-bottom: 14px;
        text-decoration: none;
        color: white;
        border: 1px solid #333;
        transition: background 0.2s;
    }

    .mobile-project-card:hover {
        background: #222;
    }

    .mobile-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .mobile-meta {
        font-size: 14px;
        color: #ccc;
    }
}
/* HIDE MOBILE LIST ON DESKTOP */
.mobile-projects {
    display: none;
}

/* MOBILE VERSION */
@media (max-width: 700px) {

    /* Hide the desktop grid completely */
    .desktop-projects {
        display: none !important;
    }

    /* Show mobile list */
    .mobile-projects {
        display: block !important;
        padding: 10px 15px;
    }

    .mobile-project-item {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #151515;
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 12px;
        text-decoration: none;
        border: 1px solid #222;
    }

    .mobile-project-item:hover {
        background: #1c1c1c;
    }

    /* Thumbnail */
    .mobile-thumb {
        width: 90px;
        height: 70px;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        background-color: #333;
        flex-shrink: 0;
    }

    /* Text block */
    .mobile-project-text {
        display: flex;
        flex-direction: column;
        color: white;
    }

    .mobile-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 3px;
        color: #fff;
    }

    .mobile-meta {
        font-size: 13px;
        color: #bbb;
    }
}

#goTop.go-top-btn {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 999999 !important;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    background: #f97316;
    color: #fff;
    font-size: 22px;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#goTop.go-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
