/* TrueSync Media - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-red: #ff4757;
    --primary-red-dark: #ff3838;
    --primary-red-light: #ff6b7a;
    --accent-blue: #4a90e2;
    --dark-bg: #0f0f0f;
    --dark-bg-light: #1a1a1a;
    --light-bg: #fafafa;
    --white: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f0f0f;
    --text-secondary: #6b6b6b;
    --text-light: #b0b0b0;
    --text-muted: #888888;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max-width: 1400px;
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Container and Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.section {
    padding: var(--section-padding) 0;
}

/* Header Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
}

.nav-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.brand:hover {
    transform: translateX(2px);
}

.brand-symbol {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    transform: rotate(-5deg);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    transition: var(--transition-medium);
}

.brand:hover .brand-symbol {
    transform: rotate(0deg) scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary-red);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary-red);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active .hamburger span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.5);
}

.btn-secondary {
    color: var(--text-primary);
    border: 2px solid rgba(15, 15, 15, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-1px);
}

.btn-outline-white {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Hero Sections */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
    padding: 4rem 0;
}

.hero-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: white;
}

.hero-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,71,87,0.1)"/><stop offset="100%" stop-color="rgba(255,71,87,0)"/></radialGradient></defs><circle cx="50" cy="10" r="10" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.6;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .accent {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-light .hero-text p {
    color: var(--text-secondary);
}

.hero-dark .hero-text p {
    color: rgba(255, 255, 255, 0.8);
}

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

/* Specific hero button centering for contact and about pages */
.hero-contact .hero-buttons,
.hero-about .hero-buttons {
    justify-content: center;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-screen {
    width: 400px;
    height: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.main-screen:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.screen-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        var(--primary-red),
        var(--accent-blue),
        var(--primary-red-light),
        var(--accent-blue)
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.play-icon {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3;
    position: relative;
}

.play-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.floating-card:nth-child(1) {
    top: 20%;
    left: -10%;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 60%;
    right: -15%;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: -5%;
    animation: float 6s ease-in-out infinite 4s;
}

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

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-blue));
    border-radius: var(--border-radius-large);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-medium);
}

.feature-box:hover .feature-icon {
    -webkit-text-fill-color: white;
}

.feature-box h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,71,87,0.1)"/><stop offset="100%" stop-color="rgba(255,71,87,0)"/></radialGradient></defs><circle cx="50" cy="10" r="10" fill="url(%23b)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.stats-container {
    position: relative;
    z-index: 2;
}

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

.stats-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.stats-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-text {
    color: rgba(0, 0, 0, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 71, 87, 0.02);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-red);
}

