/* style.css - NEXLIFY STUDIO - PART 1: Core, Variables, Global, Header, Menu, Hero, Footer */

:root {
    /* iOS Inspired Font Stack */
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-display: "SF Pro Display", "SF Pro Icons", var(--font-family-sans);

    /* Light Mode Palette (iOS Inspired) */
    --lm-bg-primary: #f2f2f7;
    --lm-bg-secondary: #ffffff;
    --lm-bg-tertiary: #e5e5ea;
    --lm-text-primary: #000000;
    --lm-text-secondary: #3c3c4399;
    --lm-text-tertiary: #3c3c434d;
    --lm-separator: #3c3c432e;
    --lm-accent-blue: #007aff;
    --lm-accent-green: #34c759;
    --lm-accent-orange: #ff9500;
    --lm-shadow-light: rgba(0, 0, 0, 0.05);
    --lm-shadow-medium: rgba(0, 0, 0, 0.1);

    /* Dark Mode Palette (iOS Inspired) */
    --dm-bg-primary: #000000;
    --dm-bg-secondary: #1c1c1e;
    --dm-bg-tertiary: #2c2c2e;
    --dm-text-primary: #ffffff;
    --dm-text-secondary: #ebebf599;
    --dm-text-tertiary: #ebebf54d;
    --dm-separator: #545458a6;
    --dm-accent-blue: #0a84ff;
    --dm-accent-green: #30d158;
    --dm-accent-orange: #ff9f0a;
    --dm-shadow-light: rgba(255, 255, 255, 0.05);
    --dm-shadow-medium: rgba(255, 255, 255, 0.1);

    /* Universal Variables */
    --bg-primary: var(--dm-bg-primary);
    --bg-secondary: var(--dm-bg-secondary);
    --bg-tertiary: var(--dm-bg-tertiary);
    --text-primary: var(--dm-text-primary);
    --text-secondary: var(--dm-text-secondary);
    --text-tertiary: var(--dm-text-tertiary);
    --separator-color: var(--dm-separator);
    --accent-blue: var(--dm-accent-blue);
    --accent-green: var(--dm-accent-green);
    --accent-orange: var(--dm-accent-orange);
    --shadow-color-light: var(--dm-shadow-light);
    --shadow-color-medium: var(--dm-shadow-medium);

    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 16px;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
    --transition-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Mode Active */
body.light-mode {
    --bg-primary: var(--lm-bg-primary);
    --bg-secondary: var(--lm-bg-secondary);
    --bg-tertiary: var(--lm-bg-tertiary);
    --text-primary: var(--lm-text-primary);
    --text-secondary: var(--lm-text-secondary);
    --text-tertiary: var(--lm-text-tertiary);
    --separator-color: var(--lm-separator);
    --accent-blue: var(--lm-accent-blue);
    --accent-green: var(--lm-accent-green);
    --accent-orange: var(--lm-accent-orange);
    --shadow-color-light: var(--lm-shadow-light);
    --shadow-color-medium: var(--lm-shadow-medium);
}

/* Basic Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) var(--transition-easing),
                color var(--transition-speed) var(--transition-easing);
    overflow-x: hidden;
}
body.menu-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color var(--transition-speed) var(--transition-easing);
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}
.content-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent-blue);
}
.sub-content-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color var(--transition-speed) var(--transition-easing);
}
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}
a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Layout Helpers */
.section-padding { padding: 60px 0; }
.section-padding-small { padding: 40px 0; }
.alt-bg { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.text-content-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(var(--bg-secondary-rgb, 28, 28, 30), 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--separator-color);
    z-index: 1000;
    transition: background-color var(--transition-speed) var(--transition-easing),
                border-color var(--transition-speed) var(--transition-easing);
}
body.light-mode .site-header { --bg-secondary-rgb: 255, 255, 255; }
body.dark-mode .site-header { --bg-secondary-rgb: 28, 28, 30; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-family-display);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-image-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
    border-radius: var(--border-radius-small);
}

