:root {
    --bg-main: #0a0e17;
    --bg-secondary: #111827;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #06b6d4; /* Cyan */
    --secondary: #8b5cf6; /* Purple */
    --accent: #10b981; /* Emerald */
    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Background Animations */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.2;
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Reusable Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-toggle {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3px;
    position: relative;
    z-index: 1002;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

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

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}
.nav-links li a:hover {
    color: var(--primary);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    white-space: nowrap;
}

.highlight {
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
}

.line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

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

.secondary-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.greeting {
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
    -webkit-text-fill-color: var(--primary);
}

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

.role-text {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 40px;
}

.typing-text {
    color: var(--secondary);
}

.summary {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

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

/* Hero Visual Animation */
.tech-sphere {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.center-core {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    z-index: 10;
}

.icon-orbit {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: var(--glass-shadow);
}

/* Simple circular motion using CSS */
.orbit-1 { animation: orbit1 15s linear infinite; color: #10b981; }
.orbit-2 { animation: orbit2 18s linear infinite; color: #eab308; }
.orbit-3 { animation: orbit3 20s linear infinite; color: #06b6d4; }
.orbit-4 { animation: orbit4 16s linear infinite; color: #f97316; }
.orbit-5 { animation: orbit5 14s linear infinite; color: #3b82f6; }

@keyframes orbit1 { 0% { transform: rotate(0deg) translateX(140px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); } }
@keyframes orbit2 { 0% { transform: rotate(72deg) translateX(160px) rotate(-72deg); } 100% { transform: rotate(432deg) translateX(160px) rotate(-432deg); } }
@keyframes orbit3 { 0% { transform: rotate(144deg) translateX(180px) rotate(-144deg); } 100% { transform: rotate(504deg) translateX(180px) rotate(-504deg); } }
@keyframes orbit4 { 0% { transform: rotate(216deg) translateX(150px) rotate(-216deg); } 100% { transform: rotate(576deg) translateX(150px) rotate(-576deg); } }
@keyframes orbit5 { 0% { transform: rotate(288deg) translateX(170px) rotate(-288deg); } 100% { transform: rotate(648deg) translateX(170px) rotate(-648deg); } }


/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

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

.tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
}

.mt-4 {
    margin-top: 30px;
}

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

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

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

.timeline-content {
    padding: 30px;
}

.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-title {
    font-size: 1.4rem;
    color: var(--primary);
}

.job-desc {
    color: var(--text-muted);
}

/* Skills Section */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    margin-top: -30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #fff;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent);
    transform: scale(1.05);
}

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

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-type {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Analysis Section */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.analysis-summary {
    padding: 30px;
}

.analysis-summary h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
}

.analysis-summary-item strong {
    color: var(--primary);
    font-family: 'Fira Code', monospace;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 50px 20px;
    text-align: center;
    margin-top: 100px;
    background: rgba(10, 14, 23, 0.8);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        order: -1; /* Move visualization to top on mobile */
        margin-bottom: 30px;
    }

    .tech-sphere {
        transform: scale(0.8);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 20px;
    }
    .name {
        font-size: 2.2rem;
    }
    .role-text {
        font-size: 1.3rem;
    }
    .summary {
        font-size: 1rem;
    }
    .tech-sphere {
        transform: scale(0.6);
        margin-top: 20px;
    }
    .timeline {
        padding-left: 10px;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-dot {
        left: 11px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
