/**
 * Senna Welcome Dashboard Styles
 * Premium magazine-style design
 * WordPress & Elementor Compatible
 */

/* Wrapper for isolation */
.swd-welcome-wrapper {
    /* Create new stacking context */
    position: relative;
    z-index: 1;
    /* Prevent theme margins from affecting us */
    margin: 0;
    padding: 0;
    /* Ensure full width */
    width: 100%;
    max-width: 100%;
}

/* Reset and Base - WordPress/Elementor Compatible */
.swd-welcome-container {
    /* Don't use 'all: initial' as it breaks everything */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #FAF7F2;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    display: block;
    /* Reset common theme overrides */
    line-height: 1.5;
    color: #1B4332;
    font-size: 16px;
}

/* Scoped reset - only affects our elements */
.swd-welcome-container *,
.swd-welcome-container *::before,
.swd-welcome-container *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Magazine Hero Section - Full Viewport */
.swd-magazine-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #FAF7F2;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Image Collage */
.swd-image-collage {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    display: flex;
}

.swd-image-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Image Panels with actual images and SEO text */
.swd-image-panel-1 {
    background-image: url('../images/image-1.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    position: relative;
}

.swd-image-panel-1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(27,67,50,0.3) 0%, rgba(45,106,79,0.2) 50%, transparent 100%);
    z-index: 1;
}

.swd-image-panel-1::after {
    content: 'Private Equity Career London Milan Dubai';
    position: absolute;
    bottom: 10%;
    left: 10%;
    color: rgba(255,255,255,0.02);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.swd-image-panel-2 {
    background-image: url('../images/image-2.jpg');
    background-size: cover;
    background-position: center;
    margin-left: -50px;
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
    position: relative;
}

.swd-image-panel-2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(82,183,136,0.2) 0%, rgba(116,198,157,0.15) 50%, transparent 100%);
    z-index: 1;
}

.swd-image-panel-2::after {
    content: 'Investment Banking São Paulo Barcelona';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(27, 67, 50, 0.03);
    font-size: 12px;
    white-space: nowrap;
}

.swd-image-panel-3 {
    background-image: url('../images/image-3.jpg');
    background-size: cover;
    background-position: center;
    margin-left: -50px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
}

.swd-image-panel-3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(45,106,79,0.3) 0%, rgba(27,67,50,0.4) 100%);
    z-index: 1;
}

.swd-image-panel-3::after {
    content: 'Financial Modeling Skills Global Markets';
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255,255,255,0.02);
    font-size: 10px;
    text-align: right;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient Overlay */
.swd-image-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(250, 247, 242, 0.98) 0%, 
        rgba(250, 247, 242, 0.85) 10%,
        rgba(250, 247, 242, 0.4) 30%,
        rgba(27, 67, 50, 0.05) 60%,
        rgba(27, 67, 50, 0.1) 100%);
    z-index: 2;
}

