/* ========================================
   QAMill Website - Professional Styling
   ======================================== */

:root {
    --primary-color: #00D084;
    --secondary-color: #1E3A5F;
    --accent-color: #FF6B6B;
    --light-bg: #F8FAFB;
    --dark-bg: #0F1419;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --success: #00D084;
    --warning: #FFB84D;
    --error: #FF6B6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #FFFFFF;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

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

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: #00B86F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 208, 132, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   Introduction Section
   ======================================== */

.introduction {
    padding: 80px 0;
    background: var(--light-bg);
}

.introduction h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.intro-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.1);
}

.intro-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.intro-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat h4 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 5px;
}

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

/* ========================================
   Problem Statements Section
   ======================================== */

.problem-statements {
    padding: 80px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.problem-card {
    background: linear-gradient(135deg, #F8FAFB 0%, #F0F0F0 100%);
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.problem-stat {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px;
}

.problem-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.problem-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.source {
    display: block;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

/* ========================================
   Slideshow Section
   ======================================== */

.slideshow-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.slideshow-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.slideshow-container {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.slide {
    display: none;
    animation: fadeIn 0.5s;
    min-height: 600px;
}

.slide.active {
    display: block;
}

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

.fade {
    animation: fade 0.5s ease-in-out;
}

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

.slide-content {
    height: 100%;
    overflow-y: auto;
    max-height: 600px;
}

.slide-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

.slide-body {
    padding: 40px;
}

.slide-body h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.slide-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.slide-text p {
    margin-bottom: 15px;
}

.slide-text ul {
    margin: 20px 0 20px 25px;
}

.slide-text li {
    margin-bottom: 8px;
}

/* Opportunity Metrics */
.opportunity-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.metric-block {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.metric-block h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.metric-block p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background: var(--light-bg);
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    font-weight: bold;
    color: var(--secondary-color);
}

table .yes {
    color: var(--success);
    font-weight: bold;
}

table .no {
    color: var(--error);
    font-weight: bold;
}

table .partial {
    color: var(--warning);
    font-weight: bold;
}

/* Value Props */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.value-prop {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.value-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.value-prop h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.value-prop p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Case Study */
.case-study {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.case-study-section {
    margin-bottom: 25px;
}

.case-study-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-study-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-metric {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.result p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Business Model */
.business-model {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pricing-tier {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-tier.highlighted {
    border-color: var(--primary-color);
    background: rgba(0, 208, 132, 0.05);
    transform: scale(1.05);
}

.pricing-tier h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.pricing-tier ul {
    list-style: none;
    text-align: left;
    margin: 15px 0;
}

.pricing-tier li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.traction {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.traction ul {
    margin: 15px 0 0 0;
    list-style: none;
}

.traction li {
    padding: 8px 0;
    color: var(--text-secondary);
}

/* Slideshow Controls */
.slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-bg);
    flex-wrap: wrap;
    gap: 10px;
}

.slide-button {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background: #00B86F;
    transform: translateY(-2px);
}

.slide-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex: 1;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 6px;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.zoom-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: var(--light-bg);
    border-radius: 4px;
}

.zoom-level {
    min-width: 50px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Deployment Section
   ======================================== */

.deployment {
    padding: 80px 0;
    background: white;
}

.deployment h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.deployment-option {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.deployment-option h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.deployment-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.step-number {
    background: var(--primary-color);
    color: var(--dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63384;
}

.requirements {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
}

.requirements h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

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

.requirement {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.requirement h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.requirement ul {
    list-style: none;
}

.requirement li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 5px 0;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-banner h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cta-banner p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .hero {
        height: 400px;
        margin-top: 60px;
    }

    .hero-overlay {
        padding: 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .problem-card {
        flex-direction: column;
        text-align: center;
    }

    .slideshow-container {
        min-height: 500px;
    }

    .slide-content {
        max-height: 500px;
    }

    .slide-body {
        padding: 20px;
    }

    .deployment-options {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .zoom-controls {
        bottom: 10px;
        right: 10px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    section {
        padding: 40px 0 !important;
    }

    h2 {
        font-size: 24px !important;
    }

    .slideshow-controls {
        flex-direction: column;
    }

    .slide-button {
        width: 100%;
    }

    .slide-indicators {
        width: 100%;
    }
}

/* ========================================
   Top Announcement Banner
   ======================================== */

.announcement-banner {
    background: linear-gradient(135deg, #0F1419 0%, #1E3A5F 50%, #0F1419 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.announcement-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.announcement-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.announcement-text p {
    font-size: 18px;
    color: #B0B0B0;
    margin: 0;
}

.announcement-circuit {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.circuit-design {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 20px rgba(0, 208, 132, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateZ(-5deg); }
    50% { transform: translateY(-10px) rotateZ(5deg); }
}

@media (max-width: 768px) {
    .announcement-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .announcement-text h2 {
        font-size: 36px;
    }

    .announcement-text h3 {
        font-size: 24px;
    }

    .circuit-design {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   Bottom Series A Banner
   ======================================== */

.series-banner {
    background: linear-gradient(135deg, #0F1419 0%, #1E3A5F 100%);
    color: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.series-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.series-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.series-left {
    padding-right: 40px;
}

.series-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0F1419;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.series-badge {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.series-left h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.series-left p {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.series-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.feature-item span {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

@media (max-width: 1024px) {
    .series-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .series-left {
        padding-right: 0;
        text-align: center;
    }

    .series-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .series-banner {
        padding: 40px 20px;
    }

    .series-left h2 {
        font-size: 32px;
    }

    .series-left p {
        font-size: 24px;
    }

    .series-right {
        gap: 20px;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .feature-item p {
        font-size: 14px;
    }
}

/* ========================================
   iframe Mode (Clean - No Headers/Footers)
   ======================================== */

body.iframe-mode {
    background: #FFFFFF;
}

body.iframe-mode .navbar {
    display: none !important;
}

body.iframe-mode .announcement-banner {
    display: block !important;
}

body.iframe-mode .series-banner {
    display: block !important;
}

body.iframe-mode .footer {
    display: none !important;
}

body.iframe-mode .hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

body.iframe-mode .hero-banner {
    max-height: 500px;
}

/* Clean scroll behavior in iframe */
body.iframe-mode {
    margin: 0;
    padding: 0;
}