/*
Theme Name: AK GLOW
Theme URI: https://akglow.com
Author: Dr. Asif Kalsekar
Author URI: https://akglow.com
Description: Premium luxury dermatology brand showcase theme by Dr. Asif Kalsekar. Features elegant animations, horizontal scrolling elements, and WooCommerce catalog mode for non-e-commerce product display.
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: ak-glow
Tags: e-commerce, luxury, dark-theme, woocommerce, elementor, catalog-mode, portfolio, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* CSS Variables */
:root {
  --gold: #e6c956;
  --gold-light: #f0db7a;
  --gold-dark: #c9a93a;
  --black: #000000;
  --black-light: #0a0a0a;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #666666;
  --white: #ffffff;
  --off-white: #f5f5f5;
  
  --luxury-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --fluid-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--luxury-ease);
}

a:hover {
  color: var(--gold);
}

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

/* Typography */
.heading-xl {
  font-size: clamp(3rem, 8vw, 6rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

.heading-md {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

.heading-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}

.body-lg {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
}

.body-md {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.body-sm {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Utility Classes */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.border-gold { border-color: var(--gold); }

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.7);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--luxury-ease);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 201, 86, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--luxury-ease);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.4s var(--luxury-ease), box-shadow 0.4s var(--luxury-ease);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(230, 201, 86, 0.15);
}

.product-card {
  transition: transform 0.5s var(--luxury-ease), box-shadow 0.5s var(--luxury-ease), border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(230, 201, 86, 0.2);
}

/* Horizontal Scroll */
.horizontal-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 4px;
}

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

/* WordPress Core Alignment */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WooCommerce Catalog Mode - Hide Cart/Checkout */
.woocommerce .cart,
.woocommerce .single-product .cart,
.single_add_to_cart_button,
.woocommerce-cart,
.woocommerce-checkout,
.widget_shopping_cart,
.woocommerce .quantity {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .heading-xl { font-size: 2.5rem; }
  .heading-lg { font-size: 2rem; }
  .heading-md { font-size: 1.75rem; }
  
  .btn-primary,
  .btn-outline {
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
  }
}

/* Testimonials Infinite Horizontal Scroll */
.horizontal-scroll {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Create the scrolling track */
.horizontal-scroll::before,
.horizontal-scroll::after {
    content: "";
    display: flex;
    gap: 2rem;
}

/* Duplicate testimonials for seamless loop - using CSS animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Apply animation to the container */
.horizontal-scroll {
    animation: scroll-left 40s linear infinite;
    width: max-content; /* Important: allows content to extend */
}

/* Pause on hover */
.horizontal-scroll:hover {
    animation-play-state: paused;
}

/* Hide scrollbar */
.testimonials-section {
    overflow: hidden;
}

/* Ensure cards don't shrink */
.testimonial-card {
    flex-shrink: 0 !important;
}


/* ============================================
   HERO SECTION MOBILE RESPONSIVE FIX
   ============================================ */

/* Mobile - Force single column layout */
@media (max-width: 1024px) {
    .hero-section .hero-grid,
    section.hero-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Image first */
    .hero-section .hero-image,
    section.hero-section div[data-aos="fade-left"] {
        order: -1 !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 2rem !important;
        display: block !important;
    }
    
    /* Center text */
    .hero-section .hero-content,
    section.hero-section div[data-aos="fade-right"] {
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Smaller title */
    .hero-section h1,
    section.hero-section .heading-xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    /* Center buttons */
    .hero-section .hero-buttons,
    section.hero-section div[style*="display: flex"][style*="gap: 1rem"] {
        justify-content: center !important;
    }
}

/* Extra small devices */
@media (max-width: 768px) {
    .hero-section h1,
    section.hero-section .heading-xl {
        font-size: 1.75rem !important;
    }
    
    /* Square image */
    .hero-section .hero-image > div,
    section.hero-section div[data-aos="fade-left"] > div {
        aspect-ratio: 1/1 !important;
        padding: 1rem !important;
    }
    
    /* Smaller stats */
    .hero-section .hero-stats div[style*="font-size: 2rem"],
    section.hero-section div[style*="grid-template-columns: repeat(3, 1fr)"] div div:first-child {
        font-size: 1.5rem !important;
    }
}


/* ============================================
   HERO SECTION MOBILE FIX - AK GLOW
   ============================================ */

/* Desktop - 2 columns */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Tablet & Mobile - Stack with Image on Top */
@media (max-width: 1024px) {
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
    }

    .hero-image {
        order: -1 !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    .hero-content {
        text-align: center !important;
        width: 100% !important;
        order: 2 !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-text {
        font-size: 1rem !important;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-stats {
        margin-top: 2rem !important;
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding-bottom: 4rem;
    }

    .hero-section .container {
        padding-top: 6rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-image > div {
        aspect-ratio: 1/1 !important;
        padding: 1rem !important;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .hero-stats .text-gold {
        font-size: 1.5rem !important;
    }

    .hero-stats .label {
        font-size: 0.75rem !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-buttons a {
        width: 100% !important;
        justify-content: center !important;
    }
}