:root {
    --primary-color: #ff003c;
    --secondary-color: #cc002f;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #ccc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 40%;
    animation-delay: 10s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 60%;
    animation-delay: 15s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 90%;
    animation-delay: 20s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0.3;
    }
}

.binary-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(255, 0, 60, 0.02) 20px,
        rgba(255, 0, 60, 0.02) 40px
    );
    animation: binaryFlow 10s infinite linear;
}

@keyframes binaryFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 40px;
    }
}

.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 0, 60, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 0, 60, 0.05) 100%);
    padding: 20px;
    box-sizing: border-box;
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-glitch h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.glitch-text {
    position: relative;
    font-size: clamp(2.5rem, 8vw, 6rem);
    text-shadow: 
        0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 2000ms infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch 1500ms infinite;
    color: rgba(255, 0, 60, 0.8);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch 1000ms infinite;
    color: rgba(0, 255, 255, 0.8);
    z-index: -2;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.4;
    padding: 0 10px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interactive-mission {
    padding: 80px 0;
    background: var(--background-dark);
}

.mission-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #ff3366, #ff6699);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

.mission-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.feature-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.mission-visual {
    position: relative;
    height: 300px;
    display: none;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.central-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseCircle 3s infinite;
}

@keyframes pulseCircle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.circle-content {
    text-align: center;
    color: white;
}

.circle-content span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.circle-content small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: floatElement 6s infinite ease-in-out;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(10deg); }
    66% { transform: translateY(8px) rotate(-10deg); }
}

.animated-process {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-dark), #0c0c0c);
}

.process-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-timeline {
    position: relative;
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.marker-circle {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.marker-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-top: 8px;
}

.timeline-item:last-child .marker-line {
    display: none;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-number {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
}

/* Interactive Values Section */
.interactive-values {
    padding: 80px 0;
    background: var(--background-dark);
}

.values-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.value-card:hover .value-hover {
    opacity: 1;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.value-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 0, 60, 0.1) 0%, 
        rgba(255, 0, 60, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Parallax CTA Section */
.parallax-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 60, 0.2) 0%, 
        rgba(255, 0, 60, 0.1) 50%, 
        rgba(255, 0, 60, 0.05) 100%);
    transform: translateZ(0);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.2;
}

.cta-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    min-width: 200px;
    text-align: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--primary-color);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 60, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (min-width: 768px) {
    .modern-hero {
        padding: 40px 20px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .section-title {
        text-align: left;
    }
    
    .mission-description {
        text-align: left;
    }
    
    .mission-visual {
        display: block;
        height: 350px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .cta-btn {
        min-width: 180px;
        padding: 15px 30px;
    }
    
    .timeline-item {
        align-items: center;
    }
    
    .marker-line {
        height: 80px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .modern-hero {
        padding: 60px 20px;
    }
    
    .mission-grid {
        gap: 80px;
    }
    
    .mission-visual {
        height: 400px;
    }
    
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .feature {
        gap: 20px;
        padding: 25px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .timeline-content:hover {
        transform: translateX(10px);
    }
    
    .feature:hover {
        transform: translateX(10px);
    }
    
    .value-card:hover {
        transform: translateY(-10px);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .hero-content {
        padding: 0;
    }
    
    .mission-container {
        padding: 0;
    }
}

/* Small Mobile Fixes */
@media (max-width: 480px) {
    .modern-hero {
        min-height: 80vh;
        padding: 20px 15px;
    }
    
    .hero-glitch h1 {
        margin-bottom: 15px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .interactive-mission {
        padding: 60px 0;
    }
    
    .animated-process {
        padding: 60px 0;
    }
    
    .interactive-values {
        padding: 60px 0;
    }
    
    .parallax-cta {
        padding: 80px 0;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .marker-line {
        width: 60px;
        height: 2px;
        margin-top: 0;
    }
    
    .step-number {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        display: inline-block;
    }
}

/* Very Small Mobile Fixes */
@media (max-width: 360px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        min-width: 160px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Disable glitch effect on mobile for better performance */
@media (max-width: 768px) {
    .glitch-text {
        animation: none;
        text-shadow: none;
    }
    
    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
    
    .floating-element {
        animation-duration: 8s;
    }
}

/* Ensure text doesn't overflow */
.hero-content,
.mission-container,
.process-container,
.values-container,
.cta-content {
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Fix for very long words */
.hero-glitch h1,
.section-title,
.cta-content h2 {
    overflow-wrap: break-word;
    word-break: break-word;
}