/* ============================================
   MODERN THEME - Consistis.com Professional
   ============================================ */

/* Only apply modern styles when theme-modern is active */
.theme-modern {
    --primary-color: #0f172a;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --background-color: #ffffff;
    --text-color: #1e293b;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
}

/* Hide retro elements in modern theme */
.theme-modern .logo-retro,
.theme-modern .retro-title,
.theme-modern .retro-emphasis,
.theme-modern .retro-decorations,
.theme-modern .retro-stars,
.theme-modern .retro-elements,
.theme-modern .retro-guestbook,
.theme-modern .retro-footer,
.theme-modern .retro-footer-extras {
    display: none !important;
}

/* Modern Base Styles */
.theme-modern * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.theme-modern body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.theme-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern Header */
.theme-modern .site-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.theme-modern .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.theme-modern .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Theme Toggle - Proper Sliding Switch */
.theme-modern .theme-toggle {
    display: flex;
    align-items: center;
}

.theme-modern .switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-modern .switch-input {
    display: none;
}

.theme-modern .switch-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background: #d1d5db; /* Gray when off */
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.theme-modern .switch-input:checked + .switch-slider {
    background: #ec4899; /* Pink when on */
}

.theme-modern .switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-modern .switch-input:checked + .switch-slider .switch-thumb {
    transform: translateX(22px);
}

.theme-modern .switch-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

.theme-modern .switch-slider:hover {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Theme toggle visible in retro mode on Consistis domain only */
.theme-retro .theme-toggle {
    display: flex;
    align-items: center;
}

.theme-retro .switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-retro .switch-input {
    display: none;
}

.theme-retro .switch-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--marine-blue);
    border: 2px solid var(--neon-pink);
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-pink);
}

.theme-retro .switch-input:checked + .switch-slider {
    background: var(--neon-green);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 12px var(--neon-green);
}

.theme-retro .switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--neon-yellow);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px var(--neon-pink);
}

.theme-retro .switch-input:checked + .switch-slider .switch-thumb {
    transform: translateX(22px);
    background: var(--neon-pink);
    box-shadow: 0 0 6px var(--neon-green);
}

.theme-retro .switch-label {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: var(--neon-yellow);
    text-shadow: 1px 1px 0px #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-retro .switch-slider:hover {
    animation: retroGlow 0.5s infinite alternate;
}

@keyframes retroGlow {
    0% { box-shadow: 0 0 8px var(--neon-pink); }
    100% { box-shadow: 0 0 16px var(--neon-pink), 0 0 24px var(--neon-green); }
}

/* Hide theme toggle on Tangrakan domain (always retro) */
.theme-toggle.tangrakan-domain,
.theme-retro .theme-toggle.tangrakan-domain,
.tangrakan-domain.theme-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.theme-modern .main-nav {
    display: flex;
    gap: 2rem;
}

.theme-modern .nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.theme-modern .nav-link:hover {
    color: var(--accent-color);
}

/* Modern Hero Section */
.theme-modern .hero {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.08) 0%, 
        rgba(16, 185, 129, 0.05) 25%, 
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(14, 165, 233, 0.03) 100%
    );
    overflow: hidden;
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
    .theme-modern .hero {
        padding: 3rem 0;
    }
    
    .theme-modern .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .theme-modern .hero-subtitle {
        font-size: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .theme-modern .section-title {
        font-size: 2rem !important;
    }
    
    .theme-modern .section-intro {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
}

.theme-modern .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.theme-modern .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.theme-modern .title-line-1,
.theme-modern .title-line-2 {
    display: block;
}

.theme-modern .title-line-2 {
    background: linear-gradient(45deg, var(--accent-color), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-modern .hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.theme-modern .hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-modern .cta-primary {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.1);
}

.theme-modern .cta-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.theme-modern .cta-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-modern .cta-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-modern .modern-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.15) 0%, 
        rgba(16, 185, 129, 0.12) 25%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(14, 165, 233, 0.06) 75%,
        rgba(16, 185, 129, 0.03) 100%
    );
    z-index: 1;
}

/* Modern Sections */
.theme-modern .value-props {
    padding: 4rem 0;
    background: var(--background-color);
}

.theme-modern .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
}

.theme-modern .section-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.theme-modern .props-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .theme-modern .props-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .theme-modern .prop-card {
        padding: 2rem 1.5rem !important;
    }
    
    .theme-modern .value-props {
        padding: 3rem 0 !important;
    }
    
    .theme-modern .contact-section {
        padding: 3rem 0 !important;
    }
}

.theme-modern .prop-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--light-gray);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-modern .prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.theme-modern .prop-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.theme-modern .prop-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theme-modern .prop-card p {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* Modern Contact Section */
.theme-modern .contact-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.theme-modern .contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.theme-modern .contact-lead {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.theme-modern .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.theme-modern .contact-item {
    font-size: 1.1rem;
    color: var(--text-color);
}

.theme-modern .contact-item strong {
    color: var(--primary-color);
}

/* Modern Footer */
.theme-modern .site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.theme-modern .modern-footer {
    opacity: 0.8;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
    .theme-modern .container {
        padding: 0 1rem;
    }
    
    .theme-modern .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .theme-modern .main-nav {
        gap: 1rem;
    }
    
    .theme-modern .hero-title {
        font-size: 2.5rem;
    }
    
    .theme-modern .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-modern .props-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Modern Animations */
.theme-modern .hero-content {
    animation: fadeInUp 1s ease-out;
}

.theme-modern .prop-card {
    animation: fadeIn 1s ease-out;
}

.theme-modern .prop-card:nth-child(2) {
    animation-delay: 0.2s;
}

.theme-modern .prop-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

