/* ELITE HACKERS - Light-Mode & 3D Interactive Stylesheet */

:root {
    --bg-dark: #f4f7fb;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-surface-elevated: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 132, 255, 0.08);
    --border-glow-cyan: rgba(0, 132, 255, 0.25);
    --border-glow-purple: rgba(127, 0, 255, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --accent-cyan: #0084ff;
    --accent-purple: #7f00ff;
    --accent-magenta: #e91e63;
    --success-green: #00b060;
    
    --glow-shadow-cyan: 0 10px 25px rgba(0, 132, 255, 0.1);
    --glow-shadow-purple: 0 10px 25px rgba(127, 0, 255, 0.1);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 132, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

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

/* Background Grids and Glow Nodes */
.cyber-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 132, 255, 0.07) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.cyber-glow-2 {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.05) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 132, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 132, 255, 0.02) 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: -1;
    pointer-events: none;
}

/* Top Nav */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 247, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-bracket {
    color: var(--accent-cyan);
    font-weight: 400;
    text-shadow: 0 0 6px rgba(0, 132, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    flex: 1;
}

/* Header */
.main-header {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 70px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 45px rgba(0, 132, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.tech-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85em;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 4.5em;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(90deg, var(--text-primary) 30%, var(--accent-cyan) 70%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 1.25em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Sections */
.projects-section, .team-section, .contact-section {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 45px 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1.1em;
}

h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 2em;
    font-weight: 700;
}

/* 3D List Parent Perspective */
.projects-list, .team-grid {
    perspective: 1200px;
}

/* Projects */
.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 3D Children Parallax Transitions */
.project-card * {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
    background-color: rgba(255, 255, 255, 0.95);
    border-color: var(--border-glow-cyan);
    box-shadow: 0 25px 50px rgba(0, 132, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-card:hover .project-meta {
    transform: translateZ(35px);
}

.project-card:hover h3 {
    transform: translateZ(30px);
}

.project-card:hover .project-description {
    transform: translateZ(20px);
}

.project-card:hover .project-details {
    transform: translateZ(15px);
}

.project-card:hover .project-links {
    transform: translateZ(25px);
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 650;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-details {
    margin-top: 15px;
    border-top: 1px solid rgba(0, 132, 255, 0.05);
    padding-top: 15px;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 132, 255, 0.03);
    border: 1px solid rgba(0, 132, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(0, 132, 255, 0.06);
    border-color: rgba(0, 132, 255, 0.2);
    color: var(--accent-cyan);
}

.project-links {
    margin-top: 25px;
}

.project-link {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00c6ff 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 10px 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.2);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.4);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.project-link:hover .link-arrow {
    transform: translateX(4px);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.team-member-card * {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.team-member-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(3deg);
    background-color: rgba(255, 255, 255, 0.95);
    border-color: var(--border-glow-purple);
    box-shadow: 0 25px 50px rgba(127, 0, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-member-card:hover .member-avatar-wrapper {
    transform: translateZ(40px);
}

.team-member-card:hover h3 {
    transform: translateZ(30px);
}

.team-member-card:hover .member-role {
    transform: translateZ(20px);
}

.team-member-card:hover .member-status {
    transform: translateZ(25px);
}

.member-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
}

.member-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.1) 0%, rgba(127, 0, 255, 0.05) 100%);
    border: 2px solid rgba(0, 132, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6em;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    z-index: 1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.team-member-card:hover .avatar-glow {
    opacity: 0.3;
}

.team-member-card:hover .member-avatar {
    border-color: rgba(0, 132, 255, 0.3);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-text-fill-color: white;
}

.team-member-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.member-role {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 12px;
    display: block;
}

.member-status {
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--success-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 176, 96, 0.05);
    border: 1px solid rgba(0, 176, 96, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success-green);
    box-shadow: 0 0 8px var(--success-green);
    display: inline-block;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Contact Sec */
.contact-section {
    text-align: center;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1em;
    max-width: 650px;
    margin: 0 auto 25px;
}

.terminal-status-msg {
    background: rgba(0, 132, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.status-value {
    color: var(--success-green);
    font-weight: 600;
}

.pulsing {
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 25px 20px;
    text-align: center;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.site-footer p {
    color: var(--text-secondary);
}

.accent-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

.footer-heart {
    color: var(--accent-magenta);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .team-name {
        font-size: 3.5em;
    }
}

@media (max-width: 768px) {
    .team-name {
        font-size: 2.8em;
    }
    .main-header {
        padding: 40px 20px;
    }
    .projects-section, .team-section, .contact-section {
        padding: 30px 20px;
    }
    .top-nav {
        padding: 10px 0;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
}
