/* style.css - Premium Modern Dark/Glassmorphic Style Sheet */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(30, 30, 38, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #a855f7;
    /* Purple */
    --accent: #14b8a6;
    /* Teal */

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --glass-blur: 16px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background glowing blobs */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

body::before {
    top: 10%;
    left: 10%;
    background: var(--primary);
    animation: blob-drift 20s ease-in-out infinite alternate;
}

body::after {
    bottom: 15%;
    right: 10%;
    background: var(--secondary);
    animation: blob-drift-reverse 25s ease-in-out infinite alternate;
}

@keyframes blob-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 40px) scale(1.15);
    }
    100% {
        transform: translate(-30px, 90px) scale(0.9);
    }
}

@keyframes blob-drift-reverse {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-60px, -50px) scale(0.85);
    }
    100% {
        transform: translate(50px, 30px) scale(1.2);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius-sm);
    font-weight: 600 !important;
}

.nav-btn:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.nav-btn::after {
    display: none !important;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Database Warning Banner */
.db-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 32px;
    text-align: center;
    backdrop-filter: blur(var(--glass-blur));
}

/* Main Layout */
main {
    flex: 1;
    padding-bottom: 80px;
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--primary-glow);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
    transition: var(--transition);
}

.blog-card:hover .blog-card-footer {
    border-top-color: rgba(99, 102, 241, 0.2);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 0 10px var(--primary-glow);
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-card:hover .read-more {
    color: var(--secondary);
    transform: translateX(4px);
}

/* Post Detail Page */
.post-detail-container {
    max-width: 800px;
    margin: 60px auto;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.post-banner-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    margin: 40px 0 20px 0;
    font-weight: 700;
}

/* Custom Alert Message */
.alert {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(var(--glass-blur));
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Authentication Forms (Login / Register) */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(9, 9, 11, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-btn:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Legal Pages Styling (TOS / Privacy) */
.legal-container {
    max-width: 800px;
    margin: 60px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    backdrop-filter: blur(var(--glass-blur));
}

.legal-container h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-last-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 24px;
}

/* Admin Dashboard CSS */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 160px);
}

.admin-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 32px 24px;
}

