body {
    font-family: "Montserrat", sans-serif;
    background-color: #f8fafc;
}

/* Hero animations */
#hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    animation: kenburns 15s ease-in-out infinite;
}
.hero-slide.active {
    opacity: 1;
}

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

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

.primary-btn {
    background-color: #0d2b4f;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:hover {
    background-color: #1e4d8c;
    transform: translateY(-2px);
    animation: pulse-glow 2s infinite;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.icon-animate:hover {
    animation: icon-bounce 0.6s ease;
}

.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

.animated:nth-child(1) {
    transition-delay: 0.1s;
}
.animated:nth-child(2) {
    transition-delay: 0.2s;
}
.animated:nth-child(3) {
    transition-delay: 0.3s;
}
.animated:nth-child(4) {
    transition-delay: 0.4s;
}
.animated:nth-child(5) {
    transition-delay: 0.5s;
}
.animated:nth-child(6) {
    transition-delay: 0.6s;
}
.animated:nth-child(7) {
    transition-delay: 0.7s;
}
.animated:nth-child(8) {
    transition-delay: 0.8s;
}

/* Modal animations */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.visible .modal-container {
    transform: scale(1) translateY(0);
}

.modal-list-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-list-item:nth-child(1) {
    animation-delay: 0.1s;
}
.modal-list-item:nth-child(2) {
    animation-delay: 0.15s;
}
.modal-list-item:nth-child(3) {
    animation-delay: 0.2s;
}
.modal-list-item:nth-child(4) {
    animation-delay: 0.25s;
}
.modal-list-item:nth-child(5) {
    animation-delay: 0.3s;
}
.modal-list-item:nth-child(6) {
    animation-delay: 0.35s;
}
.modal-list-item:nth-child(7) {
    animation-delay: 0.4s;
}

#header {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #0d2b4f, #3b82f6, #0d2b4f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

input:focus,
textarea:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.project-item {
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05);
    color: #3b82f6;
}

#mobile-drawer {
    transition: transform 0.3s ease-in-out;
}
#mobile-drawer.open {
    transform: translateX(0);
}
#mobile-drawer-overlay {
    transition: opacity 0.3s ease-in-out;
}
#mobile-drawer-overlay.open {
    opacity: 1;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d2b4f 0%, #1e4d8c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    animation: pulse-splash 2s ease-in-out infinite;
    max-width: 300px;
    width: 80%;
}

@media (max-width: 768px) {
    .splash-logo {
        max-width: 200px;
        width: 60%;
    }
}

@keyframes pulse-splash {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.parallax-section {
    transition: transform 0.5s ease-out;
}

.section-title {
    color: #0d2b4f;
}

/* DETAILED WORKS SECTION ANIMATED BACKGROUND */
#detailed-works {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #e0f2fe 0%,
        #bae6fd 20%,
        #7dd3fc 40%,
        #38bdf8 60%,
        #0ea5e9 80%,
        #0284c7 100%
    );
    background-size: 300% 300%;
    animation: gradientWave 12s ease infinite;
}

@keyframes gradientWave {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

#detailed-works::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%
        );
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.floating-atoms-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-atom-icon {
    position: absolute;
    opacity: 0.35;
    color: rgba(255, 255, 255, 1);
    filter: blur(0.3px);
}

.floating-atom-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    font-size: 60px;
    animation: floatAtomIcon1 20s ease-in-out infinite;
}

.floating-atom-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    font-size: 80px;
    animation: floatAtomIcon2 25s ease-in-out infinite;
}

.floating-atom-icon:nth-child(3) {
    bottom: 15%;
    left: 20%;
    font-size: 70px;
    animation: floatAtomIcon3 22s ease-in-out infinite;
}

.floating-atom-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    font-size: 65px;
    animation: floatAtomIcon4 18s ease-in-out infinite;
}

.floating-atom-icon:nth-child(5) {
    top: 50%;
    left: 5%;
    font-size: 55px;
    animation: floatAtomIcon5 24s ease-in-out infinite;
}