.header-right { display: flex; align-items: center; gap: 15px; }

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease;
}
.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}
.theme-toggle-btn svg { width: 22px; height: 22px; }
.sun-icon { display: none; }
.moon-icon { display: block; }
body.light-mode .sun-icon { display: block; }
body.light-mode .moon-icon { display: none; }

/* Hamburger Menu Toggle */
.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    z-index: 1002;
}
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition-speed) var(--transition-easing),
                opacity var(--transition-speed) var(--transition-easing),
                background-color var(--transition-speed) var(--transition-easing);
}
.menu-toggle-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(var(--bg-primary-rgb, 0, 0, 0), 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity var(--transition-speed) var(--transition-easing),
                visibility var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing);
}
body.light-mode .mobile-menu-overlay { --bg-primary-rgb: 242, 242, 247; }
body.dark-mode .mobile-menu-overlay { --bg-primary-rgb: 0, 0, 0; }

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu-content {
    text-align: center;
    width: 90%;
}
.menu-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    display: block;
}
.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-overlay ul li {
    margin-bottom: 1.5rem;
}
.mobile-menu-overlay ul li a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-speed-fast) ease;
}
.mobile-menu-overlay ul li a:hover,
.mobile-menu-overlay ul li a.active {
    color: var(--accent-blue);
}
.contact-link-menu {
    color: var(--accent-blue) !important;
    font-weight: 600;
}
.menu-footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}
.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.hero-container { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out 0.2s backwards;
}
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-medium);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed-fast) var(--transition-easing);
    border: 1.5px solid transparent;
}
.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-blue) 85%, black);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(var(--accent-blue-rgb, 0, 122, 255), 0.3);
}
body.light-mode .btn-primary:hover { --accent-blue-rgb: 0, 122, 255; }
body.dark-mode .btn-primary:hover { --accent-blue-rgb: 10, 132, 255; }

