/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 25%, #3b82a0 50%, #4fb3a9 75%, #5dd39e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        transparent 30%, 
        rgba(79, 179, 169, 0.1) 40%, 
        rgba(59, 130, 160, 0.15) 60%, 
        rgba(30, 58, 95, 0.2) 80%, 
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: portalPulse 4s ease-in-out infinite;
}

.background-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        transparent 20%, 
        rgba(93, 211, 158, 0.05) 30%, 
        rgba(75, 179, 169, 0.1) 50%, 
        rgba(45, 90, 135, 0.15) 70%, 
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: portalPulse 6s ease-in-out infinite reverse;
}

@keyframes portalPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

/* Portal rings */
.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(93, 211, 158, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: portalRing 8s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
    border-color: rgba(79, 179, 169, 0.3);
}

.ring-2 {
    width: 400px;
    height: 400px;
    animation-delay: 2s;
    border-color: rgba(59, 130, 160, 0.25);
}

.ring-3 {
    width: 600px;
    height: 600px;
    animation-delay: 4s;
    border-color: rgba(93, 211, 158, 0.2);
}

@keyframes portalRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(30, 58, 95, 0.4);
    box-shadow: 0 0 20px rgba(30, 58, 95, 0.3);
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: rgba(93, 211, 158, 0.4);
    box-shadow: 0 0 25px rgba(93, 211, 158, 0.3);
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    background: rgba(79, 179, 169, 0.4);
    box-shadow: 0 0 15px rgba(79, 179, 169, 0.3);
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    background: rgba(59, 130, 160, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 160, 0.3);
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 50%;
    animation-delay: 3s;
    background: rgba(45, 90, 135, 0.4);
    box-shadow: 0 0 10px rgba(45, 90, 135, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(93, 211, 158, 0.3);
    animation: slideDown 1s ease-out;
    background: linear-gradient(45deg, #ffffff, #5dd39e, #4fb3a9, #ffffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 1s ease-out, gradientShift 3s ease-in-out infinite;
}

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

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    animation: slideUp 1s ease-out 0.3s both;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Portal content */
.portal-content {
    width: 100%;
    max-width: 800px;
}

.portal-description {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    animation: fadeIn 1s ease-out 0.6s both;
}

.portal-description h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #5dd39e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(93, 211, 158, 0.5);
}

.portal-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Portal buttons */
.portal-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 1s ease-out calc(0.9s + var(--delay, 0s)) both;
}

/* Digital Self Card - Blue Theme */
.portal-card[data-target="digital-self"] {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(59, 130, 160, 0.95) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.4), 0 0 20px rgba(0, 255, 255, 0.2);
}

.portal-card[data-target="digital-self"] h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.portal-card[data-target="digital-self"] p {
    color: rgba(255, 255, 255, 0.9);
}

.portal-card[data-target="digital-self"] .card-icon {
    background: linear-gradient(135deg, #00ffff, #0080ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 255, 255, 0.3));
}

.portal-card[data-target="digital-self"]:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 255, 255, 0.6));
}

.portal-card[data-target="digital-self"]:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.5), 0 0 30px rgba(0, 255, 255, 0.4);
}

/* Managing and Caring Card - Green Theme */
.portal-card[data-target="managing-caring"] {
    background: linear-gradient(135deg, rgba(79, 179, 169, 0.95) 0%, rgba(93, 211, 158, 0.95) 100%);
    border: 2px solid rgba(152, 251, 152, 0.3);
    box-shadow: 0 10px 30px rgba(79, 179, 169, 0.4), 0 0 20px rgba(152, 251, 152, 0.2);
}

.portal-card[data-target="managing-caring"] h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(152, 251, 152, 0.5);
}

.portal-card[data-target="managing-caring"] p {
    color: rgba(255, 255, 255, 0.9);
}

.portal-card[data-target="managing-caring"] .card-icon {
    background: linear-gradient(135deg, #98fb98, #5dd39e, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(152, 251, 152, 0.3));
}

.portal-card[data-target="managing-caring"]:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(152, 251, 152, 0.6));
}

.portal-card[data-target="managing-caring"]:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 179, 169, 0.5), 0 0 30px rgba(152, 251, 152, 0.4);
}

.portal-card:nth-child(1) {
    --delay: 0s;
}

.portal-card:nth-child(2) {
    --delay: 0.2s;
}

.portal-card.clicked {
    animation: blackHoleSuck 1.2s ease-in-out forwards;
}

/* Black hole animation */
@keyframes blackHoleSuck {
    0% {
        transform: translateY(-10px) scale(1.02);
        filter: brightness(1);
    }
    20% {
        transform: translateY(-20px) scale(1.1);
        filter: brightness(1.2);
    }
    40% {
        transform: translateY(-30px) scale(1.15) rotate(5deg);
        filter: brightness(0.8);
    }
    60% {
        transform: translateY(-40px) scale(0.9) rotate(15deg);
        filter: brightness(0.5) blur(2px);
    }
    80% {
        transform: translateY(-60px) scale(0.3) rotate(45deg);
        filter: brightness(0.2) blur(5px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) scale(0.01) rotate(180deg);
        filter: brightness(0) blur(10px);
        opacity: 0;
    }
}

.card-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.portal-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e3a5f;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

.card-status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Digital Self Card Status - Blue Theme */
.portal-card[data-target="digital-self"] .card-status {
    background: linear-gradient(135deg, #0080ff, #00ffff);
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.4);
}

/* Managing and Caring Card Status - Green Theme */
.portal-card[data-target="managing-caring"] .card-status {
    background: linear-gradient(135deg, #4fb3a9, #5dd39e);
    box-shadow: 0 4px 15px rgba(79, 179, 169, 0.4);
}

.card-status.coming-soon {
    background: linear-gradient(135deg, #98fb98, #5dd39e) !important;
    box-shadow: 0 4px 15px rgba(152, 251, 152, 0.4) !important;
}

/* Ripple effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* About Our Section */
.about-section {
    margin: 80px auto 40px auto;
    padding: 60px 40px;
    max-width: 1200px;
    width: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 25%, #3b82a0 50%, #4fb3a9 75%, #5dd39e 100%);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: white;
}

.about-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.about-container {
    padding: 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 60px;
    align-items: start;
}

.about-text {
    padding-right: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: white;
}

.description-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #5dd39e;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(93, 211, 158, 0.5);
}

.card-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.group-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    border-radius: 0 0 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Transition overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #000 0%, #1e3a5f 30%, #3b82a0 60%, #5dd39e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.transition-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.transition-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes cardPull {
    0% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

/* Black hole vortex effect */
.black-hole-vortex {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.8) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: vortexExpand 1.2s ease-out forwards;
    z-index: 999;
    pointer-events: none;
}

@keyframes vortexExpand {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(20) rotate(360deg);
        opacity: 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Digital Effects */
.digital-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.digital-effects.active {
    opacity: 1;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 0, 0.1));
    overflow: hidden;
}

.binary-rain::before {
    content: '1010110010101100101011001010110010101100101011001010110010101100';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 20px;
    opacity: 0.7;
    animation: binaryFall 3s linear infinite;
    word-wrap: break-word;
    white-space: pre-wrap;
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.digital-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.digital-particles::before,
.digital-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    animation: digitalFloat 4s ease-in-out infinite;
    box-shadow: 0 0 10px #00ffff;
}

.digital-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.digital-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes digitalFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.3) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 255, 0.3) 100%);
    background-size: 50px 50px;
    animation: circuitPulse 2s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 255, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 255, 255, 0.1) 75%, 
        transparent 100%);
    animation: glitchMove 1.5s ease-in-out infinite;
}

@keyframes glitchMove {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Data Streams */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.data-streams::before,
.data-streams::after {
    content: '< DATA_STREAM_01 > [ UPLOADING... ] < /DATA_STREAM_01 >';
    position: absolute;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    white-space: nowrap;
    animation: dataFlow 4s linear infinite;
    opacity: 0.6;
}

.data-streams::before {
    top: 25%;
    left: -100%;
    animation-delay: 0s;
}

.data-streams::after {
    top: 75%;
    left: -100%;
    animation-delay: 2s;
    content: '[ PROCESSING ] >> { NEURAL_NETWORK_ACTIVE } << [ COMPLETE ]';
}

@keyframes dataFlow {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(100vw + 100%));
        opacity: 0;
    }
}

/* Holographic Grid */
.holographic-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 75px 75px;
    animation: gridShift 8s ease-in-out infinite;
}

@keyframes gridShift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, 5px);
        opacity: 0.6;
    }
    50% {
        transform: translate(-5px, 10px);
        opacity: 0.4;
    }
    75% {
        transform: translate(5px, -5px);
        opacity: 0.5;
    }
}

/* Neon Pulses */
.neon-pulses {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neon-pulses::before,
.neon-pulses::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(0deg, 
        transparent 0%, 
        #ff0080 20%, 
        #00ffff 50%, 
        #ff0080 80%, 
        transparent 100%);
    animation: neonPulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px currentColor;
}

.neon-pulses::before {
    left: 15%;
    animation-delay: 0s;
}

.neon-pulses::after {
    right: 20%;
    animation-delay: 1.5s;
    background: linear-gradient(0deg, 
        transparent 0%, 
        #00ff41 20%, 
        #ff0080 50%, 
        #00ff41 80%, 
        transparent 100%);
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* Matrix Code */
.matrix-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.matrix-code::before {
    content: 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン';
    position: absolute;
    top: -50px;
    left: 0;
    color: #00ff41;
    font-size: 16px;
    line-height: 20px;
    opacity: 0.4;
    animation: matrixFall 6s linear infinite;
    word-wrap: break-word;
    white-space: pre-wrap;
    text-shadow: 0 0 10px #00ff41;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(calc(100vh + 50px));
        opacity: 0;
    }
}

/* Cyber Hexagons */
.cyber-hexagons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-hexagons::before,
.cyber-hexagons::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 34.64px;
    background: transparent;
    border: 2px solid #00ffff;
    transform: rotate(30deg);
    animation: hexFloat 5s ease-in-out infinite;
    opacity: 0.6;
}

.cyber-hexagons::before {
    top: 30%;
    left: 25%;
    animation-delay: 0s;
    border-color: #ff0080;
}

.cyber-hexagons::after {
    top: 60%;
    right: 25%;
    animation-delay: 2.5s;
    border-color: #00ff41;
}

@keyframes hexFloat {
    0%, 100% {
        transform: rotate(30deg) translateY(0px);
        opacity: 0.4;
    }
    25% {
        transform: rotate(45deg) translateY(-15px);
        opacity: 0.8;
    }
    50% {
        transform: rotate(60deg) translateY(-10px);
        opacity: 0.6;
    }
    75% {
        transform: rotate(75deg) translateY(-20px);
        opacity: 0.7;
    }
}

/* Digital Waves */
.digital-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.digital-waves::before,
.digital-waves::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid #00ffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: digitalRipple 4s ease-out infinite;
    opacity: 0;
}

.digital-waves::before {
    animation-delay: 0s;
    border-color: #00ff41;
}

.digital-waves::after {
    animation-delay: 2s;
    border-color: #ff0080;
}

@keyframes digitalRipple {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Terminal Lines */
.terminal-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
}

.terminal-lines::before,
.terminal-lines::after {
    content: '> SYSTEM_ACCESS_GRANTED\A> INITIALIZING_NEURAL_INTERFACE...\A> CONNECTION_ESTABLISHED\A> ENTERING_DIGITAL_REALM...';
    position: absolute;
    color: #00ff41;
    font-size: 12px;
    white-space: pre;
    animation: terminalType 3s ease-out infinite;
    opacity: 0.7;
}

.terminal-lines::before {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.terminal-lines::after {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
    content: '> QUANTUM_SYNC_ACTIVE\A> PROCESSING_CONSCIOUSNESS...\A> DIGITAL_SELF_LOADING...\A> REALITY_MATRIX_ONLINE';
}

@keyframes terminalType {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    25% {
        opacity: 0.7;
        transform: translateX(0);
    }
    75% {
        opacity: 0.7;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Laser Grid */
.laser-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49%, #ff0080 50%, #ff0080 51%, transparent 52%),
        linear-gradient(0deg, transparent 49%, #00ffff 50%, #00ffff 51%, transparent 52%);
    background-size: 100px 100px;
    animation: laserScan 6s linear infinite;
    opacity: 0.3;
}

@keyframes laserScan {
    0% {
        transform: translate(0, 0);
        opacity: 0.1;
    }
    25% {
        transform: translate(10px, 0);
        opacity: 0.4;
    }
    50% {
        transform: translate(10px, 10px);
        opacity: 0.3;
    }
    75% {
        transform: translate(0, 10px);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.1;
    }
}

/* Caring Effects */
.caring-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.caring-effects.active {
    opacity: 1;
}

.heart-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.heart-particles::before,
.heart-particles::after {
    content: '♥';
    position: absolute;
    font-size: 20px;
    color: #ff6b9d;
    animation: heartFloat 5s ease-in-out infinite;
    text-shadow: 0 0 20px #ff6b9d;
}

.heart-particles::before {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.heart-particles::after {
    top: 70%;
    right: 20%;
    animation-delay: 2.5s;
    color: #ff9a9e;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(10deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg) scale(1.2);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-15px) rotate(8deg) scale(1.1);
        opacity: 1;
    }
}

.healing-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 183, 197, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: healingPulse 3s ease-in-out infinite;
}

.healing-waves::before,
.healing-waves::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 183, 197, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.healing-waves::before {
    width: 300px;
    height: 300px;
    animation: healingPulse 3s ease-in-out infinite 1s;
}

.healing-waves::after {
    width: 400px;
    height: 400px;
    animation: healingPulse 3s ease-in-out infinite 2s;
}

@keyframes healingPulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.nature-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(152, 251, 152, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 182, 193, 0.1) 0%, transparent 50%);
    animation: natureBreathe 4s ease-in-out infinite;
}

@keyframes natureBreathe {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.warm-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 183, 197, 0.1) 0%, 
        transparent 30%, 
        rgba(255, 218, 185, 0.1) 70%, 
        transparent 100%);
    animation: warmPulse 6s ease-in-out infinite;
}

@keyframes warmPulse {
    0%, 100% {
        opacity: 0.2;
    }
    33% {
        opacity: 0.5;
    }
    66% {
        opacity: 0.3;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .portal-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portal-card {
        padding: 30px 20px;
    }
    
    .container {
        padding: 15px;
    }    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-section {
        padding: 40px 20px;
    }
    
    .about-main-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }    .image-container {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .portal-description h2 {
        font-size: 2rem;
    }
    
    .portal-card {
        padding: 25px 15px;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .portal-card h3 {
        font-size: 1.5rem;
    }    .about-section {
        margin: 40px auto 20px auto;
        padding: 30px 15px;
    }
    
    .about-main-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .info-cards {
        margin-top: 25px;
        gap: 12px;
    }
    
    .card-number {
        font-size: 1.8rem;
    }
    
    .card-label {
        font-size: 0.8rem;
    }      .image-container {
        height: 280px;
    }
}
