/*
    main.css
    Rewritten by GitHub Copilot
    Date: 2025-09-03
    Purpose: A complete, clean, and error-free stylesheet for the Boostify website.
*/

/* ================================================
   1. CSS VARIABLES
   ================================================ */
:root {
    /* Enhanced Color Palette */
    --primary-blue: #4a90e2;
    --primary-green: #00c851;
    --dark-blue: #111121;
    --accent-orange: #ff6b35;
    --accent-purple: #8e44ad;
    --text-color: #333;
    --text-gray: #555;
    --text-light: #888;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(74, 144, 226, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.25);

    /* Beautiful Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    --gradient-hero: linear-gradient(135deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(255, 255, 255, 0.98) 30%,
        rgba(74, 144, 226, 0.05) 60%,
        rgba(0, 200, 81, 0.03) 100%);
    --gradient-card: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.9));

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', 'Roboto', sans-serif;
    --text-base-size: 16px;
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.5rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Enhanced Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 15px;
    --border-radius-large: 25px;
    --section-padding: 4rem 0;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 15px 35px var(--shadow-light);
    --box-shadow-hover: 0 25px 50px var(--shadow-medium);
}

/* ================================================
   PAGE LOADING ANIMATION
   ================================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ================================================
   2. BASE STYLES
   ================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base-size);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

ul {
    list-style: none;
}

img {
    width: 600px; /* Average width instead of max-width */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments for average sizing */
@media (max-width: 768px) {
    img {
        width: 90%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    img {
        width: 95%;
        max-width: 400px;
    }
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ================================================
   2. BUTTON COMPONENTS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 160px;
    text-align: center;
}

.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;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border-radius: 50px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    color: var(--white);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-blue);
    border: 2px solid var(--primary-blue);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-blue);
    border-radius: 50px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.2);
}

.btn-outline:hover::after {
    transform: scaleX(1);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    min-width: 120px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 150px;
}

/* Animated Loading Buttons */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Action Button */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-floating:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

/* ================================================
   3. HEADER & NAVIGATION
   ================================================ */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

/* Header slide effect */
.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    transition: transform 0.3s ease;
}

.nav-logo:hover h1 {
    transform: scale(1.05);
}

.nav-logo span {
    font-size: 0.7rem;
    color: var(--text-gray);
    display: block;
    margin-top: -5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-logo:hover span {
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.mobile-menu {
    display: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.8rem 1rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.nav-link.cta-nav {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-link.cta-nav::before {
    display: none;
}

.nav-link.cta-nav::after {
    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;
}

.nav-link.cta-nav:hover::after {
    left: 100%;
}

.nav-link.cta-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
}

.nav-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* ================================================
   4. MOBILE NAVIGATION
   ================================================ */
@media (max-width: 992px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(17, 17, 33, 0.98) 0%, 
            rgba(74, 144, 226, 0.95) 50%, 
            rgba(0, 200, 81, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .mobile-menu.active {
        right: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(17, 17, 33, 0.98) 0%, 
            rgba(74, 144, 226, 0.95) 50%, 
            rgba(0, 200, 81, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: float 10s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        25% { transform: translate(-10px, -5px) scale(1.02) rotate(0.5deg); }
        50% { transform: translate(-5px, -15px) scale(1.01) rotate(-0.5deg); }
        75% { transform: translate(5px, -10px) scale(1.03) rotate(0.3deg); }
    }

    .nav-menu.active {
        right: 0;
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu.active .nav-link {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.6s; }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 80%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.8rem;
        color: var(--white);
        padding: 1.5rem 2rem;
        border-radius: 15px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link::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;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        transform: translateY(-5px) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-link.cta-nav {
        font-size: 1.5rem;
        background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
        border: none;
        animation: pulse 2s infinite;
        margin-top: 1rem;
    }

    @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.7); }
        70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 200, 81, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 200, 81, 0); }
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Show hamburger menu on smaller screens */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
}

/* ================================================
   5. HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(255, 255, 255, 0.98) 30%,
        rgba(74, 144, 226, 0.05) 60%,
        rgba(0, 200, 81, 0.03) 100%);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Animated background with multiple layers */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 81, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    animation: backgroundFloat 12s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(74, 144, 226, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 200, 81, 0.03) 50%, transparent 51%);
    background-size: 80px 80px;
    animation: patternFloat 20s linear infinite;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-10px, -5px) scale(1.02) rotate(0.5deg); }
    50% { transform: translate(-5px, -15px) scale(1.01) rotate(-0.5deg); }
    75% { transform: translate(5px, -10px) scale(1.03) rotate(0.3deg); }
}

@keyframes patternFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-80px) rotate(1deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

.hero-content {
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        var(--primary-blue) 30%, 
        var(--primary-green) 70%, 
        var(--dark-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 200, 81, 0.4);
    color: var(--white);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

/* ================================================
   6. SERVICES OVERVIEW
   ================================================ */
.services-overview {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-green);
}

/* ================================================
   7. TESTIMONIALS
   ================================================ */
.testimonials {
    padding: 5rem 0;
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-blue);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ================================================
   8. CTA SECTION
   ================================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--border-radius);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: var(--h2-size);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-button.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.cta-guarantee p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

