:root {
    --bg-color: #000000;
    --tech-blue: #00f3ff;
    --tech-white: #ffffff;
    --tech-teal: #008f96;
    --text-color: #ffffff;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    
    /* Glass Variables */
    --glass-bg: linear-gradient(145deg, rgba(30, 35, 40, 0.7) 0%, rgba(10, 15, 20, 0.5) 100%);
    --glass-border: rgba(0, 243, 255, 0.15);
    --glass-blur: blur(20px) saturate(140%);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), 
                    inset 0 0 0 1px rgba(255, 255, 255, 0.03); 
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- BACKGROUNDS --- */
#fluid-canvas {
    position: fixed;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    z-index: -2; 
    filter: blur(100px) contrast(1.1); 
    background: #000000;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* --- HERO SECTION --- */
/* Added top padding since header is gone */
.hero-section {
    padding: 100px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel.gnome-style {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px;
    max-width: 1100px;
    width: 100%;
    
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 4px;
}

/* --- THE PROFILE FRAME --- */
.profile-frame {
    padding: 10px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.glow-ring {
    position: relative;
    width: 180px; height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* THE SOFT, SLOW COLOR WAVE */
.glow-ring::before {
    content: '';
    position: absolute;
    inset: -5px; 
    border-radius: 50%;
    
    /* Updated to match Background Palette (Cyan, Purple, Blue) */
    background: conic-gradient(
        from 0deg,
        var(--tech-blue),
        rgba(112, 0, 255, 0.5), /* Deep Purple */
        transparent,
        var(--tech-teal),
        rgba(0, 17, 255, 0.5),  /* Electric Blue */
        transparent,
        var(--tech-blue)
    );
    
    /* Increased blur and reduced opacity for a "blended" look */
    filter: blur(20px);
    opacity: 0.7; 
    
    /* Slowed down significantly to match background speed */
    animation: spin 20s linear infinite;
}

/* Ensure the profile pic has no border */
.profile-pic {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: none;
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

/* This creates the random shifting color effect */
@keyframes colorWave {
    0% { filter: blur(12px) hue-rotate(0deg); }
    100% { filter: blur(12px) hue-rotate(360deg); }
}

/* --- TEXT CONTENT --- */
.hero-right h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #fff;
}

.accent-text {
    color: var(--tech-blue);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-item {
    color: #ddd;
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.info-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--tech-blue);
    color: #fff;
    transform: translateY(-2px);
}

.info-item i { color: var(--tech-blue); }

@media (max-width: 900px) {
    .glass-panel.gnome-style {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .contact-info {
        justify-content: center;
    }
}

/* --- CERT SECTION --- */
.cert-section {
    padding: 50px 10%;
}

.section-title {
    font-family: var(--font-head);
    margin-bottom: 30px;
    border-left: 4px solid var(--tech-blue);
    padding-left: 20px;
    font-size: 2rem;
}

.instruction { color: #666; margin-bottom: 30px; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.cert-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.preview-container {
    height: 180px; width: 100%;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.cert-card img, .cert-card canvas {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    opacity: 0.8; transition: 0.3s;
    display: block;
}

.cert-card:hover img, .cert-card:hover canvas { opacity: 1; }

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #eee;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-type {
    font-size: 0.7rem;
    color: var(--tech-blue);
    font-weight: bold;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: auto;
}

.glass-footer {
    text-align: center;
    padding: 30px;
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.8rem;
}