/* Custom Styles for On The Day Creations */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Hero Section */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Film Grain Effect */
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* Hero Text Highlight */
.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    z-index: -1;
    transform: skewY(-2deg);
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

/* Hero Image */
.hero-image {
    transition: transform 0.5s ease-out;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* Hero Badge */
.hero-badge {
    animation: badge-pulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-badge:hover {
    transform: scale(1.05);
    cursor: pointer;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    }
}

/* Hero Image Glow Effect */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-image-wrapper:hover::before {
    opacity: 1;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Package Cards */
.package-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    border-color: #1a1a1a;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Button Styles */
.btn-primary {
    background-color: #1a1a1a;
    color: white;
    padding: 12px 32px;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    padding: 12px 32px;
    background: transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 500;
}

.btn-outline:hover {
    background-color: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

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

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Divider */
.section-divider {
    width: 80px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 0 auto 40px;
}

/* Image Overlay */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0;
}

/* Portfolio Grid */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Captcha Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.captcha-question {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.captcha-refresh {
    cursor: pointer;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.5rem !important;
    }

    .section-divider {
        width: 60px;
        margin-bottom: 30px;
    }

    /* Hero Mobile Adjustments */
    .hero-image-container {
        animation: none; /* Disable float animation on mobile for better performance */
    }

    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 0.5rem;
        display: inline-block;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem;
    }

    .hero-badge .w-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .hero-badge .text-lg {
        font-size: 0.875rem !important;
    }

    .fade-in:nth-child(1),
    .fade-in:nth-child(2),
    .fade-in:nth-child(3) {
        animation-delay: 0s; /* Remove stagger on mobile for faster load */
    }
}

@media (min-width: 1024px) {
    .hero-image-container {
        max-height: 75vh;
    }

    .hero-image-container img {
        max-height: 75vh;
        object-fit: contain;
    }

    .hero-image-wrapper {
        transform: perspective(1000px) rotateY(-5deg);
        transition: transform 0.6s ease;
    }

    .hero-image-wrapper:hover {
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Smooth page transitions */
.page-content {
    animation: fadeIn 0.5s ease-in;
}
