/*
Theme Name: KEI by Payal Portfolio Theme
Theme URI: https://instagram.com/Keibypayal
Author: Antigravity AI
Author URI: https://google.github.io/antigravity
Description: Premium minimal luxury interior design portfolio theme designed for KEI by Payal Uppal. Features a portfolio-first design with custom post types and smooth modal displays.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kei-by-payal
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #FAF8F5;
  --text-color: #1F1F1F;
  --text-muted: #777777;
  --accent-color: #B89B72;
  --card-bg: #FFFFFF;
  --border-color: #ECE8E2;
  --white: #FFFFFF;
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 90px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* Spacing Reset for Hero / Homepage */
main:has(.hero),
body.home main,
body.home #content,
body.home .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

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

li {
  list-style: none;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

.section-padding {
  padding: 10rem 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--text-color);
}

.btn-secondary {
  border-color: var(--text-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--white);
}

.btn-text {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 4px;
}

.btn-text:hover {
  border-color: var(--text-color);
  color: var(--accent-color);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-slow);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  height: 80px;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

.header.scrolled .logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

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

.header-cta .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  height: calc(100vh - var(--header-height));
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomOut 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-actions .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.hero-actions .btn-secondary:hover {
  background-color: var(--white);
  color: var(--text-color);
}

/* ==========================================================================
   PORTFOLIO (DYNAMIC MASONRY & FILTERING)
   ========================================================================== */
.portfolio-section {
  background-color: var(--bg-color);
  position: relative;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
}

.portfolio-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.filter-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  width: 100%;
  max-width: 800px;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-color);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -1.6rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.filter-btn.active::after {
  width: 100%;
}

/* Asymmetric Grid Layout */
.portfolio-grid {
  columns: 3;
  column-gap: 2rem;
  width: 100%;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.portfolio-grid.filtering {
  opacity: 0;
}

.portfolio-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.portfolio-img-container {
  position: relative;
  overflow: hidden;
  background-color: var(--border-color);
}

.portfolio-img-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-card:hover .portfolio-img-container img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 31, 31, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--white);
  z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
  transform: translateY(15px);
  transition: var(--transition-smooth) 0.1s;
}

.portfolio-overlay .card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transform: translateY(15px);
  transition: var(--transition-smooth) 0.2s;
}

.portfolio-overlay .card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  transform: translateY(15px);
  transition: var(--transition-smooth) 0.3s;
  line-height: 1.5;
}

.portfolio-overlay .card-action {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-color);
  align-self: flex-start;
  padding-bottom: 2px;
  transform: translateY(15px);
  transition: var(--transition-smooth) 0.4s;
}

.portfolio-card:hover .portfolio-overlay * {
  transform: translateY(0);
}

.portfolio-details {
  padding: 1.5rem;
  display: none;
  background: var(--card-bg);
}

/* Empty State */
.portfolio-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed var(--border-color);
  background-color: var(--card-bg);
}

.portfolio-empty .empty-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.portfolio-empty p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   LIGHTBOX (LUXURY MODAL)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 248, 245, 0.98);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox.active {
  display: block;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-color);
  z-index: 2002;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  padding: var(--header-height) 4rem 4rem 4rem;
}

.lightbox-img-area {
  flex: 1.2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4rem;
  position: relative;
  overflow: hidden;
}

.lightbox-img-area img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 25px 55px rgba(0,0,0,0.06);
}

.lightbox-info-area {
  flex: 0.8;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-color);
  padding-left: 4rem;
  overflow-y: auto;
}

