/* Hero Section */
/* Enhanced 3D Hero Section */
.hero-3d {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 80%, rgba(58, 134, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0c0e1d 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    perspective: 1200px;
}

.hero-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(58, 134, 255, 0.08) 0%, transparent 40%);
    animation: backgroundShift 20s infinite ease-in-out;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(10px, -10px) scale(1.05);
        opacity: 1;
    }
    66% {
        transform: translate(-10px, 10px) scale(0.95);
        opacity: 0.9;
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
}

.floating-molecules {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
}

.molecule {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float3D 20s infinite ease-in-out;
    transform-style: preserve-3d;
    filter: blur(0.5px);
}

.molecule::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: inherit;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
    animation: glowPulse 4s infinite ease-in-out;
}

.molecule[data-molecule="benzene"] {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, #3a86ff, #8338ec, transparent);
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    z-index: 1;
}

.molecule[data-molecule="methane"] {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ff006e, #fb5607, transparent);
    top: 65%;
    left: 82%;
    animation-delay: 3s;
    z-index: 2;
}

.molecule[data-molecule="water"] {
    width: 75px;
    height: 75px;
    background: radial-gradient(circle at 30% 30%, #38b000, #3a86ff, transparent);
    top: 18%;
    left: 78%;
    animation-delay: 6s;
    z-index: 1;
}

.molecule[data-molecule="ethanol"] {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #8338ec, #ff006e, transparent);
    top: 75%;
    left: 12%;
    animation-delay: 9s;
    z-index: 2;
}

.molecule[data-molecule="adenine"] {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at 30% 30%, #fb5607, #ffbe0b, transparent);
    top: 12%;
    left: 68%;
    animation-delay: 12s;
    z-index: 1;
}

/* Additional floating molecules for more depth */
.molecule:nth-child(6) {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffbe0b, #38b000, transparent);
    top: 45%;
    left: 25%;
    animation-delay: 15s;
    z-index: 3;
    opacity: 0.06;
}

.molecule:nth-child(7) {
    width: 85px;
    height: 85px;
    background: radial-gradient(circle at 30% 30%, #3a86ff, #ff006e, transparent);
    top: 55%;
    left: 60%;
    animation-delay: 18s;
    z-index: 1;
    opacity: 0.07;
}

@keyframes float3D {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
        filter: blur(0.5px);
    }
    25% {
        transform: translate3d(30px, -25px, 20px) rotateX(90deg) rotateY(45deg) rotateZ(30deg) scale(1.1);
        filter: blur(1px);
    }
    50% {
        transform: translate3d(-20px, -40px, -10px) rotateX(180deg) rotateY(90deg) rotateZ(60deg) scale(0.9);
        filter: blur(0.8px);
    }
    75% {
        transform: translate3d(40px, 20px, 30px) rotateX(270deg) rotateY(135deg) rotateZ(90deg) scale(1.05);
        filter: blur(0.3px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* Additional 3D floating elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.1), transparent);
    animation: orbit 15s infinite linear;
}

.floating-elements::before {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 7.5s;
    animation-direction: reverse;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

/* Geometric floating shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geometric-shapes div {
    position: absolute;
    opacity: 0.05;
    animation: geometricFloat 18s infinite ease-in-out;
}

.geometric-shapes div:nth-child(1) {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3a86ff, #8338ec);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 25%;
    left: 75%;
    animation-delay: 0s;
}

.geometric-shapes div:nth-child(2) {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff006e, #fb5607);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 70%;
    left: 30%;
    animation-delay: 6s;
}

.geometric-shapes div:nth-child(3) {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #38b000, #ffbe0b);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 45%;
    left: 85%;
    animation-delay: 12s;
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.2);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.8);
        opacity: 0.03;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
        opacity: 0.06;
    }
}

.hero-content-3d {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-text-3d {
    max-width: 600px;
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #3a86ff 50%, #8338ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word {
    display: block;
    opacity: 0;
    animation: titleReveal 0.8s forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.6s;
}

.title-word:nth-child(3) {
    animation-delay: 1s;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-highlight {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3a86ff, #8338ec);
    border-radius: 2px;
    animation: highlightSlide 1.5s ease-out 1.5s forwards;
}

@keyframes highlightSlide {
    from {
        width: 100px;
    }
    to {
        width: 200px;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-actions-3d {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.7);
}

.btn-gradient {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover .btn-gradient {
    left: 100%;
}

.btn-hologram {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid #3a86ff;
    color: white;
    transition: all 0.3s ease;
}

.btn-hologram:hover {
    background: rgba(58, 134, 255, 0.1);
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.5);
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 134, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.btn-hologram:hover .hologram-effect {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* 3D Molecule Viewer */
.hero-visual-3d {
    display: flex;
    justify-content: center;
    align-items: center;
}

.molecule-viewer {
    position: relative;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(58, 134, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.molecule-viewer:hover {
    transform: translateZ(20px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 50px rgba(58, 134, 255, 0.2);
}

.viewer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.molecule-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    transform-style: preserve-3d;
    animation: rotateMolecule3D 25s infinite linear;
}

@keyframes rotateMolecule3D {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotateX(90deg) rotateY(90deg) rotateZ(45deg);
    }
    50% {
        transform: translate(-50%, -50%) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
    75% {
        transform: translate(-50%, -50%) rotateX(270deg) rotateY(270deg) rotateZ(135deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(180deg);
    }
}

.atom {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: atomPulse 3s infinite ease-in-out;
}

.atom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: inherit;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}

@keyframes atomPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.central {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #3a86ff, #1a4da3, #0a1a33);
    box-shadow: 0 0 30px #3a86ff, inset 0 0 10px rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation-delay: 0s;
}

.bonded-1 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #ff006e, #a30046, #4d001f);
    box-shadow: 0 0 25px #ff006e, inset 0 0 8px rgba(255, 255, 255, 0.3);
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(15px);
    animation-delay: 0.5s;
}

.bonded-2 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #38b000, #1f6000, #0d2a00);
    box-shadow: 0 0 25px #38b000, inset 0 0 8px rgba(255, 255, 255, 0.3);
    top: 82%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-15px);
    animation-delay: 1s;
}

.bonded-3 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #ffbe0b, #a87a00, #4d3d00);
    box-shadow: 0 0 25px #ffbe0b, inset 0 0 8px rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%) rotateY(45deg);
    animation-delay: 1.5s;
}

