@font-face {
    font-family: 'Comico';
    src: url('assets/fonts/Comico-Regular.otf') format('opentype');
}

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

:root {
    --playful-pink: #FF6B9D;
    --playful-purple: #C44569;
    --playful-yellow: #FFE66D;
    --playful-cyan: #00D9FF;
    --playful-green: #00FF88;
    --playful-orange: #FF8C42;
    --dark-bg: #0a0a0a;
    --light-text: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comico', cursive;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 25%, #0f0a2e 50%, #2d0a3a 75%, #0a0a1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--light-text);
    overflow-x: hidden;
    position: relative;
}

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

/* Canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

/* RGB Overlay */
#rgb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.12;
    animation: rgbCycle 8s ease-in-out infinite;
}

@keyframes rgbCycle {
    0% {
        background: linear-gradient(45deg, rgba(255, 50, 100, 0.4), rgba(100, 50, 255, 0.2), rgba(50, 200, 255, 0.2));
    }
    33% {
        background: linear-gradient(135deg, rgba(100, 50, 255, 0.4), rgba(50, 200, 255, 0.2), rgba(255, 50, 100, 0.2));
    }
    66% {
        background: linear-gradient(225deg, rgba(50, 200, 255, 0.4), rgba(255, 50, 100, 0.2), rgba(100, 50, 255, 0.2));
    }
    100% {
        background: linear-gradient(45deg, rgba(255, 50, 100, 0.4), rgba(100, 50, 255, 0.2), rgba(50, 200, 255, 0.2));
    }
}

/* Content */
.content {
    position: relative;
    z-index: 10;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--playful-pink);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.1);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--playful-pink);
    font-family: 'Comico', cursive;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 0 10px var(--playful-pink));
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Comico', cursive;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--playful-pink), var(--playful-yellow));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--playful-pink);
    transform: translateY(-3px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero h1 {
    font-size: clamp(2.5rem, 10vw, 6rem);
    margin-bottom: 20px;
    font-family: 'Comico', cursive;
    color: var(--light-text);
    line-height: 1.2;
    animation: bounce 1s ease-out;
}

.hero h1 .highlight {
    color: var(--playful-pink);
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    display: inline-block;
}

@keyframes bounce {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--playful-yellow);
    margin-bottom: 40px;
    font-family: 'Comico', cursive;
    animation: slideIn 1s ease-out 0.2s both;
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideIn 1s ease-out 0.4s both;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Comico', cursive;
    border: 3px solid;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-pink {
    border-color: var(--playful-pink);
    color: var(--playful-pink);
}

.btn-pink:hover {
    background: var(--playful-pink);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.btn-cyan {
    border-color: var(--playful-cyan);
    color: var(--playful-cyan);
}

.btn-cyan:hover {
    background: var(--playful-cyan);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

/* Tools Section */
.tools-section {
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Comico', cursive;
    background: linear-gradient(45deg, var(--playful-pink), var(--playful-yellow), var(--playful-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: bounce 1s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--playful-cyan);
    margin-bottom: 60px;
    font-family: 'Comico', cursive;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(0, 217, 255, 0.1));
    border: 3px solid;
    border-radius: 20px;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card:nth-child(1) {
    border-color: var(--playful-pink);
}

.tool-card:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 107, 157, 0.1));
}

.tool-card:nth-child(2) {
    border-color: var(--playful-yellow);
}

.tool-card:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.2), rgba(255, 230, 109, 0.1));
}

.tool-card:nth-child(3) {
    border-color: var(--playful-cyan);
}

.tool-card:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 217, 255, 0.1));
}

