/* ========================================
   COPPERLINE SUPPLIES LTD
   Premium Industrial Wholesale Design System
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --copper: #B87333;
    --copper-light: #D4A574;
    --copper-dark: #8B5A2B;
    --steel-grey: #2E2E2E;
    --charcoal: #1A1A1A;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1400px;
    
    /* Motion */
    --ease-smooth: cubic-bezier(0.25, 1, 0.35, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--steel-grey);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 4px;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 3px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 2px;
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: 1.5px;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 1.5rem;
    color: var(--steel-grey);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--copper-dark), var(--copper), var(--copper-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--copper);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 60px;
    transition: height 0.4s var(--ease-smooth);
}

.navbar.scrolled .navbar-logo img {
    height: 50px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.navbar-menu a {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 8px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--copper), var(--copper-light));
    transition: width 0.3s var(--ease-smooth);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-bg-layer-1 {
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1920&q=90');
    transform: translateZ(0);
    filter: blur(2px);
}

.hero-bg-layer-2 {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(184, 115, 51, 0.3));
}

.hero-bg-layer-3 {
    background: radial-gradient(circle at 30% 50%, rgba(184, 115, 51, 0.15), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
    animation: heroFadeIn 1.2s var(--ease-smooth) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--copper-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    animation: fadeSlideUp 1s var(--ease-smooth) 0.3s forwards;
    opacity: 0;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    animation: fadeSlideUp 1s var(--ease-smooth) 0.5s forwards;
    opacity: 0;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--off-white);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    animation: fadeSlideUp 1s var(--ease-smooth) 0.7s forwards;
    opacity: 0;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        transform: translateY(20px);
    }
}

.hero-cta {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 1s var(--ease-smooth) 0.9s forwards;
    opacity: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 18px 45px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s var(--ease-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(184, 115, 51, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--copper);
}

.btn-secondary:hover {
    background: var(--copper);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.4);
}

/* ========================================
   CARDS & GRID
   ======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(184, 115, 51, 0.4));
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 35px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-text {
    color: var(--steel-grey);
    margin-bottom: 20px;
}

.card-link {
    color: var(--copper);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s var(--ease-smooth);
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   FEATURES / VALUES SECTION
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.05), rgba(46, 46, 46, 0.05));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: -1;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.3);
    transition: transform 0.4s var(--ease-smooth);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.feature-text {
    color: var(--steel-grey);
    line-height: 1.8;
}

/* ========================================
   PARALLAX SECTIONS
   ======================================== */

.parallax-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(184, 115, 51, 0.5));
}

.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.parallax-content h2 {
    color: var(--white);
    margin-bottom: 25px;
}

.parallax-content p {
    color: var(--off-white);
    font-size: 1.3rem;
    line-height: 1.8;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: var(--charcoal);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--copper);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    background: var(--off-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    padding: 30px 0;
}

.contact-info-item {
    margin-bottom: 35px;
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info-text p {
    margin: 0;
    color: var(--steel-grey);
}

.map-container {
    grid-column: 1 / -1;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--charcoal);
    color: var(--off-white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: var(--copper);
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-section p {
    color: var(--off-white);
    line-height: 1.8;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--off-white);
    transition: color 0.3s var(--ease-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--copper);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 8px 0;
}

.company-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--ease-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s var(--ease-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-smooth);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        padding: 0 25px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s var(--ease-smooth);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease-smooth);
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 200px;
    animation: pulse 2s var(--ease-smooth) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* ========================================
   COPPER ACCENT LINES
   ======================================== */

.copper-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--copper), var(--copper-light), transparent);
    margin: 60px 0;
    border-radius: 2px;
}

/* ========================================
   PRODUCT CATEGORIES
   ======================================== */

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.category-card:hover .category-image {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: var(--white);
}

.category-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.4s var(--ease-smooth);
}

.category-card:hover .category-title {
    transform: translateY(-10px);
}

.category-description {
    color: var(--off-white);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-smooth);
}

.category-card:hover .category-description {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TIMELINE (for About page)
   ======================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--copper), var(--copper-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-content {
    background: var(--off-white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .hero-cta {
        display: none;
    }
}