.bonded-4 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #8338ec, #4d1c9c, #2a0e4d);
    box-shadow: 0 0 25px #8338ec, inset 0 0 8px rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 82%;
    transform: translate(-50%, -50%) rotateY(-45deg);
    animation-delay: 2s;
}

.bond {
    position: absolute;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(58, 134, 255, 0.6), rgba(255, 255, 255, 0.4));
    transform-origin: left center;
    height: 4px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
    animation: bondGlow 2s infinite ease-in-out;
}

@keyframes bondGlow {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(58, 134, 255, 0.8);
    }
}

.bond-1 {
    width: 75px;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    animation-delay: 0.2s;
}

.bond-2 {
    width: 75px;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    animation-delay: 0.4s;
}

.bond-3 {
    width: 75px;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    animation-delay: 0.6s;
}

.bond-4 {
    width: 75px;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    animation-delay: 0.8s;
}

.electron-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border: 2px dashed rgba(58, 134, 255, 0.6);
    border-radius: 50%;
    animation: rotateRing3D 12s infinite linear;
    box-shadow: inset 0 0 20px rgba(58, 134, 255, 0.2);
}

.electron-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(131, 56, 236, 0.3);
    border-radius: 50%;
    animation: counterRotate 8s infinite linear reverse;
}

@keyframes rotateRing3D {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        border-color: rgba(58, 134, 255, 0.6);
    }
    25% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg) rotateZ(90deg);
        border-color: rgba(131, 56, 236, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) rotateX(90deg) rotateY(90deg) rotateZ(180deg);
        border-color: rgba(255, 0, 110, 0.6);
    }
    75% {
        transform: translate(-50%, -50%) rotateX(135deg) rotateY(135deg) rotateZ(270deg);
        border-color: rgba(56, 176, 0, 0.6);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(180deg) rotateY(180deg) rotateZ(360deg);
        border-color: rgba(58, 134, 255, 0.6);
    }
}

