/* 
  PillLearn Premium Design System
  Theme: Light, Clean, Professional
*/

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --accent: #00f2ff;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --bg-light: #f5f5f7;
    --white: #ffffff;
    --error-red: #ff3b30;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --card-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.nav-logo img {
    height: 100px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 5% 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 500px;
}

.hero-comp {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrapper {
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.hero-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-logo-wrapper.pilllearn {
    z-index: 2;
    transform: translateX(-60px) rotate(-5deg);
    animation: float-main 6s ease-in-out infinite;
}

.hero-logo-wrapper.error2learn {
    z-index: 1;
    transform: translateX(60px) rotate(5deg);
    animation: float-secondary 7s ease-in-out infinite alternate;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* New Animations */
@keyframes float-main {
    0%, 100% { transform: translate(-60px, 0) rotate(-5deg); }
    50% { transform: translate(-70px, -20px) rotate(-2deg); }
}

@keyframes float-secondary {
    0% { transform: translate(60px, 10px) rotate(5deg); }
    100% { transform: translate(80px, -15px) rotate(8deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--accent) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, var(--primary) 1.5px, transparent 1.5px);
    background-size: 100px 100px;
    opacity: 0.3;
}

/* CTA Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Sections */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-tag {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--card-radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Solutions Section */
.solutions {
    background: var(--bg-light);
    padding-bottom: 140px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.solution-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.solution-brand {
    padding: 40px;
    padding-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-brand img {
    height: 400px;
    width: 400px;
    object-fit: contain;
}

.solution-content {
    padding: 40px;
    padding-top: 0px;
    flex-grow: 1;
}

.solution-list {
    list-style: none;
    margin: 20px 0 30px;
}

.solution-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.solution-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Footer & Contact */
footer {
    background: var(--white);
    padding: 80px 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: var(--transition);
}

.email-link:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

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

    .hero-image-container {
        height: 350px;
        margin-top: 40px;
    }

    .hero-logo-wrapper {
        width: 180px;
        height: 180px;
        padding: 15px;
        border-radius: 25px;
    }

    .hero-logo-wrapper.pilllearn {
        transform: translateX(-35px) rotate(-5deg);
    }

    .hero-logo-wrapper.error2learn {
        transform: translateX(35px) rotate(5deg);
    }

    @keyframes float-main {
        0%, 100% { transform: translate(-35px, 0) rotate(-5deg); }
        50% { transform: translate(-45px, -15px) rotate(-2deg); }
    }

    @keyframes float-secondary {
        0% { transform: translate(35px, 10px) rotate(5deg); }
        100% { transform: translate(45px, -10px) rotate(8deg); }
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}