/* 
   THEME: LUMINOUS HORIZON / ETHEREAL TECH
   STYLE: Premium, Holographic, High-End Agency
*/

:root {
    --bg-deep: #030305;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(20, 20, 25, 0.6);
    
    /* Holographic Accents */
    --holo-1: #00c6ff;
    --holo-2: #0072ff;
    --holo-3: #d53369;
    --holo-4: #daae51;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.15);
    
    --glass-blur: blur(20px);
    --shadow-soft: 0 20px 40px -10px rgba(0,0,0,0.5);
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle Mesh Gradient Background */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 198, 255, 0.15), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(213, 51, 105, 0.1), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(0, 114, 255, 0.1), transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: all 0.4s var(--ease-elastic); }
ul { list-style: none; }

/* --- LAYOUT --- */
.app-container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* --- SIDEBAR (Floating Glass) --- */
.profile-sidebar {
    width: 260px;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    z-index: 100;
}

.brand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.avatar-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--holo-1), var(--holo-3));
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.2);
}
.avatar-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg-deep);
    object-fit: cover;
}

.user-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.user-role { 
    font-size: 0.8rem; color: var(--text-muted); 
    background: rgba(255,255,255,0.05);
    padding: 4px 12px; border-radius: 20px;
}

/* Navigation */
.nav-menu { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.nav-item {
    display: flex; align-items: center; gap: 15px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateX(5px);
}
.nav-item i { font-size: 1.1rem; width: 24px; text-align: center; }

.sidebar-footer {
    display: flex; justify-content: center; gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.sidebar-footer a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-muted);
}
.sidebar-footer a:hover {
    background: var(--text-main);
    color: var(--bg-deep);
    transform: translateY(-3px);
}

/* Language Toggle Button Style */
.lang-toggle-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.lang-toggle-btn:hover {
    background: var(--text-main);
    color: var(--bg-deep);
}

/* --- CONTENT AREA --- */
.content-area {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 40px);
}

.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 50px;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--holo-1);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero-tag::before {
    content: ''; width: 8px; height: 8px; background: var(--holo-1); border-radius: 50%;
    box-shadow: 0 0 10px var(--holo-1);
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions { display: flex; gap: 20px; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-deep);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-main);
}

/* --- STATS --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 80px;
}
.stat-item { padding: 0 20px; border-right: 1px solid var(--border-subtle); }
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 2.5rem; font-weight: 700; display: block; background: linear-gradient(to right, var(--holo-1), var(--holo-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* --- CARDS (Holographic) --- */
.section-header {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 40px;
}
.section-header h2 { font-size: 2.5rem; }
.section-header p { color: var(--text-muted); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--holo-2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 114, 255, 0.1);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 40%);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.icon-box {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-main);
    margin-bottom: 25px;
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --- PROJECT SHOWCASE (Immersive) --- */
.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--border-subtle);
}
.project-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(3, 3, 5, 0.95) 0%, transparent 60%);
    padding: 50px;
    display: flex; flex-direction: column; justify-content: flex-end;
    align-items: flex-start;
}

.project-cat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}
.project-overlay h3 { font-size: 2.5rem; margin-bottom: 10px; }
.project-overlay p { color: var(--text-muted); margin-bottom: 25px; max-width: 500px; }

/* --- FORMS --- */
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    margin-bottom: 20px;
}
.form-control:focus {
    outline: none;
    border-color: var(--holo-2);
    background: rgba(255,255,255,0.05);
}

/* --- HELPER CLASSES FOR LAYOUT --- */
.portfolio-filters {
    display: flex;
    gap: 10px;
}

.portfolio-title-wrapper {
    display: block;
}

.bio-section {
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 40px; 
    margin-bottom: 60px;
}

.experience-badge {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
}

.projects-list {
    display: flex; 
    flex-direction: column; 
    gap: 60px;
}

.projects-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 80px;
}

.clients-section {
    text-align: center; 
    opacity: 0.5;
}

.clients-grid {
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    font-size: 2rem;
    flex-wrap: wrap;
}

.contact-layout {
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 60px; 
    margin-top: 40px;
}

