/* ========================================
   HERD MANAGER PUBLIC SITE STYLES
   Inspired by Herdwatch but MORE ADVANCED
   ======================================== */

/* Utility: hover lift for related feature cards */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* ========================================
   CSS VARIABLES - Herdwatch Color Palette
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #b5c428;
    --primary-hover: #9fb023;
    --primary-light: rgba(181, 196, 40, 0.1);

    /* Secondary Colors */
    --secondary-color: #4CAF50;
    --secondary-hover: #43A047;

    /* Dark Colors */
    --dark-color: #0A1628;
    --dark-lighter: #1a3a5c;
    --dark-gradient: linear-gradient(135deg, #0A1628 0%, #1a3a5c 100%);

    /* Light Colors */
    --light-color: #F4F6F8;
    --light-darker: #E8ECF0;
    --white: #FFFFFF;

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-light: #B0B8C4;

    /* Gradients */
    --hero-overlay: linear-gradient(135deg, rgba(10, 22, 40, 0.3) 0%, rgba(26, 58, 92, 0.2) 100%);
    --primary-gradient: linear-gradient(135deg, #b5c428 0%, #c9d94a 100%);
    --green-gradient: linear-gradient(135deg, #b5c428 0%, #c9d94a 100%);
    --button-color: #b5c428;
    --button-hover: #9fb023;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(181, 196, 40, 0.3);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
.public-site {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.public-site::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar on html and body for all browsers */
html,
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.public-site * {
    box-sizing: border-box;
}

/* Global container centering */
.public-site .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Ensure all rows are centered */
.public-site .row {
    justify-content: center;
}

.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.public-site h5,
.public-site h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.public-site p {
    color: var(--text-secondary);
}

.public-site a {
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ========================================
   NAVIGATION
   ======================================== */
.public-navbar {
    background: #0A1628;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-navbar .container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.public-navbar.scrolled {
    background: #0A1628;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-logo {
    height: 38px;
    width: auto;
    transition: var(--transition-normal);
}

.public-navbar.scrolled .navbar-logo {
    height: 38px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--primary-color);
}

.public-navbar .nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-normal);
}

.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.public-navbar .nav-link:hover {
    color: var(--white);
}

.public-navbar .nav-link:hover::after {
    width: 80%;
}

.btn-nav {
    padding: 0.6rem 1.5rem !important;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

.public-navbar .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(181, 196, 40, 0.4);
}

.public-navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(181, 196, 40, 0.5);
}

.public-navbar .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.public-navbar .btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-color);
    border-color: var(--white);
}

/* ========================================
   SOLUTIONS DROPDOWN
   ======================================== */
.solutions-dropdown .dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.15em;
    border-top-width: 0.35em;
    border-right-width: 0.35em;
    border-left-width: 0.35em;
    border-top-color: rgba(200, 220, 255, 0.9);
    transition: transform 0.3s ease;
}

