/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #00ff88;
    --dark-bg: #0a0e27;
    --darker-bg: #050810;
    --card-bg: rgba(15, 23, 42, 0.4);
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --border-color: rgba(0, 212, 255, 0.2);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1a3e 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    padding: 40px 20px;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-titles {
    margin-bottom: 30px;
}

.title {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 8px 0;
    font-weight: 500;
}

.typing-container {
    margin: 30px 0 20px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.typing-label {
    color: var(--text-secondary);
    font-size: 16px;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 250px;
    font-size: 16px;
}

.typing-cursor {
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-network {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.network-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    stroke-width: 2;
    opacity: 0.5;
}

.line {
    animation: drawLine 2s ease-in-out infinite;
}

@keyframes drawLine {
    0%, 100% { stroke-dasharray: 300; stroke-dashoffset: 300; }
    50% { stroke-dasharray: 300; stroke-dashoffset: 0; }
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 10%; left: 10%; animation-delay: 0s; }
.node-2 { top: 10%; right: 10%; animation-delay: 0.5s; }
.node-3 { top: 50%; left: 50%; animation-delay: 1s; }
.node-4 { bottom: 10%; left: 10%; animation-delay: 1.5s; }
.node-5 { bottom: 10%; right: 10%; animation-delay: 2s; }

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px var(--secondary-color), 0 0 60px rgba(124, 58, 237, 0.3);
        transform: scale(1.1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */

section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.edu-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.edu-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.edu-institution {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

.experience {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), transparent);
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    width: 30px;
    height: 30px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.timeline-content {
    padding-left: 60px;
    padding-top: 5px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.position-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   RESEARCH SECTION
   ======================================== */

.research {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 100%);
}

.research-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.research-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}

.research-header h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.research-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.research-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-10px);
}

.project-header h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease-out;
}

.skill-category h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-bubble {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-bubble:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

/* ========================================
   ACHIEVEMENTS SECTION
   ======================================== */

.achievements {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.achievement-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-10px);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 100%);
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.contact-method {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-method:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 32px;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

.form-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 15px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-name {
        font-size: 40px;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .education-cards {
        gap: 15px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 2px;
    }

    .timeline-content {
        padding-left: 40px;
    }

    .research-card {
        padding: 30px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 32px;
    }

    .hero-titles .title {
        font-size: 14px;
    }

    .tagline {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .typing-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .typing-text {
        min-width: auto;
    }

    .section-title {
        font-size: 24px;
    }

    .about-text p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
