/* Driveline Solutions - Professional Automotive Chemical Styling */

:root {
    --primary-color: #ffffff;
    --secondary-color: #f6f8fa;
    --accent-blue: #0969da;
    --accent-blue-hover: #0550ae;
    --accent-gradient: linear-gradient(135deg, #0969da, #8250df);
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: #d0d7de;
    --bg-red: rgba(207, 34, 46, 0.05);
    --border-red: rgba(207, 34, 46, 0.2);
    --bg-blue: rgba(9, 105, 218, 0.05);
    --border-blue: rgba(9, 105, 218, 0.2);
    --bg-green: rgba(26, 127, 55, 0.05);
    --border-green: rgba(26, 127, 55, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(47, 129, 247, 0.1);
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.accent-dot {
    color: var(--accent-blue);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(47, 129, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 129, 247, 0.3);
}

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

.btn-outline:hover {
    background: var(--accent-blue);
}

/* Base Reveal Animation Classes */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ================== NAVIGATION ================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.logo h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ================== HERO SECTION ================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ================== INTRO SECTION ================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.highlight-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent-gradient);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(47, 129, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: var(--accent-blue);
}

.highlight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-card p {
    color: var(--text-secondary);
}

/* ================== COST COMPARISON ================== */
.bg-dark {
    background-color: var(--secondary-color);
}

.bg-light {
    background-color: var(--primary-color);
}

.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
}

.cost-table th {
    background: rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.cost-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cost-table tr:last-child td {
    border-bottom: none;
}

.cost-table .price {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.cost-table tbody tr {
    transition: var(--transition-fast);
}

.cost-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.cost-conclusion {
    text-align: center;
    font-size: 1.2rem;
}

.cost-conclusion strong {
    color: var(--accent-blue);
}

/* ================== THE SOLUTION ================== */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    flex: 1 1 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(47, 129, 247, 0.1);
}

.flex-full {
    flex-basis: 100%;
    max-width: 800px;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    text-align: left;
    background: linear-gradient(fade, rgba(47, 129, 247, 0.05), transparent);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon svg {
    width: 44px;
    height: 44px;
    color: var(--accent-blue);
}

.flex-full .benefit-icon {
    margin-bottom: 0;
}

.benefit-card h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ================== PROCESS ROWS ================== */
.process-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.process-row:last-child {
    margin-bottom: 0;
}

.process-row.reverse {
    flex-direction: row-reverse;
}

.process-image {
    flex: 1;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(47, 129, 247, 0.2), transparent);
    pointer-events: none;
}

.img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition-normal);
}

.process-row:hover .img-wrapper img {
    transform: scale(1.03);
}

.process-content {
    flex: 1;
    position: relative;
}

.stage-num {
    position: absolute;
    top: -50px;
    left: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
    pointer-events: none;
}

.process-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.process-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* ================== COMPARISON & FOOTER ================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.compare-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.bg-red { background: var(--bg-red); border-bottom-color: var(--border-red); color: #ff7b72; }
.bg-blue { background: var(--bg-blue); border-bottom-color: var(--border-blue); color: #79c0ff; }
.bg-green { background: var(--bg-green); border-bottom-color: var(--border-green); color: #56d364; }

.card-body {
    padding: 2rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.card-body p {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.certificate-wrapper {
    margin-top: 1.5rem;
    max-width: 200px;
}

.certificate-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-contact p {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact .btn {
    margin-top: 1rem;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-row {
        flex-direction: column;
    }
    
    .process-row.reverse {
        flex-direction: column;
    }
    
    .img-wrapper img {
        height: 300px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-normal);
        border-left: 1px solid var(--border-color);
    }

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

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
