:root {
    /* Color Palette: Control & Perception (Dark Mode) */
    --bg-color: #0d1117;
    /* GitHub Dark Dimmed style / Deep Charcoal */
    --surface-color: #161b22;
    /* Slightly lighter for cards */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;

    --accent-cyan: #2f81f7;
    /* Tech / AI / Perception */
    --accent-amber: #d29922;
    /* Hardware / Control */
    --border-color: #30363d;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 64px;
}

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

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(47, 129, 247, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(210, 153, 34, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(47, 129, 247, 0.3);
}

.text-amber {
    color: var(--accent-amber);
    text-shadow: 0 0 10px rgba(210, 153, 34, 0.3);
}

.font-code {
    font-family: var(--font-code);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-code);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(47, 129, 247, 0.5);
    /* Cyan glow */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: #fff;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(47, 129, 247, 0.4);
}

.btn-primary:hover {
    background-color: #58a6ff;
    box-shadow: 0 0 25px rgba(47, 129, 247, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid rgba(47, 129, 247, 0.5);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(47, 129, 247, 0.1);
    box-shadow: 0 0 15px rgba(47, 129, 247, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-greeting {
    font-family: var(--font-code);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-block;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-cyan);
    white-space: nowrap;
    margin: 0;
    animation:
        typing 3.5s steps(30, end),
        blink-caret 0.75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-cyan)
    }
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(47, 129, 247, 0.2));
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-social a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.hero-social a:hover {
    color: var(--accent-cyan);
    transform: scale(1.15);
}

/* Hero Image */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(47, 129, 247, 0.3);
    box-shadow: 0 0 50px rgba(47, 129, 247, 0.2);
    transition: all 0.5s ease;
}

.hero-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 70px rgba(47, 129, 247, 0.4);
    border-color: var(--accent-cyan);
}

@media (max-width: 968px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

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

    .hero-profile-img {
        width: 250px;
        height: 250px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Section General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* About Section */
.about-section .container {
    max-width: var(--container-width);
}

.about-text {
    width: 100%;
    max-width: none;
    margin-bottom: 3rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Education Section - Full Width */
.education-section {
    margin-top: 1rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Tech Stack Section - Full Width */
.tech-stack-section {
    margin-top: 1rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.edu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(47, 129, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.edu-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.edu-details {
    flex: 1;
}

.edu-school {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.edu-degree {
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
}

.edu-date {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tech-stack-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    font-family: var(--font-code);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: rgba(47, 129, 247, 0.08);
    /* Cyan tint */
    color: var(--accent-cyan);
    border-radius: 6px;
    border: 1px solid rgba(47, 129, 247, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(47, 129, 247, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(47, 129, 247, 0.3);
    transform: translateY(-2px);
}

/* Mobile Header Styles */
@media (max-width: 968px) {
    .logo {
        font-size: 1.2rem;
    }

    .main-nav ul {
        gap: 1.2rem;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 56px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .main-nav ul {
        gap: 0.8rem;
    }

    .main-nav a {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .main-nav ul {
        gap: 0.5rem;
    }

    .main-nav a {
        font-size: 0.7rem;
    }

    .btn-outline {
        display: none;
    }
}

@media (max-width: 968px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

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

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.project-card-link:hover {
    transform: translateY(-4px);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card-link:hover .project-card {
    border-color: rgba(47, 129, 247, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

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

.project-links a:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* Footer */
.site-footer {
    padding: 6rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: linear-gradient(to top, rgba(13, 17, 23, 1), transparent);
}

.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-size: 1.6rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(47, 129, 247, 0.5);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Experience Section */
.experience-item {
    margin-bottom: 3rem;
    padding-left: 30px;
    border-left: 2px dashed rgba(48, 54, 61, 0.6);
    position: relative;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(47, 129, 247, 0.5);
}

.experience-header {
    margin-bottom: 0.8rem;
}

.company-name {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.job-role {
    margin-bottom: 1.5rem;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #c9d1d9;
    /* Lighter grey for better contrast */
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.job-desc ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-primary);
}

.job-desc li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

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

/* Contact Section */
.contact-section {
    padding: 120px 0;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}