:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

html {
    height: 100%;
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 60px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Custom hamburger icon */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: rgba(0, 0, 0, 0.55);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Transform to X when expanded */
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Sections */
.hero {
    position: relative;
    top: 0;
    background: var(--primary-gradient);
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    margin: 60px 0 0 0;
    overflow: hidden;
}


#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background: white;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: inline-block;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border: 2px solid var(--accent-color) !important;
    position: relative;
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.pricing-amount {
    color: var(--accent-color);
}

/* Statistics */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Code Preview */
.code-preview {
    border-radius: 12px;
    background: #1e1e1e;
    box-shadow: var(--shadow-lg);
}

.code-preview pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-preview code {
    color: #d4d4d4;
}

/* Background Gradients */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

/* Feature List */
.feature-list li {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.feature-list svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Shadows */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

/* Utility Classes */
.rounded {
    border-radius: 12px !important;
}

.text-primary {
    color: var(--accent-color) !important;
}

/* Footer */
.footer {
    position: relative !important;
    
    p {
        text-wrap: wrap;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .navbar-collapse {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
    }

    .navbar-nav:last-child {
        justify-self: end;
    }

    .hero {
        padding: 10rem 2rem;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        transition: none !important;
    }

    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .navbar-collapse.show {
        height: 200px;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
    }

    .navbar-collapse .navbar-nav:first-child {
        flex-grow: 0;
    }

    .navbar-collapse .navbar-nav:last-child {
        margin-top: auto;
        padding-bottom: 1rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }
}

.footer .row {
    text-align: center;
}

form .btn {
    margin-top: 1.5rem;
}

/* Cookie Consent Bar */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.cookie-consent-message span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background-color: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #5568d3;
}

.cookie-btn-decline {
    border-color: white;
    color: white;
}

.cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 0.75rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-message {
        justify-content: center;
        text-align: center;
    }

    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }

    .cookie-consent-actions button {
        flex: 1;
    }
}