.floating-atom-icon:nth-child(6) {
    top: 60%;
    right: 8%;
    font-size: 75px;
    animation: floatAtomIcon6 21s ease-in-out infinite;
}

.floating-atom-icon:nth-child(7) {
    top: 35%;
    left: 50%;
    font-size: 50px;
    animation: floatAtomIcon7 19s ease-in-out infinite;
}

.floating-atom-icon:nth-child(8) {
    top: 75%;
    left: 40%;
    font-size: 85px;
    animation: floatAtomIcon8 23s ease-in-out infinite;
}

.floating-atom-icon:nth-child(9) {
    top: 15%;
    left: 35%;
    font-size: 45px;
    animation: floatAtomIcon9 26s ease-in-out infinite;
}

.floating-atom-icon:nth-child(10) {
    bottom: 25%;
    right: 35%;
    font-size: 68px;
    animation: floatAtomIcon10 20s ease-in-out infinite;
}

.floating-atom-icon:nth-child(11) {
    top: 5%;
    right: 40%;
    font-size: 58px;
    animation: floatAtomIcon11 27s ease-in-out infinite;
}

.floating-atom-icon:nth-child(12) {
    bottom: 10%;
    left: 55%;
    font-size: 62px;
    animation: floatAtomIcon12 21s ease-in-out infinite;
}

@keyframes floatAtomIcon1 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg);
        opacity: 0.35;
    }
    75% {
        transform: translate(-40px, -40px) rotate(270deg);
        opacity: 0.4;
    }
}

@keyframes floatAtomIcon2 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.35;
    }
    25% {
        transform: translate(-40px, 50px) rotate(-90deg) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translate(20px, 100px) rotate(-180deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(50px, 50px) rotate(-270deg) scale(1.05);
        opacity: 0.38;
    }
}

@keyframes floatAtomIcon3 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.32;
    }
    33% {
        transform: translate(40px, -30px) rotate(120deg);
        opacity: 0.38;
    }
    66% {
        transform: translate(-30px, -60px) rotate(240deg);
        opacity: 0.35;
    }
}

@keyframes floatAtomIcon4 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.33;
    }
    30% {
        transform: translate(-50px, -40px) rotate(-100deg) scale(1.15);
        opacity: 0.4;
    }
    60% {
        transform: translate(30px, -70px) rotate(-200deg) scale(0.95);
        opacity: 0.36;
    }
}

@keyframes floatAtomIcon5 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    40% {
        transform: translate(50px, 40px) rotate(150deg);
        opacity: 0.38;
    }
    80% {
        transform: translate(-40px, 80px) rotate(300deg);
        opacity: 0.34;
    }
}

@keyframes floatAtomIcon6 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.34;
    }
    35% {
        transform: translate(-35px, -50px) rotate(-110deg) scale(1.08);
        opacity: 0.39;
    }
    70% {
        transform: translate(45px, -30px) rotate(-220deg) scale(0.92);
        opacity: 0.32;
    }
}

@keyframes floatAtomIcon7 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.31;
    }
    50% {
        transform: translate(60px, 50px) rotate(180deg);
        opacity: 0.4;
    }
}

@keyframes floatAtomIcon8 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.33;
    }
    33% {
        transform: translate(-30px, -40px) rotate(-120deg) scale(1.12);
        opacity: 0.39;
    }
    66% {
        transform: translate(40px, -20px) rotate(-240deg) scale(0.88);
        opacity: 0.35;
    }
}

@keyframes floatAtomIcon9 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.32;
    }
    40% {
        transform: translate(-50px, 60px) rotate(160deg);
        opacity: 0.38;
    }
    80% {
        transform: translate(30px, -50px) rotate(320deg);
        opacity: 0.34;
    }
}

@keyframes floatAtomIcon10 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(55px, -45px) rotate(180deg) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes floatAtomIcon11 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.35;
    }
    25% {
        transform: translate(40px, 40px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-30px, 70px) rotate(180deg);
        opacity: 0.33;
    }
    75% {
        transform: translate(50px, 30px) rotate(270deg);
        opacity: 0.38;
    }
}

