/* Custom CSS for GrowthX Co. */

:root {
    --primary-color: #111827;
    --accent-color: #10B981;
    --secondary-color: #6366F1;
    --light-color: #F9FAFB;
    --dark-color: #1F2937;
    --text-color: #374151;
    --border-color: #E5E7EB;
    
    --font-family: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Utilities */
.text-accent {
    color: var(--accent-color) !important;
}

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

.bg-dark {
    background-color: var(--dark-color) !important;
}

/* Buttons */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

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

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  background: #ffffff !important;   /* force white background */
  color: #212529 !important;        /* dark readable text */
  position: relative !important;
  z-index: 0 !important;
}

/* Remove any pseudo-element overlay completely */
.hero-section::before,
.hero-section::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ensure section text, headings and buttons are dark */
.hero-section,
.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .hero-buttons a,
.hero-section .btn {
  color: #212529 !important;
  -webkit-text-fill-color: #212529 !important; /* for some browsers */
}
.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

/* Sections */
.intro-section,
.features-section,
.services-preview,
.case-study-preview,
.cta-section {
    padding: 80px 0;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Service Tiles */
.service-tile {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--accent-color);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Case Study Preview */
.case-study-preview {
    background: var(--light-color);
}

.metric-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
}

.footer-title {
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 1rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    padding: 0 1rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .intro-section,
    .features-section,
    .services-preview,
    .case-study-preview,
    .cta-section {
        padding: 60px 0;
    }
    
    .feature-card,
    .service-tile {
        padding: 2rem;
    }
    
    .metric-box {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}