/* ============================================
   INDEX.HTML RESPONSIVE STYLES
   Homepage-specific responsive enhancements
   ============================================ */

/* ===== HERO SECTION RESPONSIVE ===== */

/* Hero layout - default desktop */
.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    /* Adjusted for better name/image balance */
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}

/* Founder portrait - responsive sizing */
.portrait-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-portrait {
    width: clamp(220px, 35vw, 320px);
    height: clamp(220px, 35vw, 320px);
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-surface);
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.portrait-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.6) 0%, rgba(139, 92, 246, 0.6) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Tablet - center layout with portrait on top */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .portrait-container {
        order: -1;
        margin: 0 auto var(--space-xl);
    }

    .founder-portrait {
        width: 250px;
        height: 250px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Mobile - stacked vertical layout */
@media (max-width: 768px) {
    .founder-portrait {
        width: 200px;
        height: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .founder-portrait {
        width: 180px;
        height: 180px;
    }
}

/* ===== FLOATING SOCIAL BAR RESPONSIVE ===== */

.floating-social-bar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    /* Increased from md to lg */
}

.floating-social-link {
    width: 50px;
    /* Reduced from 50px (10% reduction) */
    height: 50px;
    min-height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--text-muted);
}

.floating-social-link:hover {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
    color: white;
    transform: translateX(5px);
}

/* Tablet - move to bottom left */
@media (max-width: 1024px) {
    .floating-social-bar {
        left: 20px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
}

/* Mobile - horizontal bottom bar */
@media (max-width: 768px) {
    .floating-social-bar {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
        padding: var(--space-md);
        background: var(--bg-elevated);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
    }

    .floating-social-link {
        width: 44px;
        height: 44px;
    }

    .floating-social-link:hover {
        transform: translateY(-3px);
    }
}

/* ===== STATS GRID RESPONSIVE ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ===== SOCIAL HUB GRID RESPONSIVE ===== */

.social-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@media (max-width: 1280px) {
    .social-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .social-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .social-hub-grid {
        grid-template-columns: 1fr;
    }
}

.social-hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 150px;
}

@media (max-width: 480px) {
    .social-hub-card {
        padding: var(--space-lg);
        min-height: unset;
    }
}

.social-hub-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

/* ===== CONTACT FORM RESPONSIVE ===== */

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ===== SECTION SPACING RESPONSIVE ===== */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: clamp(80px, 15vh, 120px);
    padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }
}

/* ===== DISABLE HEAVY ANIMATIONS ON MOBILE ===== */

@media (max-width: 768px) {

    /* Disable particles canvas on mobile for performance */
    #particles-canvas {
        display: none;
    }

    /* Simplify gradient mesh */
    .gradient-mesh {
        opacity: 0.3;
    }

    /* Reduce animation complexity */
    .founder-portrait {
        animation: none;
    }

    .portrait-glow {
        display: none;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .founder-portrait,
    .portrait-glow {
        animation: none !important;
    }
}

/* ===== FORM FIELD FLOATING LABELS ===== */

.form-field {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 56px;
    padding: 20px 16px 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-field label {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field textarea:focus~label,
.form-field textarea:not(:placeholder-shown)~label {
    top: 8px;
    font-size: 12px;
    color: var(--accent-primary);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 24px;
}