/* Content Layer */
.swd-hero-content {
    position: relative;
    height: 100%;
    z-index: 10;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

/* Logo */
.swd-logo-mark {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.swd-letter-s {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    color: #1B4332;
    line-height: 1;
    position: relative;
}

.swd-brand-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #1B4332 0%, #52B788 100%);
    border-radius: 50%;
}

.swd-brand-name-small {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1B4332;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Hide mobile elements on desktop */
.swd-mobile-logo-mark,
.swd-mobile-images {
    display: none;
}

/* Headlines */
.swd-headline-large {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 300;
    color: #1B4332;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.swd-headline-large span {
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.swd-subheadline {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1B4332;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0.8;
    padding-left: 4px;
    border-left: 3px solid rgba(27, 67, 50, 0.2);
    margin-bottom: 50px;
}

/* Premium Launch Button */
.swd-launch-button-container {
    margin-top: 10px;
    position: relative;
    z-index: 15;
}

.swd-launch-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #FAF7F2;
    background: #1B4332;
    padding: 24px 60px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.swd-launch-premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(82, 183, 136, 0.2) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.swd-launch-premium-btn::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background: #FAF7F2;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.swd-launch-premium-btn:hover {
    background: #2D6A4F;
    transform: translateX(5px);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.3);
}

.swd-launch-premium-btn:hover::before {
    left: 100%;
}

.swd-launch-premium-btn:hover::after {
    width: 40px;
}

.swd-btn-text {
    position: relative;
    z-index: 2;
}

.swd-launch-note {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #6B7C75;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Editorial Accent */
.swd-accent-number {
    position: absolute;
    bottom: 80px;
    left: 80px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 180px;
    color: rgba(82, 183, 136, 0.08);
    line-height: 1;
    z-index: 5;
}

/* Vertical Line */
.swd-vertical-accent {
    position: absolute;
    left: 650px;
    top: 100px;
    bottom: 100px;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(27, 67, 50, 0.1) 20%,
        rgba(27, 67, 50, 0.15) 50%,
        rgba(27, 67, 50, 0.1) 80%,
        transparent 100%);
}

/* Feature Section */
.swd-features-section {
    padding: 120px 80px;
    background: #FFFFFF;
    position: relative;
}

.swd-section-header {
    max-width: 800px;
    margin-bottom: 80px;
}

.swd-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #52B788;
    margin-bottom: 20px;
}

.swd-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 300;
    color: #1B4332;
    line-height: 1.1;
    margin-bottom: 20px;
}

.swd-section-title em {
    font-weight: 700;
    font-style: italic;
}

/* Feature Cards Grid */
.swd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    background: rgba(27, 67, 50, 0.05);
    padding: 3px;
}

.swd-feature-card {
    background: #FFFFFF;
    padding: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.swd-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(27, 67, 50, 0.1) 50%, transparent 100%);
}

.swd-feature-card:hover {
    background: #FAF7F2;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(27, 67, 50, 0.1);
}

.swd-feature-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: rgba(82, 183, 136, 0.15);
    line-height: 1;
    margin-bottom: 20px;
}

.swd-feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.swd-feature-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #6B7C75;
    line-height: 1.7;
    margin-bottom: 30px;
}

.swd-feature-list {
    list-style: none;
}

.swd-feature-list li {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #2D6A4F;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 67, 50, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.swd-feature-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #52B788;
    border-radius: 50%;
}

/* CTA Section */
.swd-cta-section {
    padding: 150px 80px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    position: relative;
    overflow: hidden;
}

.swd-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.swd-cta-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #95D5B2;
    margin-bottom: 30px;
}

.swd-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 30px;
}

.swd-cta-title em {
    font-weight: 700;
    font-style: italic;
}

.swd-cta-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 50px;
}

.swd-get-started-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1B4332;
    background: #FAF7F2;
    padding: 28px 80px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.swd-get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.swd-get-started-btn:hover {
    transform: scale(1.05);
    background: #FFFFFF;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.swd-get-started-btn:hover::before {
    left: 100%;
}

.swd-cta-subtitle {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* Abstract Decoration */
.swd-abstract-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(149, 213, 178, 0.1) 0%, transparent 70%);
}

/* Floating Launch Button */
.swd-floating-launch {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.swd-floating-launch.visible {
    opacity: 1;
    transform: translateY(0);
}

.swd-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    background: #1B4332;
    color: #FAF7F2;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(27, 67, 50, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.swd-floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D6A4F 0%, #52B788 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.swd-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(27, 67, 50, 0.4);
}

.swd-floating-btn:hover::before {
    opacity: 1;
}

.swd-floating-btn-text {
    position: relative;
    z-index: 2;
}

.swd-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(82, 183, 136, 0.3);
    animation: pulse 2s infinite;
}

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

/* Full Screen Optimizations */
.swd-logged-in .swd-magazine-hero {
    height: 100vh;
    min-height: 600px;
}

