/* Main CSS styles for Safe Alert */

/* Custom utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(255, 255, 255, 0.1));
}

/* Hero section responsive adjustments */
.hero-heading {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
}

.hero-subheading {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
}

.hero-paragraph {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Hero image responsive styles */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .relative.h-screen {
        height: 100vh; /* Ensure full height on mobile */
        min-height: 600px; /* Minimum height to ensure content fits */
    }
    
    .hero-image-container img {
        object-position: center 20%; /* Adjust image position on mobile */
    }
}

/* Responsive container */
.container-responsive {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Responsive vertical spacing */
.hero-content-spacing {
    padding-top: clamp(4rem, 15vh, 8rem);
    padding-bottom: clamp(2rem, 10vh, 6rem);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #CF0F47;
    color: white;
}

.btn-primary:hover {
    background-color: #B80D3E;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #CF0F47;
}

/* Custom animations */
.animate-bounce-slow {
    animation: bounce 2s infinite;
}

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

/* Mobile menu styles */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-menu.open {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 1rem;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu a {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border-radius: 8px;
    display: block;
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobile-menu a:active {
    transform: scale(0.98);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hamburger menu animations */
#mobile-menu-button {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#mobile-menu-button .bar {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-button-open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #CF0F47;
}

.mobile-menu-button-open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button-open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #CF0F47;
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-content {
        width: 100%;
        padding-top: 6rem; /* Add more top padding on mobile for the header */
    }
    
    .hero-heading {
        font-size: 2.25rem; /* Slightly smaller on mobile */
    }
    
    .hero-subheading {
        font-size: 2.75rem; /* Slightly smaller on mobile */
    }
    
    .hero-paragraph {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-content {
        width: 80%;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        width: 60%;
    }
}