.btn-secondary { /* Specifically for hero buttons over video */
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}
/* Standard secondary button for non-hero sections */
.btn-secondary-standard { /* Use this class for secondary buttons not in hero */
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--separator-color);
}
.btn-secondary-standard:hover {
    background-color: color-mix(in srgb, var(--bg-tertiary) 85%, var(--text-primary) 15%);
    border-color: var(--text-secondary);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

/* Page Title Section (for About, Demo, Premium) */
.page-title-section {
    background-color: var(--bg-secondary);
    padding-top: calc(var(--header-height) + 40px); /* Adjust for fixed header */
    padding-bottom: 40px; /* Reduced padding for title sections */
}
/* .page-main-title & .page-subtitle are defined in Typography section now */


/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 2.5rem 0;
    border-top: 1px solid var(--separator-color);
    font-size: 0.9rem;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.footer-branding .footer-logo {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: block;
}
.footer-branding .team-name { font-weight: 500; color: var(--text-secondary); }
.footer-links a {
    color: var(--text-tertiary);
    margin: 0 0.5rem;
}
.footer-links a:hover { color: var(--accent-blue); }
.copyright { margin-top: 0.5rem; }
/* style.css - NEXLIFY STUDIO - PART 2: Page Content & Basic Components */

/* Services Overview (iOS Card Style) & CSS Icons */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.service-card-ios {
    background-color: var(--bg-secondary);
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--separator-color);
    box-shadow: 0 4px 12px var(--shadow-color-light);
    transition: transform var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
}
.service-card-ios:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--shadow-color-medium);
}
.service-card-ios h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.service-card-ios p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* CSS Icons for Services Section */
.service-card-icon-css {
    font-size: 1rem;
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-portfolio .icon-shape {
    position: absolute;
    background-color: var(--accent-blue);
}
.icon-portfolio .shape-star {
    width: 30px;
    height: 30px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.icon-portfolio .shape-rect {
    width: 10px;
    height: 20px;
    transform: rotate(30deg) translateX(10px) translateY(-5px);
    opacity: 0.6;
    border-radius: 3px;
}
.icon-business .icon-bar {
    background-color: var(--accent-blue);
    width: 8px;
    border-radius: 2px;
    position: absolute;
    bottom: 5px;
}
.icon-business .bar1 { height: 20px; left: 8px; opacity: 0.6; }
.icon-business .bar2 { height: 35px; left: 21px; }
.icon-business .bar3 { height: 28px; left: 34px; opacity: 0.8; }
.icon-custom .icon-gear-outer {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 8s linear infinite;
}
.icon-custom .icon-gear-outer::before,
.icon-custom .icon-gear-outer::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}
.icon-custom .icon-gear-outer::after {
    transform: rotate(90deg);
}
.icon-custom .icon-gear-inner {
    width: 12px;
    height: 12px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.icon-animation .icon-motion-line {
    position: absolute;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    transform-origin: left center;
}
.icon-animation .line1 { width: 20px; --r: -15deg; --ty: -8px; animation: swipeRight 1.5s ease-in-out infinite alternate; }
.icon-animation .line2 { width: 30px; --r: 0deg; --ty: 0px; animation: swipeRight 1.5s ease-in-out 0.2s infinite alternate; }
.icon-animation .line3 { width: 25px; --r: 10deg; --ty: 8px; animation: swipeRight 1.5s ease-in-out 0.4s infinite alternate; }

@keyframes swipeRight {
    0% { transform: scaleX(0.3) rotate(var(--r)) translateY(var(--ty)); opacity: 0.5;}
    100% { transform: scaleX(1) rotate(var(--r)) translateY(var(--ty)); opacity: 1;}
}


/* CTA Banner */
.cta-banner { background-color: var(--bg-tertiary); }
.cta-title { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-text { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.btn-cta-banner { font-size: 1.1rem; padding: 0.85rem 2rem; }

/* NEXLIFY AI Section (Chat UI) */
.nexlify-ai-section {} /* Uses .section-padding and .alt-bg from Part 1 */
.ai-chat-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--separator-color);
    box-shadow: 0 5px 20px var(--shadow-color-light);
    display: flex;
    flex-direction: column;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
}
.ai-chat-window {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ai-chat-window::-webkit-scrollbar { width: 8px; }
.ai-chat-window::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 4px; }
.ai-chat-window::-webkit-scrollbar-thumb { background: var(--separator-color); border-radius: 4px; }
.ai-chat-window::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
.ai-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    align-items: flex-end;
}
.ai-message.ai-message-user {
    margin-left: auto;
    flex-direction: row-reverse;
}
.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.bot-avatar { background-color: var(--accent-blue); color: #fff; }
.user-avatar { background-color: var(--accent-green); color: #fff; }
.ai-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-medium);
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}
.ai-message-bot .ai-bubble {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-top-left-radius: var(--border-radius-small);
}
.ai-message-user .ai-bubble {
    background-color: var(--accent-blue);
    color: #fff;
    border-top-right-radius: var(--border-radius-small);
}
.ai-input-area {
    display: flex;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--separator-color);
    background-color: var(--bg-secondary);
    border-bottom-left-radius: var(--border-radius-large);
    border-bottom-right-radius: var(--border-radius-large);
}
#aiUserInput {
    flex-grow: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--separator-color);
    border-radius: var(--border-radius-medium);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family-sans);
    font-size: 1rem;
    resize: none;
    line-height: 1.4;
    max-height: 100px;
    transition: border-color var(--transition-speed-fast) ease;
}
#aiUserInput:focus { outline: none; border-color: var(--accent-blue); }
#aiSendBtn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-speed-fast) ease;
}
#aiSendBtn:hover { background-color: var(--bg-tertiary); }
#aiSendBtn svg { width: 22px; height: 22px; }
.ai-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}


/* Contact Section */
.contact-info { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; }
.contact-info p { color: var(--text-secondary); }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--separator-color);
    box-shadow: 0 5px 15px var(--shadow-color-light);
}
.form-group { margin-bottom: 1.25rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--separator-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(var(--accent-blue-rgb, 0, 122, 255), 0.2);
}
.btn-form-submit { width: 100%; font-size: 1.1rem; }