.swd-features-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swd-cta-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Elementor & WordPress Theme Compatibility */
.elementor-widget-container .swd-welcome-container,
.entry-content .swd-welcome-container,
.page-content .swd-welcome-container {
    /* Don't break out of container */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* For full-width template pages */
.elementor-section-stretched .swd-welcome-container,
.page-template-full-width .swd-welcome-container {
    width: 100%;
    max-width: 100vw;
}

/* Performance: Use GPU acceleration */
.swd-image-panel,
.swd-launch-premium-btn,
.swd-feature-card {
    transform: translateZ(0);
    will-change: transform;
}

/* FAQ Section for SEO */
.swd-faq-section {
    padding: 80px 40px;
    background: #FFFFFF;
}

.swd-faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.swd-faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #1B4332;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

.swd-faq-title span {
    font-weight: 700;
    background: linear-gradient(135deg, #1B4332 0%, #52B788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.swd-faq-item {
    background: #FAF7F2;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #52B788;
}

.swd-faq-question {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 15px;
    line-height: 1.4;
}

.swd-faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .swd-hero-content {
        padding: 40px;
    }

    .swd-headline-large {
        font-size: 42px;
    }

    .swd-features-grid {
        grid-template-columns: 1fr;
    }

    .swd-features-section, 
    .swd-cta-section {
        padding: 60px 40px;
    }
    
    .swd-accent-number {
        font-size: 120px;
        bottom: 40px;
        left: 40px;
    }
    
    .swd-vertical-accent {
        display: none;
    }
}

/* Top Navigation Bar */
.swd-top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swd-nav-logo {
    display: flex;
    align-items: center;
}

.swd-nav-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #1B4332;
    letter-spacing: 2px;
}

/* Dropdown Menu */
.swd-nav-dropdown {
    position: relative;
}

.swd-dropdown-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #1B4332;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1B4332;
    transition: all 0.3s ease;
}

.swd-dropdown-toggle:hover {
    background: #1B4332;
    color: white;
}

.swd-menu-icon {
    transition: transform 0.3s ease;
}

.swd-dropdown-toggle.active .swd-menu-icon {
    transform: rotate(180deg);
}

.swd-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.swd-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.swd-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #1B4332;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(27,67,50,0.1);
}

.swd-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.swd-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.swd-dropdown-item:hover {
    background: #FAF7F2;
    padding-left: 24px;
}

/* Contact Modal */
.swd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.swd-modal.active {
    display: block;
}

.swd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.swd-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.swd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.swd-modal-close:hover {
    color: #1B4332;
}

.swd-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.swd-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1B4332;
    margin-bottom: 8px;
}

.swd-modal-subtitle {
    color: #666;
    font-size: 16px;
}

/* Contact Form */
.swd-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swd-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1B4332;
}

.swd-form-group input,
.swd-form-group select,
.swd-form-group textarea {
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.swd-form-group input:focus,
.swd-form-group select:focus,
.swd-form-group textarea:focus {
    outline: none;
    border-color: #52B788;
}

.swd-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.swd-form-actions {
    margin-top: 10px;
}

.swd-submit-btn {
    width: 100%;
    padding: 14px;
    background: #1B4332;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.swd-submit-btn:hover {
    background: #2D6A4F;
}

.swd-form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.swd-form-status.success {
    display: block;
    background: #D4EDDA;
    color: #155724;
}

.swd-form-status.error {
    display: block;
    background: #F8D7DA;
    color: #721C24;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Hide desktop nav on mobile */
@media screen and (max-width: 768px) {
    .swd-desktop-nav {
        display: none !important;
    }
}

/* Mobile Header - Clean and Minimal */
.swd-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 16px 20px;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.swd-mobile-header-left {
    display: flex;
    flex-direction: column;
}

.swd-mobile-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #1B4332;
    letter-spacing: 1.5px;
}

.swd-mobile-tag {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Mobile Join Button */
.swd-mobile-join-btn {
    background: #1B4332;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.swd-mobile-join-btn:active {
    transform: scale(0.95);
    background: #2D6A4F;
}

/* LinkedIn-Style Bottom Navigation */
.swd-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.swd-mobile-nav {
    display: none;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
}

.swd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.swd-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.swd-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.swd-nav-item.swd-nav-active {
    color: #1B4332;
}

.swd-nav-item.swd-nav-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #1B4332;
}

/* Central Launch Button */
.swd-nav-launch {
    position: relative;
}

.swd-launch-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27,67,50,0.3);
    margin-bottom: -20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swd-nav-launch:active .swd-launch-icon {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(27,67,50,0.2);
}

