:root {
    --bg-color: #0b0c10;
    --bg-alt: #1f2833;
    --text-main: #c5c6c7;
    --text-highlight: #66fcf1;
    --accent: #45a29e;
    --primary: #66fcf1;
    --card-bg: rgba(31, 40, 51, 0.7);
    --glass-border: rgba(102, 252, 241, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: #fff;
}

.highlight {
    color: var(--highlight);
    position: relative;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.nav-links li:last-child a:hover::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.greeting {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 2rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: #8892b0;
}

.hero-description .highlight {
    color: var(--primary);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    /* Styles inherited but reinforced here if needed */
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #8892b0;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Code Block Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.code-block {
    background: #1c1e26;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover .code-block {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #d8dee9;
    overflow-x: auto;
}

.keyword { color: #c678dd; }
.class-name { color: #e5c07b; }
.string { color: #98c379; }
.type { color: #61afef; }
.function { color: #56b6c2; }

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #8892b0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(102, 252, 241, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

.timeline-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-content .company {
    display: block;
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-list {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    color: #8892b0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    border-color: var(--primary);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-desc {
    color: #8892b0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    background: rgba(102, 252, 241, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-badge {
    background: #1c1e26;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #d1d5db;
    transition: var(--transition);
}

.skill-badge:hover {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--primary);
    color: #fff;
}

.skill-badge i {
    color: var(--primary);
}

/* Contact/Footer */
.footer-section {
    padding-bottom: 2rem;
}

.contact-box {
    background: linear-gradient(145deg, #1c1e26, #111217);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    border: 1px solid var(--glass-border);
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    color: #8892b0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #fff;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary);
    color: var(--bg-color);
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.footer {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-visual {
        display: none; /* Hide 3D code block on mobile for simplicity */
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0px;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
