/* Custom Styles for Altadena Media Landing Page */

:root {
    /* New Color Palette */
    --alice-blue: #e8f1f2;
    --celadon: #b3efb2;
    --cambridge-blue: #7a9e7e;
    --brunswick-green: #31493c;
    --rich-black: #001a23;
    
    /* Updated Theme Colors */
    --primary-color: var(--brunswick-green);
    --secondary-color: var(--cambridge-blue);
    --success-color: var(--celadon);
    --warning-color: #FFBF00;
    --danger-color: #E83F6F;
    --dark-color: var(--rich-black);
    --light-color: var(--alice-blue);
}

/* Global Styles */
body {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
    font-size: 18px;
}

/* Font Classes */
.unna-regular {
    font-family: "Unna", serif;
    font-weight: 400;
    font-style: normal;
}

.unna-bold {
    font-family: "Unna", serif;
    font-weight: 700;
    font-style: normal;
}

.unna-regular-italic {
    font-family: "Unna", serif;
    font-weight: 400;
    font-style: italic;
}

.unna-bold-italic {
    font-family: "Unna", serif;
    font-weight: 700;
    font-style: italic;
}

.inter-regular {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
}

.inter-medium {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
}

/* Headings use Unna */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Unna", serif;
    font-weight: 700;
}

h1, .display-4 {
    font-size: 6rem !important;
    font-size: clamp(3.5rem, 8vw, 6rem);
}

@media (max-width: 768px) {
    h1, .display-4 {
        font-size: 3.5rem !important;
    }
}

/* Logo/Brand uses Unna */
.navbar-brand {
    font-family: "Unna", serif;
    font-weight: 700;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #263d2e;
    border-color: #263d2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(49, 73, 60, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

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

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--alice-blue);
    color: var(--rich-black);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 80px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40,80 C60,20 140,20 160,80 C180,140 100,140 80,100 C60,60 20,60 40,80 Z' fill='%23b3efb2' fill-opacity='0.15'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='150' cy='150' r='80' fill='url(%23gradient)' fill-opacity='0.15'/%3E%3Cdefs%3E%3CradialGradient id='gradient'%3E%3Cstop offset='0%25' stop-color='%237a9e7e'/%3E%3Cstop offset='100%25' stop-color='%23e8f1f2'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E");
    background-position: 20% 30%, 80% 70%;
    background-repeat: no-repeat;
    background-size: 400px 400px, 500px 500px;
    z-index: 1;
    opacity: 0.6;
}




/* Features Section Background */
#features {
    position: relative;
}

#features::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 16%;
    width: 250px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg width='250' height='250' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60,80 Q180,20 180,120 Q180,220 60,180 Q-60,140 60,80' fill='%237a9e7e' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

#features .container {
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card.border-primary {
    border-width: 3px !important;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stars i {
    font-size: 1.2rem;
}

/* How It Works Section */
#how-it-works {
    position: relative;
}

#how-it-works::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 180px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='4' fill='%23b3efb2' fill-opacity='0.15'/%3E%3Ccircle cx='90' cy='25' r='3' fill='%237a9e7e' fill-opacity='0.15'/%3E%3Ccircle cx='150' cy='40' r='3.5' fill='%23b3efb2' fill-opacity='0.15'/%3E%3Ccircle cx='45' cy='90' r='3' fill='%237a9e7e' fill-opacity='0.15'/%3E%3Ccircle cx='120' cy='95' r='4' fill='%23b3efb2' fill-opacity='0.15'/%3E%3Ccircle cx='25' cy='150' r='3' fill='%237a9e7e' fill-opacity='0.15'/%3E%3Ccircle cx='160' cy='140' r='2.5' fill='%23b3efb2' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

#how-it-works .container {
    position: relative;
    z-index: 2;
}

.step-icon {
    position: relative;
}

.step-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 88%;
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    transform: translateY(-50%);
}

.col-lg-4:last-child .step-icon::after {
    display: none;
}

@media (max-width: 991px) {
    .step-icon::after {
        display: none;
    }
}

/* Add-on Cards */
.addon-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.addon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-form .form-control {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-form .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--brunswick-green) 100%);
}

footer .social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-benefits {
        margin-bottom: 2rem;
    }
    
    .pricing-card .price {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Utilities */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(49, 73, 60, 0.25);
    outline: none;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Services Scrolling Text */
.services-scroll-container {
    overflow: hidden;
    width: 100vw;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 20px 0;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

.services-scroll-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: 200%; /* Ensures seamless scroll with duplicated content */
    animation: scrollServices 10s linear infinite;
}

.service-item {
    font-weight: 600;
    color: var(--brunswick-green);
    margin: 0 20px;
    font-size: 4rem;
    text-transform: uppercase;
}

.service-separator {
    color: var(--cambridge-blue);
    font-weight: bold;
    margin: 0 20px;
    font-size: 2.5rem;
}

@keyframes scrollServices {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 768px) {
    .service-item {
        font-size: 1.8rem;
        margin: 0 15px;
    }
    
    .service-separator {
        font-size: 1.8rem;
        margin: 0 15px;
    }
    
    .services-scroll-track {
        animation-duration: 25s;
    }
}

/* Auto-Rotating Carousel */
.carousel-section {
    position: relative;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: calc(200%);
    animation: none;
}

.carousel-slide {
    flex: 0 0 10%;
    padding: 0 8px;
}

.carousel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .carousel-image {
        height: 150px;
    }
    
    .carousel-track {
        animation-duration: 20s;
    }
}

/* Client Logos Section */