/* CloudPilot - Main Stylesheet */

:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1565C0;
    --light-blue: #E3F2FD;
    --accent-blue: #42A5F5;
    --bright-blue: #2196F3;
    --text-dark: #1A1A1A;
    --text-gray: #4A5568;
    --text-light: #718096;
    --border-gray: #E2E8F0;
    --background-light: #F5F9FF;
    --gradient-primary: linear-gradient(135deg, #42A5F5 0%, #1E88E5 50%, #1565C0 100%);
    --gradient-glow: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
}

/* ========= ANIMATIONS ========= */

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(33, 150, 243, 0.3); }
    50% { box-shadow: 0 0 40px rgba(33, 150, 243, 0.6); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-25px) translateX(25px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(33, 150, 243, 0.5);
    }
}

/* ========= BASE STYLES ========= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

/* ========= HEADER - GLASSMORPHISM ========= */

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 24px 0;
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.3));
    object-fit: contain;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

nav a:not(.btn):hover, 
nav a.active {
    color: var(--primary-blue) !important;
}

/* ========= HERO - ANIMATED GRADIENT ========= */

.hero {
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 50%, #E3F2FD 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    padding: 120px 0 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,40 Q150,70 300,40 T600,40 T900,40 T1200,40 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.6"/></svg>');
    background-size: cover;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    max-width: 900px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease 0.4s both, pulse-glow 2s ease-in-out 1s infinite;
}

.hero .btn-secondary {
    animation: fadeInUp 0.8s ease 0.5s both;
}

/* ========= BUTTONS ========= */

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.4);
    animation: glow-pulse 2s infinite;
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    margin-left: 16px;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.3);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* ========= SECTIONS ========= */

section {
    padding: 100px 0;
}

section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

section h2 span {
    color: var(--primary-blue);
    position: relative;
}

section h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.3;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.centered {
    text-align: center;
}

.note {
    margin-top: 32px;
    font-style: italic;
    color: var(--text-light);
}

/* ========= GRID LAYOUT ========= */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ========= CARDS - GLASSMORPHISM + GLOW ========= */

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15),
                inset 0 0 30px rgba(33, 150, 243, 0.03);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(33, 150, 243, 0.2));
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(33, 150, 243, 0.4));
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========= CASES GRID ========= */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 80px 0;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
}

.case-header {
    background: var(--gradient-primary);
    padding: 40px 32px;
    color: white;
}

.case-category {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 12px;
}

.case-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-header p {
    font-size: 1rem;
    opacity: 0.95;
}

.case-body {
    padding: 32px;
}

.case-challenge {
    margin-bottom: 24px;
}

.case-challenge h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-challenge p {
    color: var(--text-gray);
    line-height: 1.7;
}

.case-results {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
}

.result-stat {
    flex: 1;
    text-align: center;
}

.result-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.result-stat .label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========= PRICING TABLE ========= */

.pricing-section {
    background: linear-gradient(180deg, var(--background-light) 0%, #ffffff 100%);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.1);
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.08);
}

th, td {
    padding: 20px 24px;
    text-align: left;
}

th {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

td {
    border-bottom: 1px solid var(--border-gray);
}

tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ========= PROBLEMS SECTION ========= */

.problems-section {
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.centered .container {
    position: relative;
    z-index: 1;
}

.cloud-decoration {
    position: absolute;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 10px 20px rgba(33, 150, 243, 0.2));
}

.cloud-decoration.cloud-1 {
    top: 80px;
    left: 5%;
    width: 220px;
    animation: float 20s infinite ease-in-out;
}

.cloud-decoration.cloud-2 {
    top: 50%;
    right: 5%;
    width: 250px;
    animation: float 25s infinite ease-in-out 5s;
}

.cloud-decoration.cloud-3 {
    bottom: 100px;
    left: 8%;
    width: 180px;
    animation: float 22s infinite ease-in-out 10s;
}

/* ========= FOOTER ========= */

footer {
    background: var(--text-dark);
    color: #ffffff;
    padding: 80px 0 40px;
    text-align: center;
}

footer h2 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 2.25rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

footer .contact-info {
    display: inline-block;
    text-align: left;
    margin: 40px auto 60px;
}

footer .contact-info p {
    margin: 12px 0;
    font-size: 1rem;
}

footer .copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ========= OVER MIJ SECTIE ========= */

.expertise-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 25px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ========= CONTACT FORM ========= */

.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

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

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.btn-submit {
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-buttons .btn-secondary {
    width: 100%;
    max-width: 400px;
    margin-left: 0;
}

.form-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.success-message {
    color: #ffffff;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
}

.error-message {
    color: #ffffff;
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
}
/* ========= RESPONSIVE MOBIEL ========= */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header */
    header {
        padding: 16px 0;
    }

    header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    header nav {
        flex-wrap: wrap;
        gap: 12px !important;
        justify-content: center;
        width: 100%;
    }

    header nav a {
        font-size: 0.9rem;
    }

    header nav .btn {
        padding: 10px 24px !important;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 50px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero .btn,
    .hero .btn-secondary {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 12px auto !important;
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .hero > div > div:last-child {
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 24px !important;
    }

    .hero > div > div:last-child span {
        font-size: 0.85rem !important;
    }

    /* Cloud decorations - verberg op mobiel */
    .cloud-decoration {
        display: none;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Cards */
    .card {
        padding: 28px 24px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    /* Tabel - scroll horizontaal */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.9rem;
    }

    th, td {
        padding: 12px 16px;
        white-space: nowrap;
    }

    th {
        font-size: 0.9rem;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .form-buttons {
        gap: 12px;
    }

    .btn-submit,
    .form-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* Over Mij Sectie */
    #over-mij > div > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    #over-mij h2 {
        font-size: 2rem !important;
    }

    #over-mij h3 {
        font-size: 1.2rem !important;
    }

    #over-mij p {
        font-size: 1rem !important;
    }

    #over-mij > div > div > div:first-child > div {
        width: 200px !important;
        height: 200px !important;
    }

    #over-mij > div > div > div:first-child > div > div {
        font-size: 3.5rem !important;
    }

    .expertise-tag {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    #over-mij > div > div > div:last-child > div:last-child {
        justify-content: center !important;
    }

    /* Footer */
    footer {
        padding: 50px 0 30px;
    }

    footer h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    footer p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    footer .contact-info {
        margin: 30px auto 40px;
    }

    footer .contact-info p {
        font-size: 0.9rem;
    }

    footer .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    footer .copyright {
        margin-top: 40px;
        padding-top: 20px;
        font-size: 0.85rem;
    }
}

/* Extra klein (smartphones in portrait) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 24px 20px;
    }

    footer h2 {
        font-size: 1.4rem;
    }

    /* Over Mij - Extra klein */
    #over-mij h2 {
        font-size: 1.6rem !important;
    }

    #over-mij h3 {
        font-size: 1.1rem !important;
    }

    #over-mij p {
        font-size: 0.95rem !important;
    }

    #over-mij > div > div > div:first-child > div {
        width: 180px !important;
        height: 180px !important;
    }

    .expertise-tag {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}
