* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3);
    background: rgb(43, 43, 43);
}

::-webkit-scrollbar-thumb {
    border-radius: 15px;
    background: #a8a8a8;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Layer 1: Slow twinkling stars */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 200px 90px, #ffffff, transparent),
        radial-gradient(1px 1px at 240px 50px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 280px 120px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 320px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 360px 100px, rgba(255, 255, 255, 0.6), transparent);
    background-repeat: repeat;
    background-size: 1200px 450px;
    animation: twinkleSlow 10s ease-in-out infinite alternate, drift 80s linear infinite;
    z-index: -4;
    pointer-events: none;
}

/* Layer 2: Medium twinkling stars */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 25px 45px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 75px 25px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 135px 85px, #ffffff, transparent),
        radial-gradient(2px 2px at 195px 55px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 255px 115px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 315px 65px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 375px 135px, #ffffff, transparent),
        radial-gradient(1px 1px at 435px 45px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 495px 105px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 555px 75px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 1200px 450px;
    animation: twinkleMedium 6s ease-in-out infinite alternate, float 60s ease-in-out infinite;
    z-index: -3;
    pointer-events: none;
}

/* Layer 3: Fast twinkling */
body .stars3 {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 60px 60px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 120px 120px, #ffffff, transparent),
        radial-gradient(2px 2px at 180px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 240px 100px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 300px 160px, #ffffff, transparent),
        radial-gradient(2px 2px at 360px 200px, rgba(255, 255, 255, 0.9), transparent);
    background-repeat: repeat;
    background-size: 1000px 400px;
    animation: twinkleFast 3s ease-in-out infinite alternate, drift 50s linear infinite;
    z-index: -2;
    pointer-events: none;
}

/* Layer 4: Very fast twinkling (tiny stars/dust) */
body .stars4 {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 30px 30px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 90px 90px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 150px 60px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 210px 120px, rgba(255, 255, 255, 0.6), transparent);
    background-repeat: repeat;
    background-size: 800px 300px;
    animation: twinkleVeryFast 1.5s ease-in-out infinite alternate, float 30s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes twinkleSlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes twinkleMedium {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes twinkleFast {

    0%,
    100% {
        opacity: 1;
    }

    25% {
        opacity: 0.5;
    }

    75% {
        opacity: 0.2;
    }
}

@keyframes twinkleVeryFast {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.1;
    }
}

@keyframes drift {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(15px) translateY(-10px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.header {
    padding: 120px 0 80px;
    text-align: center;
}

.header h1 {
    font-family: 'Space Mono', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
}

.bio {
    font-size: 1.25rem;
    color: #a3a3a3;
    margin: 0 auto;
    font-weight: 400;
}

/* Default (centered) */
.earth-section {
    display: flex;
    justify-content: center;
    transition: all 2s ease;
    /* smooth */
}

.margin-topp {
    margin-top: 100px;
}

/* Hidden by default */
.hidden-default {
    opacity: 0;
    transform: translateY(20px);
    /* slight upward movement for fade effect */
    transition: opacity 1s ease, transform 1s ease;
    /* fixed margin controlled by Earth */
}

/* When class is added */
.unhide-default {
    opacity: 1;
    transform: translateY(0);
    /* fade in smoothly */
}

#earthPNG {
    transition: margin-top 0.6s ease, width 0.3s ease, height 0.3s ease;
}

.earth-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 100px;
    /* gap for both rows and columns */
    column-gap: 100px;
    /* only horizontal */
    row-gap: 100px;
    /* only vertical */
    position: relative;
}

.bio-width {
    font-size: 1.25rem !important;
    margin-right: 50px;
}

.earth {
    width: 120rem;
    height: 120rem;
    position: relative;
    transform: rotate(90deg);
    overflow: hidden;
    animation: earthRotate 720s linear infinite;
}

/* Static Earth for Mobile */
@media (max-width: 991px) {
    .earth {
        display: none;
    }

    .bio-width {
        margin-left: 50px;
        margin-right: 50px;
    }

    .earth-container {
        grid-template-columns: auto;
    }
}

.left-aligned {
    margin-top: 150px;
}

@media (max-width:911px) {
    .left-aligned {
        margin-top: 0px;
    }
}

/* Realistic Earth continents overlay */
.earth::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("/media/earth.png") center/cover;
}

/* Earth highlight */
.earth::after {
    content: '';
    position: absolute;
}

@keyframes earthRotate {
    0% {
        transform: rotate(90deg);
    }

    100% {
        transform: rotate(-90deg);
    }
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 2px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
}

.newfont {
    font-family: 'Space Mono', monospace;
}

.member-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    color: #ffffff;
    /* Initial hidden state */
    opacity: 0;
    transform: translateY(20px);
    /* No automatic animation - wait for .visible class */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only animate when .visible class is added */
.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the visible animation when class is added */
.member-card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.member-card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.member-card.visible:nth-child(3) {
    transition-delay: 0.3s;
}

/* Background image + blur */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -2;
}

