/* ========================================
   Artic Nails & Hair Salon - Custom Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s 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 {
    font-family: 'Inter', sans-serif;
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Navigation --- */
.nav {
    background: transparent;
    transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-400);
    transition: width var(--transition-fast);
}

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

.nav-link:hover {
    color: #fff;
}

/* Mobile Menu */
.mobile-menu {
    transition: opacity var(--transition-medium), pointer-events var(--transition-fast);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--teal-500);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    background: var(--teal-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-primary-icon {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-primary-icon {
    transform: translate(3px, -3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* CTA Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #fff;
    color: var(--teal-700);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: var(--teal-50);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-cta-outline-icon {
    transition: transform var(--transition-fast);
}

.btn-cta-outline:hover .btn-cta-outline-icon {
    transform: translateX(4px);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #0f766e 60%, #14b8a6 100%);
    position: relative;
    min-height: 100vh;
}

/* Geometric Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--teal-400);
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: #2dd4bf;
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    opacity: 0.06;
    background: var(--teal-300);
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 5%;
    border-radius: 30px;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle {
    position: absolute;
    opacity: 0.05;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--teal-400);
    top: 30%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 5%;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(45, 212, 191, 0.15);
    opacity: 0;
}

.geo-ring-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: ring-expand 4s ease-out infinite;
}

/* Hero Animations */
.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards 0.2s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.8s ease forwards 0.4s;
}

.hero-subheadline {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards 0.8s;
}

.hero-scroll {
    opacity: 0;
    animation: fade-up 0.8s ease forwards 1s;
}

/* Scroll Line */
.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* --- Section Styles --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* --- Services Section --- */
.services {
    position: relative;
}

.services-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.services-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-200);
}

.services-dot-1 {
    top: 15%;
    right: 8%;
    animation: float-slow 6s ease-in-out infinite;
}

.services-dot-2 {
    bottom: 20%;
    left: 5%;
    width: 12px;
    height: 12px;
    background: var(--teal-100);
    animation: float-slow 8s ease-in-out infinite reverse;
}

.services-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300), var(--teal-500));
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover::before {
    opacity: 1;
}

.service-title {
    transition: color var(--transition-medium);
}

.service-desc {
    transition: color var(--transition-medium);
}

/* --- About Section --- */
.about {
    position: relative;
}

.about-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-geo {
    position: absolute;
    opacity: 0.04;
}

.about-geo-1 {
    width: 500px;
    height: 500px;
    background: var(--teal-400);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.about-geo-2 {
    width: 300px;
    height: 300px;
    background: var(--teal-300);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

.about-geo-3 {
    width: 150px;
    height: 150px;
    background: var(--teal-400);
    top: 50%;
    left: 40%;
    border-radius: 30px;
    transform: rotate(45deg);
    opacity: 0.06;
}

.about-img-main {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.about-img-float {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-feature {
    transition: transform var(--transition-fast);
}

.about-feature:hover {
    transform: translateX(4px);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* --- Testimonials Section --- */
.testimonials {
    position: relative;
}

.testimonials-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.testimonials-circle {
    position: absolute;
    border-radius: 50%;
}

.testimonials-circle-1 {
    width: 400px;
    height: 400px;
    background: var(--teal-100);
    top: -100px;
    left: -100px;
    opacity: 0.5;
}

.testimonials-circle-2 {
    width: 300px;
    height: 300px;
    background: #ccfbf1;
    bottom: -80px;
    right: -80px;
    opacity: 0.4;
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--teal-100);
    line-height: 1;
    pointer-events: none;
}

/* --- CTA Section --- */
.cta-gradient-bg {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0f172a 100%);
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-geo {
    position: absolute;
    opacity: 0.08;
}

.cta-geo-1 {
    width: 300px;
    height: 300px;
    background: var(--teal-300);
    border-radius: 50%;
    top: -100px;
    left: -50px;
}

.cta-geo-2 {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 40px;
    bottom: -50px;
    right: 10%;
    transform: rotate(30deg);
    animation: spin-slow 30s linear infinite;
}

.cta-geo-3 {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: float-slow 10s ease-in-out infinite;
}

/* --- Contact Section --- */
.contact-icon {
    flex-shrink: 0;
}

.contact-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.form-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-100);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder {
    color: var(--slate-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--teal-600);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-submit:hover {
    background: var(--teal-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-submit svg {
    transition: transform var(--transition-fast);
}

.btn-submit:hover svg {
    transform: translate(3px, -3px);
}

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

.form-success-icon {
    animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.footer-bottom {
    position: relative;
}

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

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

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

@keyframes ring-expand {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.5);
    }
}

@keyframes scroll-line {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.1;
        transform: scaleY(0.5);
        transform-origin: top;
    }
}

@keyframes scale-in {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-headline br {
        display: none;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 160px);
    }
    
    .about-img-float {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        height: 250px;
        margin-top: -40px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .about-img-main {
        border-radius: 24px;
    }
    
    .about-stat-card {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 16px;
        display: inline-block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-img-float {
        width: 200px;
        height: 200px;
    }
}

/* --- 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;
    }
}