@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.molecule-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.molecule-info h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.molecule-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #3a86ff, transparent);
    margin: 0 auto 10px;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% {
        height: 40px;
        opacity: 1;
    }
    50% {
        height: 60px;
        opacity: 0.7;
    }
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content-3d {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .molecule-viewer {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .molecule-viewer {
        width: 300px;
        height: 300px;
    }
    
    .molecule-display {
        width: 150px;
        height: 150px;
    }
}


.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.molecule-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.atom {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.atom:nth-child(1) {
    top: 50px;
    left: 50px;
    background: var(--primary-color);
    animation-delay: 0s;
}

.atom:nth-child(2) {
    top: 150px;
    left: 200px;
    background: var(--secondary-color);
    animation-delay: 2s;
}

.atom:nth-child(3) {
    top: 200px;
    left: 100px;
    background: var(--accent-color);
    animation-delay: 4s;
}

.bond {
    position: absolute;
    height: 4px;
    background: var(--gray-color);
    transform-origin: left center;
}

.bond:nth-child(4) {
    top: 70px;
    left: 70px;
    width: 150px;
    transform: rotate(30deg);
}

.bond:nth-child(5) {
    top: 170px;
    left: 120px;
    width: 100px;
    transform: rotate(-15deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0c0e1d 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(58, 134, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 20px rgba(58, 134, 255, 0.2);
    border-color: rgba(58, 134, 255, 0.3);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(58, 134, 255, 0.3));
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #3a86ff 50%, #8338ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(58, 134, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(131, 56, 236, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 30px rgba(58, 134, 255, 0.2);
    border-color: rgba(58, 134, 255, 0.3);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(58, 134, 255, 0.3));
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.feature-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    color: var(--secondary-color);
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(58, 134, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0.3;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.step-content p {
    color: var(--gray-text);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(131, 56, 236, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 20px rgba(58, 134, 255, 0.1);
    border-color: rgba(58, 134, 255, 0.2);
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray-text);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--light-text);
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Try Now Section */
.try-now {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.try-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.try-now-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.try-now-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.try-now-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.try-now .btn-outline {
    color: white;
    border-color: white;
}

.try-now .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-content-3d {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content-3d {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .molecule-viewer {
        width: 350px;
        height: 350px;
    }

    .stats-grid, .features-grid, .testimonial-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .steps {
        flex-direction: column;
        gap: 3rem;
    }

    .steps::before {
        display: none;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-actions-3d {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .molecule-viewer {
        width: 300px;
        height: 300px;
    }

    .molecule-display {
        width: 150px;
        height: 150px;
    }

    .stats-grid, .features-grid, .testimonial-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card, .feature-card, .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .hero-actions, .try-now-actions {
        flex-direction: column;
        align-items: center;
    }

    .molecule-animation {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .floating-molecules .molecule {
        display: none;
    }

    .floating-elements,
    .geometric-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .molecule-viewer {
        width: 280px;
        height: 280px;
    }

    .molecule-display {
        width: 120px;
        height: 120px;
    }

    .atom {
        width: 25px;
        height: 25px;
    }

    .central {
        width: 30px;
        height: 30px;
    }

    .bonded-1, .bonded-2, .bonded-3, .bonded-4 {
        width: 25px;
        height: 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
