/*
    style.css
    Author: Eric Beckman Holdings LLC Digital Marketing
    Version: 1.0
    Description: A modern, responsive stylesheet with custom theme, animations, and 3D effects.
*/

/* ===================================================================
   01. Custom Properties (Theme)
   =================================================================== */
:root {
    --color-primary: #3b82f6; /* A vibrant blue */
    --color-secondary: #8b5cf6; /* A rich purple */
    --color-dark: #111827; /* Very dark gray, almost black */
    --color-dark-accent: #1f2937; /* Dark gray for cards/sections */
    --color-light: #f3f4f6; /* Light gray for text */
    --color-light-accent: #9ca3af; /* Muted gray for subtitles */
    --color-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --font-primary: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

/* ===================================================================
   02. Base & Reset Styles
   =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-white);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--color-light-accent);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================================================
   03. Reusable Components & Utilities
   =================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #2563eb; /* Darker blue */
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-dark-accent);
}

.btn-secondary:hover {
    background-color: var(--color-dark-accent);
    color: var(--color-white);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-gradient:hover {
    filter: brightness(1.1);
    color: var(--color-white);
}

.btn-gradient-inverse {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-gradient-inverse:hover {
    background: var(--color-light);
    color: var(--color-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================================
   04. Header
   =================================================================== */
.site-header {
    background-color: rgba(17, 24, 39, 0.8); /* var(--color-dark) with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--color-dark-accent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px;
    width: auto;
    filter: brightness(1) invert(1);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-light);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}


/* ===================================================================
   05. Hero Section
   =================================================================== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 40%),
                radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.2), transparent 40%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-white), var(--color-light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

/* 3D Visualizer */
.hero-3d-visualizer {
    perspective: 1500px;
}

.hero-3d-card {
    width: 350px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    animation: float 6s ease-in-out infinite;
    transform: rotateY(25deg) rotateX(10deg);
}

.hero-3d-card:hover {
    transform: rotateY(0) rotateX(0);
}

.hero-3d-card-front,
.hero-3d-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--border-radius);
    background-color: var(--color-dark-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.hero-3d-card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-3d-card-back {
    
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-primary);
}

.hero-3d-logo {
    width: 100%;
    opacity: 0.8;
}

/* ===================================================================
   06. Services Section
   =================================================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--color-dark-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-dark);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-primary);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-description {
    color: var(--color-light-accent);
}

/* ===================================================================
   07. Industry Section
   =================================================================== */
.industry-section {
    padding: 80px 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.industry-card {
    background: var(--color-dark-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(59, 130, 246, 0.2),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-card h4 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.industry-card p {
    position: relative;
    z-index: 1;
}


/* ===================================================================
   08. Testimonials Section
   =================================================================== */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-dark-accent);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    /* In a real slider, this would be updated with JS */
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    text-align: center;
    display: none; /* JS would toggle this */
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-light);
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.author-name {
    font-weight: 600;
    color: var(--color-white);
    display: block;
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-light-accent);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav button {
    background-color: var(--color-dark);
    border: 1px solid var(--color-dark-accent);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-nav button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ===================================================================
   09. Calculator Section
   =================================================================== */
.calculator-section {
    padding: 80px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--color-dark-accent);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    padding: 12px;
    background-color: var(--color-dark);
    border: 1px solid #374151; /* gray-700 */
    border-radius: var(--border-radius);
    color: var(--color-light);
    font-size: 1rem;
}

.calculator-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%239ca3af' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    padding: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
    background: var(--color-dark);
    height: 8px;
    border-radius: 4px;
}
input[type="range"]::-moz-range-track {
    background: var(--color-dark);
    height: 8px;
    border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px; /* (thumb height - track height) / 2 */
    background-color: var(--color-primary);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
}
input[type="range"]::-moz-range-thumb {
    border: none;
    border-radius: 50%;
    background-color: var(--color-primary);
    height: 20px;
    width: 20px;
    border: 2px solid var(--color-white);
}

.calculator-result {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.estimated-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 1rem 0;
}

.result-disclaimer {
    font-size: 0.875rem;
    color: var(--color-light);
    margin-bottom: 2rem;
}

/* ===================================================================
   10. Report Preview Section
   =================================================================== */
.report-preview-section {
    padding: 80px 0;
    background-color: var(--color-dark-accent);
}

.report-preview-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.report-visual {
    perspective: 2000px;
}

.report-3d-wrapper {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: rotateY(-20deg) rotateX(10deg) scale(0.9);
    position: relative;
}

.report-preview-section:hover .report-3d-wrapper {
    transform: rotateY(0) rotateX(0) scale(1);
}

.report-image {
    border-radius: var(--border-radius);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   11. CTA Section
   =================================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--color-light);
    margin-bottom: 2.5rem;
}

/* ===================================================================
   12. Footer
   =================================================================== */
.site-footer {
    background-color: var(--color-dark);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-dark-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column .logo {
    height: 90px;
    margin-bottom: 1rem;
    filter: brightness(1) invert(1);
}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--color-light-accent);
}

.footer-heading {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--color-light-accent);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--color-light-accent);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-dark-accent);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-light-accent);
}

/* ===================================================================
   13. UI Elements (Live Chat)
   =================================================================== */
.live-chat-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition-smooth);
}

.live-chat-icon:hover {
    transform: scale(1.1);
    animation: none;
}

.live-chat-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

/* ===================================================================
   14. Legal & Contact Page Styles
   =================================================================== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--color-dark-accent);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.legal-content,
.contact-section {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-dark-accent);
}
.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-title, .info-title {
    margin-bottom: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--color-dark-accent);
    border: 1px solid #374151;
    border-radius: var(--border-radius);
    color: var(--color-light);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.contact-info-container {
    background-color: var(--color-dark-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.info-block {
    margin-bottom: 2rem;
}
.info-block h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.info-block p {
    color: var(--color-light);
    line-height: 1.6;
}

/* ===================================================================
   15. Animations
   =================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: rotateY(25deg) rotateX(10deg) translateY(0px); }
    50% { transform: rotateY(25deg) rotateX(10deg) translateY(-20px); }
    100% { transform: rotateY(25deg) rotateX(10deg) translateY(0px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ===================================================================
   16. Responsiveness
   =================================================================== */

/* Tablet - Large (max-width: 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .hero-title { font-size: 3.5rem; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin-bottom: 3rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .hero-3d-visualizer { display: none; /* Simplified for tablet */ }
    
    .report-preview-section .container { grid-template-columns: 1fr; }
    .report-content { text-align: center; margin-bottom: 3rem; }
    .report-visual { margin: 0 auto; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .calculator-wrapper { grid-template-columns: 1fr; }
    .calculator-result { margin-top: 2rem; }
}

/* Tablet - Small (max-width: 768px) */
@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .mobile-nav-toggle { display: block; }
    
    /* Styles for an overlay mobile menu (would need JS to toggle a body class) */
    /* .mobile-menu-open .main-nav { display: flex; ... } */

    h1, .hero-title { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .industry-grid { grid-template-columns: 1fr; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info-container { margin-top: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about-text {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    html { font-size: 15px; }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid { grid-template-columns: 1fr; }
    
    .calculator-wrapper { padding: 1.5rem; }

    .testimonial-quote { font-size: 1.1rem; }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .live-chat-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .live-chat-icon svg {
        width: 28px;
        height: 28px;
    }
}