* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #0a1628;
    --darker-bg: #050d1a;
    --accent-cyan: #00ffff;
    --accent-purple: #bd00ff;
    --accent-pink: #ff00ff;
    --accent-blue: #00d4ff;
    --accent-green: #00ff88;
    --card-bg: rgba(15, 30, 60, 0.85);
    --card-border: rgba(0, 255, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ocean Background */
.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, 
        #0a1628 0%, 
        #0f1e3d 25%, 
        #142d52 50%, 
        #1a3a5f 75%, 
        #1e4768 100%);
    overflow: hidden;
}

/* Animated Waves */
.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 255, 255, 0.1));
    animation: wave-animation 15s linear infinite;
}

.wave1 {
    top: 0;
    opacity: 0.3;
    animation-duration: 20s;
}

.wave2 {
    top: 10%;
    opacity: 0.2;
    animation-duration: 15s;
    animation-delay: -5s;
}

.wave3 {
    top: 20%;
    opacity: 0.15;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-20px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Particles Canvas */
#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Marine Life */
.marine-life-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.sea-creature {
    position: absolute;
    filter: drop-shadow(0 0 10px currentColor);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.sea-creature:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Fish animations */
.fish {
    animation: swim linear infinite;
}

@keyframes swim {
    0% {
        transform: translateX(-150px) translateY(0px);
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(0px);
    }
}

.fish-reverse {
    animation: swim-reverse linear infinite;
}

@keyframes swim-reverse {
    0% {
        transform: translateX(calc(100vw + 150px)) translateY(0px) scaleX(-1);
    }
    100% {
        transform: translateX(-150px) translateY(0px) scaleX(-1);
    }
}

/* Dolphin animation */
.dolphin {
    animation: dolphin-swim 25s ease-in-out infinite;
}

@keyframes dolphin-swim {
    0% {
        transform: translateX(-200px) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(25vw) translateY(-50px) rotate(-10deg);
    }
    50% {
        transform: translateX(50vw) translateY(0) rotate(0deg);
    }
    75% {
        transform: translateX(75vw) translateY(-30px) rotate(-5deg);
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(0) rotate(0deg);
    }
}

/* Whale animation */
.whale {
    animation: whale-swim 50s linear infinite;
}

@keyframes whale-swim {
    0% {
        transform: translateX(-300px) translateY(0);
    }
    50% {
        transform: translateX(50vw) translateY(-20px);
    }
    100% {
        transform: translateX(calc(100vw + 300px)) translateY(0);
    }
}

/* Manta Ray animation */
.manta {
    animation: manta-glide 35s ease-in-out infinite;
}

@keyframes manta-glide {
    0% {
        transform: translateX(calc(100vw + 200px)) translateY(0) scaleX(-1) rotate(0deg);
    }
    25% {
        transform: translateX(75vw) translateY(-40px) scaleX(-1) rotate(-5deg);
    }
    50% {
        transform: translateX(50vw) translateY(-20px) scaleX(-1) rotate(5deg);
    }
    75% {
        transform: translateX(25vw) translateY(-50px) scaleX(-1) rotate(-3deg);
    }
    100% {
        transform: translateX(-200px) translateY(0) scaleX(-1) rotate(0deg);
    }
}

/* Jellyfish animation */
.jellyfish {
    animation: jellyfish-float 20s ease-in-out infinite;
}

@keyframes jellyfish-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Turtle animation */
.turtle {
    animation: turtle-swim 40s linear infinite;
}

@keyframes turtle-swim {
    0% {
        transform: translateX(-200px) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(50vw) translateY(-30px) rotate(-5deg);
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(0) rotate(0deg);
    }
}

/* Seahorse animation */
.seahorse {
    animation: seahorse-bob 8s ease-in-out infinite;
}

@keyframes seahorse-bob {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Diver animation */
.diver {
    animation: diver-swim 45s ease-in-out infinite;
}

@keyframes diver-swim {
    0% {
        transform: translateX(calc(100vw + 120px)) translateY(0) scaleX(-1) rotate(5deg);
    }
    15% {
        transform: translateX(85vw) translateY(-40px) scaleX(-1) rotate(0deg);
    }
    30% {
        transform: translateX(65vw) translateY(-20px) scaleX(-1) rotate(-3deg);
    }
    45% {
        transform: translateX(50vw) translateY(-60px) scaleX(-1) rotate(2deg);
    }
    60% {
        transform: translateX(35vw) translateY(-30px) scaleX(-1) rotate(-2deg);
    }
    75% {
        transform: translateX(20vw) translateY(-50px) scaleX(-1) rotate(3deg);
    }
    90% {
        transform: translateX(5vw) translateY(-20px) scaleX(-1) rotate(0deg);
    }
    100% {
        transform: translateX(-120px) translateY(0) scaleX(-1) rotate(-5deg);
    }
}

/* Coral Reef */
.coral-reef-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to top, 
        rgba(20, 45, 82, 0.6) 0%,
        rgba(20, 45, 82, 0.3) 50%,
        transparent 100%);
}

.coral-reef-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top,
        #1a2942 0%,
        #223856 50%,
        rgba(34, 56, 86, 0) 100%);
}