.lightbox-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.lightbox-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.lightbox-style {
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.lightbox-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.lightbox-highlights-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.lightbox-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.lightbox-highlight-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.lightbox-highlight-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.lightbox-nav {
  display: flex;
  gap: 2rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.lightbox-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   FEATURED EXPERTISE
   ========================================================================== */
.expertise-section {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.expertise-card {
  padding: 3rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  transition: var(--transition-smooth);
}

.expertise-card:hover {
  border-color: var(--accent-color);
  background-color: var(--white);
  transform: translateY(-3px);
}

.expertise-card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.expertise-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES (ELEGANT MINIMAL CARDS)
   ========================================================================== */
.services-section {
  background-color: var(--bg-color);
}

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

.services-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
}

.services-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.services-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.services-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT PAYAL (EXPERT PROFILE)
   ========================================================================== */
.about-section {
  background-color: var(--white);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-img-area {
  position: relative;
  background-color: var(--border-color);
}

.about-img-area::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: -2rem;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  z-index: 1;
  pointer-events: none;
}

.about-img-area img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-content-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 4rem;
}

.about-heading {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ==========================================================================
   CONTACT CTA (LEAD GENERATION FOCUS)
   ========================================================================== */
.contact-cta-section {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 4rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.cta-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-actions .btn {
  min-width: 250px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 6rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-col-info .footer-logo {
  height: 54px;
  margin-bottom: 2rem;
}

.footer-col-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-col-contact .footer-contact-item {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 300;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-social-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-social-link:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1500;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes zoomOut {
  from { transform: scale(1.05); }
  to { transform: scale(1.00); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 2.5rem;
  }
  .portfolio-grid {
    columns: 2;
  }
  .about-wrapper {
    gap: 4rem;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 80px;
  }
  .section-padding {
    padding: 7rem 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    gap: 2rem;
    z-index: 1000;
    transition: var(--transition-slow);
    border-left: 1px solid var(--border-color);
    box-shadow: -15px 0 35px rgba(0,0,0,0.02);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .header-cta {
    display: none;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-img-area img {
    height: 450px;
  }
  .about-content-area {
    padding-right: 0;
  }
  
  .services-grid, .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lightbox-content {
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    overflow-y: auto;
  }
  .lightbox-img-area {
    padding-right: 0;
    margin-bottom: 2rem;
    height: auto;
    flex: none;
  }
  .lightbox-img-area img {
    max-height: 50vh;
  }
  .lightbox-info-area {
    padding-left: 0;
    border-left: none;
    flex: none;
    overflow-y: visible;
  }
  .lightbox-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .portfolio-title {
    font-size: 2.5rem;
  }
  
  .portfolio-grid {
    columns: 1;
  }
  
  .portfolio-overlay {
    display: none;
  }
  .portfolio-details {
    display: block;
  }
  
  .services-grid, .expertise-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 4rem 2rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn {
    width: 100%;
  }
  
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   ELEMENTOR INTEGRATION OVERRIDES
   ========================================================================== */
.elementor-heading-title {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
}

/* Headings font sizes scaling */
h1.elementor-heading-title { font-size: clamp(3rem, 7vw, 5.5rem) !important; }
h2.elementor-heading-title { font-size: clamp(2.5rem, 5vw, 3.5rem) !important; }
h3.elementor-heading-title { font-size: 1.8rem !important; }

/* Text blocks */
.elementor-text-editor {
  font-family: var(--font-sans) !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
  color: var(--text-color) !important;
}

/* Button overrides for luxury theme styling */
.elementor-widget-button .elementor-button {
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 0px !important;
  transition: var(--transition-smooth) !important;
  border: 1px solid var(--border-color) !important;
  background-color: transparent !important;
  color: var(--text-color) !important;
  padding: 1.1rem 2.2rem !important;
}

.elementor-widget-button .elementor-button:hover {
  background-color: var(--text-color) !important;
  color: var(--white) !important;
  border-color: var(--text-color) !important;
}

/* Custom CSS helper classes that can be added in Elementor Advanced tab */
.kei-accent-button .elementor-button {
  background-color: var(--accent-color) !important;
  color: var(--white) !important;
  border-color: var(--accent-color) !important;
}

.kei-accent-button .elementor-button:hover {
  background-color: transparent !important;
  color: var(--text-color) !important;
  border-color: var(--text-color) !important;
}

.kei-label {
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-weight: 500 !important;
  color: var(--accent-color) !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

/* ==========================================================================
   DIGITAL LOOKBOOK (FLIPBOOK STYLING)
   ========================================================================== */
.flipbook-container {
  perspective: 2000px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.flipbook {
  width: 500px;
  height: 650px;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
  background-color: var(--border-color);
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.flipbook.state-front {
  transform: translateX(0);
}

.flipbook.state-open {
  transform: translateX(50%);
}

.flipbook.state-back {
  transform: translateX(100%);
}

.fb-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.fb-page-front, .fb-page-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: inset 5px 0 25px rgba(0,0,0,0.06);
}

.fb-page-back {
  transform: rotateY(180deg);
  box-shadow: inset -5px 0 25px rgba(0,0,0,0.06);
}

.fb-page.flipped {
  transform: rotateY(-180deg);
}

.fb-page-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.fb-page-back::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.fb-page.cover .fb-page-front {
  border-left: 5px solid var(--accent-color);
  box-shadow: inset 10px 0 30px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.1);
}

.flipbook-controls button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .flipbook {
    width: 320px;
    height: 440px;
  }
}