@keyframes floatAtomIcon12 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.31;
    }
    33% {
        transform: translate(-45px, -35px) rotate(-110deg) scale(1.05);
        opacity: 0.39;
    }
    66% {
        transform: translate(35px, -55px) rotate(-230deg) scale(0.95);
        opacity: 0.34;
    }
}

#detailed-works .container {
    position: relative;
    z-index: 1;
}

#detailed-works .gradient-text {
    background: linear-gradient(90deg, #ffffff, #e0f2fe, #ffffff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTextShift 3s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes gradientTextShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#detailed-works p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ATOMIC VISUALIZATION STYLES */
#atomic-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.atom-wrapper {
    position: absolute;
    width: 500px;
    height: 500px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atom-wrapper.left {
    left: 50%;
    transform: translateX(-50%) translateX(-520px);
    animation: floatAtomLeft 15s ease-in-out infinite;
}

.atom-wrapper.middle {
    left: 50%;
    transform: translateX(-50%);
    animation: floatAtomMiddle 18s ease-in-out infinite;
}

.atom-wrapper.right {
    left: 50%;
    transform: translateX(-50%) translateX(520px);
    animation: floatAtomRight 20s ease-in-out infinite;
}

.atom-wrapper:hover {
    animation-play-state: paused !important;
    z-index: 10;
}

.atom-wrapper .atom-core,
.atom-wrapper .orbit,
.atom-wrapper .rays-container {
    transition: transform 0.3s ease;
}

.atom-wrapper:hover .atom-core {
    transform: translate(-50%, -50%) scale(1.5);
}

.atom-wrapper:hover .orbit.ring1 {
    transform: translate(-50%, -50%) scale(1.4);
}

.atom-wrapper:hover .orbit.ring2 {
    transform: translate(-50%, -50%) scale(1.4);
}

.atom-wrapper:hover .rays-container {
    transform: scale(1.15);
}

@keyframes floatAtomLeft {
    0% {
        transform: translateX(-50%) translateX(-520px) translate(0, 0)
            rotate(0deg);
    }
    15% {
        transform: translateX(-50%) translateX(-520px) translate(-40px, -60px)
            rotate(8deg);
    }
    30% {
        transform: translateX(-50%) translateX(-520px) translate(-70px, 20px)
            rotate(-5deg);
    }
    45% {
        transform: translateX(-50%) translateX(-520px) translate(-30px, 70px)
            rotate(12deg);
    }
    60% {
        transform: translateX(-50%) translateX(-520px) translate(30px, 50px)
            rotate(-8deg);
    }
    75% {
        transform: translateX(-50%) translateX(-520px) translate(60px, -30px)
            rotate(6deg);
    }
    90% {
        transform: translateX(-50%) translateX(-520px) translate(20px, -50px)
            rotate(-10deg);
    }
    100% {
        transform: translateX(-50%) translateX(-520px) translate(0, 0)
            rotate(0deg);
    }
}

@keyframes floatAtomMiddle {
    0% {
        transform: translateX(-50%) translate(0, 0) rotate(0deg);
    }
    12% {
        transform: translateX(-50%) translate(50px, -70px) rotate(-12deg);
    }
    25% {
        transform: translateX(-50%) translate(80px, 30px) rotate(10deg);
    }
    38% {
        transform: translateX(-50%) translate(40px, 80px) rotate(-8deg);
    }
    50% {
        transform: translateX(-50%) translate(-50px, 60px) rotate(15deg);
    }
    62% {
        transform: translateX(-50%) translate(-80px, -20px) rotate(-6deg);
    }
    75% {
        transform: translateX(-50%) translate(-50px, -70px) rotate(9deg);
    }
    88% {
        transform: translateX(-50%) translate(30px, -40px) rotate(-11deg);
    }
    100% {
        transform: translateX(-50%) translate(0, 0) rotate(0deg);
    }
}

@keyframes floatAtomRight {
    0% {
        transform: translateX(-50%) translateX(520px) translate(0, 0)
            rotate(0deg);
    }
    13% {
        transform: translateX(-50%) translateX(520px) translate(60px, 50px)
            rotate(-10deg);
    }
    27% {
        transform: translateX(-50%) translateX(520px) translate(30px, -60px)
            rotate(14deg);
    }
    40% {
        transform: translateX(-50%) translateX(520px) translate(-50px, -30px)
            rotate(-7deg);
    }
    53% {
        transform: translateX(-50%) translateX(520px) translate(-70px, 40px)
            rotate(11deg);
    }
    67% {
        transform: translateX(-50%) translateX(520px) translate(-40px, 70px)
            rotate(-13deg);
    }
    80% {
        transform: translateX(-50%) translateX(520px) translate(40px, 30px)
            rotate(8deg);
    }
    93% {
        transform: translateX(-50%) translateX(520px) translate(50px, -50px)
            rotate(-9deg);
    }
    100% {
        transform: translateX(-50%) translateX(520px) translate(0, 0)
            rotate(0deg);
    }
}

.atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d2b4f, #1e4d8c);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    transition: all 0.4s ease;
    animation: pulseCore 3s ease-in-out infinite;
}

