/*
Theme Name: Boss Design Light
Author: Aji/Webxloom
Description: Minimalistic custom theme for Boss Design Architecture.
Version: 1.4
*/

:root {
    --bg-light: #fafafa;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --accent: #c9a96e;
    --white: #ffffff;
    --border: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-light); color: var(--text-dark); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

/* Skip link */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent); color: #000; padding: 8px 16px; z-index: 10000; transition: top 0.3s; }
.skip-link:focus { top: 0; }

/* Header */
header { position: fixed; width: 100%; z-index: 1000; background: transparent; transition: background 0.3s, box-shadow 0.3s; }
header.scrolled { background: rgba(250,250,250,0.95); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.header-container { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2rem; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; display: block; border: 1px solid var(--accent); padding: 1px; transition: box-shadow 0.3s; }
.logo-img:hover { box-shadow: 0 6px 12px rgba(0,0,0,0.12); }
@media (max-width: 768px) { .logo-img { height: 36px; } }

nav a { color: #ccc; text-decoration: none; margin-left: 2rem; font-weight: 400; transition: color 0.3s; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
nav a:hover, nav a.active { color: var(--accent); }
header.scrolled nav a { color: var(--text-muted); }

.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: #fff; margin: 4px 0; transition: 0.3s; }
header.scrolled .hamburger span { background: var(--text-dark); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; margin: 0; padding: 0; width: 100%; max-width: none; }
.hero .swiper { position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 0; }
.hero .swiper-slide { 
    background-size: cover; 
    background-position: center; 
    background-color: var(--text-dark); 
    will-change: transform; 
    transform-origin: center center; 
}

/* Pure CSS Ken Burns animation using Swiper's native tracking attributes */
.hero .swiper-slide-active[data-swiper-slide-index="0"] { 
    animation: kenBurns 5s ease-in-out forwards; 
}

@keyframes kenBurns { 
    from { transform: scale(1); } 
    to { transform: scale(1.1); } 
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; }
.hero-content { z-index: 2; max-width: 800px; padding: 2rem; animation: fadeInUp 1.2s ease; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3rem; letter-spacing: 3px; margin-bottom: 1rem; color: #fff; line-height: 1.2; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); }
.btn-accent { background: var(--accent); color: #000; padding: 0.9rem 2.5rem; border: none; border-radius: 30px; font-weight: 700; cursor: pointer; transition: background 0.3s, transform 0.3s; text-decoration: none; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }
.btn-accent:hover { background: #d4b77e; transform: translateY(-3px); }

@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

/* Sections */
section { padding: 6rem 2rem; max-width: 1200px; margin: auto; }
.section-title { text-align: center; font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.section-title span { color: var(--accent); }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; font-size: 1.1rem; line-height: 1.7; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2.5rem 2rem; text-align: center; transition: all 0.3s; cursor: default; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.service-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; align-items: center; justify-items: center; max-width: 900px; margin: 0 auto; }
.client-logo { max-width: 100px; height: auto; filter: grayscale(0.3); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.client-logo:hover { filter: grayscale(0); opacity: 1; }
.img-wrapper { display: block; width: 100%; }

/* Portfolio */
.portfolio-tabs, .subcat-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn, .subcat-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 0.5rem 1.5rem; border-radius: 30px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s; font-weight: 600; }
.tab-btn.active, .subcat-btn.active, .tab-btn:hover, .subcat-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.project-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.project-card img { width: 100%; height: 220px; object-fit: cover; display: block; filter: grayscale(1); transition: filter 0.4s; }
.project-card:hover img { filter: grayscale(0); }
.project-info { 
    padding: 1.5rem; 
    display: flex;
    flex-direction: column;
}
.project-info h3 { 
    font-family: var(--font-heading); 
    font-size: 1.4rem; 
    color: var(--text-dark); /* Changed from gold accent to rich dark charcoal to match the news card cleanliness */
    margin-bottom: 0.4rem; 
    line-height: 1.3;
}
.project-info p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.view-project-link { display: inline-block; margin-top: 0.8rem; color: var(--accent); font-size: 0.85rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border 0.3s; cursor: pointer; }
.view-project-link:hover { border-bottom: 1px solid var(--accent); }

/* Modal & Lightbox Configuration Updates */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 5000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--white); border-radius: 8px; max-width: 900px; width: 90%; max-height: 90vh; position: relative; padding: 2.5rem; overflow-y: auto; }
.modal-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; color: var(--text-muted); cursor: pointer; z-index: 10; }
.modal-close:hover { color: var(--accent); }
.modal-gallery { margin: 1.5rem 0; width: 100%; }
.modal-gallery .swiper-slide img { width: 100%; max-height: 55vh; object-fit: contain; cursor: pointer; }
.modal-gallery .swiper-button-next, .modal-gallery .swiper-button-prev { color: var(--accent); }
.modal-gallery .swiper-pagination-bullet-active { background: var(--accent); }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 6000; align-items: center; justify-content: center; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 90%; border-radius: 4px; object-fit: contain; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; font-size: 2.5rem; color: #fff; cursor: pointer; }

/* Team */
.team-card { display: flex; flex-wrap: wrap; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 2rem; align-items: stretch; }
.team-photo-side { flex: 0 0 300px; position: relative; display: flex; align-items: stretch; overflow: hidden; }
.team-photo-side .img-wrapper { width: 100%; display: flex; align-items: stretch; }
.team-photo-side img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 400px; }
.team-details { flex: 1; min-width: 280px; padding: 2.5rem; }
.team-info-header { margin-bottom: 2rem; }
.team-info-header h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.2rem; color: var(--text-dark); }
.team-info-header .title { color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.3rem; font-size: 1rem; }
.team-info-header .email { color: var(--text-muted); display: block; }
.detail-block { margin-bottom: 1.8rem; }
.detail-block .detail-heading { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.detail-heading .icon { font-size: 1.5rem; color: var(--accent); }
.detail-heading h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); letter-spacing: 0.5px; }
.detail-content { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; padding-left: 2.2rem; list-style: none; }
.detail-content li { margin-bottom: 0.4rem; position: relative; }
.detail-content li::before { content: "•"; color: var(--accent); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; }
.blog-content .date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.blog-content h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 0.5rem; }
.blog-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* Contact */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 3rem; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2.5rem; }
.contact-form { flex: 1; min-width: 280px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.9rem; margin-bottom: 1.2rem; background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; color: var(--text-dark); font-family: var(--font-body); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* Footer & Back to Top */
footer { text-align: center; padding: 2rem; background: var(--white); color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); }
.footer-social { margin-bottom: 1rem; display: flex; justify-content: center; gap: 2rem; }
.footer-social a { color: var(--text-muted); font-size: 1.4rem; transition: color 0.3s, transform 0.3s; }
.footer-social a:hover { color: var(--accent); transform: translateY(-3px); }
.footer-contact { margin-bottom: 0.5rem; }
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--accent); color: #000; width: 40px; height: 40px; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 900; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: opacity 0.3s; }
.back-to-top.visible { display: flex; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    nav { width: 100%; display: none; flex-direction: column; background: var(--white); margin-top: 1rem; padding: 1rem 0; }
    nav.active { display: flex; }
    nav a { margin: 0.8rem 2rem; }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 2.2rem; }
    .team-card { flex-direction: column; }
    .team-photo-side { flex: unset; width: 100%; max-width: 100%; }
    .team-photo-side img { min-height: auto; height: auto; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }