/* Custom CSS for Nail Designer Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

/* Header styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F5C2C7, #F8D7DA);
    transition: width 0.3s ease;
}

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

/* Header scroll effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Custom gradients */
.gradient-text {
    background: linear-gradient(135deg, #F5C2C7, #F8D7DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #F4E4E0, #F8D7DA, #A8B5A0);
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Portfolio hover effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(245, 194, 199, 0.8), rgba(248, 215, 218, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-item .fas {
    position: relative;
    z-index: 10;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #F5C2C7, #F8D7DA);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F8D7DA, #F5C2C7);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 194, 199, 0.4);
}

.btn-secondary {
    border: 2px solid #F5C2C7;
    color: #F5C2C7;
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #F5C2C7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 194, 199, 0.3);
}

/* Modal styles */
#portfolio-modal {
    backdrop-filter: blur(5px);
}

#portfolio-modal img {
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 194, 199, 0.3);
    border-radius: 50%;
    border-top-color: #F5C2C7;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Mobile Hero Section Spacing Fix */
@media (max-width: 768px) {
    .hero-section-mobile {
        padding-top: 20px !important; /* Much closer to navbar */
        min-height: calc(100vh - 20px);
    }
    
    .hero-logo {
        width: 80px !important; /* Even larger logo */
        height: 80px !important;
        margin-bottom: 0.3rem !important; /* Tighter space below logo */
    }
    
    .hero-logo i {
        font-size: 2rem !important; /* Larger icon */
    }
    
    .hero-title {
        font-size: 3.2rem !important; /* Much larger title */
        line-height: 1.1;
        margin-bottom: 0.4rem !important; /* Tighter space below title */
    }
    
    .hero-subtitle {
        font-size: 1.8rem !important; /* Larger subtitle */
        line-height: 1.2;
        margin-bottom: 0.6rem !important; /* Tighter space */
        margin-top: 0.2rem !important; /* Tighter space above subtitle */
    }
    
    .hero-badges {
        gap: 0.5rem !important;
        margin-bottom: 1.2rem !important; /* Tighter space */
    }
    
    .hero-badge span {
        font-size: 0.75rem !important;
    }
    
    /* Reduce spacing between logo and title, but ensure decorative line is visible */
    .hero-content-wrapper .mb-6 {
        margin-bottom: 0.8rem !important; /* Tighter space after decorative line */
    }
    
    .hero-content-wrapper .mb-4 {
        margin-bottom: 0.3rem !important; /* Tighter space between logo and title */
    }
    
    /* Specific adjustment for decorative line after title */
    .hero-title + div {
        margin-bottom: 0.8rem !important; /* Tighter space below decorative line */
        margin-top: 0.1rem !important; /* Very small gap above decorative line */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-content-wrapper {
        margin-top: 20px !important; /* Very close to navbar on very small screens */
    }
    
    .hero-title {
        font-size: 2.8rem !important; /* Slightly smaller on very small screens */
        margin-bottom: 0.3rem !important; /* Tighter spacing */
    }
    
    .hero-decorative-line {
        width: 60px !important;
        margin: 0.1rem auto 0.5rem auto !important; /* Very tight margins */
    }
    
    .hero-subtitle {
        font-size: 1.6rem !important;
        margin-top: 0.1rem !important; /* Very tight spacing */
        margin-bottom: 0.5rem !important;
    }
    
    .hero-badges {
        margin-bottom: 1rem !important; /* Tighter spacing */
    }
}

/* Ensure header doesn't overlap hero content */
.hero-content-wrapper {
    position: relative;
    z-index: 30;
    margin-top: 20px; /* Much closer to navbar on mobile */
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        margin-top: 0;
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F5C2C7, #F8D7DA);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #F8D7DA, #F5C2C7);
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #F5C2C7;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gradient-text {
        -webkit-text-fill-color: initial;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Selection styles */
::selection {
    background: rgba(245, 194, 199, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(245, 194, 199, 0.3);
    color: #333;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box-shadow-medium {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.box-shadow-strong {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #F5C2C7, #F8D7DA) 1;
}

/* Hover effects for social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Image lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error states */
.error-message {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
}

.success-message {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Hero Section Enhancements */
.hero-bg-element {
    animation: float 6s ease-in-out infinite;
}

.hero-bg-element:nth-child(2) {
    animation-delay: -2s;
}

.hero-bg-element:nth-child(3) {
    animation-delay: -4s;
}

.hero-logo {
    background: linear-gradient(135deg, #F5C2C7 0%, #F8D7DA 100%);
    box-shadow: 0 8px 32px rgba(245, 194, 199, 0.3);
}

.hero-logo:hover {
    box-shadow: 0 12px 40px rgba(245, 194, 199, 0.4);
    transform: scale(1.05) rotate(5deg);
}

.hero-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 194, 199, 0.2);
}

/* Hero Section Background Overlays - Different options to test */

/* Option 1: Elegant dark gradient overlay */
.hero-overlay-elegant {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(245, 194, 199, 0.4) 50%, 
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Option 2: Soft pink overlay */
.hero-overlay-soft {
    background: linear-gradient(
        135deg, 
        rgba(245, 194, 199, 0.8) 0%, 
        rgba(248, 215, 218, 0.6) 50%, 
        rgba(244, 228, 224, 0.7) 100%
    );
}

/* Option 3: Dark professional overlay */
.hero-overlay-dark {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* Option 4: Light dreamy overlay */
.hero-overlay-light {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(245, 194, 199, 0.3) 50%, 
        rgba(255, 255, 255, 0.6) 100%
    );
}

/* Option 5: Colorful artistic overlay */
.hero-overlay-artistic {
    background: linear-gradient(
        135deg, 
        rgba(245, 194, 199, 0.6) 0%, 
        rgba(168, 181, 160, 0.4) 25%, 
        rgba(248, 215, 218, 0.5) 50%, 
        rgba(232, 213, 196, 0.6) 75%, 
        rgba(245, 194, 199, 0.7) 100%
    );
}

/* New soft overlay for hero section */
.hero-overlay-soft-new {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(245, 194, 199, 0.05) 25%, 
        rgba(248, 215, 218, 0.1) 50%, 
        rgba(244, 228, 224, 0.08) 75%, 
        rgba(255, 255, 255, 0.15) 100%
    );
}

/* Nail art SVG elements animation */
.nail-svg-element {
    animation: gentleFloat 8s ease-in-out infinite;
}

.nail-svg-element:nth-child(2) {
    animation-delay: -2s;
}

.nail-svg-element:nth-child(3) {
    animation-delay: -4s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Enhanced hero background for better mobile responsiveness */
@media (max-width: 768px) {
    .hero-overlay-soft-new {
        background: linear-gradient(
            135deg, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(245, 194, 199, 0.1) 50%, 
            rgba(255, 255, 255, 0.25) 100%
        );
    }
}

/* Decorative line styling */
.hero-decorative-line {
    height: 4px !important;
    min-height: 4px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-decorative-line {
        width: 80px !important; /* Larger line on mobile */
        height: 3px !important;
        margin: 0.2rem auto 0.6rem auto !important; /* Much tighter margins for mobile */
    }
}