@keyframes pulseCore {
    0%,
    100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.9),
            inset 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.atom-wrapper:hover .atom-core {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 80px rgba(59, 130, 246, 1),
        inset 0 0 50px rgba(255, 255, 255, 0.3);
}

.atom-core-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.atom-title {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
    line-height: 1.2;
}

/* Orbit rings */
.orbit {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

.orbit.ring1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit.ring2 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
    animation-direction: reverse;
}

@keyframes rotateOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Ray items */
.rays-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ray-item {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

.atom-wrapper:hover .ray-item {
    opacity: 1;
    pointer-events: all;
}

.atom-wrapper.active .ray-item {
    opacity: 1;
    pointer-events: all;
}

.ray-button {
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border: 2px solid #3b82f6;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    color: #0d2b4f;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.ray-button::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.ray-button:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

/* Connection lines */
.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    transform-origin: left center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.atom-wrapper:hover .connection-line {
    opacity: 1;
    animation: flowLine 2s ease-in-out infinite;
}

.atom-wrapper.active .connection-line {
    opacity: 1;
    animation: flowLine 2s ease-in-out infinite;
}

@keyframes flowLine {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 1267px) {
    #header .container {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    #header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #header .flex.items-center.justify-between {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 1067px) {
    #mobile-menu-btn {
        display: none;
    }
    #header nav {
        display: flex;
    }
    #header .flex-col.items-end {
        display: flex;
    }
}