/* About Page Specifics */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: center; }
.about-image-column { text-align: center; }
.about-image { max-width: 100%; height: auto; border-radius: var(--border-radius-large); box-shadow: 0 10px 25px var(--shadow-color-medium); }
.image-caption { font-size: 0.9rem; color: var(--text-tertiary); margin-top: 0.75rem; }
.values-section { margin-top: 3rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.value-card { background-color: var(--bg-secondary); padding: 1.5rem; border-radius: var(--border-radius-medium); text-align: center; border: 1px solid var(--separator-color); }
.value-icon { font-size: 2rem; margin-bottom: 0.5rem; } /* Emojis used here */
.value-card h4 { font-size: 1.15rem; margin-bottom: 0.3rem; color: var(--text-primary); }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }
.legal-section .content-title { text-align: left; }
.legal-section ul { list-style-position: inside; padding-left: 1rem; }
.legal-section li { margin-bottom: 0.5rem; }


/* Premium Page Specifics */
.benefit-highlight { background-color: var(--bg-secondary); padding: 2rem; border-radius: var(--border-radius-large); margin-top: 2rem; border: 1px solid var(--separator-color); }
.benefit-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; color: var(--accent-green); } /* Emoji used here */
.benefit-title { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card-premium { background-color: var(--bg-secondary); padding: 1.75rem; border-radius: var(--border-radius-medium); border: 1px solid var(--separator-color); display: flex; flex-direction: column; }
.feature-icon-premium { font-size: 2rem; margin-bottom: 0.75rem; color: var(--accent-orange); } /* Emoji used here */
.feature-card-premium h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card-premium p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; flex-grow: 1; }

/* iOS Style Modal for Invalid Message */
.ios-style-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); backdrop-filter: blur(5px) saturate(150%); -webkit-backdrop-filter: blur(5px) saturate(150%); align-items: center; justify-content: center; }
.ios-style-modal.active { display: flex; }
.ios-modal-content { background-color: var(--bg-secondary); margin: auto; padding: 1.25rem; border-radius: var(--border-radius-large); width: 90%; max-width: 320px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: zoomInModal 0.3s var(--transition-easing); }
@keyframes zoomInModal { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ios-modal-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; }
.ios-modal-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.4; }
.ios-modal-text a { font-weight: 500; }
.ios-modal-button { background: transparent; border: none; border-top: 1px solid var(--separator-color); color: var(--accent-blue); padding: 0.75rem; font-size: 1.05rem; font-weight: 500; cursor: pointer; width: 100%; margin-top: -1.25rem; margin-left: -1.25rem; margin-right: -1.25rem; width: calc(100% + 2.5rem); border-bottom-left-radius: var(--border-radius-large); border-bottom-right-radius: var(--border-radius-large); transition: background-color var(--transition-speed-fast) ease; }
.ios-modal-button:hover { background-color: var(--bg-tertiary); }
/* style.css - NEXLIFY STUDIO - PART 3: Demo Showcase Advanced & Responsive */

/* Demo Showcase Specifics */
.demo-showcase-section .container { display: flex; flex-direction: column; align-items: center; }
.demo-section-title { font-size: 2rem; margin-bottom: 1rem; color: var(--text-primary); }
.light-text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.demo-component-wrapper { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; align-items: flex-start; width: 100%; margin-bottom: 1.5rem; }
.demo-description { font-size: 0.95rem; color: var(--text-tertiary); max-width: 600px; text-align: center; margin-top: 1rem; }

