/* CSS Variables for Dynamic Styling */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #4facfe;
    --accent-color: #28a745;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 25%, #2c5364 50%, #1a1f3a 75%, #0f0c29 100%);
    --section-bg: linear-gradient(135deg, rgba(15, 32, 39, 0.9) 0%, rgba(32, 58, 67, 0.85) 100%);
    --card-bg: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.15) 100%);
    --border-glow: rgba(79, 172, 254, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--section-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 70%);
    animation: sectionGlow 8s ease-in-out infinite;
}

@keyframes sectionGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.cta-buttons {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn.secondary {
    background: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00f2fe 100%);
    color: #fff;
}

.btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

.btn.admin {
    background: var(--accent-color);
    color: #fff;
}

.btn.admin:hover {
    background: #218838;
}

/* Themed Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover,
a:focus {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    transform: translateX(2px);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00f2fe 100%);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Specific to form/contact links */
.contact-info a,
.guarantee a {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(79, 172, 254, 0.1);
    backdrop-filter: blur(5px);
}

.contact-info a:hover,
.guarantee a:hover {
    background: rgba(79, 172, 254, 0.2);
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    border: 2px solid var(--border-glow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.5);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(0, 242, 254, 0.25) 100%);
}

.stats {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25) 0%, rgba(0, 242, 254, 0.2) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    border: 2px solid rgba(79, 172, 254, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.5);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.8);
}

.stat-item p {
    color: var(--text-secondary);
}

/* Challenge Section */
.challenge-solution {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.challenge, .solution {
    flex: 1;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-glow);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.challenge ul, .solution ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

/* Solution Section */
.solution-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-item {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.8) 0%, rgba(79, 172, 254, 0.2) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-glow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.5);
    border-color: rgba(79, 172, 254, 0.7);
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9) 0%, rgba(79, 172, 254, 0.3) 100%);
}

.solution-item span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(79, 172, 254, 0.5));
}

.solution-item p {
    color: var(--text-secondary);
}

/* Testimonials Section */
.testimonial-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-glow);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.testimonial-item p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.testimonial-item cite {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Pricing Section */
.pricing-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-glow);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.pricing-item.popular {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.pricing-item h3 {
    margin-bottom: 0.5rem;
}

.pricing-item .price {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.pricing-item ul {
    list-style: disc;
    margin-left: 1.5rem;
    text-align: left;
    color: var(--text-secondary);
}

.guarantee {
    margin-top: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(15, 32, 39, 0.95) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    color: var(--text-primary);
}

.guarantee p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Request Demo Section */
#request-demo {
    background: var(--section-bg);
    border: 1px solid var(--border-glow);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-glow);
}

.contact-item {
    flex: 1;
    text-align: center;
    color: var(--text-primary);
}

.contact-item span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-item p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: rgba(51, 51, 51, 0.95);
    color: var(--text-primary);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

.footer-logo,
.footer-contact,
.footer-solutions {
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.footer-solutions ul {
    list-style: none;
}

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

.footer-copyright {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Admin Login */
.admin-login {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1001;
}

/* Admin Panel Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.modal-content {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    position: relative;
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00f2fe 100%);
    color: #fff;
}

.tab-content {
    margin-bottom: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features,
    .stats,
    .challenge-solution,
    .solution-items,
    .testimonial-items,
    .pricing-items,
    .contact-info,
    .form-row {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        margin: 0.5rem auto;
    }

    .hero {
        padding-top: 1rem;
    }

    .contact-info {
        flex-direction: column;
    }
}