/* 
   Studio Wood - V4 Premium Theme 
   Theme Author
*/

:root {
    /* Colors - Earthy & Modern */
    --primary: #C68E58; /* Copper/Wood */
    --primary-dark: #A67342;
    --secondary: #1A1A1A; /* Charcoal */
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --text-main: #333333;
    --text-light: #777777;
    --border: #E0E0E0;
    
    /* Typography */
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --container: 1240px;
    --header-height: 90px;
    
    /* Effects */
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

/* Typography Helpers */
.section-subtitle {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-text {
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 30px;
}

.serif-italic { font-style: italic; font-weight: 400; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 16px 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover { gap: 12px; }

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    display: block;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background-color: #EEE;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    animation: load 1.5s ease-in-out forwards;
}

@keyframes load {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
    padding: 30px 0;
    transition: var(--transition);
    color: var(--bg-white); /* Default white for top of page */
}

.navbar .logo { color: var(--bg-white); }
.navbar .nav-link { color: var(--bg-white); }
.navbar .nav-link::after { background-color: var(--bg-white); }
.hamburger span { background-color: var(--bg-white); }

.navbar .btn-outline-dark {
    border-color: rgba(255,255,255,0.4);
    color: var(--bg-white);
}

.navbar .btn-outline-dark:hover {
    background-color: var(--bg-white);
    color: var(--secondary);
    border-color: var(--bg-white);
}

/* Scrolled Navbar (Dark) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.navbar.scrolled .logo { color: var(--secondary); }
.navbar.scrolled .nav-link { color: var(--text-main); }
.navbar.scrolled .nav-link::after { background-color: var(--primary); }
.navbar.scrolled .hamburger span { background-color: var(--secondary); }

.navbar.scrolled .btn-outline-dark {
    border-color: rgba(0,0,0,0.1);
    color: var(--text-main);
}

.navbar.scrolled .btn-outline-dark:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

/* Menu Open Override (Ensure visible on white menu) */
body.menu-open .navbar .hamburger span {
    background-color: var(--secondary) !important;
}
body.menu-open .navbar .logo {
    color: var(--secondary) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .dot { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary);
}

.mobile-menu-links a.highlight {
    color: var(--primary);
    font-style: italic;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomHero 20s infinite alternate;
}

@keyframes zoomHero {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    color: var(--bg-white);
    padding-bottom: 50px;
}

.hero-text-wrapper {
    max-width: 700px;
}

.hero-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--bg-white);
}

.italic-accent {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
}

.hero-btns { display: flex; gap: 30px; align-items: center; }

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 3rem; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: var(--bg-white);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Concept Section */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.concept-img-wrapper {
    position: relative;
}

.concept-img-wrapper img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background-color: var(--bg-white);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 250px;
    border-left: 4px solid var(--primary);
}

.floating-card i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.floating-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.floating-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; }

.concept-list { margin-top: 40px; }

.concept-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.list-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.5;
}

.list-info h4 { font-size: 1.1rem; margin-bottom: 5px; font-family: var(--font-main); }
.list-info p { font-size: 0.95rem; color: var(--text-light); }

/* Portfolio Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.portfolio-filters { display: flex; gap: 10px; }

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 15px;
    transition: var(--transition);
    position: relative;
}

.filter-btn.active, .filter-btn:hover { color: var(--secondary); font-weight: 600; }

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.portfolio-item.large { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }

.portfolio-img { width: 100%; height: 100%; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.overlay-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .overlay-content { transform: translateY(0); }

.project-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.overlay-content h3 { color: var(--bg-white); font-size: 1.5rem; margin-bottom: 15px; }

.btn-view {
    background: transparent;
    border: 1px solid var(--bg-white);
    color: var(--bg-white);
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover { background: var(--bg-white); color: var(--secondary); }

.center-btn { text-align: center; margin-top: 60px; }

/* Process Section */
.process-dark {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.section-title.light { color: var(--bg-white); }
.section-subtitle.light { color: rgba(255,255,255,0.6); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background: rgba(255,255,255,0.05);
    padding: 40px 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 20px;
    line-height: 1;
}

.step-card h3 { color: var(--bg-white); font-size: 1.2rem; margin-bottom: 15px; font-family: var(--font-main); }
.step-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.faq-list { display: flex; flex-direction: column; gap: 20px; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 { font-family: var(--font-main); font-size: 1.1rem; transition: var(--transition); }
.faq-item.active .faq-question h3 { color: var(--primary); }

.toggle-icon { font-size: 1.5rem; font-weight: 300; transition: var(--transition); }
.faq-item.active .toggle-icon { transform: rotate(45deg); color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p { padding-top: 15px; color: var(--text-light); font-size: 0.95rem; }

/* CTA Banner */
.cta-banner {
    background-image: url('../images/da6e04b3b03dcb110bba1fa1ec8b24f0.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.cta-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--bg-white);
}

.cta-box h2 { color: var(--bg-white); font-size: 3.5rem; margin-bottom: 20px; }
.cta-box p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }

.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* Footer */
.footer {
    background-color: #111;
    color: var(--bg-white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { color: rgba(255,255,255,0.5); margin-top: 20px; max-width: 300px; }

.footer h4 { color: var(--bg-white); font-family: var(--font-main); font-size: 1.1rem; margin-bottom: 25px; }

.footer ul li { margin-bottom: 15px; }
.footer ul li a, .footer ul li { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: flex; gap: 10px; }
.footer ul li a:hover { color: var(--primary); }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover { background: var(--primary); color: var(--bg-white); }

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.lightbox-close:hover { background: var(--primary); color: white; }

#lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 80%;
}

#lightbox-caption h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--bg-white);
}

#lightbox-caption p {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Animations */
.reveal-text { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal-text.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .concept-grid { grid-template-columns: 1fr; gap: 40px; }
    .concept-img-wrapper { order: 2; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; width: 100%; }
    
    .nav-links, .nav-actions .btn-outline-dark { display: none; }
    .hamburger { display: flex; }
    .hero-content { flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 0; }
    .hero-stats { display: none; }
    .hero-title { font-size: 2.5rem; }
    
    /* Fix Floating Card Overflow */
    .floating-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -30px;
        margin-left: 20px;
        max-width: calc(100% - 40px);
        left: auto;
    }
    
    /* Portfolio Mobile Optimization */
    .portfolio-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: 300px; 
        gap: 15px;
    }
    .portfolio-item.large, .portfolio-item.wide { grid-column: span 1; grid-row: span 1; }
    
    /* Always show overlay on mobile with gradient */
    .portfolio-item .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
        padding: 20px;
    }
    .portfolio-item .overlay-content { transform: translateY(0); }
    .portfolio-item .btn-view { display: none; } /* Hide button, tap anywhere */
    .overlay-content h3 { font-size: 1.3rem; }
    
    .process-steps { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .portfolio-filters { overflow-x: auto; width: 100%; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .portfolio-filters::-webkit-scrollbar { height: 4px; }
    .portfolio-filters::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
    
    .filter-btn { white-space: nowrap; padding: 5px 12px; font-size: 0.85rem; }
    
    .cta-box h2 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn-primary { width: 100%; justify-content: center; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Mobile Lightbox Optimization */
    .lightbox { padding: 0; }
    .lightbox-content { 
        max-width: 100%; 
        max-height: 70vh; 
        width: 100%;
        object-fit: contain;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.6);
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    #lightbox-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.8);
        padding: 20px;
        margin-top: 0;
        max-width: 100%;
        text-align: left;
    }
    #lightbox-caption h3 { font-size: 1.2rem; }
    #lightbox-caption p { font-size: 0.8rem; }
}
