/**
 * Sword Bilisim - Modern Design System
 * Bold, vibrant, and interactive
 */

:root {
    /* Primary Colors - Modern & Bold */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    
    /* Neutrals */
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-card: #334155;
    --light-text: #f1f5f9;
    --muted-text: #94a3b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--dark-bg);
    color: var(--light-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* LAYOUT */
.site-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
}

main {
    flex: 1;
}

/* HEADER / TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 600ms ease-out;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 6px 10px;
    border-radius: 12px;
}

.brand:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.brand-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
    transition: all 300ms ease;
    position: relative;
}

.brand:hover .brand-mark {
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
    transform: scale(1.08);
}

.sword-icon {
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand:hover .sword-icon {
    transform: scaleY(0.95) scaleX(1.05) rotate(-5deg);
    animation: swordStrike 600ms ease-in-out;
}

@keyframes swordStrike {
    0% { transform: scaleY(0.95) scaleX(1.05) rotate(-5deg); }
    50% { transform: scaleY(1.1) scaleX(0.95) rotate(2deg); }
    100% { transform: scaleY(0.95) scaleX(1.05) rotate(-5deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
}

.brand-text small {
    font-size: 11px;
    color: #06b6d4;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 300ms ease;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 300ms ease;
}

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

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

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    font-size: 14px;
}

.user-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* BUTTONS */
.button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button-primary {
    background: var(--gradient-primary);
    color: white;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary);
}

.button-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
}

.button-ghost {
    background: transparent;
    color: var(--light-text);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.button-ghost:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* HERO SECTION */
.hero {
    padding: 80px 24px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-copy {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 800ms ease-out;
}

.eyebrow {
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 20px;
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.stats li {
    list-style: none;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: all 300ms ease;
}

.stats li:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stats strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats span {
    color: var(--muted-text);
    font-size: 14px;
}

/* SECTIONS */
.section {
    padding: 80px 24px;
    animation: fadeInUp 800ms ease-out;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--muted-text);
    font-size: 18px;
    line-height: 1.8;
}

/* CARD GRID */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease;
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--dark-card);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card span {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted-text);
    line-height: 1.7;
}

/* TWO COLUMN LAYOUT */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.approach-card, .about-card, .timeline, .contact-card {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.approach-card h3, .about-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.approach-card p, .about-card p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.principle-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.principle-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.principle-card p {
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.7;
}

/* TIMELINE */
.timeline {
    display: grid;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item strong {
    color: var(--primary);
    font-size: 24px;
}

.timeline-item p {
    color: var(--muted-text);
    line-height: 1.6;
}

/* AUTH SECTION */
.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.auth-card {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 300ms ease;
}

.auth-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.auth-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-card p {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.7;
}

.auth-status {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.status-label {
    color: var(--muted-text);
    font-size: 12px;
    text-transform: uppercase;
}

.is-ready {
    color: #10b981;
    font-weight: 700;
}

.is-pending {
    color: var(--accent-orange);
    font-weight: 700;
}

/* PROJECTS */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.project-card {
    background: var(--dark-surface);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 300ms ease;
    cursor: grab;
    position: relative;
}

.project-card.sortable-ghost {
    opacity: 0.5;
    background: rgba(99, 102, 241, 0.1);
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-accent);
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 20px;
}

.project-category {
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
}

.project-card p {
    color: var(--muted-text);
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 12px;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.project-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-edit:hover {
    background: rgba(99, 102, 241, 0.3);
}

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

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

.add-project-card {
    background: transparent;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-xl);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 300ms ease;
    min-height: 260px;
}

.add-project-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.add-project-card span {
    font-size: 48px;
    margin-bottom: 12px;
}

.add-project-card p {
    color: var(--primary-light);
    font-weight: 600;
    text-align: center;
}

/* PROJECT MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted-text);
    transition: color 300ms ease;
}

.modal-close:hover {
    color: var(--light-text);
}

.modal-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--light-text);
    font-family: inherit;
    transition: all 300ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
}

.btn-save {
    background: var(--gradient-primary);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--light-text);
}

.btn-cancel:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* PROJECTS TABLE */
.projects-table {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow-x: auto;
}

.projects-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.projects-row:last-child {
    border-bottom: none;
}

.projects-row.projects-head {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 14px;
    text-transform: uppercase;
}

/* CREDENTIALS */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.credential-card {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
}

.credential-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.credential-card p {
    color: var(--muted-text);
    line-height: 1.7;
}

/* CONTACT FORM */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    padding: 32px;
}

.contact-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-points {
    display: grid;
    gap: 20px;
}

.contact-points span {
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-points strong {
    display: block;
    margin-top: 4px;
}

.contact-points strong a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 300ms ease;
}

.contact-form {
    background: var(--dark-surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid label span {
    font-weight: 600;
    color: var(--light-text);
    font-size: 14px;
}

.form-grid label.full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--light-text);
    font-family: inherit;
    transition: all 300ms ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

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

/* FOOTER */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 48px 24px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto 32px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column p,
.footer-column li {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 300ms ease;
}

.footer-column a:hover {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--muted-text);
    font-size: 14px;
    max-width: 1440px;
    margin: 0 auto;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav a {
        padding: 8px 12px;
        background: rgba(99, 102, 241, 0.1);
        border-radius: var(--radius-md);
    }

    .topbar-actions {
        width: 100%;
        flex-direction: column;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 40px 16px;
    }

    .section {
        padding: 40px 16px;
    }

    .split-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .auth-status {
        flex-direction: column;
        align-items: start;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

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

}

/* USER PROFILE BUTTON */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.user-profile-btn img,
.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.5);
}

