/* Global Reset & Base Styles */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #6366f1;
    --card-bg: #171717;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header / Nav */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo span {
    color: var(--accent-color);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 10rem 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}


/* Browser Window Mockup Frame */
.browser-frame {
    background: #2a2a2a;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.viewport {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    /* Default bg */
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* --- IMAGINARY PROJECT DESIGNS (CSS ONLY) --- */

/* 1. Nebula Stream (Cyberpunk) */
.nebula-view {
    background: #050510;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nebula-orb {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #d946ef, #4f46e5);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 3s infinite alternate;
}

.nebula-text {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    color: #00ffcc;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffcc;
}

.nebula-grid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background:
        linear-gradient(transparent 0%, rgba(79, 70, 229, 0.2) 2px, transparent 3px),
        linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.2) 2px, transparent 3px);
    background-size: 40px 40px;
    transform: perspective(300px) rotateX(45deg);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 2. EcoLife (Organic) */
.eco-view {
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eco-circle {
    width: 150px;
    height: 150px;
    background: #86efac;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 6s infinite linear;
    position: absolute;
}

.eco-leaf {
    font-size: 3rem;
    color: #166534;
    z-index: 2;
}

.eco-nav {
    position: absolute;
    top: 20px;
    width: 80%;
    height: 10px;
    background: #bbf7d0;
    border-radius: 5px;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* 3. Minimalist Arch (Stark) */
.arch-view {
    background: #ffffff;
    color: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.arch-header {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    line-height: 0.9;
}

.arch-block {
    width: 100%;
    height: 100px;
    background: #000;
    margin-top: auto;
}

.arch-line {
    width: 100%;
    height: 2px;
    background: #000;
    margin-bottom: 20px;
}

/* 4. Retro Verse (Pixel/80s) */
.retro-view {
    background: #2e003e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    /* Fallback for pixel font */
}

.retro-sun {
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom, #fbbf24 50%, #f59e0b 50%, #d97706);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px #fbbf24;
}

.retro-text {
    color: #f472b6;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #be185d;
    letter-spacing: 2px;
}

.retro-mtn {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid #4c1d95;
}

.retro-mtn:nth-child(1) {
    left: 20%;
}

.retro-mtn:nth-child(2) {
    right: 20%;
    border-bottom-color: #5b21b6;
    height: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}