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

:root {
    --yellow: #FFD700;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #1a1a1a;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Much more modern than Segoe UI */
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    /* Tech-focused header font */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--yellow);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--yellow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--yellow);
    transition: 0.3s;
}

/* --- HERO SECTION & ANIMATED BACKGROUND --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Important to keep blobs inside */
    padding-top: 0;
    /* Centering fix */
}

/* The Animated Background Layer */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--black);
}

/* The Glowing Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.3) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation-delay: -2s;
    transform: translate(-50%, -50%);
}

/* Subtle Grid Overlay for texture */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 50px) scale(1.1);
    }
}

/* --- HERO CONTENT --- */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    /* Above background */
    max-width: 900px;
    padding: 0 20px;
}

/* Status Badge */
.badge-container {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.2s;
}

.status-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--yellow);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Headings */
.hero h1 {
    font-size: 80px;
    /* Bigger impact */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

.hero .name {
    color: transparent;
    -webkit-text-stroke: 2px var(--yellow);
    position: relative;
    display: inline-block;
    transition: 0.3s;
}

.hero .name:hover {
    color: var(--yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Tagline */
.tagline-wrapper {
    min-height: 30px;
    /* Prevent layout shift */
    margin-bottom: 40px;
}

.hero p {
    font-size: 24px;
    color: #cccccc;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.8s;
}

/* Buttons */
.cta-buttons {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 1.1s;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 18px 40px;
    /* Larger touch targets */
    font-size: 16px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--yellow);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrowScroll 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

/* --- ANIMATIONS --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes arrowScroll {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .blob {
        opacity: 0.4;
    }

    /* Tone down background on mobile */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid var(--yellow);
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: transparent;
    color: var(--yellow);
}

.btn-secondary {
    background: transparent;
    color: var(--yellow);
}

.btn-secondary:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--yellow);
}

/* --- EXPERTISE SECTION --- */
#expertise {
    position: relative;
    /* Subtle gradient background to connect with Hero */
    background: radial-gradient(circle at 50% 50%, #111111 0%, var(--black) 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 80px;
    padding: 20px 0;
}

/* The Card Container */
.expertise-card {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle glass */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    /* For the spotlight effect */
    --mouse-x: 0px;
    --mouse-y: 0px;
}

/* The Spotlight Glow Effect */
.expertise-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    /* Border width */
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 215, 0, 0.4),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    /* Hidden by default, visible on hover via JS */
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Card Typography */
.expertise-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Decorative Icon (Generated via CSS) */
.expertise-card h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--yellow);
}

.expertise-card p {
    color: #a0a0a0;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Tags Styling */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: #d4d4d4;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 50px;
    /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.expertise-card:hover .tag {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--yellow);
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card {
        padding: 30px 25px;
    }
}

/* --- PROJECTS SECTION (Modern Tech Card) --- */
#projects {
    background: var(--black);
    padding: 100px 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    /* Wider cards */
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures equal height in grid */
    position: relative;
}

/* Hover: Lift up and glow yellow */
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* --- IMAGE AREA --- */
.project-image {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover: Slight zoom on image */
.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* The "Sheen" Effect (Diagonal light reflection) */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

/* Trigger Sheen on Hover */
.project-card:hover .project-image::before {
    animation: sheen 0.75s;
}

@keyframes sheen {
    100% {
        left: 125%;
    }
}

/* --- CONTENT AREA --- */
.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s;
}

.project-card:hover .project-content h3 {
    color: var(--yellow);
}

.project-content p {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes tags to bottom */
}

/* --- TAGS --- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.project-card:hover .tag {
    background: rgba(255, 215, 0, 0.05);
    color: var(--yellow);
    border-color: rgba(255, 215, 0, 0.2);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* Full width on mobile */
        gap: 25px;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image {
        height: 200px;
    }

    .project-content h3 {
        font-size: 20px;
    }
}

/* Creations Section */
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 60px;
    font-weight: 300;
}

.creations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.creation-card {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
}

.creation-card:hover {
    transform: translateY(-12px);
    border-color: var(--yellow);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.15);
}

.creation-preview {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.creation-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.creation-card:hover .creation-preview img {
    transform: scale(1.12) translateY(-8px);
}

.creation-card:hover .creation-preview {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.creation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--yellow);
    color: var(--black);
    padding: 6px 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 3px;
    backdrop-filter: blur(10px);
}

