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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5rem;
    animation: glowPulse 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                     0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% { 
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.8),
                     0 0 60px rgba(139, 92, 246, 0.5),
                     0 0 80px rgba(236, 72, 153, 0.3);
    }
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: pulseGlow 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-indicator i {
    display: block;
    font-size: 1.5rem;
    color: var(--white);
    animation: bounceArrows 2s infinite;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

.scroll-indicator i:nth-child(2) {
    animation-delay: 0.1s;
    opacity: 0.8;
    margin-top: -8px;
}

.scroll-indicator i:nth-child(3) {
    animation-delay: 0.2s;
    opacity: 0.6;
    margin-top: -8px;
}

.scroll-indicator i:nth-child(4) {
    animation-delay: 0.3s;
    opacity: 0.4;
    margin-top: -8px;
}

@keyframes bounceArrows {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.9;
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-scroll-hint {
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.8s both, pulse 3s ease-in-out 2s infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-scroll-hint i {
    color: #ffd700;
    animation: upDown 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes upDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Palindrome Section */
.palindrome-section {
    background: var(--light);
}

.palindrome-demo {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.number-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.digit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: var(--white);
    width: 100px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    animation: digitFloat 3s ease-in-out infinite;
    transition: var(--transition);
}

.digit:nth-child(1) { animation-delay: 0s; }
.digit:nth-child(2) { animation-delay: 0.2s; }
.digit:nth-child(3) { animation-delay: 0.4s; }
.digit:nth-child(4) { animation-delay: 0.6s; }
.digit:nth-child(5) { animation-delay: 0.8s; }

.digit:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.mirror-line {
    width: 2px;
    height: 200px;
    background: var(--gradient-primary);
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    opacity: 0.3;
}

.mirror-line::before,
.mirror-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    left: 50%;
}

.mirror-line::before {
    top: 0;
    transform: translateX(-50%);
}

.mirror-line::after {
    bottom: 0;
    transform: translateX(-50%);
}

.palindrome-arrows {
    margin-top: 2rem;
}

.palindrome-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.fact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.fact-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.fact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.fact-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Math Section */
.math-section {
    background: var(--dark);
    color: var(--white);
}

.math-section .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.math-section .section-subtitle {
    color: var(--light);
}

.math-demonstration {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.equation-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.equation-part {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.number-large {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.operator {
    font-size: 3rem;
    color: var(--secondary);
}

.equals-sign {
    font-size: 3rem;
    color: var(--accent);
}

.number-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: resultPulse 2s ease-in-out infinite;
}

@keyframes resultPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.visual-multiplication {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-multiplication h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.multiplication-grid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
}

.grid-row {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.grid-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.grid-row.highlight {
    background: var(--gradient-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transform: scale(1.05);
}

.grid-row strong {
    color: var(--primary);
}

.grid-row.highlight strong {
    color: var(--white);
}

.pattern-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--light);
}

.math-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

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

.property-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.property-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.property-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-card p {
    color: var(--light);
    font-family: 'JetBrains Mono', monospace;
}

/* Symmetry Section */
.symmetry-section {
    background: var(--light);
}

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

.symmetry-visual,
.symmetry-animation-box,
.symmetry-breakdown {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.reflection-container {
    position: relative;
    padding: 3rem 0;
}

.original-number,
.reflected-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reflected-number {
    margin-top: 2rem;
    opacity: 0.5;
}

.mirror-axis {
    height: 2px;
    background: var(--gray);
    margin: 1rem 0;
    position: relative;
}

.mirror-axis::before,
.mirror-axis::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.mirror-axis::before { left: 0; }
.mirror-axis::after { right: 0; }

.visual-label {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

#symmetryCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 300px;
}

.symmetry-breakdown h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.digit-analysis {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
}

.analysis-row.center {
    justify-content: center;
    gap: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.position {
    font-size: 0.85rem;
    color: var(--gray);
    min-width: 80px;
}

.analysis-row.center .position {
    color: var(--white);
}

.digit-box {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: var(--white);
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.digit-box.center-digit {
    background: var(--white);
    color: var(--primary);
    width: 60px;
    height: 70px;
    font-size: 2rem;
}

.mirror-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.perfect-center {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Value Section */
.value-section {
    background: var(--white);
}

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

.value-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover::before {
    transform: scaleX(1);
}

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

.value-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.value-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.value-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Use Cases Section */
.use-cases-section {
    background: var(--light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.use-case-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.use-case-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.use-case-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: var(--dark);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--light);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.contact-method strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--light);
    font-size: 0.95rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
}

.badge i {
    color: var(--primary);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

/* Interactive Properties */
.interactive-properties-intro {
    text-align: center;
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
}

.interactive-properties-intro h3 {
    font-size: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.interactive-properties-intro i {
    color: var(--primary);
    animation: pointPulse 1.5s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.math-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.property-card:hover::before {
    transform: scaleX(1);
}

.property-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.click-hint {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.8;
    font-style: italic;
}

.property-card:hover .click-hint {
    opacity: 1;
    animation: bounce 0.5s ease-in-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: var(--dark);
    margin: 5% auto;
    padding: 3rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--light);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#modalBody {
    color: var(--white);
}

#modalBody h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#modalBody h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#modalBody p {
    color: var(--light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

#modalBody .math-example {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
}

#modalBody .highlight {
    color: var(--primary);
    font-weight: 600;
}

#modalBody ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#modalBody li {
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Scroll Progress Indicator */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

/* Section Navigation Dots */
.section-nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::before {
    opacity: 1;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.5);
}

.nav-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    transform: scale(1.3);
}

/* Hide navigation dots on small screens */
@media (max-width: 768px) {
    .section-nav-dots {
        display: none;
    }
}

/* Floating Scroll Reminder */
.scroll-reminder {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    opacity: 0;
    animation: slideUpFade 0.6s ease-out 3s forwards;
    pointer-events: none;
}

.reminder-content {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    animation: gentleBounce 2s ease-in-out 3.6s infinite;
}

.reminder-content i {
    animation: upDown 1.5s ease-in-out infinite;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Hide scroll reminder on mobile to avoid clutter */
@media (max-width: 768px) {
    .scroll-reminder {
        display: none;
    }
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--light);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .domain-name {
        font-size: 3.5rem;
        letter-spacing: 0.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .digit {
        font-size: 2.5rem;
        width: 60px;
        height: 80px;
    }

    .number-large {
        font-size: 2.5rem;
    }

    .number-result {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .domain-name {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .number-display {
        gap: 0.5rem;
    }

    .digit {
        font-size: 2rem;
        width: 50px;
        height: 65px;
    }
}