/* Custom Styles for Occupational Health & Safety */

:root {
    --gold-400: #D4AC0D;
    --gold-500: #C9A227;
    --emerald-900: #064E3B;
    --emerald-950: #022C22;
    --cream: #F5F5DC;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    background-color: var(--emerald-900);
    color: var(--cream);
}

/* Gold Stroke Animation */
.gold-stroke {
    stroke: var(--gold-400);
    transition: stroke 0.3s ease;
}

/* Navbar */
.navbar {
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 172, 13, 0.1);
}

.navbar.scrolled {
    background: rgba(2, 44, 34, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 172, 13, 0.1);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, 
        #022C22 0%, 
        #064E3B 30%,
        #047857 60%,
        #065F46 80%,
        #022C22 100%);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 172, 13, 0.3), transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent);
    bottom: 10%;
    left: -50px;
    animation-delay: 2s;
}

.hero-decoration-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-headline {
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(212, 172, 13, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold-400);
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--emerald-950);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 172, 13, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 172, 13, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--cream);
    font-weight: 600;
    border: 2px solid rgba(212, 172, 13, 0.5);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(212, 172, 13, 0.1);
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* Section Styles */
.section-label {
    display: inline-block;
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.2;
}

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

/* Service Cards */
.service-card {
    background: rgba(2, 44, 34, 0.5);
    border: 1px solid rgba(212, 172, 13, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(212, 172, 13, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    color: var(--gold-400);
}

.service-title {
    line-height: 1.3;
}

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

.about-image-main img {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-stats {
    animation: pulse 3s ease-in-out infinite;
}

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

/* Feature Cards */
.feature-card {
    perspective: 1000px;
}

.feature-card-inner {
    transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Contact Form */
.contact-form-wrapper {
    backdrop-filter: blur(10px);
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    appearance: none;
}

.contact-form-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AC0D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-decoration-1 {
        width: 200px;
        height: 200px;
    }
    
    .hero-decoration-2,
    .hero-decoration-3 {
        display: none;
    }
    
    .about-stats {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 1rem;
    }
    
    .about-image-accent {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