.coral {
    position: absolute;
    bottom: 0;
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.coral:hover {
    opacity: 1;
    transform: scale(1.05);
}

.coral-sway {
    animation: coral-sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes coral-sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

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

@keyframes coral-pulse {
    0%, 100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px currentColor);
    }
}

/* Reef creatures */
.reef-creature {
    position: absolute;
    filter: drop-shadow(0 0 5px currentColor);
    opacity: 0.9;
}

.starfish {
    animation: starfish-wiggle 6s ease-in-out infinite;
}

@keyframes starfish-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.crab {
    animation: crab-walk 12s linear infinite;
}

@keyframes crab-walk {
    0% {
        transform: translateX(0) scaleX(1);
    }
    48% {
        transform: translateX(100px) scaleX(1);
    }
    50% {
        transform: translateX(100px) scaleX(-1);
    }
    98% {
        transform: translateX(0) scaleX(-1);
    }
    100% {
        transform: translateX(0) scaleX(1);
    }
}

.anemone {
    animation: anemone-wave 5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes anemone-wave {
    0%, 100% {
        transform: scaleY(1) rotate(0deg);
    }
    33% {
        transform: scaleY(1.1) rotate(3deg);
    }
    66% {
        transform: scaleY(0.95) rotate(-3deg);
    }
}

.clownfish {
    animation: clownfish-swim 8s ease-in-out infinite;
}

@keyframes clownfish-swim {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(30px) translateY(-20px);
    }
    50% {
        transform: translateX(60px) translateY(0);
    }
    75% {
        transform: translateX(30px) translateY(-15px);
    }
}

.urchin {
    animation: urchin-spin 20s linear infinite;
}

@keyframes urchin-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.snail {
    animation: snail-crawl 25s linear infinite;
}

@keyframes snail-crawl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(150px);
    }
}

/* Bubbles */
.bubbles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(0, 255, 255, 0.4), 
        rgba(0, 200, 255, 0.2),
        rgba(0, 150, 255, 0.1));
    border-radius: 50%;
    opacity: 0.6;
    animation: rise linear infinite;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(0, 255, 255, 0.3);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(50px) scale(1.1);
        opacity: 0.4;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-50px) scale(0.8);
        opacity: 0;
    }
}

/* Header */
.main-header {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    z-index: 10;
}

.logo-container {
    position: relative;
    margin-bottom: 1rem;
}

/* Glitch Effect */
.glitch {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--accent-cyan);
    text-shadow: 
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 30px var(--accent-blue),
        0 0 40px var(--accent-blue);
    animation: glitch-skew 3s infinite;
    letter-spacing: 0.3rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-pink);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-blue);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(40% 0 30% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 40% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 85% 0); }
    20% { clip-path: inset(80% 0 5% 0); }
    40% { clip-path: inset(50% 0 30% 0); }
    60% { clip-path: inset(30% 0 70% 0); }
    80% { clip-path: inset(65% 0 15% 0); }
    100% { clip-path: inset(40% 0 50% 0); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(1deg); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

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

.pixel-border {
    width: 200px;
    height: 4px;
    margin: 1rem auto;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-cyan), 
        var(--accent-purple),
        var(--accent-pink),
        transparent);
    animation: pixel-move 2s linear infinite;
}

@keyframes pixel-move {
    0% { transform: scaleX(0.5); }
    50% { transform: scaleX(1.5); }
    100% { transform: scaleX(0.5); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.intro-text {
    text-align: center;
    margin-bottom: 3rem;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 3s steps(40) 1s 1 normal both,
               blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card Styles */
.site-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.site-card:hover::before {
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.site-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.card-domain {
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.card-description {
    color: #b0c4de;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    transition: left 0.3s;
}

.card-link:hover::before {
    left: 0;
}

.card-link span {
    position: relative;
    z-index: 1;
}

.card-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Corner Decorations */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    position: relative;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.footer-wave {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-cyan),
        var(--accent-purple),
        var(--accent-pink),
        transparent);
    margin-top: 1rem;
    animation: wave-flow 3s linear infinite;
}

@keyframes wave-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger animation delays */
.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.2s; }
.site-card:nth-child(3) { animation-delay: 0.3s; }
.site-card:nth-child(4) { animation-delay: 0.4s; }
.site-card:nth-child(5) { animation-delay: 0.5s; }
.site-card:nth-child(6) { animation-delay: 0.6s; }
.site-card:nth-child(7) { animation-delay: 0.7s; }
.site-card:nth-child(8) { animation-delay: 0.8s; }
.site-card:nth-child(9) { animation-delay: 0.9s; }
.site-card:nth-child(10) { animation-delay: 1s; }
.site-card:nth-child(11) { animation-delay: 1.1s; }
.site-card:nth-child(12) { animation-delay: 1.2s; }
.site-card:nth-child(13) { animation-delay: 1.3s; }

