/**
 * STYLE.CSS - Main Stylesheet for Reliable Urethane Website
 * Defines colors, typography, animations, and responsive design
 */

:root {
    /* ===== COLOR PALETTE ===== */
    --primary: #004a99;        /* Main blue color */
    --primary-dark: #003366;   /* Darker blue for hover/active states */
    --secondary: #546e7a;      /* Light gray for secondary text */
    --accent: #ff6b00;         /* Orange for highlights and CTAs */
    --text-main: #212529;      /* Main text color (dark gray) */
    --text-muted: #6c757d;     /* Muted text color (lighter gray) */
    --bg-light: #f8f9fa;       /* Light background */
    --bg-white: #ffffff;       /* White background */
    --border-color: #dee2e6;   /* Border color */

    /* ===== TYPOGRAPHY ===== */
    --font-heading: 'Outfit', sans-serif;  /* Font for headings (bold/modern) */
    --font-body: 'Inter', sans-serif;      /* Font for body text (readable) */

    /* ===== SPACING ===== */
    --section-padding: 100px 0;   /* Padding for major sections */
    --container-width: 1200px;    /* Maximum width for content container */

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);      /* Subtle shadow */
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);      /* Medium shadow */
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);    /* Large shadow */

    /* ===== TRANSITIONS ===== */
    --transition: all 0.3s ease;  /* Default smooth transition duration */
}

/* ===== ANIMATIONS ===== */

/* Fade in and slide up animation - used for elements entering from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;                  /* Start invisible */
        transform: translateY(30px); /* Start 30px below */
    }
    to {
        opacity: 1;                  /* End fully visible */
        transform: translateY(0);    /* End at original position */
    }
}

/* Fade in and slide left to right animation - used for left-aligned elements */
@keyframes fadeInLeft {
    from {
        opacity: 0;                   /* Start invisible */
        transform: translateX(-30px); /* Start 30px to the left */
    }
    to {
        opacity: 1;                   /* End fully visible */
        transform: translateX(0);     /* End at original position */
    }
}

/* Fade in and slide right to left animation - used for right-aligned elements */
@keyframes fadeInRight {
    from {
        opacity: 0;                   /* Start invisible */
        transform: translateX(30px);  /* Start 30px to the right */
    }
    to {
        opacity: 1;                   /* End fully visible */
        transform: translateX(0);     /* End at original position */
    }
}

/* Pulsing glow animation - creates expanding ring effect on buttons */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 74, 153, 0.4);     /* Small glow */
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 74, 153, 0);    /* Expand glow, fade out */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 74, 153, 0);       /* Remove glow */
    }
}

/* ===== REVEAL ANIMATION CLASSES ===== */
/* Base reveal class - elements start hidden and become visible on scroll */
.reveal {
    opacity: 0;                              /* Start invisible */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);  /* Smooth animation */
}

/* Active state - triggered by JavaScript when element comes into view */
.reveal.active {
    opacity: 1;  /* Make fully visible */
}

/* Upward slide variation - for vertical animations */
.reveal.up {
    transform: translateY(50px);  /* Start lower on page */
}

/* Leftward slide variation - for horizontal animations from left */
.reveal.left {
    transform: translateX(-50px);  /* Start to the left */
}

/* Rightward slide variation - for horizontal animations from right */
.reveal.right {
    transform: translateX(50px);   /* Start to the right */
}

.reveal.up.active,
.reveal.left.active,
.reveal.right.active {
    transform: translate(0);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Common */
.section {
    padding: 100px 0;
    /* Standardized to 100px top/bottom */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 12px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 74, 153, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e66000);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white-outline {
    background: transparent;
    border-color: white;
    color: white;
}

/* Header Transition */
header.sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-wa:hover {
    transform: scale(1.1) rotate(15deg);
    color: white;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    /* Increased height for better visibility */
    width: auto;
    object-fit: contain;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--primary-dark);
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Liquid Polymer / Polyurethane Animation Background */
.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.7;
    border-radius: 50%;
    animation: floatShape 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    right: -100px;
    opacity: 0.5;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 700px;
    height: 700px;
    background: #0088ff;
    top: 20%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 30s;
    opacity: 0.4;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(100px, 80px) scale(1.2) rotate(90deg); }
    100% { transform: translate(-50px, 120px) scale(0.9) rotate(180deg); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
}

/* Ensure content stays above the background */
.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.05;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-visual {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.poly-anim-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poly-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #ff8c33);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
    z-index: 5;
    animation: pulse-core 3s infinite alternate;
}

.gear-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: rotate-gear 10s linear infinite;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    animation: rotate-orbit 8s linear infinite;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    animation: rotate-orbit 14s linear infinite reverse;
}

.orbit-3 {
    width: 350px;
    height: 350px;
    animation: rotate-orbit 22s linear infinite;
}

.molecule {
    width: 20px;
    height: 20px;
    background: #0088ff;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #0088ff;
}

.molecule-accent {
    background: #00ffcc;
    box-shadow: 0 0 15px #00ffcc;
}

@keyframes pulse-core {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 107, 0, 0.4); }
    100% { transform: scale(1.1); box-shadow: 0 0 50px rgba(255, 107, 0, 0.8); }
}

@keyframes rotate-gear {
    100% { transform: rotate(360deg); }
}

@keyframes rotate-orbit {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Adjust mobile layout styling */
@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

/* Section Accents */
.bg-gradient {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.section-accent {
    position: relative;
    overflow: hidden;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 74, 153, 0.03) 0%, transparent 70%);
    z-index: -1;
}

/* Industrial Catalog Hero Style */
.catalog-hero {
    background-color: var(--primary-dark);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.catalog-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.catalog-info h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.catalog-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 4px;
}

.catalog-meta {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 700;
}

.catalog-visual {
    flex-shrink: 0;
    text-align: right;
}

.catalog-visual img {
    height: 265px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transform: rotate(-5deg);
}

@media (max-width: 992px) {
    .catalog-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-visual {
        display: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    /* Increased margin */
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 74, 153, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 0 0 12px 12px;
}

.card:hover::after {
    width: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Product Cards */
.product-card {
    overflow: hidden;
    padding: 0;
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

/* Info Section (Split) */
.info-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.info-content {
    flex: 1;
}

.info-image {
    flex: 1;
}

.info-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 86px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    display: grid;
    align-items: flex-start;
    margin-bottom: 0px;
}

.footer-links li i {
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .info-split {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 30px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        gap: 20px;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 60px 0;
        /* Reduced padding for mobile */
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .info-split {
        gap: 30px;
    }

    .hero {
        padding: 80px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}