.creation-badge.website {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.creation-badge.mobile {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.creation-badge.game {
    background: rgba(255, 152, 0, 0.95);
    color: white;
}

.creation-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.creation-content h3 {
    color: var(--yellow);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.creation-content p {
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 13px;
}

.creation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.creation-tag {
    background: rgba(255, 215, 0, 0.08);
    color: var(--yellow);
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.creation-card:hover .creation-tag {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.creation-link {
    display: inline-block;
    padding: 10px 18px;
    background: var(--yellow);
    border: 2px solid var(--yellow);
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    border-radius: 3px;
    margin-left: auto;
}

.creation-link:hover {
    background: transparent;
    color: var(--yellow);
    transform: translateX(2px);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: calc(50% + 30px);
    text-align: left;
}

.timeline-content {
    background: var(--gray);
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--yellow);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
}

.timeline-content h3 {
    color: var(--yellow);
    margin-bottom: 5px;
    font-size: 20px;
}

.timeline-content .company {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content .date {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #cccccc;
    line-height: 1.6;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: var(--gray);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
}

.contact-item h3 {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 20px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--yellow);
}

/* Footer */
footer {
    background: var(--gray);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

footer p {
    color: #888;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .creations-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 30px;
        text-align: left;
    }

    .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
    }
}


/* Logo sizing */
.logo img {
    height: 40px;
    /* adjust as needed */
    width: auto;
    display: block;
}

/* Optional: ensure nav aligns correctly */
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LIVE APPLICATIONS SECTION (Glass Slate Layout) --- */
#applications {
    background: var(--black);
    padding: 100px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column list for maximum detail */
    gap: 30px;
    margin-top: 60px;
    max-width: 1000px;
    /* Control width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* The Card Container */
.app-slate {
    display: flex;
    /* Horizontal layout */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    /* It's a link */
    position: relative;
}

/* Hover Effect */
.app-slate:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
}

/* --- LEFT: IMAGE SECTION (40%) --- */
/* --- LEFT: IMAGE SECTION (Beautiful Presentation) --- */
.slate-image-box {
    width: 40%;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
    /* Deep dark base */
}

/* Layer 1: The Blurred Background */
.slate-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    /* Blur and darken */
    transform: scale(1.2);
    /* Zoom in to hide blurred edges */
    transition: transform 0.6s ease;
}

/* Layer 2: The Sharp Foreground Image Container */
.slate-img-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    /* Space around the image */
}

/* The Actual Image */
.slate-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Ensures WHOLE image is visible */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Pop off background */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.app-slate:hover .slate-bg-blur {
    transform: scale(1.3);
    /* Background moves slowly */
}

.app-slate:hover .slate-img-wrapper img {
    transform: scale(1.08) translateY(-5px);
    /* Main image pops out */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .slate-image-box {
        height: 220px;
        /* Fixed height for mobile header */
        width: 100%;
    }

    .slate-img-wrapper {
        padding: 20px;
    }
}

.slate-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.app-slate:hover .slate-image-box img {
    transform: scale(1.05);
}

/* Overlay on image to make it blend */
.slate-image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.app-slate:hover .slate-image-box::after {
    background: rgba(0, 0, 0, 0);
    /* Brighten on hover */
}

/* --- RIGHT: CONTENT SECTION (60%) --- */
.slate-content {
    width: 60%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 1. Top Meta Row */
.slate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.app-type-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dynamic color based on type (handled in CSS for simplicity) */
.app-type-badge[data-type*="game"] {
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
    background: rgba(255, 152, 0, 0.1);
}

.app-type-badge[data-type*="web"] {
    color: #2196f3;
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.1);
}

