/* ===== CTA Newsletter Section ===== */
.cta-section {
    background: linear-gradient(135deg, #3f51b5 0%, #1a237e 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-section h2 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.cta-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.cta-form label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: #00e5ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

.cta-form select option {
    background: #1a237e;
    color: white;
}

.cta-form button {
    width: 100%;
    padding: 0.85rem 2rem;
    background: #00e5ff;
    color: #1a237e;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.cta-form button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #a5d6a7;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef9a9a;
}

/* Privacy note */
.privacy-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}

.privacy-note a {
    color: #00e5ff;
}

/* ===== Hero Section ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

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

/* ===== Project Cards Enhancement ===== */
.project-highlight {
    border-left: 4px solid #3f51b5;
    padding-left: 1rem;
    margin: 1rem 0;
}

/* ===== Stats Section ===== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3f51b5;
    display: block;
    line-height: 1;
}

[data-md-color-scheme="slate"] .stat-number {
    color: #00e5ff;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    display: block;
}

[data-md-color-scheme="slate"] .stat-label {
    color: #aaa;
}

/* ===== Separator ===== */
.fancy-divider {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.fancy-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, #3f51b5, transparent);
}

.fancy-divider span {
    background: var(--md-default-bg-color, white);
    padding: 0 1rem;
    position: relative;
    font-size: 1.5rem;
}