/* ================================================
   6. SECTIONS & CARDS
   ================================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--h2-size);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-gray);
}

/* ================================================
   9. FOOTER
   ================================================ */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.footer-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ================================================
   10. UTILITY STYLES & ANIMATIONS
   ================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-green);
}

/* Enhanced Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Different animation types */
.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-scale-up.is-visible {
    opacity: 1;
    transform: scale(1);
}

.animate-rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-rotate-in.is-visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Staggered animations */
.animate-stagger {
    animation-delay: var(--stagger-delay, 0s);
}

/* Bounce effect for buttons and cards */
.animate-bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-bounce-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Floating elements */
.animate-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Glowing effect */
.animate-glow {
    transition: all 0.3s ease;
}

.animate-glow.is-visible {
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3);
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.5s;
}

img.loaded {
    opacity: 1;
}

/* ================================================
   9. COUNTERS & STATS
   ================================================ */
.stats-section {
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ================================================
   10. RIPPLE EFFECT
   ================================================ */
.ripple-effect-target {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================================================
   12. ADVANCED ANIMATION KEYFRAMES
   ================================================ */
@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInScale {
    0% { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.05); 
    }
    70% { 
        transform: scale(0.9); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes rotateIn {
    0% { 
        transform: rotate(-200deg) scale(0.5); 
        opacity: 0; 
    }
    100% { 
        transform: rotate(0deg) scale(1); 
        opacity: 1; 
    }
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 0 5px rgba(46, 213, 115, 0.3); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.6); 
    }
    100% { 
        box-shadow: 0 0 5px rgba(46, 213, 115, 0.3); 
    }
}

@keyframes shimmer {
    0% { 
        background-position: -200px 0; 
    }
    100% { 
        background-position: 200px 0; 
    }
}

@keyframes floatAround {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(20px, -20px) rotate(90deg); 
    }
    50% { 
        transform: translate(-10px, -30px) rotate(180deg); 
    }
    75% { 
        transform: translate(-30px, 10px) rotate(270deg); 
    }
}

@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================================================
   13. ENHANCED INTERACTIVE EFFECTS
   ================================================ */
/* Shimmer effect for buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn-shimmer:hover::before {
    left: 100%;
}

/* Enhanced card hover effects */
.service-card, .testimonial-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover, .testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient animation backgrounds */
.gradient-animation {
    background: linear-gradient(-45deg, #2ed573, #4a90e2, #a55eea, #26de81);
    background-size: 400% 400%;
    animation: backgroundShift 8s ease infinite;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.text-reveal.is-visible::after {
    transform: translateX(100%);
}

/* ================================================
   PREMIUM ENHANCEMENTS - ORIGINAL IMPLEMENTATION
   ================================================ */

/* Premium Glassmorphism Cards */
.service-card, .testimonial-card, .card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before, .testimonial-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before, .testimonial-card:hover::before, .card:hover::before {
    left: 100%;
}

/* Premium Button Hover Effects */
.btn:hover, .cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3);
    filter: brightness(1.1);
}

/* Premium Text Animations */
.hero-title, .section-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green), var(--accent-orange));
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 4s ease-in-out infinite;
}

@keyframes textGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Premium Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Premium Image Effects */
img {
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1) saturate(1);
}

img:hover {
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    transform: scale(1.02);
}

/* Premium Form Styling */
input, textarea, select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

/* Premium Section Transitions */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(74, 144, 226, 0.02) 50%,
        transparent 70%
    );
    animation: sectionShimmer 8s ease-in-out infinite;
}

@keyframes sectionShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Premium Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Premium Scroll Indicators */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

/* Premium Mobile Optimizations */
@media (max-width: 768px) {
    .service-card:hover, .testimonial-card:hover, .card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .btn:hover, .cta-button:hover {
        transform: translateY(-3px) scale(1.02);
    }
    
    /* Reduce motion for mobile */
    * {
        animation-duration: 0.8s !important;
        transition-duration: 0.3s !important;
    }
}

/* Premium Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Premium Focus States */
.btn:focus, .nav-link:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Premium Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --text-color: #e0e0e0;
        --text-gray: #b0b0b0;
        --light-gray: #2a2a2a;
    }
    
    .service-card, .testimonial-card, .card {
        background: rgba(42, 42, 42, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    input, textarea, select {
        background: rgba(42, 42, 42, 0.9);
        color: var(--text-color);
        border-color: rgba(224, 224, 224, 0.2);
    }
}

/* Page-specific Sections */
.image-section {
    padding: 2rem 0;
}

.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
}

.content-image {
    width: 100%;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .content-image {
    transform: scale(1.02);
}

.related-services, .recommended-posts {
    margin: 3rem 0;
    padding: 1.5rem;
    border-radius: 12px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.related-link {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 200px;
}

.related-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.related-link span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.related-link:hover span {
    transform: translateX(3px);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-card {
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.post-card h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Premium Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Apply GPU acceleration to animated elements */
.btn, .cta-button, .service-card, .testimonial-card, .card, .nav-link {
    will-change: transform;
    transform: translateZ(0);
}

/* Premium High Contrast Mode */
@media (forced-colors: active) {
    .btn, .cta-button {
        border: 2px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
    
    .service-card, .testimonial-card, .card {
        border: 2px solid CanvasText;
        background: Canvas;
    }
}
