:root {
    /* Black & White Glassmorphism Palette */
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --accent: #ffffff;
    
    --blur-intensity: 20px;
    --border-radius: 24px;
    --transition-speed: 0.4s;
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(150,150,150,0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(200,200,200,0.1) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition-speed);
}

.glass-panel:hover h2::after {
    width: 100%;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-speed);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 15px 30px;
    transition: all var(--transition-speed);
}

.glass-nav.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(5, 5, 5, 0.8);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 50%; transform: translateY(0); }
    33% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translateY(-20px); }
    66% { border-radius: 30% 70% 70% 30% / 30% 60% 40% 70%; transform: translateY(20px); }
    100% { border-radius: 50%; transform: translateY(0); }
}

/* Glitch / Flicker Effect */
.glitch {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    color: rgba(150, 150, 150, 0.9);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 20% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 2px); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 1px); }
    100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, -1px); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tagline {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    border-left: 2px solid var(--glass-highlight);
    padding-left: 10px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-section {
    padding: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skills-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Projects Section */
.section-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.project-card:hover::before {
    left: 200%;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    word-break: break-word;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    opacity: 0.7;
}

.project-links a:hover {
    opacity: 1;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
}

.project-stats {
    display: flex;
    gap: 15px;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-glass {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 15px;
}

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

/* Contact Section */
.contact-section {
    padding: 60px;
    text-align: center;
}

.contact-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 30px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations / Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,1));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* Typing Effect */
.typing-text {
    min-height: 20px;
}
.typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* 3D Tilt Utilities */
.projects-grid {
    perspective: 1000px;
}
.project-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Admin Panel */
.admin-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.admin-overlay.active { opacity: 1; visibility: visible; }
.admin-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    width: 90%; max-width: 600px;
    max-height: 80vh;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
    padding: 30px;
}
.admin-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-header h2 { margin-bottom: 0; font-size: 1.8rem; }
.admin-header h2::after { display: none; }
.btn-close { background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.btn-close:hover { color: var(--accent); }
.admin-repo-list { flex-grow: 1; overflow-y: auto; margin-bottom: 20px; padding-right: 10px; }
.admin-repo-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--glass-border); }
.admin-repo-item:last-child { border-bottom: none; }
.admin-repo-item label { flex-grow: 1; cursor: pointer; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.admin-footer { text-align: right; }
/* Custom Checkbox */
.admin-repo-item input[type="checkbox"] {
    appearance: none; width: 24px; height: 24px;
    border: 2px solid var(--glass-border); border-radius: 6px;
    background: transparent; cursor: pointer;
    position: relative; transition: all 0.2s;
}
.admin-repo-item input[type="checkbox"]:checked { background: var(--text-primary); border-color: var(--text-primary); }
.admin-repo-item input[type="checkbox"]:checked::after {
    content: '✓'; position: absolute; color: var(--bg-color);
    font-size: 16px; font-weight: bold; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, .btn, .menu-toggle {
        cursor: none;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .glitch {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0 20px;
        border-radius: 0 0 20px 20px;
        border: 1px solid var(--glass-border);
        border-top: none;
        text-align: center;
        
        display: flex;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .nav-links.active {
        max-height: 350px;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .hero-section, .about-section, .contact-section {
        padding: 40px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