/* Demo: 3D Cube */
.cube-container { width: 200px; height: 200px; perspective: 1000px; margin: 20px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-45deg); transition: transform 0.8s var(--transition-easing); }
.cube:hover { transform: rotateX(-20deg) rotateY(360deg) scale(1.1); }
.cube .face { position: absolute; width: 200px; height: 200px; background-color: rgba(var(--accent-blue-rgb, 0, 122, 255), 0.8); border: 1px solid var(--accent-blue); color: white; font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; text-align: center; backface-visibility: hidden; }
.face.front  { transform: translateZ(100px); } .face.back   { transform: rotateY(180deg) translateZ(100px); } .face.right  { transform: rotateY(90deg) translateZ(100px); } .face.left   { transform: rotateY(-90deg) translateZ(100px); } .face.top    { transform: rotateX(90deg) translateZ(100px); } .face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Demo: Parallax Cards & Glassmorphism */
.parallax-bg-section { background-image: url('images/abstract-bg.jpg'); background-size: cover; background-attachment: fixed; background-position: center; color: #fff; }
.parallax-bg-section .demo-section-title, .parallax-bg-section .demo-description { color: #fff; }
.parallax-card-stack { display: flex; flex-direction: column; gap: -80px; align-items: center; padding-top: 50px; }
.parallax-card { width: 300px; padding: 1.5rem; border-radius: var(--border-radius-medium); box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.5s var(--transition-easing); }
.parallax-card.glassmorphic { background: rgba(var(--bg-secondary-rgb, 28, 28, 30), 0.6); backdrop-filter: blur(15px) saturate(150%); -webkit-backdrop-filter: blur(15px) saturate(150%); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.parallax-card.glassmorphic h3 { color: #fff; } .parallax-card.glassmorphic p { color: rgba(255,255,255,0.8); }
body.light-mode .parallax-card.glassmorphic { --bg-secondary-rgb: 255,255,255; } body.dark-mode .parallax-card.glassmorphic { --bg-secondary-rgb: 20,20,22; }

/* Demo: Advanced Hover & Particles */
.btn-hover-magnetic { position: relative; overflow: hidden; }
.btn-particle-effect { position: absolute; top: 50%; left: 50%; width: 0; height: 0; background-color: rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.btn-hover-magnetic:hover .btn-particle-effect { animation: particleBurst 0.6s ease-out forwards; }
@keyframes particleBurst { 0% { width: 0; height: 0; opacity: 1; } 100% { width: 300px; height: 300px; opacity: 0; } }
.interactive-blob-container { text-align: center; }
.interactive-blob { width: 150px; height: 150px; background: linear-gradient(45deg, var(--accent-blue), var(--accent-orange)); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morph 8s ease-in-out infinite alternate, blobColorShift 12s ease-in-out infinite alternate; margin: 20px auto; transition: transform 0.3s ease; }
.interactive-blob:hover { transform: scale(1.1); }
@keyframes morph { 0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; } 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } }
@keyframes blobColorShift { 0% { background: linear-gradient(45deg, var(--accent-blue), var(--accent-orange)); } 50% { background: linear-gradient(45deg, var(--accent-green), var(--accent-blue)); } 100% { background: linear-gradient(45deg, var(--accent-orange), var(--accent-green)); } }
.interactive-blob-container p { font-size: 0.85rem; color: var(--text-tertiary); }
.link-distort-effect { font-size: 1.5rem; font-weight: 600; color: var(--accent-orange); position: relative; display: inline-block; overflow: hidden; text-decoration: none; }
.link-distort-effect span { display: block; transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); }
.link-distort-effect span:last-child { position: absolute; top: 0; left: 0; transform: translateY(100%); }
.link-distort-effect:hover span:first-child { transform: translateY(-100%); } .link-distort-effect:hover span:last-child { transform: translateY(0); }

/* Demo: Scroll-Triggered Animations & Text Effects */
[data-scroll-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--transition-easing), transform 0.8s var(--transition-easing); }
[data-scroll-reveal].is-visible { opacity: 1; transform: translateY(0); }
.text-reveal-scroll { font-size: 2rem; overflow: hidden; }
.text-reveal-scroll span { display: inline-block; transform: translateY(100%); transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; }
.text-reveal-scroll.is-visible span { transform: translateY(0); }
.text-glitch { font-size: 2.5rem; font-weight: 700; position: relative; color: var(--accent-blue); margin: 20px 0; }
.text-glitch.is-visible::before, .text-glitch.is-visible::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg-primary); }
.text-glitch.is-visible::before { left: 2px; text-shadow: -1px 0 var(--accent-orange); animation: glitch-anim-1 2s infinite linear alternate-reverse; }
.text-glitch.is-visible::after { left: -2px; text-shadow: -1px 0 var(--accent-green), 1px 1px var(--accent-orange); animation: glitch-anim-2 2s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 { 0% { clip-path: inset(10% 0 80% 0); } 20% { clip-path: inset(90% 0 5% 0); } 40% { clip-path: inset(40% 0 45% 0); } 60% { clip-path: inset(15% 0 70% 0); } 80% { clip-path: inset(75% 0 10% 0); } 100% { clip-path: inset(50% 0 30% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(60% 0 20% 0); } 20% { clip-path: inset(5% 0 90% 0); } 40% { clip-path: inset(30% 0 55% 0); } 60% { clip-path: inset(80% 0 5% 0); } 80% { clip-path: inset(25% 0 60% 0); } 100% { clip-path: inset(5% 0 70% 0); } }
.progress-bar-container { width: 80%; max-width: 400px; margin-top: 1.5rem; }
.progress-bar-container p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.progress-bar { width: 100%; height: 10px; background-color: var(--bg-tertiary); border-radius: 5px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background-color: var(--accent-green); border-radius: 5px; transition: width 1.5s var(--transition-easing); }
.progress-bar-container.is-visible .progress-bar-fill { width: 75%; }

/* Demo: iOS UI Components */
.ios-toggle-container { display: flex; align-items: center; gap: 10px; margin: 10px; }
.ios-toggle { position: relative; display: inline-block; width: 50px; height: 28px; }
.ios-toggle-checkbox { opacity: 0; width: 0; height: 0; }
.ios-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-tertiary); transition: .4s; border-radius: 28px; }
.ios-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.ios-toggle-checkbox:checked + .ios-toggle-slider { background-color: var(--accent-green); }
.ios-toggle-checkbox:checked + .ios-toggle-slider:before { transform: translateX(22px); }
.segmented-control { display: inline-flex; background-color: var(--bg-tertiary); border-radius: var(--border-radius-small); padding: 3px; border: 1px solid var(--separator-color); margin: 10px; }
.segmented-control .segment { padding: 0.5rem 1rem; border: none; background-color: transparent; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: calc(var(--border-radius-small) - 2px); transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease; }
.segmented-control .segment.active { background-color: var(--bg-secondary); color: var(--text-primary); box-shadow: 0 1px 3px var(--shadow-color-light); }
.segmented-control .segment:not(.active):hover { color: var(--text-primary); }

