:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #00f2ea;
    --secondary-color: #ff0050;
    --accent-color: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --gradient-text: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
}

.text-link {
    color: var(--primary-color);
    position: relative;
    font-weight: 500;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--secondary-color);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.btn-featured {
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary-color) !important;
}

.btn-featured:hover {
    background: rgba(0, 242, 234, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px; /* Navbar offset */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.2);
    animation: float 6s ease-in-out infinite;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 4px solid var(--bg-color);
    animation: bounce 2s infinite;
}

.glitch-text {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.typing-container {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 400;
    min-height: 1.6em;
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--gradient-text);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 242, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 242, 234, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--card-hover);
    transform: translateY(-3px);
}

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

.social-links-hero a {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.social-links-hero a:hover {
    color: #fff;
    transform: scale(1.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInDown 2s infinite;
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

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

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contributions-list {
    list-style: none;
    margin-top: 15px;
}

.contributions-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.contributions-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.contributions-list a {
    color: var(--text-color);
    font-size: 0.95rem;
}

.contributions-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    justify-items: center;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: default;
}

.tech-card i {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.tech-card span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.tech-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.tech-card:hover {
    background: var(--glass-bg);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.project-card h3 {
    font-size: 1.4rem;
    margin: 0;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.tag {
    font-size: 0.8rem;
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Contact */
.contact-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.big-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.5);
    margin-top: 50px;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-note i {
    color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #050505;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Animations Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}