/* AGP Concrete Tools - Premium WOW Style */

:root {
    --agp-red: #da251d; /* Adjusting closer to AGP red */
    --agp-dark-red: #bd1a13;
    --text-dark: #111111;
    --text-gray: #6e6e73;
    --text-light: #f5f5f7;
    --bg-main: #ffffff;
    --bg-light: #f5f5f7;
    --bg-dark: #1d1d1f;
    --nav-height: 70px;
    --border-radius: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.agp-red { color: var(--agp-red); }
.text-white { color: white !important; }
.text-gray { color: var(--text-gray) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: white; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    letter-spacing: -0.015em;
    font-weight: 800;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--agp-red);
    color: white;
    border: 2px solid var(--agp-red);
}

.btn-primary:hover {
    background-color: var(--agp-dark-red);
    border-color: var(--agp-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(218, 37, 29, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

/* Pulse Animation for Contact CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(218, 37, 29, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(218, 37, 29, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(218, 37, 29, 0);
    }
}
.pulse-btn {
    animation: pulse 2s infinite;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--agp-red);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--agp-red);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100vw;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-list a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(100px + var(--nav-height));
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    transform: scale(1.05); /* slightly scaled for parallax */
}

.hero-bg-dark {
    filter: brightness(0.25) grayscale(0.2); /* Dark and slightly desaturated background */
    z-index: 1;
}

.hero-bg-bright {
    filter: brightness(1.2) contrast(1.1); /* Bright, vivid version */
    z-index: 2;
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="black"/><circle cx="12" cy="12" r="4" fill="transparent"/><path d="M12 8V2" stroke="transparent" stroke-width="2"/><path d="M16 8.5L20.5 4" stroke="transparent" stroke-width="2"/><path d="M17.5 12H23" stroke="transparent" stroke-width="2"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"/><circle cx="12" cy="12" r="3" fill="white"/><rect x="11" y="2" width="2" height="6" fill="white"/><g transform="rotate(45 16 8.5)"><rect x="15" y="4" width="2" height="6" fill="white"/></g><rect x="17.5" y="11" width="5.5" height="2" fill="white"/></svg>');
    mask-size: 300px;
    -webkit-mask-size: 350px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: -500px -500px; /* Hide initially */
    -webkit-mask-position: -500px -500px;
    pointer-events: none;
    transition: -webkit-mask-position 0.1s ease-out, mask-position 0.1s ease-out;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.05;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #e0e0e0;
    margin: 0 auto 40px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.product-img-box {
    width: 100%;
    height: 300px;
    display: block;
    margin-bottom: 0;
    transform: translateZ(20px);
    overflow: hidden;
    position: relative;
    background: #fcfcfc;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img-box img {
    transform: scale(1.08); /* slight smooth zoom on hover */
}

.product-info {
    padding: 40px 30px;
    width: 100%;
    transform: translateZ(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom if texts align differently */
}

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-height: 550px;
    object-fit: cover;
    background: white;
}

.variants {
    margin: 30px 0;
}

.variants h4 {
    margin-bottom: 15px;
}

.variant-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Product Showcase */
.product-showcase {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-showcase.reverse {
    flex-direction: row-reverse;
}

.showcase-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: white;
    overflow: hidden;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.showcase-info {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.showcase-info ul {
    margin-bottom: 30px;
    color: var(--text-gray);
}

.showcase-info li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.showcase-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--agp-red);
    font-weight: bold;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--agp-red);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-contact p {
    color: #a1a1a6;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    font-size: 0.9rem;
}

/* Global Animations - Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-container,
    .split-layout,
    .product-showcase,
    .product-showcase.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .showcase-info,
    .showcase-img {
        padding: 40px 20px;
    }

    .showcase-info ul {
        text-align: left;
        display: inline-block;
        margin: 0 auto 30px;
    }
}