.feature-list li::before {
    content: '✓';
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-content strong {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature-content span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-top {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.dashboard-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.metric-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.chart-area {
    height: 150px;
    background: var(--light-bg);
    margin: 0 1.5rem 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.chart-area::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 30%, var(--accent-blue) 70%);
    border-radius: 2px;
}

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

.team-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Content Tags */
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.content-tag {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.content-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="c" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,71,87,0.1)"/><stop offset="100%" stop-color="rgba(255,71,87,0)"/></radialGradient></defs><circle cx="50" cy="10" r="10" fill="url(%23c)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

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

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

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

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.footer-brand .brand-symbol {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.bg-light { background: var(--light-bg); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--dark-bg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

/* Animation Classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Responsive Design - Mobile First Approach */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav-wrapper {
        padding: 0 2rem;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        padding: 1rem 0;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Layout Adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    /* Grids */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Iframe containers */
    .iframe-container {
        margin: 2rem 0;
    }
    
    .iframe-container iframe {
        height: 800px !important;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-wrapper {
        padding: 0 1.5rem;
    }
    
    /* Hero Adjustments */
    .hero {
        min-height: 60vh;
    }
    
    .main-screen {
        width: 300px;
        height: 200px;
        transform: none;
    }
    
    .main-screen:hover {
        transform: scale(1.02);
    }
    
    /* Grid Adjustments */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Feature boxes */
    .feature-box {
        padding: 2rem 1.5rem;
        text-align: left;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        height: 60px;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Content tags */
    .content-tags {
        justify-content: center;
    }
    
    .content-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Mobile iframe optimization */
    .iframe-container iframe {
        height: 750px !important;
        min-height: 750px;
    }
    
    /* Dashboard preview mobile optimization */
    .dashboard-preview {
        overflow-x: auto;
    }
    
    .metrics-row {
        min-width: 300px;
    }
    
    /* Campaign showcase mobile optimization */
    .campaign-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .campaign-card {
        max-width: 100%;
    }
    
    .campaign-image {
        height: 200px;
    }
    
    /* Video thumbnail mobile optimization */
    .video-thumbnail .thumbnail-image {
        height: 200px;
        border-radius: 12px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .close-button {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
        height: 60px;
    }
    
    /* Further grid simplification */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .hero-grid {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    /* Feature boxes */
    .feature-box {
        padding: 1.5rem;
    }
    
    /* Team cards */
    .team-card {
        padding: 1.5rem;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    /* Navigation brand */
    .brand img {
        height: 32px !important;
    }
    
    /* Mobile-specific spacing */
    .section-title {
        margin-bottom: 3rem;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    /* Mobile iframe further optimization */
    .iframe-container iframe {
        height: 700px !important;
        min-height: 700px;
    }
    
    /* Mobile navigation adjustments */
    .nav-links {
        padding: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    /* Hero text adjustments */
    .hero-text {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Section title adjustments */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    /* Dashboard mobile optimization */
    .dashboard-top {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 1rem;
    }
    
    .dashboard-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Content text mobile optimization */
    .content-text {
        padding: 0 1rem;
    }
    
    .content-text h3 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .content-text h4 {
        font-size: 1.2rem;
    }
    
    /* Feature list mobile optimization */
    .feature-list li {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-list li::before {
        align-self: flex-start;
        margin-top: 0;
    }
    
    /* Stats card mobile optimization */
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    /* CTA section mobile optimization */
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Campaign showcase mobile optimization */
    .campaign-info {
        padding: 1rem;
    }
    
    .campaign-info h4 {
        font-size: 1rem;
    }
    
    .campaign-info p {
        font-size: 0.9rem;
    }
    
    .campaign-stats {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .campaign-stats span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Floating cards mobile optimization */
    .floating-card {
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 15px;
    }
    
    /* Remove floating animations on mobile for performance */
    .floating-card {
        animation: none !important;
        position: static !important;
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-wrapper {
        padding: 0 0.75rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-grid {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }
    
    .feature-box {
        padding: 1rem;
    }
    
    .team-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .iframe-container iframe {
        height: 350px !important;
        min-height: 350px;
    }
    
    /* Further reduce section padding on very small screens */
    :root {
        --section-padding: 40px;
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch devices optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects that don't work on touch */
    .btn:hover {
        transform: none;
    }
    
    .feature-box:hover {
        transform: none;
    }
    
    .team-card:hover {
        transform: none;
    }
    
    .play-icon:hover {
        transform: none;
    }
    
    .content-tag:hover {
        transform: none;
        box-shadow: none;
    }
    
    .nav-links a:hover {
        transform: none;
    }
    
    .brand:hover {
        transform: none;
    }
    
    /* Increase touch target sizes */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .mobile-menu-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Adjust navbar height in landscape */
    .nav-wrapper {
        height: 60px;
    }
    
    .hero {
        margin-top: 60px;
    }
    
    /* Make video thumbnails smaller in landscape */
    .video-thumbnail .thumbnail-image {
        height: 150px;
    }
    
    .main-screen {
        width: 250px;
        height: 160px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: 80vh;
    }
    
    /* Fix for iOS Safari 100vh issue */
    @media (max-width: 768px) {
        .hero {
            min-height: 100vh;
            min-height: -webkit-fill-available;
        }
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .footer,
    .mobile-menu-toggle,
    .btn {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-grid,
    .two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
} 