/* ============================================
   Rednox Prima Solusi - Custom Styles
   Static HTML Version
   ============================================ */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap");

/* ============================================
   CSS Variables (Custom Colors)
   ============================================ */
:root {
    /* Rednox Brand Colors */
    --rednox-red: #d92323;
    --rednox-dark: #1f2937;
    --rednox-navy: #1a202c;
    --rednox-card: #1e2532;

    /* Font Families */
    --font-sans: "Open Sans", sans-serif;
    --font-heading: "Montserrat", sans-serif;
}

/* ============================================
   Custom Utility Classes
   ============================================ */

/* Text Shadow for Hero Sections */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on header height (approx 5rem) */
}

/* Custom Background Colors */
.bg-rednox-red {
    background-color: var(--rednox-red);
}

.bg-rednox-dark {
    background-color: var(--rednox-dark);
}

.bg-rednox-navy {
    background-color: var(--rednox-navy);
}

.bg-rednox-card {
    background-color: var(--rednox-card);
}

/* Custom Text Colors */
.text-rednox-red {
    color: var(--rednox-red);
}

.text-rednox-dark {
    color: var(--rednox-dark);
}

/* Custom Border Colors */
.border-rednox-red {
    border-color: var(--rednox-red);
}

/* Hover States */
.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:text-rednox-red:hover {
    color: var(--rednox-red);
}

/* ============================================
   Mobile Menu Styles
   ============================================ */

/* Mobile menu hidden by default */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Hamburger Icon Animation */
.hamburger-icon {
    transition: transform 0.3s ease;
}

.hamburger-icon.active {
    transform: rotate(90deg);
}

/* ============================================
   Smooth Transitions
   ============================================ */

/* Link Transitions */
a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

/* Button Transitions */
button {
    transition: all 0.2s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* ============================================
   Custom Animations
   ============================================ */

/* Fade In Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state for scroll animation elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Active state when element is in viewport */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements (optional utility) */
.delay-100 {
    transition-delay: 0.1s;
}
.delay-200 {
    transition-delay: 0.2s;
}
.delay-300 {
    transition-delay: 0.3s;
}
.delay-400 {
    transition-delay: 0.4s;
}
.delay-500 {
    transition-delay: 0.5s;
}

/* Scale on Hover */
.hover-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   Responsive Utilities
   ============================================ */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Print Styles (Optional)
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--rednox-red);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--rednox-red);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}
