/* landing.css - styles for pixelotl studio landing page */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Tiny5&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', cursive, monospace;
    background: linear-gradient(135deg, #1a0033 0%, #0f002c 50%, #2d1b4e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background-image: 
        linear-gradient(rgba(95, 202, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 202, 255, 0.03) 1px, transparent 1px); */
    background-size: 12px 12px;
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.logo{
    width: 400px;
}
@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.pixel {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #5fcaff;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    50% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.pixel:nth-child(2) { left: 20%; animation-delay: -5s; background: #ff79b0; }
.pixel:nth-child(3) { left: 40%; animation-delay: -10s; background: #a855f7; }
.pixel:nth-child(4) { left: 60%; animation-delay: -2s; background: #10b981; }
.pixel:nth-child(5) { left: 80%; animation-delay: -8s; background: #fbbf24; }

.container {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 800px;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: #5fcaff;
    text-shadow: 
        3px 3px 0 #ff79b0,
        6px 6px 0 #a855f7,
        0 0 20px rgba(95, 202, 255, 0.5);
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: #ff79b0;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: rgba(36, 0, 56, 0.7);
    border: 1px solid #5fcaff;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  /*  box-shadow: 
        0 0 20px rgba(95, 202, 255, 0.2),
        inset 0 0 60px rgba(95, 202, 255, 0.05); */
    font-family: 'Poppins', cursive, monospace;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #5fcaff, #ff79b0, #a855f7, #5fcaff);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(95, 202, 255, 0.4),
        inset 0 0 60px rgba(95, 202, 255, 0.1);
    border-color: #ff79b0;
}

.project-card h2 {
    font-family:Tiny5, cursive, monospace;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #5fcaff;
    margin-bottom: 15px;

}

.project-card:hover h2 {
    color: #ff79b0;
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.project-card p {
    font-size: clamp(0.6rem, 1.5vw, 0.85rem);
    line-height: 1.8;
    color: #c4b5fd;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pfp {
    width: 120px;
    height: 120px;
 /*   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border: 1px solid #5fcaff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 
        0 0 20px rgba(95, 202, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    image-rendering: pixelated;
    position: relative;
    overflow: hidden;
}

.pfp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.team-member:hover .pfp {
    transform: scale(1.1) rotate(5deg);
    border-color: #ff79b0;
    box-shadow: 
        0 0 30px rgba(255, 121, 176, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
}
.member-name {
    margin-bottom: 0 !important;
    font-family: 'Tiny5', cursive, monospace;
    font-size: 18px !important;
}
.member-name a{

    color: #5fcaff;
 /*   text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);*/
    letter-spacing: 1px;
}

.member-role {
    font-size: clamp(0.5rem, 1.2vw, 0.5rem) !important;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
 /*   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);*/
    transition: all 0.3s ease;
    font-family: 'Tiny5', cursive, monospace;
}

.cta:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
 /*   box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);*/
    transform: scale(1.05);
}

.emoji {
    font-style: normal;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.6rem;
    color: #a855f7;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    h1 {
        letter-spacing: 2px;
    }
    .subtitle {
        letter-spacing: 1px;
    }
    .project-card {
        padding: 20px;
    }
}

/* Social icon (top-right) */
.social-link {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 1001;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(95,202,255,0.12), rgba(168,85,247,0.08));
    border: 1px solid rgba(95,202,255,0.18);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(16,11,48,0.6), 0 2px 6px rgba(95,202,255,0.06) inset;
    backdrop-filter: blur(4px) saturate(1.1);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.social-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(95,202,255,0.12), 0 8px 30px rgba(95,202,255,0.16);
    transform: translateY(-2px) scale(1.02);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05) rotate(-6deg);
    filter: saturate(1.1) drop-shadow(0 6px 12px rgba(95,202,255,0.18));
}

.social-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    display: block;
    transform-origin: center;
    transition: transform 180ms ease;
}



/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(16,11,48,0.9), rgba(24,14,64,0.85));
    border: 1px solid rgba(95,202,255,0.12);
    color: #fff;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

/* Slightly smaller on small screens */
@media (max-width: 480px) {
    .social-link { bottom: 8px; right: 8px; width: 40px; height: 40px; border-radius: 8px; }
    .social-icon { width: 24px; height: 24px; }
    .theme-toggle {
    position: fixed;
    bottom: 8px;
    right: 52px;
    top: auto;
    }
}
.theme-toggle:active { transform: translateY(1px); }

.theme-toggle i { font-size: 18px; pointer-events: none; line-height: 1; }

/* Day theme overrides */
/* Day theme: solid white background + subtle light grid */
body.day {
    background: #ffffff;
    color: #0b2540;
}

body.day::before {
    background-image: 
        linear-gradient(rgba(11, 37, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 37, 64, 0.03) 1px, transparent 1px);
    background-size: 12px 12px;
}

body.day h1 {
    color: #0b4a78;
    text-shadow: none;
}

body.day .subtitle { color: #3b6a9a; }

body.day .project-card {
    background: rgba(255,255,255,0.9);
    border-color: #7aa7ff;
    color: #0b2540;
}

body.day .project-card p { color: #274058; }

body.day .social-link {
    background: linear-gradient(135deg, rgba(122,167,255,0.12), rgba(138,180,255,0.08));
    border-color: rgba(11,37,64,0.08);
}

body.day .pixel { filter: saturate(0.9) brightness(0.95); opacity: 0.7; }
body.day .theme-toggle {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,245,245,0.85));
    border: 1px solid rgba(11,37,64,0.12);
    color: #0b2540;
}