.swd-launch-icon svg {
    margin: 0;
}

/* Show mobile elements */
@media screen and (max-width: 768px) {
    .swd-mobile-header {
        display: flex;
    }
    
    .swd-mobile-nav {
        display: grid;
    }
    
    /* Adjust container for fixed header and bottom nav */
    .swd-welcome-container {
        padding-top: 60px;
        padding-bottom: 70px;
    }
    
    /* Hero Section Mobile - Complete Redesign */
    .swd-magazine-hero {
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 20px 40px;
        background: linear-gradient(135deg, #FAF7F2 0%, #F5F0E8 100%);
    }
    
    /* Hide image collage on mobile - takes too much space */
    .swd-image-collage {
        display: none;
    }
    
    .swd-image-overlay {
        display: none;
    }
    
    /* Logo mark simplified for mobile */
    .swd-logo-mark {
        display: none; /* Hide desktop version on mobile */
    }
    
    /* Mobile Premium Images - Three side by side */
    .swd-mobile-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
        height: 100px;
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .swd-mobile-image {
        position: relative;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    
    .swd-mobile-image-1 {
        background-image: url('../images/image-1.jpg');
        border-radius: 12px 0 0 12px;
    }
    
    .swd-mobile-image-2 {
        background-image: url('../images/image-2.jpg');
    }
    
    .swd-mobile-image-3 {
        background-image: url('../images/image-3.jpg');
        border-radius: 0 12px 12px 0;
    }
    
    /* Add subtle overlay for better text contrast */
    .swd-mobile-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, 
            rgba(27, 67, 50, 0.1) 0%, 
            rgba(27, 67, 50, 0.2) 100%);
        pointer-events: none;
    }
    
    /* Mobile Logo Mark - Same style as desktop but sized for mobile */
    .swd-mobile-logo-mark {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px; /* Reduced spacing */
    }
    
    .swd-mobile-letter-s {
        font-family: 'Playfair Display', serif;
        font-size: 36px; /* Slightly smaller */
        font-weight: 700;
        color: #1B4332;
        line-height: 1;
    }
    
    .swd-mobile-brand-dot {
        width: 10px;
        height: 10px;
        background: linear-gradient(135deg, #1B4332 0%, #52B788 100%);
        border-radius: 50%;
    }
    
    .swd-mobile-brand-name {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 600;
        color: #1B4332;
        letter-spacing: 3px;
        text-transform: uppercase;
        opacity: 0.7;
    }
    
    .swd-hero-content {
        position: relative;
        padding: 0;
        text-align: left;
        z-index: 10;
        max-width: 100%;
    }
    
    .swd-headline-large {
        font-size: 38px;
        line-height: 1.05;
        margin-bottom: 12px;
        font-weight: 700;
    }
    
    .swd-headline-large span {
        background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .swd-subheadline {
        font-size: 14px;
        line-height: 1.4;
        color: #666;
        margin-bottom: 20px;
    }
    
    .swd-subheadline br {
        display: none; /* Remove line breaks on mobile */
    }
    
    .swd-launch-button-container {
        text-align: left;
    }
    
    .swd-launch-premium-btn {
        width: 100%;
        padding: 16px;
        font-size: 15px;
        font-weight: 600;
        background: #1B4332;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .swd-launch-note {
        font-size: 12px;
        color: #888;
        text-align: center;
    }
    
    /* Features Mobile */
    .swd-features-section {
        padding: 40px 20px;
    }
    
    .swd-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }
    
    .swd-feature-card {
        padding: 30px 20px;
    }
    
    .swd-section-title {
        font-size: 28px;
    }
    
    /* CTA Section Mobile */
    .swd-cta-section {
        padding: 60px 20px;
    }
    
    .swd-cta-title {
        font-size: 32px;
    }
    
    .swd-get-started-btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Modal Mobile */
    .swd-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 85vh;
        margin-top: 20px;
    }
    
    .swd-modal-title {
        font-size: 24px;
    }
    
    .swd-form-group input,
    .swd-form-group select,
    .swd-form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Hide decorative elements on mobile */
    .swd-accent-number,
    .swd-vertical-accent {
        display: none;
    }
    
    /* FAQ Mobile Styles */
    .swd-faq-section {
        padding: 50px 20px;
    }
    
    .swd-faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .swd-faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .swd-faq-item {
        padding: 20px;
    }
    
    .swd-faq-question {
        font-size: 16px;
    }
    
    .swd-faq-answer p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Small Mobile Optimization */
@media screen and (max-width: 480px) {
    .swd-headline-large {
        font-size: 32px;
    }
    
    .swd-subheadline {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .swd-mobile-images {
        height: 80px;
        margin-bottom: 10px;
    }
    
    .swd-mobile-letter-s {
        font-size: 32px;
    }
    
    .swd-feature-title {
        font-size: 20px;
    }
    
    .swd-feature-description {
        font-size: 14px;
    }
    
    .swd-section-title {
        font-size: 24px;
    }
    
    .swd-cta-title {
        font-size: 26px;
    }
    
    /* Stack logo elements */
    .swd-logo-mark {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Better mobile card styling */
    .swd-feature-card {
        background: #FFFFFF;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .swd-dropdown-toggle,
    .swd-dropdown-item,
    .swd-launch-premium-btn,
    .swd-get-started-btn,
    .swd-submit-btn {
        min-height: 44px; /* iOS touch target size */
    }
    
    .swd-modal-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .swd-magazine-hero {
        min-height: auto;
        padding: 60px 20px;
    }
    
    .swd-image-collage {
        height: 100%;
        opacity: 0.2;
    }
    
    .swd-hero-content {
        padding: 40px 20px;
    }
    
    .swd-headline-large {
        font-size: 32px;
    }
}

/* High resolution mobile screens */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px),
       screen and (min-resolution: 192dpi) and (max-width: 768px) {
    .swd-image-panel-1,
    .swd-image-panel-2,
    .swd-image-panel-3 {
        background-size: cover;
        background-position: center;
    }
}

/* Native App-like Enhancements */
@media screen and (max-width: 768px) {
    /* Smooth scrolling for mobile */
    .swd-welcome-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Prevent text selection on buttons for native feel */
    .swd-nav-item,
    .swd-launch-premium-btn,
    .swd-get-started-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Add subtle press effect to all buttons */
    .swd-launch-premium-btn:active,
    .swd-get-started-btn:active,
    .swd-submit-btn:active {
        transform: scale(0.98);
    }
    
    /* Improve mobile nav interactions */
    .swd-nav-item:active {
        background: rgba(27, 67, 50, 0.05);
        border-radius: 8px;
    }
    
    /* Make cards swipeable-looking */
    .swd-feature-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .swd-feature-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    
    /* Add iOS-style safe area padding */
    .swd-mobile-nav {
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }
    
    /* Status bar safe area for header */
    .swd-mobile-header {
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .swd-modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
    }
    
    .swd-welcome-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print styles for mobile */
@media print {
    .swd-top-nav,
    .swd-image-collage,
    .swd-modal {
        display: none !important;
    }
    
    .swd-welcome-container {
        background: white !important;
    }
}