:root {
    /* Core Layout Colors */
    --bg-color: #050505; 
    --card-bg: rgba(15, 20, 18, 0.65); 
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(163, 177, 138, 0.4); 
    
    --text-main: #e6e8e6; 
    --text-muted: #a0a8a0; 
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Morphing Gradient Palette (Extracted from Image) */
    --color-bg: #080a08;          /* Pitch dark green/black */
    --color-1: #1e2b21;          /* Deep Moss Green */
    --color-2: #3d362d;          /* Dark Bronze/Shadow */
    --color-3: #5e6658;          /* Muted Slate Green */
    --color-4: #8c7b6c;          /* Warm Skin Tone/Highlight */
    --color-5: #2d382e;          /* Jacket Charcoal Green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

/* --- NEW MORPHING BACKGROUND --- */
.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: -2;
    overflow: hidden;
}

.gradients-container {
    filter: blur(80px) contrast(120%) brightness(0.8); /* Heavy blur for smooth morphing */
    width: 100%;
    height: 100%;
    position: relative;
}

/* The Moving Blobs */
.g1, .g2, .g3, .g4, .g5 {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: hard-light; /* Helps colors blend organically */
    opacity: 0.8;
}

/* Blob 1: Moss Green */
.g1 {
    background: radial-gradient(circle at center, var(--color-1) 0, transparent 50%);
    width: 80%;
    height: 80%;
    top: calc(50% - 40%);
    left: calc(50% - 40%);
    animation: moveVertical 30s ease infinite;
}

/* Blob 2: Bronze/Warmth */
.g2 {
    background: radial-gradient(circle at center, var(--color-2) 0, transparent 50%);
    width: 60%;
    height: 60%;
    top: calc(50% - 30%);
    left: calc(50% - 30%);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
}

/* Blob 3: Slate */
.g3 {
    background: radial-gradient(circle at center, var(--color-3) 0, transparent 50%);
    width: 50%;
    height: 50%;
    top: calc(50% + 200px);
    left: calc(50% - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
}

/* Blob 4: Highlight */
.g4 {
    background: radial-gradient(circle at center, var(--color-4) 0, transparent 50%);
    width: 40%;
    height: 40%;
    top: 20%;
    left: 20%;
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.4; /* More subtle */
}

/* Blob 5: Shadow */
.g5 {
    background: radial-gradient(circle at center, var(--color-5) 0, transparent 50%);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: moveInCircle 20s ease infinite;
}

/* Animations */
@keyframes moveInCircle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(50%); }
    100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
    0% { transform: translateX(-50%) translateY(-10%); }
    50% { transform: translateX(50%) translateY(10%); }
    100% { transform: translateX(-50%) translateY(-10%); }
}

/* --- GRAIN OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.09; /* Increased slightly for "grainy aesthetic" */
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* --- Container & Layout --- */
.main-container {
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    z-index: 1;
}

/* --- Header --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo .dot { color: #a3b18a; }

.status-badge {
    background: rgba(10, 12, 10, 0.5);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #609966;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(96, 153, 102, 0.5);
    animation: blink 3s infinite ease-in-out;
}

/* --- GRID LAYOUT --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* --- Card Styles --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8);
    background: rgba(20, 25, 22, 0.7);
}

/* Assignments */
.image-card { grid-column: span 1; grid-row: span 2; padding: 0; position: relative; }
.hero-card { grid-column: span 2; grid-row: span 1; display: flex; flex-direction: column; justify-content: center; min-height: 250px; }
.stat-card { grid-column: span 1; display: flex; justify-content: space-around; align-items: center; text-align: center; }
.action-card { grid-column: span 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; }

/* News & PrimePC Cards (Bottom Row) */
.news-card, .prime-card {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; margin-top: 0.5rem; position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

/* News: 1/3 Width */
.news-card {
    grid-column: span 1;
    background: linear-gradient(90deg, rgba(45, 56, 46, 0.3) 0%, rgba(58, 75, 82, 0.3) 100%);
}

/* PrimePC: 2/3 Width */
.prime-card {
    grid-column: span 2;
    background: linear-gradient(90deg, rgba(58, 75, 82, 0.3) 0%, rgba(70, 85, 75, 0.3) 100%);
}

.news-card:hover, .prime-card:hover {
    border-color: rgba(163, 177, 138, 0.4);
    box-shadow: 0 0 30px rgba(52, 78, 65, 0.3);
}

.news-card:hover .cta-icon, .prime-card:hover .cta-icon {
    background: #dad7cd; color: #000;
    transform: translateX(10px) scale(1.1);
}

/* --- Typography & Elements --- */
h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #a3b18a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; font-weight: 400; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    font-size: 0.75rem; padding: 0.4rem 1rem; border-radius: 20px;
    background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
    color: #dad7cd; letter-spacing: 0.5px; text-transform: uppercase;
}

/* Images */
.img-container { width: 100%; height: 100%; }
.profile-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; filter: saturate(0.9) contrast(1.1); }
.image-card:hover .profile-img { transform: scale(1.03); }
.overlay-info {
    position: absolute; bottom: 1rem; left: 1rem;
    background: rgba(10, 12, 10, 0.85); backdrop-filter: blur(8px);
    padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1); color: #dad7cd;
}

/* Stats & Buttons */
.stat-item h2 {
    font-family: var(--font-display); font-size: 2.5rem;
    background: linear-gradient(to bottom, #fff, #586b5b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }

.contact-links { display: flex; gap: 1rem; }
.icon-btn {
    width: 60px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s;
}
.icon-btn:hover { background: #dad7cd; color: #000; transform: scale(1.1); }

.cta-content { display: flex; justify-content: space-between; align-items: center; width: 100%; z-index: 2; }
.cta-text h3 { font-family: var(--font-display); font-size: 1.5rem; }
.cta-text p { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px;}
.cta-icon {
    font-size: 1.2rem; background: rgba(255,255,255,0.05); color: #dad7cd;
    width: 80px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
    flex-shrink: 0; margin-left: 10px;
}

/* Mouse Follow Glow */
.card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px; padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.15), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    z-index: 3; opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.main-container:hover .card::before { opacity: 1; }

footer { text-align: center; margin-top: 4rem; color: var(--text-muted); font-size: 0.9rem; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Mobile */
@media (max-width: 900px) {
    .grid-layout { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto; 
    }
    
    .hero-card, .image-card, .stat-card, .action-card, .news-card, .prime-card { 
        grid-column: span 1; 
        grid-row: auto; 
    }
    
    .image-card { 
        height: 350px; 
        order: -1; 
    }
    
    h1 { font-size: 2.2rem; }
}