:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-primary: #c5c6c7;
    --text-highlight: #66fcf1;
    --text-dim: #45a29e;
    --white: #ffffff;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

.logo {
    font-family: var(--font-mono);
    color: var(--text-highlight);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-highlight);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 150px;
    position: relative;
}

.glitch-text {
    color: var(--text-highlight);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 20px;
}

.name-title {
    font-size: 5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0; /* Animated in JS */
}

.typewriter {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    min-height: 1.5em;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-sub {
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--text-highlight);
    color: var(--text-highlight);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: rgba(102, 252, 241, 0.1);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--text-primary);
}

.social-icons a:hover {
    color: var(--text-highlight);
    transform: translateY(-3px);
}

/* Sections */
.section-container {
    padding: 100px 150px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: #233554;
    margin-left: 20px;
}

.highlight {
    color: var(--text-highlight);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.tech-highlight {
    color: var(--text-highlight);
    font-family: var(--font-mono);
}

.skills-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    list-style: none;
    margin-top: 20px;
}

.skills-list li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.skills-list li i {
    color: var(--text-highlight);
    margin-right: 10px;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-highlight);
    border: 2px solid var(--text-highlight);
    position: relative;
}

.img-placeholder::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-dim);
    border-radius: 10px;
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: 0.3s;
}

.img-frame:hover .img-placeholder::after {
    top: 10px;
    left: 10px;
}

/* Experience Tabs */
.experience-tabs {
    display: flex;
    gap: 40px;
}

.tab-list {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #233554;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-mono);
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--text-highlight);
    background: rgba(17, 34, 64, 0.3);
    border-left: 2px solid var(--text-highlight);
}

.job-content {
    display: none;
    max-width: 600px;
}

.job-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-content h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.company {
    color: var(--text-highlight);
}

.job-duration {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.job-description li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.job-description li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--text-highlight);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    transition: 0.3s;
    position: relative;
    top: 0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.folder-icon {
    color: var(--text-highlight);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-links {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.2rem;
}

.project-card h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Achievements */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
}

.info-box h3 {
    color: var(--text-highlight);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.styled-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Contact */
.center-text {
    text-align: center;
    max-width: 600px;
}

.highlight-small {
    color: var(--text-highlight);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.big-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.footer {
    margin-top: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-socials {
    margin-top: 10px;
}

.footer-socials a {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .nav-links { display: none; }
    .hero { padding: 0 50px; }
    .name-title { font-size: 3rem; }
    .typewriter { font-size: 2rem; }
    .section-container { padding: 80px 30px; }
    .about-grid { grid-template-columns: 1fr; }
    .experience-tabs { flex-direction: column; }
    .tab-list { border-left: none; border-top: 2px solid #233554; flex-direction: row; overflow-x: scroll; }
    .grid-2-col { grid-template-columns: 1fr; }
}