.solutions-dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.solutions-menu {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem !important;
    animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solutions-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.solutions-menu .dropdown-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.solutions-menu .dropdown-item:hover,
.solutions-menu .dropdown-item:focus {
    background: rgba(181, 196, 40, 0.12);
    color: #fff;
    transform: translateX(4px);
}

.solutions-menu .dropdown-item:hover i {
    transform: scale(1.15);
}

.solutions-menu .dropdown-item:active {
    background: rgba(181, 196, 40, 0.2);
    color: #fff;
}

/* Mobile responsive dropdown */
@media (max-width: 991.98px) {
    .solutions-menu {
        background: rgba(10, 22, 40, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
        margin-top: 0 !important;
    }

    .solutions-menu .dropdown-item {
        padding: 0.6rem 1rem;
    }
}

/* ========================================
   HERO SECTION WITH VIDEO
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 6rem;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 25s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slide:nth-child(4) {
    animation-delay: 15s;
}

.hero-slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    24% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 4rem 2rem 0;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--white);
}

.hero-badge i {
    color: var(--secondary-color);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color);
    text-shadow: 0 0 20px rgba(181, 196, 40, 0.3);
    filter: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #FFFFFF !important;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 25px rgba(181, 196, 40, 0.5);
    transition: var(--transition-normal);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(181, 196, 40, 0.6);
    color: var(--white);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--dark-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Hero scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    z-index: 10;
    margin-top: 2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: #0A1628;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #b5c428 0%, #c9d94a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--white);
}

.features-section .row {
    justify-content: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Feature Card */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--light-darker);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-image-wrapper {
    overflow: hidden;
    position: relative;
}

.feature-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-image-wrapper::after {
    opacity: 1;
}

.feature-content {
    padding: 1.75rem;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #007DB4 0%, #00A8E8 100%);
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    color: var(--white);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* ========================================
   MOBILE PROMO SECTION
   ======================================== */
.mobile-promo-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.mobile-promo-section .section-title {
    margin-top: 1rem;
}

.mobile-features {
    margin-top: 2.5rem;
}

.mobile-feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.mobile-feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.mobile-feature-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.mobile-feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.mobile-mockup-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.mobile-mockup {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .mobile-promo-section {
        padding: 5rem 0;
    }

    .mobile-mockup-wrapper {
        margin-top: 4rem;
    }

    .mobile-promo-section [data-aos="fade-left"] {
        order: -1;
    }
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.why-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007DB4 0%, #005a8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.why-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.why-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.public-site .testimonial-text {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(181, 196, 40, 0.5);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.public-site .author-info p {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.1rem 3rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 25px rgba(181, 196, 40, 0.4);
    transition: var(--transition-normal);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(181, 196, 40, 0.5);
    color: var(--white);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    border: 2px solid var(--light-darker);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-form .btn-submit {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    width: 100%;
    transition: var(--transition-normal);
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 125, 180, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.public-footer {
    background: var(--dark-color);
}

.footer-silhouettes {
    position: relative;
    height: 100px;
    overflow: visible;
}

.silhouettes-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.cow-silhouettes {
    width: 100%;
    height: 100%;
}

.footer-signup {
    background: var(--dark-color);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signup-form {
    max-width: 500px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-form:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #b5c428;
    box-shadow: 0 0 25px rgba(181, 196, 40, 0.15);
}

.signup-form .form-control {
    background: transparent;
    border: none;
    color: #FFFFFF;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    flex: 1;
    box-shadow: none !important;
}

.signup-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.signup-form .form-control:focus {
    background: transparent;
    border: none;
    color: #FFFFFF;
}

.signup-form .btn-primary {
    background: #b5c428;
    border: none;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    color: #0A1628;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.signup-form .btn-primary:hover {
    background: #FFFFFF;
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px rgba(181, 196, 40, 0.4);
}

.signup-form .btn-primary i {
    transition: transform 0.3s ease;
}

.signup-form .btn-primary:hover i {
    transform: translateX(3px);
}

.footer-main {
    padding: 4rem 0;
}

.footer-brand-text {
    text-decoration: none;
}

.footer-brand-text .brand-text {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.footer-brand-text .brand-accent {
    color: #b5c428;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: #b5c428;
    color: #0A1628;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(181, 196, 40, 0.3);
}

.footer-heading {
    color: #FFFFFF !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: #b5c428;
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links .separator {
    color: var(--text-light);
    opacity: 0.5;
}

/* ========================================
   BUTTONS GLOBAL
   ======================================== */
.public-site .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-normal);
}

.public-site .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 125, 180, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991.98px) {
    .public-navbar .navbar-collapse {
        background: var(--dark-color);
        padding: 1.5rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
    }

    .public-navbar .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .public-navbar .nav-link::after {
        display: none;
    }

    .btn-nav {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .signup-form {
        margin-left: 0;
        max-width: 100%;
    }

    .signup-title {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .features-section,
    .why-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 4rem 0;
    }

    .footer-main {
        padding: 3rem 0;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-content {
        padding: 1.25rem;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form .form-control {
        border-radius: var(--radius-full);
        margin-bottom: 0.75rem;
    }

    .signup-form .btn-primary {
        border-radius: var(--radius-full);
        width: 100%;
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom fade animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CUSTOM TOAST NOTIFICATIONS
   ======================================== */
.custom-toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.custom-toast {
    position: relative;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: all;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.custom-toast.toast-visible {
    transform: translateX(0);
}

.custom-toast.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--toast-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4B5563;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--toast-gradient);
    transform-origin: left;
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 576px) {
    .custom-toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .custom-toast {
        width: 100%;
    }
}