.app-type-badge[data-type*="mobile"] {
    color: #e91e63;
    border-color: rgba(233, 30, 99, 0.3);
    background: rgba(233, 30, 99, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 2. Main Text */
.slate-content h3 {
    font-size: 26px;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.slate-content p {
    font-size: 15px;
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* 3. Footer: Tags + Button */
.slate-footer {
    display: flex;
    justify-content: space-between;
    /* Spreads them apart */
    align-items: flex-end;
    /* Aligns button to bottom if tags take multiple lines */
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
    /* Safe distance between tags and button */
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    /* Reverted: Tags will naturally go to next line */
    gap: 8px;
    flex: 1;
    /* Takes up all remaining space */
}

/* Tag Style (Keeping the nice animation) */
.mini-tag {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.app-slate:hover .mini-tag {
    background: rgba(255, 215, 0, 0.08);
    color: var(--yellow);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* BUTTON STABILITY FIX */
.visit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Fixed gap (Does not change on hover) */
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Ensures button stays on one line and doesn't get squished */
    white-space: nowrap;
    flex-shrink: 0;
}

/* Target the span (arrow) for animation */
.visit-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-slate:hover .visit-btn {
    color: #fff;
}

/* Animate the arrow movement without changing width */
.app-slate:hover .visit-btn span {
    transform: translateX(5px);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .app-slate {
        flex-direction: column;
        /* Stack vertical */
    }

    .slate-image-box {
        width: 100%;
        height: 200px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .slate-content {
        width: 100%;
        padding: 25px;
    }

    .slate-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .visit-btn {
        width: 100%;
        justify-content: center;
        background: rgba(255, 215, 0, 0.1);
        padding: 10px;
        border-radius: 8px;
    }
}

/* New: Orange Dot for Coming Soon */
.wait-dot {
    width: 8px;
    height: 8px;
    background: #ff9800;
    /* Orange */
    border-radius: 50%;
    box-shadow: 0 0 10px #ff9800;
    animation: livePulse 2s infinite;
}

/* Text color for Coming Soon */
.live-indicator.coming-soon {
    color: #ff9800;
}

/* If the card has no link, change cursor */
.app-slate.no-link {
    cursor: default;
}

/* Optional: Less aggressive hover for non-clickable cards */
.app-slate.no-link:hover {
    transform: translateY(-2px);
    /* Smaller lift */
    border-color: rgba(255, 255, 255, 0.15);
    /* White glow instead of yellow */
}

/* --- CONTACT SECTION (The Magnetic Core) --- */
#contact {
    background: var(--black);
    padding: 120px 0 150px 0;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Ambient Background Glow */
#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 1. THE MAGNETIC EMAIL BUTTON CONTAINER */
.magnetic-container {
    position: relative;
    width: 300px;
    /* Adjust based on preference */
    height: 300px;
    margin: 0 auto 60px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Spinning Ring (Stargate Effect) */
.spinning-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 215, 0, 0.2);
    animation: spin 20s linear infinite;
    pointer-events: none;
}

.magnetic-container:hover .spinning-ring {
    animation-duration: 5s;
    /* Speeds up on hover */
    border-color: rgba(255, 215, 0, 0.5);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* The Actual Button */
.magnetic-btn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Physics feel */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    z-index: 10;
}

/* Inner Glow Pulse */
.magnetic-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.magnetic-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: scale(1.05);
    /* Slight grow */
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
}

.magnetic-btn:hover::after {
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

/* Button Text Styling */
.btn-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.btn-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
}

.btn-icon {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--yellow);
    transition: all 0.3s;
}

/* Hover Text Changes */
.magnetic-btn:hover .btn-label {
    color: rgba(0, 0, 0, 0.6);
}

.magnetic-btn:hover .btn-value {
    color: var(--black);
}

.magnetic-btn:hover .btn-icon {
    color: var(--black);
    transform: scale(1.2);
}

/* Copied State */
.magnetic-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
}

.magnetic-btn.copied .btn-icon {
    color: white;
}

/* 2. THE FLOATING SOCIAL DOCK (Beautiful Glass Tiles) */
.social-dock {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Safe wrapping on small screens */
    gap: 20px;
    margin-bottom: 50px;
    padding: 10px;
}

.dock-item {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* iOS Shape */
    backdrop-filter: blur(10px);

    color: #888;
    /* Default Icon Color */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy Spring */
    text-decoration: none;
}

/* Icon sizing */
.dock-item svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    /* Inherits color from parent */
    transition: transform 0.3s ease;
}

/* HOVER EFFECT: Lift, Glow Yellow, Icon Pop */
.dock-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 215, 0, 0.1);
    /* Yellow Tint */
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--yellow);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.2);
    /* Neon Glow */
}

.dock-item:hover svg {
    transform: scale(1.2);
}

/* TOOLTIP (The Label) */
.dock-item::after {
    content: attr(data-label);
    /* Grabs text from HTML */
    position: absolute;
    bottom: -35px;
    /* Below the icon */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);

    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Show Tooltip on Hover */
.dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .dock-item {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .dock-item svg {
        width: 22px;
        height: 22px;
    }
}

/* 3. GITHUB FOOTER */
.github-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.github-footer-btn:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}