/* Variables */
:root {
    --bg-color: #ffffff;
    /* White */
    --bg-color-light: #f8fafc;
    /* Very Light Gray */
    --text-main: #0f172a;
    /* Very Dark Blue */
    --text-muted: #475569;
    /* Gray for subtitles */

    --accent-blue: #0ea5e9;
    --accent-emerald: #10b981;
    --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));

    /* SunuQuiz Colors */
    --sq-emerald: #059669;
    --sq-gold: #fbbf24;
    --sq-dark: #1e293b;
    --sq-darker: #0f172a;

    /* SQL Migrator Colors */
    --sqlm-indigo: #3f51b5;
    --sqlm-indigo-dark: #303f9f;
    --sqlm-indigo-light: #c5cae9;
    --sqlm-accent: #ff4081;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

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

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: padding var(--transition-speed), background var(--transition-speed);
}

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

.logo img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-accent);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-phone {
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: color var(--transition-speed);
}

.btn-phone:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    /* Offset for header */
    background-color: var(--bg-color-light);
    /* Slight distinction for hero */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* Decorative Backgrounds */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
    /* Reduced opacity for light mode */
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent-emerald);
}

/* Expertise Section */
.expertise {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: left;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: -webkit-linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about {
    position: relative;
    background-color: var(--bg-color-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 3rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    /* White stats cards on light gray background */
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shape-3 {
    top: 50%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    transform: translateY(-50%);
    opacity: 0.15;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.contact-card {
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--bg-color-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-reveal-phone-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    transition: color var(--transition-speed);
}

.btn-reveal-phone-contact:hover {
    color: var(--accent-blue);
}

.btn-reveal-phone-contact i {
    color: var(--accent-blue);
    font-size: 1.3rem;
}

.contact-list i {
    color: var(--accent-blue);
    font-size: 1.3rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-color-light);
}

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

.footer-logo {
    height: 55px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background: var(--gradient-accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-phone {
        display: none;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-list {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .contact-card {
        padding: 2rem 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Content Panel (Privacy Policy, Legal, etc.) */
.content-panel {
    padding: 3rem;
    margin: 2rem auto;
    max-width: 900px;
}
.content-panel h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.content-panel h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--accent-blue); }
.content-panel h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.content-panel p { margin-bottom: 1rem; color: var(--text-main); }
.content-panel ul { margin-bottom: 1.5rem; padding-left: 2rem; list-style-type: disc; color: var(--text-main); }
.content-panel ul li { margin-bottom: 0.5rem; }
.content-panel a { color: var(--accent-blue); font-weight: 500; }
.content-panel a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .content-panel { padding: 1.5rem; margin: 1rem auto; }
}

/* App Preview */
.app-preview-icon {
    display: block;
    margin: 0 auto 2rem;
    width: 120px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.app-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}
.app-preview img.screenshot {
    width: auto;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform var(--transition-speed);
}
.app-preview img.screenshot:hover {
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .app-preview img.screenshot {
        height: 300px;
    }
}

/* --- SunuQuiz Landing Page Styles --- */

.sq-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background-color: var(--sq-emerald);
    color: #ffffff;
    overflow: hidden;
}

.sq-hero-content {
    max-width: 600px;
    z-index: 10;
}

.sq-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.sq-hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.sq-btn-gold {
    background: var(--sq-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}
.sq-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.sq-btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.sq-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sq-hero-image-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-45%);
    width: 400px;
    z-index: 5;
}

.sq-hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    transition: transform var(--transition-speed);
}
.sq-hero-img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Themes Section */
.sq-themes {
    background-color: var(--bg-color-light);
}

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

.sq-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.sq-theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.sq-theme-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Features Section */
.sq-features {
    background-color: var(--sq-darker);
    color: #ffffff;
}
.sq-features .section-subtitle {
    color: #cbd5e1;
}

.sq-feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}
.sq-feature-row:last-child {
    margin-bottom: 0;
}
.sq-feature-row:nth-child(even) {
    flex-direction: row-reverse;
}
.sq-feature-text {
    flex: 1;
}
.sq-feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--sq-gold);
}
.sq-feature-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.sq-feature-image {
    flex: 1;
    text-align: center;
}
.sq-feature-image img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Ranking Section */
.sq-ranking {
    background: linear-gradient(135deg, var(--bg-color), var(--bg-color-light));
    text-align: center;
}
.sq-ranking-icon {
    font-size: 4rem;
    color: var(--sq-gold);
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .sq-hero-image-container {
        display: none;
    }
    .sq-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .sq-hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .sq-feature-row, .sq-feature-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
}
@media (max-width: 480px) {
    .sq-hero-title {
        font-size: 2.5rem;
    }
}

/* --- SQL Migrator Landing Page Styles --- */

.sqlm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background-color: var(--sqlm-indigo);
    color: #ffffff;
    overflow: hidden;
}

.sqlm-hero-content {
    max-width: 600px;
    z-index: 10;
}

.sqlm-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.sqlm-hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.sqlm-hero-image-container {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-45%);
    width: 550px;
    z-index: 5;
}

.sqlm-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* SQLM Features Section */
.sqlm-features {
    background-color: var(--bg-color-light);
}

.sqlm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sqlm-feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--sqlm-indigo);
    transition: transform 0.3s ease;
}

.sqlm-feature-card:hover {
    transform: translateY(-5px);
}

.sqlm-feature-icon {
    font-size: 2.5rem;
    color: var(--sqlm-indigo);
    margin-bottom: 1.5rem;
}

.sqlm-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.sqlm-feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* SQLM Use Cases Section */
.sqlm-usecases {
    background-color: #ffffff;
}

.sqlm-usecase-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-color-light);
    border-radius: 16px;
}

.sqlm-usecase-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--sqlm-indigo-light);
    opacity: 0.5;
    line-height: 1;
}

.sqlm-usecase-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.sqlm-usecase-content p {
    color: var(--text-muted);
}

/* SQLM CTA Section */
.sqlm-cta {
    background-color: var(--sqlm-indigo-dark);
    color: #ffffff;
    text-align: center;
    padding: 6rem 0;
}

.sqlm-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.sqlm-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.sqlm-btn-accent {
    background-color: var(--sqlm-accent);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sqlm-btn-accent:hover {
    background-color: #f50057;
    color: #ffffff;
}

@media (max-width: 992px) {
    .sqlm-hero-image-container {
        display: none;
    }
    .sqlm-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .sqlm-usecase-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}