/* VitaInspire - Modern Social Impact AI Website Styles */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --accent-light: #fbc2eb;

    /* Neutral Colors */
    --dark: #1a202c;
    --dark-gray: #2d3748;
    --medium-gray: #4a5568;
    --light-gray: #cbd5e0;
    --light: #f7fafc;
    --white: #ffffff;

    /* Status Colors */
    --success: #48bb78;
    --success-light: #9ae6b4;
    --warning: #ed8936;
    --info: #4299e1;
    --danger: #f56565;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-light: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

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

.cta-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background-image: url('../assets/images/hero-illustration.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--dark);
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 250, 252, 0.70);
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--dark);
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-button-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hero-button-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    background-image: url('../assets/images/stats-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    max-width: 100%;
    width: 100%;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 250, 252, 0.65);
    z-index: 0;
}

.stats-grid {
    position: relative;
    z-index: 1;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Background Images */
#about {
    background-image: url('../assets/images/about-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    max-width: 100%;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.62);
    z-index: 0;
}

#about>* {
    position: relative;
    z-index: 1;
}

#mission {
    background-image: url('../assets/images/mission-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    max-width: 100%;
}

#mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.60);
    z-index: 0;
}

#mission>* {
    position: relative;
    z-index: 1;
}

#products {
    background-image: url('../assets/images/products-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    max-width: 100%;
}

#products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 0;
}

#products>* {
    position: relative;
    z-index: 1;
}

#submit-idea {
    background-image: url('../assets/images/form-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    max-width: 100%;
}

#submit-idea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.68);
    z-index: 0;
}

#submit-idea>* {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   IMPACT HIGHLIGHT
   ============================================ */
.impact-highlight {
    background: var(--gradient-light);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.impact-highlight h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
}

.dual-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.impact-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.impact-box p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.impact-box strong {
    color: var(--dark);
}

/* ============================================
   MISSION CARDS
   ============================================ */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.mission-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-8px);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    font-size: 3rem;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 700;
}

.product-timeline {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-timeline.exploring {
    background: var(--info);
}

.product-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--dark-gray);
    line-height: 1.6;
}

.product-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ============================================
   IDEA SUBMISSION FORM
   ============================================ */
.idea-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

#formMessage.success {
    background: var(--success-light);
    color: #2f855a;
    display: block;
}

#formMessage.error {
    background: #fed7d7;
    color: #c53030;
    display: block;
}

/* ============================================
   JOIN/CAREERS SECTION
   ============================================ */
.join-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite;
}

.join-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
}

.join-section>p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 2rem;
    position: relative;
    z-index: 1;
}

.position-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.position-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.position-salary {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1rem 0;
}

.position-info {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    color: var(--light-gray);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    font-size: 1.5rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: var(--light);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 5rem 2rem 4rem;
    }

    /* Mobile background image optimizations */
    .hero,
    .stats,
    #about,
    #mission,
    #products,
    #submit-idea {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .products-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .impact-highlight {
        padding: 2rem 1.5rem;
    }

    .idea-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}