@media (max-width: 1600px) {
    .atom-wrapper {
        width: 450px;
        height: 450px;
    }
    .atom-wrapper.left {
        left: 50%;
        transform: translateX(-50%) translateX(-470px);
        animation: floatAtomLeft1600 15s ease-in-out infinite;
    }
    .atom-wrapper.middle {
        left: 50%;
        transform: translateX(-50%);
    }
    .atom-wrapper.right {
        left: 50%;
        transform: translateX(-50%) translateX(470px);
        animation: floatAtomRight1600 20s ease-in-out infinite;
    }
    @keyframes floatAtomLeft1600 {
        0% {
            transform: translateX(-50%) translateX(-470px) translate(0, 0)
                rotate(0deg);
        }
        15% {
            transform: translateX(-50%) translateX(-470px)
                translate(-35px, -50px) rotate(7deg);
        }
        30% {
            transform: translateX(-50%) translateX(-470px)
                translate(-60px, 15px) rotate(-4deg);
        }
        45% {
            transform: translateX(-50%) translateX(-470px)
                translate(-25px, 60px) rotate(10deg);
        }
        60% {
            transform: translateX(-50%) translateX(-470px) translate(25px, 45px)
                rotate(-7deg);
        }
        75% {
            transform: translateX(-50%) translateX(-470px)
                translate(50px, -25px) rotate(5deg);
        }
        90% {
            transform: translateX(-50%) translateX(-470px)
                translate(18px, -45px) rotate(-8deg);
        }
        100% {
            transform: translateX(-50%) translateX(-470px) translate(0, 0)
                rotate(0deg);
        }
    }
    @keyframes floatAtomRight1600 {
        0% {
            transform: translateX(-50%) translateX(470px) translate(0, 0)
                rotate(0deg);
        }
        13% {
            transform: translateX(-50%) translateX(470px) translate(50px, 40px)
                rotate(-9deg);
        }
        27% {
            transform: translateX(-50%) translateX(470px) translate(25px, -50px)
                rotate(12deg);
        }
        40% {
            transform: translateX(-50%) translateX(470px)
                translate(-45px, -25px) rotate(-6deg);
        }
        53% {
            transform: translateX(-50%) translateX(470px) translate(-60px, 35px)
                rotate(10deg);
        }
        67% {
            transform: translateX(-50%) translateX(470px) translate(-35px, 60px)
                rotate(-11deg);
        }
        80% {
            transform: translateX(-50%) translateX(470px) translate(35px, 25px)
                rotate(7deg);
        }
        93% {
            transform: translateX(-50%) translateX(470px) translate(45px, -45px)
                rotate(-8deg);
        }
        100% {
            transform: translateX(-50%) translateX(470px) translate(0, 0)
                rotate(0deg);
        }
    }
    .atom-core {
        width: 120px;
        height: 120px;
    }
    .atom-core-icon {
        width: 35px;
        height: 35px;
    }
    .orbit.ring1 {
        width: 180px;
        height: 180px;
    }
    .orbit.ring2 {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 1200px) {
    #atomic-container {
        height: 1000px;
    }
    .atom-wrapper {
        width: 450px;
        height: 450px;
    }
    .atom-wrapper.left {
        left: 25%;
        transform: translateX(-50%);
        top: 80px;
        animation: floatAtomLeft1200 16s ease-in-out infinite;
    }
    .atom-wrapper.middle {
        left: 75%;
        transform: translateX(-50%);
        top: 80px;
        animation: floatAtomMiddle1200 19s ease-in-out infinite;
    }
    .atom-wrapper.right {
        left: 50%;
        transform: translateX(-50%);
        top: 520px;
        animation: floatAtomRight1200 21s ease-in-out infinite;
    }
    @keyframes floatAtomLeft1200 {
        0% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
        20% {
            transform: translateX(-50%) translate(-30px, -40px) rotate(6deg);
        }
        40% {
            transform: translateX(-50%) translate(-50px, 20px) rotate(-5deg);
        }
        60% {
            transform: translateX(-50%) translate(20px, 50px) rotate(8deg);
        }
        80% {
            transform: translateX(-50%) translate(40px, -30px) rotate(-6deg);
        }
        100% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
    }
    @keyframes floatAtomMiddle1200 {
        0% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
        17% {
            transform: translateX(-50%) translate(40px, -50px) rotate(-9deg);
        }
        34% {
            transform: translateX(-50%) translate(60px, 15px) rotate(7deg);
        }
        51% {
            transform: translateX(-50%) translate(-30px, 55px) rotate(-10deg);
        }
        68% {
            transform: translateX(-50%) translate(-55px, -20px) rotate(8deg);
        }
        85% {
            transform: translateX(-50%) translate(25px, -45px) rotate(-7deg);
        }
        100% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
    }
    @keyframes floatAtomRight1200 {
        0% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
        16% {
            transform: translateX(-50%) translate(45px, 35px) rotate(-8deg);
        }
        33% {
            transform: translateX(-50%) translate(20px, -45px) rotate(11deg);
        }
        50% {
            transform: translateX(-50%) translate(-40px, -25px) rotate(-6deg);
        }
        66% {
            transform: translateX(-50%) translate(-50px, 40px) rotate(9deg);
        }
        83% {
            transform: translateX(-50%) translate(35px, 25px) rotate(-7deg);
        }
        100% {
            transform: translateX(-50%) translate(0, 0) rotate(0deg);
        }
    }
    .atom-core {
        width: 130px;
        height: 130px;
    }
    .atom-title {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    #atomic-container {
        height: 550px;
        overflow: hidden;
        position: relative;
        touch-action: pan-y;
        margin-top: -2rem;
    }

    .floating-atom-icon {
        font-size: 40px !important;
    }

    .floating-atom-icon:nth-child(1) {
        top: 5%;
        left: 5%;
    }

    .floating-atom-icon:nth-child(2) {
        top: 10%;
        right: 8%;
    }

    .floating-atom-icon:nth-child(3) {
        bottom: 10%;
        left: 10%;
    }

    .floating-atom-icon:nth-child(4) {
        bottom: 5%;
        right: 5%;
    }

    .floating-atom-icon:nth-child(5) {
        top: 50%;
        left: 3%;
    }

    .floating-atom-icon:nth-child(6) {
        top: 55%;
        right: 3%;
    }

    .floating-atom-icon:nth-child(7),
    .floating-atom-icon:nth-child(8),
    .floating-atom-icon:nth-child(9),
    .floating-atom-icon:nth-child(10),
    .floating-atom-icon:nth-child(11),
    .floating-atom-icon:nth-child(12) {
        display: none;
    }

    .atoms-carousel {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        height: 100%;
        align-items: center;
    }

    .atom-wrapper {
        flex: 0 0 100%;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 auto;
        width: 400px !important;
        height: 400px !important;
    }

    .atom-wrapper.left,
    .atom-wrapper.middle,
    .atom-wrapper.right {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .atom-wrapper.left {
        animation: floatAtomMobileLeft 4s ease-in-out infinite !important;
    }

    .atom-wrapper.middle {
        animation: floatAtomMobileMiddle 4.2s ease-in-out infinite !important;
    }

    .atom-wrapper.right {
        animation: floatAtomMobileRight 4.5s ease-in-out infinite !important;
    }

    @keyframes floatAtomMobileLeft {
        0%,
        100% {
            transform: scale(0.95) translate(0, 0) rotate(0deg);
        }
        50% {
            transform: scale(0.95) translate(-10px, -15px) rotate(3deg);
        }
    }

    @keyframes floatAtomMobileMiddle {
        0%,
        100% {
            transform: scale(0.95) translate(0, 0) rotate(0deg);
        }
        50% {
            transform: scale(0.95) translate(0, -18px) rotate(-2deg);
        }
    }

    @keyframes floatAtomMobileRight {
        0%,
        100% {
            transform: scale(0.95) translate(0, 0) rotate(0deg);
        }
        50% {
            transform: scale(0.95) translate(10px, -18px) rotate(-3deg);
        }
    }

    .atom-core {
        width: 120px !important;
        height: 120px !important;
    }

    .atom-core-icon {
        width: 35px !important;
        height: 35px !important;
    }

    .atom-title {
        font-size: 11px !important;
    }

    .orbit.ring1 {
        width: 180px !important;
        height: 180px !important;
    }

    .orbit.ring2 {
        width: 220px !important;
        height: 220px !important;
    }

    .ray-button {
        padding: 8px 14px !important;
        font-size: 11px !important;
    }

    /* Auto-activate rays on mobile */
    .atom-wrapper .ray-item {
        opacity: 1 !important;
    }

    .atom-wrapper .connection-line {
        opacity: 1 !important;
    }

    /* Carousel indicators */
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-indicator.active {
        background: #3b82f6;
        width: 30px;
        border-radius: 5px;
    }

    /* Swipe instruction */
    .swipe-instruction {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(13, 43, 79, 0.9);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 10;
        animation: fadeInOut 3s ease-in-out infinite;
    }

    @keyframes fadeInOut {
        0%,
        100% {
            opacity: 0.6;
        }
        50% {
            opacity: 1;
        }
    }
}

@media (min-width: 769px) {
    .swipe-instruction,
    .carousel-indicators {
        display: none !important;
    }

    .atoms-carousel {
        position: relative;
        width: 100%;
        height: 100%;
        display: block;
    }

    .atom-wrapper {
        position: absolute !important;
    }
}