/* First card */
.member-card:nth-child(1)::before {
    background-image: url('/media/logo/tm.jpg');
}

/* Second card */
.member-card:nth-child(2)::before {
    background-image: url('/media/logo/sid.jpg');
}

/* Third card */
.member-card:nth-child(3)::before {
    background-image: url('/media/logo/danish.png');
}

/* Dark blur overlay for cards 2 and 3 */
.member-card:nth-child(2),
.member-card:nth-child(3) {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

/* Alternative: If backdrop-filter doesn't work well, use this instead */
.member-card:nth-child(2)::before,
.member-card:nth-child(3)::before {
    filter: blur(10px) brightness(0.6);
}

.member-card:hover {
    border-color: #525252;
    transform: translateY(-4px);
}

/* SHINE SWEEP EFFECT - Only when .sweep class is added */
.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

/* Initial sweep animation - only when .sweep class is added */
.member-card.sweep::after {
    animation: initial-shine-sweep 1.2s ease-out;
    animation-delay: 0.6s;
}

/* Hover sweep animation - left to right */
.member-card:hover::after {
    animation: shine-sweep-right 0.6s ease-out;
    animation-delay: 0s;
    animation-fill-mode: forwards;
}

/* Unhover sweep animation - right to left */
.member-card::after {
    transition: left 0.6s ease-out, opacity 0.6s ease-out;
}

/* When hovering, completely disable the initial animation */
.member-card.sweep:hover::after {
    animation: shine-sweep-right 0.6s ease-out;
    animation-delay: 0s;
    animation-fill-mode: forwards;
}

/* On unhover, animate back */
.member-card:not(:hover)::after {
    animation: shine-sweep-left 0.6s ease-out;
}

@keyframes initial-shine-sweep {

    0%,
    50% {
        left: -100%;
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Left to right sweep (on hover) */
@keyframes shine-sweep-right {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Right to left sweep (on unhover) */
@keyframes shine-sweep-left {
    0% {
        left: 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: -100%;
        opacity: 0;
    }
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* makes it circular */
    background: linear-gradient(135deg, #525252, #737373);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* ensures image doesn't spill outside circle */
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills circle without stretching */
    display: block;
}

.member-name {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.member-role {
    color: #a3a3a3;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.member-bio {
    color: #d4d4d4;
    line-height: 1.6;
    font-size: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 48px;
}

.project-card {
    position: relative;
    text-decoration: none;
    border: 1px solid #404040;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;

    /* Initial hidden state for fade + slide effect */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animate when .visible is added */
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation if multiple cards */
.project-card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

/* Background image + blur + optional overlay */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-position: center;
    background-size: cover;
    filter: blur(10px);

    /* First card background */
    background-image: url('/media/dashboard/insight.png');
}

/* Second card: image + dark overlay */
.project-card:nth-child(1)::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/media/dashboard/axora.png');
}

/* Hover effects */
.project-card:hover {
    background: transparent;
    border-color: #525252;
    transform: translateY(-4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* SHINE SWEEP EFFECT */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

/* Optional initial sweep */
.project-card.sweep::after {
    animation: initial-shine-sweep 1.2s ease-out;
    animation-delay: 0.6s;
}

/* Hover sweep */
.project-card:hover::after {
    animation: shine-sweep-right 0.6s ease-out;
    animation-fill-mode: forwards;
}

/* Unhover sweep */
.project-card:not(:hover)::after {
    animation: shine-sweep-left 0.6s ease-out;
}

/* Keyframes */
@keyframes initial-shine-sweep {

    0%,
    50% {
        left: -100%;
        opacity: 0;
    }

    60%,
    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes shine-sweep-right {
    0% {
        left: -100%;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes shine-sweep-left {
    0% {
        left: 100%;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        left: -100%;
        opacity: 0;
    }
}

.project-header {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* keeps 16:9 ratio */
    background: linear-gradient(135deg, #404040, #525252);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    overflow: hidden;
    /* hide overflow if image is bigger */
}

.project-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills container without stretching */
    display: block;
}

.project-content {
    padding: 40px 32px;
}

.project-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.project-description {
    color: #d4d4d4;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    backdrop-filter: blur(10px);
    border: 1px solid #404040;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Space Mono', monospace;
}

.margin-top {
    margin-top: 100px;
}

/* Footer */
.footer {
    margin-top: 100px;
    background: #0f0f0f;
    border-top: 1px solid #333333;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #a3a3a3;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    font-family: 'Space Mono', monospace;
    border-top: 1px solid #333333;
    padding-top: 32px;
    text-align: center;
    color: #737373;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.navbar .logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links li a {
    text-decoration: none;
    color: #bbbbbb;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .navbar {
        background: #000000;
        /* Solid black background on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden offscreen */
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: #000000;
        transition: left 0.3s ease;
        z-index: 2000;
        padding: 0;
        margin: 0;
    }

    @media (max-width:991px) {
        .margin-topppp {
            margin-top: 100px;
        }
    }

    .nav-links li {
        width: auto;
        margin-left: 20px;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li a {
        font-family: 'Space Mono', monospace !important;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: #ffffff;
        z-index: 2100;
        position: relative;
    }
}

/* Optional Hamburger for mobile */
.menu-toggle {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 991px) {
    .header h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .earth {
        width: 220px;
        height: 220px;
    }

    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }

    /* Optional Hamburger for mobile */
    .menu-toggle {
        display: block;
    }
}

/* .active {
    color: white !important;
}
*/

.navbar-container {
    position: relative;
    z-index: -1;
    /* start behind */
    opacity: 0;
    transform: translateY(-25px);
    /* start slightly below */
    transition: opacity 1s ease, transform 1s ease, z-index 0.5s ease;
}

.navbar-container.active {
    opacity: 1;
    transform: translateY(0);
    /* move to original position */
    z-index: 1;
    /* bring it forward */
}

/* Initial styles for the section */
#earth-section {
    position: relative;
    z-index: -1;
    /* start behind */
    opacity: 0;
    transform: translateY(-50px);
    /* start slightly below */
    transition: opacity 1s ease, transform 1s ease, z-index 0.5s ease;
}

/* Active class to trigger the animation */
#earth-section.active {
    opacity: 1;
    transform: translateY(0);
    /* move to original position */
    z-index: 1;
    /* bring it forward */
}

.hawa {
    z-index: 1000000;
    transition: all 1s ease-in-out;
    transform: translateY(-1500px) !important;
}

.hawa.visible {
    z-index: 0;
    transform: translateY(0px) !important;
}

/* Optional: smooth fade-in when scrolling into view */
.linebreak {
    display: none;
}

@media (max-width:991px) {
    .linebreak {
        border: #ffffff 1px solid;
        display: block;
    }

    .linebreakk {
        margin-top: 100px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-container {
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    justify-content: center;
    padding: 3rem;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.tile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 60%;
    font-family: Arial, sans-serif;
}

.tile-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Tiles */
.tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tile:hover {
    transform: translateY(-3px);
    border-color: #525252;
}

/* Labels + Inputs */
.tile label {
    font-family: 'Space Mono', monospace;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #ccc;
}

.tile input,
.tile textarea {
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #404040;
    border-radius: 4px;
    background-color: #121212;
    color: #fff;
    resize: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.tile input:focus,
.tile textarea:focus {
    outline: none;
    border-color: #525252;
    background-color: #1e1e1e;
}

/* Button animation */
.tile-form button {
    font-family: 'Space Mono', monospace;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    background-color: #404040;
    border: 2px solid #404040;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    align-self: flex-end; /* right on desktop */
    opacity: 0; /* start hidden */
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease, border-color 0.3s ease;
}

/* When container is visible → fade button in */
.form-container.visible .tile-form button {
    opacity: 1;
    transform: translateY(0);
}

.tile-form button:hover {
    background-color: #525252;
    border-color: #525252;
}

/* Responsive */
@media (max-width: 991px) {
    .tile-form {
        width: 100%;
    }

    .tile-row {
        flex-direction: column;
    }

    .tile-form button {
        align-self: center; /* center on mobile */
        margin-top: 1rem;
    }
}