@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #09090b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 5% 2rem;
}

/* Sections */
.section {
    margin-bottom: 8rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
    white-space: nowrap;
}

.section-header .line {
    height: 1px;
    width: 100%;
    background-color: var(--border-color);
    max-width: 300px;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5rem;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    padding: 3px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.brief-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.8rem;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Text Block */
.text-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
}

.tags span:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}

.card .company {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 0 1rem 0;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 0.8rem;
}

.project-links a:hover {
    color: var(--accent);
}

.project-tags {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.basic-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0;
}

.highlight {
    color: var(--accent);
}

.cert-list {
    color: var(--text-muted);
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.cert-list li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: #4df8e8; /* Cyan/Teal to match the uploaded image */
    font-size: 1.1rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
    border-top: 1px solid var(--border-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */

/* Tablet & Mobile Menu Base */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 900px) {
    .container {
        padding-top: 6rem;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden by default */
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero {
        min-height: 60vh;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header .line {
        display: none;
    }

    .section {
        margin-bottom: 5rem;
    }

    .card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }

    .timeline {
        padding-left: 1.2rem;
    }

    .timeline-item::before {
        left: -1.6rem;
        width: 10px;
        height: 10px;
    }
}