.tool-card:hover {
    transform: translateY(-20px) rotate(-2deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.tool-icon {
    font-size: 2.5rem;
    display: block;
    animation: bounce 2s ease-in-out;
}

.tool-card:nth-child(2) .tool-icon {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) .tool-icon {
    animation-delay: 0.4s;
}

.tool-card h3 {
    font-size: 1.3rem;
    font-family: 'Comico', cursive;
    font-weight: bold;
    margin: 0;
}

.tool-card:nth-child(1) h3 {
    color: var(--playful-pink);
}

.tool-card:nth-child(2) h3 {
    color: var(--playful-yellow);
}

.tool-card:nth-child(3) h3 {
    color: var(--playful-cyan);
}

.tool-card p {
    color: var(--light-text);
    line-height: 1.4;
    font-size: 0.9rem;
    margin: 0;
    flex-grow: 1;
}

.tool-features {
    list-style: none;
    margin-bottom: 25px;
}

.tool-features li {
    padding: 8px 0;
    color: var(--light-text);
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.tool-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.tool-card:nth-child(1) .tool-features li::before {
    color: var(--playful-pink);
}

.tool-card:nth-child(2) .tool-features li::before {
    color: var(--playful-yellow);
}

.tool-card:nth-child(3) .tool-features li::before {
    color: var(--playful-cyan);
}

.launch-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid;
    border-radius: 12px;
    font-family: 'Comico', cursive;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:nth-child(1) .launch-btn {
    border-color: var(--playful-pink);
    color: var(--playful-pink);
    background: transparent;
}

.tool-card:nth-child(1) .launch-btn:hover {
    background: var(--playful-pink);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(-3deg);
}

.tool-card:nth-child(2) .launch-btn {
    border-color: var(--playful-yellow);
    color: var(--playful-yellow);
    background: transparent;
}

.tool-card:nth-child(2) .launch-btn:hover {
    background: var(--playful-yellow);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(3deg);
}

.tool-card:nth-child(3) .launch-btn {
    border-color: var(--playful-cyan);
    color: var(--playful-cyan);
    background: transparent;
}

.tool-card:nth-child(3) .launch-btn:hover {
    background: var(--playful-cyan);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(-3deg);
}

.tool-card:nth-child(4) {
    border-color: var(--playful-purple);
}

.tool-card:nth-child(4):hover {
    background: linear-gradient(135deg, rgba(196, 69, 105, 0.2), rgba(196, 69, 105, 0.1));
}

.tool-card:nth-child(4) h3 {
    color: var(--playful-purple);
}

.tool-card:nth-child(4) .tool-features li::before {
    color: var(--playful-purple);
}

.tool-card:nth-child(4) .launch-btn {
    border-color: var(--playful-purple);
    color: var(--playful-purple);
    background: transparent;
}

.tool-card:nth-child(4) .launch-btn:hover {
    background: var(--playful-purple);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(3deg);
}

.tool-card:nth-child(4) .tool-icon {
    animation-delay: 0.6s;
}

.tool-card:nth-child(5) {
    border-color: var(--playful-green);
}

.tool-card:nth-child(5):hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
}

.tool-card:nth-child(5) h3 {
    color: var(--playful-green);
}

.tool-card:nth-child(5) .tool-features li::before {
    color: var(--playful-green);
}

.tool-card:nth-child(5) .launch-btn {
    border-color: var(--playful-green);
    color: var(--playful-green);
    background: transparent;
}

.tool-card:nth-child(5) .launch-btn:hover {
    background: var(--playful-green);
    color: var(--dark-bg);
    transform: scale(1.05) rotate(-3deg);
}

.tool-card:nth-child(5) .tool-icon {
    animation-delay: 0.8s;
}

/* Fun section divider */
.divider {
    text-align: center;
    font-size: 1.5rem;
    margin: 60px 0;
    color: var(--playful-pink);
    font-family: 'Comico', cursive;
    letter-spacing: 8px;
    animation: bounce 2s ease-in-out infinite;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 3px dashed var(--playful-cyan);
    padding: 50px;
    text-align: center;
    color: var(--light-text);
    position: relative;
    z-index: 10;
}

.footer p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Comico', cursive;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.external-links{
    text-decoration: none;
    color: var(--playful-pink);
}

.external-links:hover {
    color: var(--playful-cyan);
    stroke: #00D9FF;
    border-bottom: 2px solid var(--playful-cyan);
}

.footer-links a {
    color: var(--playful-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Comico', cursive;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--playful-pink);
    transform: rotate(-2deg) scale(1.1);
}

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--playful-pink);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--playful-pink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--playful-pink);
    flex-direction: column;
    z-index: 999;
    animation: slideDown 0.25s ease;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Comico', cursive;
    font-size: 1.1rem;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--playful-pink);
    padding-left: 32px;
    background: rgba(255, 107, 157, 0.08);
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.85rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        font-size: 1.1rem;
    }

    .tools-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .footer {
        padding: 40px 24px;
    }

    .footer-links {
        gap: 18px;
    }
}

/* Responsive — mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0 16px;
        height: 56px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .tools-section {
        padding: 48px 16px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        padding: 20px 16px;
    }

    .tool-icon {
        font-size: 2rem;
    }

    .footer {
        padding: 32px 16px;
    }

    .footer-links {
        gap: 12px;
    }
}
