/* Custom CSS for Athi River Steel Ltd Website */

/* Font imports - matching Ubiquity Group */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* Custom scrollbar - Always visible */
html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Always show scrollbar */
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Headings - Playfair Display font - non-bold like Ubiquity Group */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Body text - Poppins font */
body {
    font-family: 'Poppins', sans-serif;
}

/* Hero section enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Logo styling */
.logo-placeholder {
    transition: transform 0.3s ease;
}

.logo-placeholder:hover {
    transform: scale(1.05);
}

/* SDG Icons styling */
.sdg-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdg-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Feature boxes styling */
.feature-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

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

/* Navigation styling */
header {
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.1);
}

/* Text improvements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Section spacing */
section {
    position: relative;
}

/* WhatsApp button styling */
#whatsapp-btn {
    animation: pulse 2s infinite;
}

#whatsapp-btn:hover {
    animation: none;
    transform: scale(1.1);
}

/* Mobile menu styling */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Header shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .feature-box {
        margin-bottom: 1rem;
    }
    
    .sdg-icon {
        width: 80px;
        height: 80px;
    }
}

/* Aggressive mobile containment */
* {
    max-width: 100vw;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100vw;
    position: relative;
}

/* Force mobile viewport */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    section, div, img {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Contact section styling */
.contact-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}
