:root {
    --primary: #00ff88; 
    --primary-dark: #00cc6a; 
    --dark-bg: #0a0a0f; 
    --dark-card: #111117; 
    --dark-border: #1e1e2d; 
    --text-primary: #ffffff; 
    --text-secondary: #b0b0c0; 
    --gradient: linear-gradient(135deg, var(--primary) 0%, #00a3ff 100%); 
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif; 
    background: var(--dark-bg); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden; 
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 20%), 
                     radial-gradient(circle at 90% 80%, rgba(0, 163, 255, 0.05) 0%, transparent 20%); 
}

.matrix-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2; 
    opacity: 0.03; 
    background-image: linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px), 
                     linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px); 
    background-size: 50px 50px; 
    animation: matrixMove 20s linear infinite; 
}

@keyframes matrixMove { 
    0% { 
        transform: translate(0, 0); 
    } 
    100% { 
        transform: translate(50px, 50px); 
    } 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Hero */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    position: relative; 
    padding: 100px 0 50px; 
}

.hero-content { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
    position: relative; 
    z-index: 1; 
}

.profile-avatar {
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    margin: 0 auto 30px; 
    background: var(--gradient); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 70px; 
    font-weight: 700; 
    color: var(--dark-bg); 
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); 
    position: relative; 
    overflow: hidden; 
    transition: var(--transition); 
}

.profile-avatar:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.6); 
}

.profile-avatar::after {
    content: ''; 
    position: absolute; 
    width: 200%; 
    height: 200%; 
    background: conic-gradient(transparent, var(--primary), transparent); 
    animation: rotate 3s linear infinite; 
}

.profile-avatar span {
    z-index: 1; 
    background: var(--dark-bg); 
    width: 170px; 
    height: 170px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

@keyframes rotate { 
    100% { 
        transform: rotate(360deg); 
    } 
}

h1 {
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    background: var(--gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.hero-subtitle { 
    font-size: 1.5rem; 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
    font-weight: 300; 
}

.terminal {
    background: var(--dark-card); 
    border-radius: 15px; 
    padding: 25px; 
    margin: 40px 0; 
    border: 1px solid var(--dark-border); 
    box-shadow: var(--shadow); 
    backdrop-filter: blur(10px); 
    text-align: left; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

.terminal-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
}

.terminal-dots { 
    display: flex; 
    gap: 8px; 
    margin-right: 15px; 
}

.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
}

.dot.red { 
    background: #ff5f57; 
}

.dot.yellow { 
    background: #ffbd2e; 
}

.dot.green { 
    background: #28ca42; 
}

.terminal-title { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
}

.terminal-content { 
    color: var(--primary); 
    font-family: 'Courier New', monospace; 
    line-height: 1.8; 
}

.typing { 
    display: inline-block; 
    border-right: 2px solid var(--primary); 
    animation: blink 1s infinite; 
}

@keyframes blink { 
    0%, 50% { 
        border-color: transparent; 
    } 
    51%, 100% { 
        border-color: var(--primary); 
    } 
}

/* Navigation */
.main-nav {
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: rgba(10, 10, 15, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--dark-border); 
    margin-bottom: 50px; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
}

.logo {
    font-size: 1.5rem; 
    font-weight: 700; 
    background: var(--gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.nav-links { 
    display: flex; 
    gap: 30px; 
}

.nav-link {
    color: var(--text-secondary); 
    text-decoration: none; 
    font-weight: 500; 
    padding: 8px 0; 
    position: relative; 
    transition: var(--transition); 
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--primary); 
}

.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--gradient); 
    transition: var(--transition); 
}

.nav-link:hover::after, 
.nav-link.active::after { 
    width: 100%; 
}

/* Sections */
.section { 
    padding: 80px 0; 
    border-bottom: 1px solid var(--dark-border); 
}

.section:last-of-type { 
    border-bottom: none; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    position: relative; 
    display: inline-block; 
}

.section-title::after {
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 80px; 
    height: 4px; 
    background: var(--gradient); 
    border-radius: 2px; 
}

.section-subtitle { 
    color: var(--text-secondary); 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin: 0 auto; 
}

/* Cards */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
}

.card {
    background: var(--dark-card); 
    border-radius: 15px; 
    padding: 30px; 
    border: 1px solid var(--dark-border); 
    transition: var(--transition); 
    position: relative; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}

.card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent); 
    transition: var(--transition); 
}

.card:hover::before { 
    left: 100%; 
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2); 
}

.card-icon { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: var(--primary); 
}

.card-title { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--primary); 
}

/* Skills */
.skills-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.skill-category { 
    background: var(--dark-card); 
    border-radius: 15px; 
    padding: 30px; 
    border: 1px solid var(--dark-border); 
}

