/* ============================================
   T&D Nail Lounge — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --forest-50: #f0f7f0;
    --forest-100: #d9eed9;
    --forest-200: #b5dfb5;
    --forest-400: #52a352;
    --forest-500: #338233;
    --forest-600: #246324;
    --forest-700: #1c4d1c;
    --forest-800: #173d17;
    --forest-900: #123012;
    --forest-950: #0a1c0a;
    --offwhite: #FAFAF5;
    --cream: #F5F5ED;
    --lime-300: #d9f99d;
    --lime-400: #bef264;
    --lime-500: #a3e635;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    overflow-x: hidden;
}

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

/* --- Section Padding --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* --- Section Header --- */
.section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    line-height: 1.7;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #246324 0%, #338233 100%);
    color: white;
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(36, 99, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 99, 36, 0.4);
    color: white;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
    color: #0a1c0a;
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(190, 242, 100, 0.4);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(190, 242, 100, 0.5);
    color: #0a1c0a;
}

.btn-secondary-hero {
    color: white;
    transition: all var(--transition-normal);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

.btn-cta {
    transition: all var(--transition-normal);
}

.btn-cta-secondary {
    color: white;
    transition: all var(--transition-normal);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* --- Navigation --- */
.nav {
    background: transparent;
    transition: all var(--transition-normal);
}

.nav.scrolled {
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav.scrolled .nav-logo-text {
    color: #123012;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #246324;
    transition: width var(--transition-normal);
}

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

.nav.scrolled .nav-link {
    color: #123012;
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #0a1c0a 0%, #123012 25%, #1c4d1c 50%, #246324 75%, #338233 100%);
}

/* Geometric Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -5%;
    background: rgba(190, 242, 100, 0.08);
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 15%;
    background: rgba(190, 242, 100, 0.12);
    animation: float 5s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.geo-triangle-1 {
    top: 25%;
    right: 15%;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(190, 242, 100, 0.1);
    animation: rotate 12s linear infinite;
}

.geo-dots {
    position: absolute;
    display: grid;
    gap: 8px;
}

.geo-dots-1 {
    top: 15%;
    left: 8%;
    grid-template-columns: repeat(4, 8px);
    opacity: 0.3;
}

.geo-dots-1 span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(190, 242, 100, 0.5);
}

.geo-dots-2 {
    bottom: 30%;
    right: 8%;
    grid-template-columns: repeat(3, 8px);
    opacity: 0.2;
}

.geo-dots-2 span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.geo-square {
    position: absolute;
    border-radius: 12px;
}

.geo-square-1 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 20%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(190, 242, 100, 0.15);
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.geo-arc {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
}

.geo-arc-1 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -3%;
    border-color: rgba(190, 242, 100, 0.1);
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: rotate 15s linear infinite;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Content Animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0.7;
}

.scroll-mouse {
    position: relative;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* --- Services --- */
.services-grid {
    position: relative;
    z-index: 1;
}

.service-card {
    perspective: 1000px;
}

.service-card-inner {
    transform-style: preserve-3d;
}

/* --- About --- */
.about-geo {
    position: absolute;
}

.about-image-wrapper {
    position: relative;
}

.about-floating-badge {
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.gallery-img {
    transition: transform var(--transition-slow);
}

/* --- Testimonials --- */
.testimonials-grid {
    position: relative;
    z-index: 1;
}

.testimonial-bg-shape {
    position: absolute;
}

.testimonial-bg-shape-1 {
    animation: float 10s ease-in-out infinite;
}

.testimonial-bg-shape-2 {
    animation: float 8s ease-in-out infinite reverse;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(36, 99, 36, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* --- CTA Section --- */
.cta-gradient {
    background: linear-gradient(135deg, #123012 0%, #1c4d1c 50%, #246324 100%);
}

.cta-shape {
    transition: transform var(--transition-slow);
}

/* --- Contact --- */
.contact-info-grid {
    position: relative;
    z-index: 1;
}

.contact-card {
    transition: all var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card-icon {
    transition: transform var(--transition-normal);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* --- Form --- */
.form-label {
    font-size: 0.875rem;
}

.form-input {
    font-family: 'Outfit', sans-serif;
}

.form-input:focus {
    border-color: #52a352;
    box-shadow: 0 0 0 4px rgba(82, 163, 82, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-row {
    position: relative;
}

.form-success {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* --- Footer --- */
.footer {
    position: relative;
}

.footer-line {
    background: linear-gradient(90deg, #bef264, #52a352, #bef264);
}

.footer-bottom {
    position: relative;
}

/* --- Back to Top --- */
.back-to-top {
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

.mobile-menu.hidden {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.mobile-nav-link {
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: #246324;
}

/* --- Mobile Menu Button --- */
.menu-line {
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .geo-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-circle-2 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 45px solid rgba(190, 242, 100, 0.1);
    }
    
    .about-floating-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .cta-shape {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5.5rem;
    }
}
