/* 
  CSS (Cascading Style Sheets) FILE
  This file controls how the HTML looks - colors, fonts, layout, spacing, etc.
*/

/* 
  CSS VARIABLES (Custom Properties)
  These are reusable values that we can reference throughout the CSS
  Makes it easy to change colors/fonts site-wide by updating one place
*/
:root {
    /* Colors - Using modern, professional palette */
    --primary-color: #d4af37;      /* Gold accent color */
    --secondary-color: #8b4a8b;    /* Purple */
    --text-dark: #2c2c2c;          /* Dark gray for text */
    --text-light: #666;            /* Lighter gray */
    --bg-light: #f8f9fa;           /* Light background */
    --bg-white: #ffffff;           /* White background */
    --accent-pink: #ff6b9d;        /* Pink accent */
    --accent-blue: #4facfe;        /* Blue accent */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;  /* Elegant serif for headings */
    --font-body: 'Poppins', sans-serif;         /* Clean sans-serif for body text */
    
    /* Spacing */
    --container-width: 1200px;     /* Max width for content */
    --section-padding: 80px 0;     /* Vertical padding for sections */
    
    /* Transitions */
    --transition: all 0.3s ease;   /* Smooth animations */
}

/* 
  RESET & BASE STYLES
  Resets default browser styles for consistency across browsers
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 
      box-sizing: border-box means padding and border are included in width/height
      This makes sizing elements much easier!
    */
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling when clicking navigation links */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    /* line-height controls spacing between lines of text */
    overflow-x: hidden;
    /* Prevents horizontal scrolling on small screens */
}

/* 
  CONTAINER CLASS
  Centers content and limits max width for readability
  Used throughout the site for consistent layout
*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    /* 
      margin: 0 auto centers the container horizontally
      padding adds space on sides for mobile devices
    */
}

/* 
  ========================================
  NAVIGATION BAR STYLES
  ========================================
*/
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 
      box-shadow creates a subtle shadow effect
      rgba(0,0,0,0.1) = black with 10% opacity
    */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* 
      position: fixed keeps navbar at top when scrolling
      z-index: 1000 ensures it appears above other content
    */
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    /* 
      Flexbox layout:
      - display: flex makes children align horizontally
      - justify-content: space-between pushes items to edges
      - align-items: center vertically centers items
    */
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    /* gap adds space between flex items */
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

/* 
  HOVER EFFECT on navigation links
  Creates an underline animation when hovering
*/
.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* 
  MOBILE MENU TOGGLE BUTTON (Hamburger icon)
  Hidden on desktop, visible on mobile
*/
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* 
  ========================================
  HERO SECTION (Banner at top)
  ========================================
*/
.hero {
    background: url('image/background.png?v=5') no-repeat center 35%/cover;
    background-color: #3d2e1f;
    height: 65vh;
    min-height: 420px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 220, 170, 0.12) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
    z-index: 1;
}

/* 
  ========================================
  GLOWING STARS ANIMATION
  ========================================
*/
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
    /* Temporary: uncomment to see if container exists */
    /* background: rgba(255, 0, 0, 0.1); */
    /* z-index: 3 places stars above background but below content (z-index: 10) */
}

.glowing-star {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 5;
    /* Force visibility for debugging */
}

.glowing-star img {
    width: 100%;
    height: 100%;
    display: block;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3.5rem, 8vw, 5rem);
    margin: 0;
    color: #fffdf7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 900;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 300;
    margin: 20px 0 40px 0;
    color: #ffa722;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.662);
}

/* 
  BUTTON STYLES
  Reusable button classes for consistent design
*/
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    /* 
      border-radius: 50px creates fully rounded buttons
      (pill shape)
    */
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    /* Moves button up slightly on hover */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-hero {
    display: inline-block;
    padding: 18px 45px;
    background-color: #FFF4DC;
    color: #2C2418;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 244, 220, 0.45);
}

.btn-hero:hover {
    background-color: #FFEBC1;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 244, 220, 0.6);
}

/* 
  ========================================
  SECTION STYLES
  ========================================
*/
section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* 
  ========================================
  SERVICES SECTION
  ========================================
*/
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 
      CSS Grid:
      - repeat(auto-fit, minmax(250px, 1fr)) creates responsive columns
      - Cards will automatically adjust based on screen size
      - Minimum 250px width, maximum 1fr (equal space)
    */
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    /* Lifts card up on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for images inside service icons */
.service-icon img {
    width: 200px;  /* Increased size for better visibility */
    height: 200px;
    object-fit: contain;
    /* 
      object-fit: contain ensures the image scales proportionally
      without distortion, fitting within the 140x140px area
    */
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-price {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 
  ========================================
  SERVICES MENU/PRICING SECTION
  ========================================
*/
.menu {
    background: var(--bg-light);
}

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

.menu-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.menu-category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 1rem;
}

.menu-item-name {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.menu-item-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.menu-item-price {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--primary-color);
    white-space: nowrap;
    /* Prevents price from wrapping */
}

/* Two-column pricing for Professional Nail Services */
.menu-item-prices-two {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-item-prices-two .menu-item-price {
    min-width: 80px;
    text-align: right;
}

.menu-item-price-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 80px;
    text-align: right;
}

.menu-item-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.menu-item-header .menu-item-name {
    font-weight: 700;
}

/* 
  ========================================
  GALLERY SECTION
  ========================================
*/
.gallery-collections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.gallery-collection {
    text-align: center;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--bg-light);
}

.carousel-track {
    display: flex;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

/* 
  ========================================
  ABOUT SECTION
  ========================================
*/
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-image .carousel-viewport {
    border-radius: 15px;
}

.work-section {
    margin-top: 4rem;
    text-align: center;
}

.work-section .section-subtitle {
    margin-bottom: 1.5rem;
}

.work-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.about-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 4rem;
    text-align: center;
    color: white;
    font-size: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for actual <img> tag in about section */
.about-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 
  ========================================
  CONTACT SECTION
  ========================================
*/
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* 
  CALL TO BOOK SECTION (replaces form)
*/
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-form p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    /* Changes border color when input is focused */
}

.form-group textarea {
    resize: vertical;
    /* Allows vertical resizing only */
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
}

/* 
  CONTACT INFO STYLES
*/
.contact-info {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 
  ========================================
  FOOTER
  ========================================
*/
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}


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

/* 
  ========================================
  RESPONSIVE DESIGN (MOBILE)
  ========================================
  Media queries let us change styles based on screen size
  This is how we make websites work on phones and tablets
*/

/* Tablets and smaller */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        /* Stack items vertically on smaller screens */
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    /* Hero adjustments */
    /* Hero title and subtitle use clamp() so they auto-adjust */
    
    .hero {
        background-position: center bottom;
    }

    .btn-hero {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    /* Section title */
    .section-title {
        font-size: 2rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-collections {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    /* Menu grid */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-category {
        padding: 1.5rem;
    }
    
    /* Two-column pricing on mobile */
    .menu-item-prices-two {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .menu-item-prices-two .menu-item-price,
    .menu-item-price-label {
        min-width: auto;
        text-align: right;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
}