.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    font-size: 16px;
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-profile-name {
    color: #e2e8f0;
}

.user-profile-arrow {
    font-size: 10px;
    color: rgba(226, 232, 240, 0.6);
    transition: transform 0.3s ease;
}

.user-profile-btn.active .user-profile-arrow {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    top: 65px;
    right: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.user-menu-dropdown.active {
    display: flex;
}

.user-menu-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.user-menu-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.5);
}

.user-menu-info {
    flex: 1;
}

.user-menu-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
}

.user-menu-id {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.6);
    margin-top: 2px;
}

.user-menu-divider {
    height: 1px;
    background: rgba(6, 182, 212, 0.2);
    margin: 0;
}

.user-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.user-menu-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-left-color: #06b6d4;
    color: #06b6d4;
    padding-left: 20px;
}

.user-menu-item span:first-child {
    min-width: 20px;
    text-align: center;
}

/* Account Details Section */
.user-menu-details {
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
}

.detail-label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-value {
    color: #cbd5e1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-link {
    background: rgba(249, 115, 22, 0.1) !important;
    border-left-color: #f97316 !important;
    color: #fb923c !important;
}

.admin-link:hover {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fdba74 !important;
}

.user-menu-logout {
    color: #ef4444;
}

.user-menu-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #fca5a5;
}

/* HEADER BRAND REFINEMENTS */
.brand {
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.95), rgba(6, 182, 212, 0.85));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.18);
    position: relative;
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 45%), rgba(15, 23, 42, 0.15);
}

.brand-mark span {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffffff;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8da2ff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text small {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9fb3ff;
}

.nav a {
    opacity: 0.82;
}

.nav a.is-active,
.nav a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .brand {
        width: 100%;
        justify-content: center;
    }

    .nav a {
        text-align: center;
    }
}

/* TEXT-ONLY HEADER REFINEMENTS */
.brand {
    padding: 0;
    background: transparent !important;
    transform: none !important;
}

.brand:hover {
    background: transparent !important;
    transform: none !important;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f1f5f9;
    white-space: nowrap;
}

.user-menu-item {
    gap: 0;
}

.user-menu-item span:first-child {
    min-width: 0;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 23px;
        text-align: center;
    }
}