.form-row {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.mobile-tabbar { display: none; }

/* --- RESPONSIVE (App-Like Mobile Experience) --- */
@media (max-width: 991px) {
    .app-container { 
        flex-direction: column; 
        padding: 0; 
        gap: 0; 
        padding-bottom: 0; /* Revert padding */
    }
    
    /* Top Header */
    .profile-sidebar {
        width: 100%; height: 65px; 
        position: sticky; top: 0;
        border-radius: 0; border: none; border-bottom: 1px solid var(--border-subtle);
        flex-direction: row; align-items: center; justify-content: space-between;
        padding: 0 20px;
        background: rgba(3, 3, 5, 0.9); /* Fallback */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1000;
        overflow: visible;
    }
    
    /* Top Header Background/Blur via Pseudo-element */
    .profile-sidebar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(3, 3, 5, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: -1;
    }

    .brand-area { flex-direction: row; gap: 12px; margin: 0; }
    .avatar-ring { width: 38px; height: 38px; margin: 0; padding: 2px; }
    .user-name { font-size: 1rem; margin: 0; }
    .user-role { display: none; } 
    .profile-sidebar .nav-menu { display: none !important; }
    
    .sidebar-footer { 
        display: none; /* This was probably hidden before too or just doesn't fit */
    }
 
    .mobile-tabbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        height: 64px;
        background: rgba(3, 3, 5, 0.9);
        border-top: 1px solid var(--border-subtle);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1000;
        padding: env(safe-area-inset-bottom) 0 0 0;
    }
    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: var(--text-muted);
        font-size: 0.75rem;
        flex: 1;
        height: 100%;
    }
    .mobile-tabbar a i {
        font-size: 1.2rem;
    }
    .mobile-tabbar a.active {
        color: var(--text-main);
    }
    
    /* Content Area */
    .content-area { border: none; border-radius: 0; min-height: auto; overflow: visible; }
    .page-wrapper { padding: 30px 20px 90px 20px; }
    
    /* Hero Adjustments */
    .hero-wrapper { min-height: auto; padding: 40px 0; justify-content: center; margin-bottom: 40px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; gap: 15px; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    /* Stats Grid */
    .stats-strip { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 25px; }
    .stat-item { border: none; text-align: center; padding: 0; }
    .stat-val { font-size: 2rem; }
    
    /* Projects & Cards */
    .project-card { height: 380px; }
    .project-overlay { padding: 30px; }
    .project-overlay h3 { font-size: 1.8rem; }
    
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    
    /* Form Adjustments */
    .contact-grid { grid-template-columns: 1fr; }

    /* New Layout Overrides for Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .clients-grid {
        gap: 30px;
        font-size: 1.5rem;
    }
    
    .bio-section {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-top: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .projects-list {
        gap: 40px;
    }
    
    /* Portfolio Header Mobile */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .portfolio-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .portfolio-filters button {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 0.95rem; max-width: 100%; }
    .section-header h2 { font-size: 1.8rem; }
    .grid-3 { gap: 16px; }
    .feature-card { padding: 24px; }
    .icon-box { width: 42px; height: 42px; font-size: 1.3rem; margin-bottom: 18px; }
    .stats-strip { grid-template-columns: 1fr 1fr; padding: 20px; }
    .stat-item { border-right: none; padding: 0; }
    .stat-val { font-size: 1.8rem; }
    .project-card { height: 300px; }
    .project-overlay { padding: 24px; }
    .project-overlay h3 { font-size: 1.6rem; }
    .project-overlay p { font-size: 0.95rem; max-width: 100%; }
    .clients-grid { font-size: 1.3rem; gap: 20px; }
    .bio-section { grid-template-columns: 1fr; gap: 24px; }
    .contact-layout { gap: 24px; }
    .portfolio-filters button { font-size: 0.85rem; }
}

@media (max-width: 420px) {
    .hero-text h1 { font-size: 1.9rem; }
    .btn-primary, .btn-secondary { padding: 14px 18px; }
    .project-card { height: 260px; }
    .project-overlay h3 { font-size: 1.4rem; }
    .page-wrapper { padding: 24px 16px 90px 16px; }
    .avatar-ring { width: 32px; height: 32px; }
    .user-name { font-size: 0.95rem; }
    .stat-val { font-size: 1.6rem; }
}