.admin-sidebar-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.admin-menu a:hover,
.admin-menu li.active a {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-content {
    padding: 40px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

/* Admin Table */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-secondary {
    background: rgba(113, 113, 122, 0.1);
    color: #a1a1aa;
}

.actions-cell {
    display: flex;
    gap: 12px;
}

.btn-action {
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-edit {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Post Form (Admin create/edit) */
.post-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
}

/* Footer styling */
footer {
    background: rgba(9, 9, 11, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* /* --- Home Portfolio Custom Styles (V2 Premium) --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin: 100px 0 40px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* Two-column Premium Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding: 100px 0 60px 0;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

.hero-grid h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-grid h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    gap: 20px;
    margin: 24px 0 32px 0;
    flex-wrap: wrap;
}

.hero-stat-item {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    flex: 1;
    min-width: 120px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
}

/* Social Media Buttons Layout */
.social-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-btn {
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.social-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.social-btn:hover i {
    transform: scale(1.2);
}

/* Brand Specific Hover Themes */
.social-btn-instagram:hover {
    border-color: #e1306c;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.35);
    background: rgba(225, 48, 108, 0.06);
}

.social-btn-threads:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.social-btn-facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.35);
    background: rgba(24, 119, 242, 0.06);
}

/* Floating Avatar Card */
.hero-visual-card {
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: float-card 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(35deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

/* Safe Avatar Container & Fallbacks */
.avatar-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    position: relative;
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.8);
    padding: 6px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    transition: var(--transition);
    cursor: pointer;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-visual-card:hover .avatar-container {
    border-color: var(--secondary);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.4);
    transform: scale(1.03);
}

.tech-spec-box {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-spec-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-spec-key {
    color: #f472b6;
    font-weight: 500;
}

.tech-spec-val {
    color: var(--accent);
    font-weight: 600;
}

/* Skills Layout & Themed Glows */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-card {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --skill-color: var(--primary);
    --skill-glow: rgba(99, 102, 241, 0.15);
}

.skill-card-software { --skill-color: #3b82f6; --skill-glow: rgba(59, 130, 246, 0.15); }
.skill-card-seo      { --skill-color: #eab308; --skill-glow: rgba(234, 179, 8, 0.15); }
.skill-card-ux       { --skill-color: #ec4899; --skill-glow: rgba(236, 72, 153, 0.15); }
.skill-card-student  { --skill-color: #10b981; --skill-glow: rgba(16, 185, 129, 0.15); }
.skill-card-media    { --skill-color: #ef4444; --skill-glow: rgba(239, 68, 68, 0.15); }
.skill-card-marine   { --skill-color: #06b6d4; --skill-glow: rgba(6, 182, 212, 0.15); }

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--skill-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--skill-glow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--skill-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--skill-color);
    color: white;
    border-color: transparent;
    transform: scale(1.05) rotate(8deg);
    box-shadow: 0 0 20px var(--skill-glow);
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 31px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 64px;
}

.timeline-dot {
    position: absolute;
    left: 22px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #09090b;
    border: 4px solid var(--primary);
    z-index: 2;
    box-shadow: 0 0 12px var(--primary);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary);
    transform: scale(1.25);
}

.timeline-content {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -8px;
    width: 14px;
    height: 14px;
    background: rgba(20, 20, 25, 0.7);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
    backdrop-filter: blur(var(--glass-blur));
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
    transform: translateX(6px);
}

.timeline-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Testimonials Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    gap: 4px;
}

.quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 40px;
    color: rgba(99, 102, 241, 0.08);
    transition: var(--transition);
}

.testimonial-card:hover .quote-icon {
    color: rgba(99, 102, 241, 0.18);
    transform: scale(1.15);
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.testimonial-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.testimonial-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Secrets & Interactive triggers */
.secret-trigger {
    cursor: help;
    transition: var(--transition);
}

.secret-trigger:active {
    transform: scale(0.95);
}

/* Custom 404 Styles */
.error-404-container {
    text-align: center;
    padding: 100px 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Media Queries Override */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 60px 0 40px 0;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
    }

    .admin-content {
        padding: 24px;
    }

    .legal-container {
        padding: 24px;
    }
}

/* ==========================================================================
   Social Feed & Shouts Timeline Styles
   ========================================================================== */
.feed-tab:hover {
    color: var(--primary) !important;
    opacity: 0.9;
}
.feed-tab.active {
    text-shadow: 0 0 10px var(--primary-glow);
}
.social-post-box textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(255, 255, 255, 0.04) !important;
}
.shouts-list .testimonial-card {
    transition: var(--transition);
}
.shouts-list .testimonial-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 992px) {
    .feed-layout {
        grid-template-columns: 1fr !important;
    }
    .feed-sidebar-col {
        display: none !important;
    }
}

/* ==========================================================================
   Mobile Game D-Pad / Controller Buttons
   ========================================================================== */
.mobile-ctrl-btn {
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    transition: var(--transition) !important;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-ctrl-btn:active {
    transform: scale(0.9) !important;
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

@media (max-width: 768px) {
    #mobile-game-controls {
        display: flex !important;
    }
    
    /* Make canvas responsive for small screen viewports */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ==========================================================================
   Humorous Cookie & Mixed Nuts Consent Banner
   ========================================================================== */
.cookie-nuts-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: calc(100% - 48px);
    max-width: 420px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
    z-index: 10000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    transform: translateY(150px);
    opacity: 0;
}

.cookie-nuts-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-nuts-banner.hide {
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.cookie-nuts-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-nuts-icon {
    font-size: 24px;
    color: var(--primary);
    animation: cookie-bounce 2s infinite ease-in-out;
}

.cookie-nuts-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.cookie-nuts-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-nuts-body a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-nuts-body a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-nuts-buttons {
    display: flex;
    gap: 12px;
}

.cookie-nuts-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.cookie-nuts-btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.cookie-nuts-btn-accept:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.cookie-nuts-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-nuts-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

@keyframes cookie-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(15deg); }
}

@media (max-width: 480px) {
    .cookie-nuts-banner {
        bottom: 16px;
        right: 16px;
        width: calc(100% - 32px);
        padding: 20px;
    }
    .cookie-nuts-buttons {
        flex-direction: column;
    }
}