.skill-category h3 { 
    margin-bottom: 25px; 
    color: var(--primary); 
    font-size: 1.3rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.skill-item { 
    margin-bottom: 20px; 
}

.skill-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.skill-name { 
    font-weight: 500; 
}

.skill-percentage { 
    color: var(--primary); 
    font-weight: 600; 
}

.skill-bar { 
    height: 8px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 4px; 
    overflow: hidden; 
}

.skill-progress {
    height: 100%; 
    background: var(--gradient); 
    border-radius: 4px; 
    position: relative; 
    transition: width 1.5s ease-in-out; 
}

.skill-progress::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); 
    animation: shimmer 2s infinite; 
}

@keyframes shimmer { 
    0% { 
        transform: translateX(-100%); 
    } 
    100% { 
        transform: translateX(100%); 
    } 
}

/* Projects */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
}

.project-card {
    background: var(--dark-card); 
    border-radius: 15px; 
    overflow: hidden; 
    border: 1px solid var(--dark-border); 
    transition: var(--transition); 
}

.project-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2); 
}

.project-image { 
    height: 180px; 
    background: var(--gradient); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 3rem; 
    color: var(--dark-bg); 
}

.project-content { 
    padding: 25px; 
}

.project-title { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    color: var(--primary); 
}

.project-description { 
    color: var(--text-secondary); 
    margin-bottom: 20px; 
}

.project-tech { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 20px; 
}

.tech-tag {
    background: rgba(0, 255, 136, 0.1); 
    color: var(--primary); 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    border: 1px solid rgba(0, 255, 136, 0.2); 
}

.project-link {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
}

.project-link:hover { 
    gap: 12px; 
}

/* Contact */
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.contact-info { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.contact-item {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 20px; 
    background: var(--dark-card); 
    border-radius: 15px; 
    border: 1px solid var(--dark-border); 
    transition: var(--transition); 
    text-decoration: none; 
    color: inherit; 
}

.contact-item:hover { 
    border-color: var(--primary); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2); 
}

.contact-icon {
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: var(--gradient); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: var(--dark-bg); 
    flex-shrink: 0; 
}

.contact-details h3 { 
    font-size: 1.2rem; 
    margin-bottom: 5px; 
    color: var(--primary); 
}

.contact-details p { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
}

/* Media */
.media-container { 
    margin: 40px 0; 
}

.video-wrapper {
    position: relative; 
    width: 100%; 
    height: 250px; 
    margin: 20px 0; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid var(--dark-border); 
}

.video-wrapper iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    border-radius: 10px; 
}

.image-wrapper {
    width: 100%; 
    height: 200px; 
    background: linear-gradient(135deg, #1a1a2e, #16213e); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 15px 0; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid var(--dark-border); 
}

.image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px; 
}

.media-title {
    color: var(--primary); 
    margin-bottom: 30px; 
    font-size: 1.8rem; 
    text-align: center; 
}

.video-container, 
.image-container {
    display: flex; 
    justify-content: center; 
}

.video-container .video-wrapper, 
.image-container .image-wrapper {
    max-width: 600px; 
}

.image-container .image-wrapper {
    height: 300px; 
}

/* Footer */
footer { 
    background: var(--dark-card); 
    padding: 50px 0 30px; 
    border-top: 1px solid var(--dark-border); 
}

.footer-content { 
    text-align: center; 
    margin-bottom: 40px; 
}

.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin: 30px 0; 
}

.social-link {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: var(--dark-card); 
    border: 1px solid var(--dark-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-secondary); 
    font-size: 1.2rem; 
    transition: var(--transition); 
    text-decoration: none; 
}

.social-link:hover { 
    background: var(--gradient); 
    color: var(--dark-bg); 
    transform: translateY(-5px); 
}

.copyright { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    margin-top: 30px; 
}

.footer-logo {
    margin-bottom: 20px; 
    background: var(--gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.footer-description {
    color: var(--text-secondary); 
    max-width: 600px; 
    margin: 0 auto; 
}

/* Scroll to top */
.scroll-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: var(--gradient); 
    color: var(--dark-bg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition); 
    z-index: 99; 
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3); 
}

.scroll-top.active { 
    opacity: 1; 
    visibility: visible; 
}

.scroll-top:hover { 
    transform: translateY(-5px); 
}

/* Mobile */
.mobile-menu-btn { 
    display: none; 
    background: none; 
    border: none; 
    color: var(--text-primary); 
    font-size: 1.5rem; 
    cursor: pointer; 
}

@media (max-width: 768px) {
    h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-subtitle { 
        font-size: 1.2rem; 
    }
    
    .mobile-menu-btn { 
        display: block; 
    }
    
    .nav-links { 
        display: none; 
    }
    
    .nav-links.active {
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: var(--dark-card); 
        padding: 20px; 
        border-top: 1px solid var(--dark-border); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    }
    
    .cards-grid, 
    .skills-container, 
    .projects-grid, 
    .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section { 
        padding: 60px 0; 
    }
    
    .profile-avatar { 
        width: 150px; 
        height: 150px; 
    }
    
    .profile-avatar span { 
        width: 140px; 
        height: 140px; 
    }
}
