/* ===== Custom Styles for Nyddc ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #3f0a14 0%, #7C2D4A 25%, #a11c3c 50%, #c02748 75%, #e04120 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 138, 112, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 39, 72, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(161, 28, 60, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Decorative Blobs */
.hero-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 176, 158, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 112, 138, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Hero Content Animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 1s ease-out;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Navigation ===== */
.nav-fixed {
    background: rgba(255, 252, 249, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(255, 252, 249, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c02748, #e04120);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.mobile-link:hover {
    border-bottom-color: #f9d0d9;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #c02748 0%, #a11c3c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 39, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 39, 72, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #c02748;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fce7eb;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #c02748;
    background: #fce7eb;
    color: #c02748;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #c02748;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: #a11c3c;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: white;
}

/* ===== Badges ===== */
.badge-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #fce7eb 0%, #f9d0d9 100%);
    color: #c02748;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-light {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c02748, #e04120);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(192, 39, 72, 0.12);
}

.service-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce7eb 0%, #f9d0d9 100%);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, #c02748 0%, #a11c3c 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    color: #c02748;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: white;
}

.service-icon--blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.service-icon--blue .service-icon {
    color: #3b82f6;
}

.service-card:hover .service-icon--blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.service-icon--green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.service-icon--green .service-icon {
    color: #059669;
}

.service-card:hover .service-icon--green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ===== Program Cards ===== */
.program-tab {
    color: #6b7280;
    background: transparent;
}

.program-tab.active {
    background: white;
    color: #c02748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.program-tab:hover:not(.active) {
    color: #c02748;
    background: rgba(252, 231, 235, 0.5);
}

.program-content {
    animation: fadeIn 0.4s ease;
}

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

.program-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
}

.program-card:hover {
    border-color: #f9d0d9;
    box-shadow: 0 10px 40px rgba(192, 39, 72, 0.1);
    transform: translateY(-4px);
}

.program-card--featured {
    border-color: #f9d0d9;
    background: linear-gradient(to bottom, #fff8f7, white);
}

.program-card-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: linear-gradient(135deg, #c02748 0%, #e04120 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-card-level {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c02748;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

/* ===== Input Fields ===== */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field:focus {
    border-color: #c02748;
    box-shadow: 0 0 0 4px rgba(192, 39, 72, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: #f9d0d9;
}

/* ===== Reveal Animations (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .flex.flex-col.sm\:flex-row > * {
        width: 100%;
    }
}
