:root {
    /* Color Palette - Premium Dark/Modern theme based on teal/slate */
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-hover: #3182ce;
    --accent-glow: rgba(88, 166, 255, 0.4);

    /* Glassmorphism card bg */
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(48, 54, 61, 0.8);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Custom Cursor Glow Effect */
#cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s;
    opacity: 0;
    /* Updated dynamically via JS */
}

body:hover #cursor-glow {
    opacity: 1;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    color: #ffffff;
    font-weight: 600;
}

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

a:hover {
    color: var(--accent-hover);
}

.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
    margin-left: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-glow);
    transform: translateY(-3px);
}

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

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

.glass-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

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

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

.nav-cta {
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--accent-color) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-glow);
}

.lang-toggle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
    user-select: none;
}

.lang-btn {
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent-color);
    font-weight: 700;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding-top: 80px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
    padding-left: 20px;
}

.greeting {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.name {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
}

.role {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 25px;
}

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

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

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--glass-border);
    transition: var(--transition);
}

.image-wrapper:hover img {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 5px;
}

.skill-group h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.skill-group h3 i {
    color: var(--accent-color);
}

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

.tags span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--text-primary);
}

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

.education-list li {
    margin-bottom: 5px;
}

.education-list strong {
    display: block;
    color: #fff;
}

.education-list span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

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

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

.timeline-content {
    padding: 25px;
}

.timeline-date {
    display: inline-block;
    padding: 3px 10px;
    background: var(--glass-border);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #fff;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-tasks {
    list-style-type: none;
}

.timeline-tasks li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-tasks li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.folder-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

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

.project-links a:hover {
    color: var(--accent-color);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.more-projects {
    text-align: center;
    margin-top: 50px;
}

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

.contact-container .section-title {
    justify-content: center;
}

.contact-container .section-title::after {
    display: none;
}

.contact-container p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
    }

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

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -8px;
    }

    .name {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.5rem;
    }
}