/* Demo: Video Showcase */
.video-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.video-card { background-color: var(--bg-secondary); border-radius: var(--border-radius-large); overflow: hidden; box-shadow: 0 8px 25px var(--shadow-color-medium); border: 1px solid var(--separator-color); transition: transform 0.3s var(--transition-easing); }
.video-card:hover { transform: translateY(-8px); }
.video-wrapper { position: relative; padding-top: 56.25%; background-color: var(--bg-tertiary); }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-bottom: 1px solid var(--separator-color); }
.video-title { font-size: 1.25rem; color: var(--text-primary); margin: 1rem 1.25rem 0.5rem; }
.video-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 0 1.25rem 1.25rem; padding-bottom: 0.25rem; }


/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-column { order: -1; margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-intro { font-size: 1rem; }
    .page-main-title { font-size: 2.2rem; }
    .page-subtitle { font-size: 1.1rem; }
    .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .hero-subtitle { font-size: clamp(0.9rem, 4vw, 1.1rem); }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta-group .btn { width: 80%; max-width: 300px; }
    .services-grid, .values-grid, .features-grid { grid-template-columns: 1fr; }
    .demo-component-wrapper { flex-direction: column; align-items: center; }
    .parallax-card-stack { gap: 20px; }
    .parallax-card { transform: none !important; }
    .cube-container { width: 150px; height: 150px;}
    .cube .face { width: 150px; height: 150px; font-size: 1.2rem;}
    .face.front  { transform: translateZ(75px); } .face.back   { transform: rotateY(180deg) translateZ(75px); } .face.right  { transform: rotateY(90deg) translateZ(75px); } .face.left   { transform: rotateY(-90deg) translateZ(75px); } .face.top    { transform: rotateX(90deg) translateZ(75px); } .face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    .contact-form { padding: 1.5rem; }
    .ai-chat-container { height: 70vh; max-height: none; }
             }
