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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #5c8dd6;
    --accent-color: #4CAF50;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stage Management */
.stage {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stage.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stage Progress Indicator */
.stage-progress {
    background: white;
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 999;
}

.progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.progress-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot .dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.progress-dot .label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-weight: 500;
}

.progress-dot.active .dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.2);
}

.progress-dot.active .dot::after {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.progress-dot.active .label {
    color: var(--primary-color);
    font-weight: 700;
}

.progress-dot.completed .dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.progress-dot.completed .dot::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
}

.progress-dot.completed .label {
    color: var(--accent-color);
}

.progress-dot:hover .dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.15);
}

.progress-line {
    width: 60px;
    height: 3px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.progress-dot.completed ~ .progress-line {
    background: var(--accent-color);
}

/* Stage Navigation Buttons */
.stage-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
}

.btn-accent {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}


/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand .logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.3) 0%, rgba(92, 141, 214, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: logoGlow 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.nav-brand .logo img {
    width: 100%;
    height: 100%;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(92, 141, 214, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(92, 141, 214, 0);
    }
}

.nav-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand h1::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    border-radius: 2px;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 400;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.95) 0%, rgba(92, 141, 214, 0.95) 100%),
                url('/static/images/hero-bg.jpg') center/cover;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.png');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-description strong {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.hero-subdescription {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-color);
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* About Section */
.about {
    background-color: white;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.about-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.15);
    border-color: var(--accent-color);
}

.about-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-footer {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.about-footer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Responsive design for about grid */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.features-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background: linear-gradient(to bottom, var(--light-color) 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: scale(1.05);
}

.service-card.featured::before {
    background: var(--accent-color);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card.featured ul li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-card ul li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.service-card.featured ul li::before {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: start;
}

.contact-content .form-container {
    width: 100%;
    max-width: 900px;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-details {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Forms */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(92, 141, 214, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.field-error {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
    font-weight: 500;
}

.field-hint {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: var(--error-color);
    background-color: #fff5f5;
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: var(--success-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
    font-size: 1rem;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

footer p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-note {
    opacity: 0.85;
    font-size: 0.95rem;
    max-width: 600px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-links a.active {
    background: var(--secondary-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .nav-brand .logo {
        width: 45px;
        height: 45px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .nav-brand h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    footer .container {
        gap: 1rem;
    }

    footer p:first-child {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .footer-links a {
        width: 100%;
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: scale(1);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }
    
    /* Stage progress mobile */
    .stage-progress {
        top: 60px;
        padding: 1rem 0;
    }
    
    .progress-dots {
        gap: 0;
    }
    
    .progress-dot .label {
        font-size: 0.7rem;
    }
    
    .progress-dot .dot {
        width: 30px;
        height: 30px;
    }
    
    .progress-dot.active .dot::after {
        width: 12px;
        height: 12px;
    }
    
    .progress-line {
        width: 30px;
        margin: 0 0.25rem;
    }
    
    .stage-navigation {
        flex-direction: column;
    }
    
    .stage-navigation .btn {
        width: 100%;
    }
}

/* Loading Animation */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Icon styles for visual elements */
.icon-feature {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
}

/* Monitoring Examples Section */
.monitoring-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.example-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.example-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.example-detail {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.example-detail strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.privacy-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.privacy-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.privacy-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-highlight strong {
    color: var(--accent-color);
    font-size: 1.2rem;
}
