@import url("../styles/components/base.css");

/* Animated Background */
.hero {
    position: relative;
    width: 100%;
    min-height: 100dvh; /* safer for mobile */
    height: auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 50%, var(--bg-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, var(--primary-color, #6c32ac)20%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--primary-light, #8b5dcf)20%, transparent 50%),
        radial-gradient(circle at 40% 80%, var(--primary-dark, #4a2276)20%, transparent 50%);
    animation: glow 20s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 12s; }
.particle:nth-child(3) { left: 40%; animation-delay: -4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 60%; animation-delay: -6s; animation-duration: 14s; }
.particle:nth-child(5) { left: 80%; animation-delay: -8s; animation-duration: 16s; }

@keyframes float {
    0%   { transform: translateY(110dvh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-50px) rotate(360deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0%   { filter: drop-shadow(0 0 20px var(--primary-dark)); }
    100% { filter: drop-shadow(0 0 40px var(--primary-light)); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 4vw, 18px) clamp(20px, 6vw, 36px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--primary-dark);
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px var(--primary-color);
}

/* Partners Section */
.partners-section {
    padding: 120px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.partner-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(16px, 5vw, 40px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: fadeInUp 0.8s ease forwards;
}

.partner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    border-color: var(--primary-light);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px var(--primary-dark);
}

.partner-card:hover::before { opacity: 1; }

.partner-logo {
    width: clamp(50px, 15vw, 80px);
    height: clamp(50px, 15vw, 80px);
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 2px solid var(--primary-light);
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.partner-card:hover .partner-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px var(--primary-dark);
}

.partner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.partner-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 4vw, 18px) clamp(20px, 6vw, 36px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.partner-link:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-dark);
}

/* CTA Section */
.cta-section {
    padding: 120px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, transparent 100%);
}

.cta-content { max-width: 800px; margin: 0 auto; }

.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 4vw, 18px) clamp(20px, 6vw, 36px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    transition: all 0.4s ease;
    box-shadow: 0 12px 40px var(--primary-dark);
}

.cta-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-section { padding: 80px 20px; }
    .cta-section { padding: 80px 20px; }
}

@media (max-width: 480px) {
    .hero-content { padding: 10px; }
    .hero-subtitle { font-size: 1rem; }
    .partner-description { font-size: 0.9rem; }
    .partner-card { padding: 16px; }
}

/* Scroll animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .partners-grid {
        display: grid;
        grid-template-columns: 1fr; /* Force single column */
        gap: 20px;
    }
}


.partner-card:nth-child(2) { animation-delay: 0.2s; }
