/* CSS Reset & Variables */
:root {
    --bg-main: #0B1120; /* Deep navy/black */
    --bg-secondary: #0F172A; /* Slightly lighter navy for cards */
    --bg-tertiary: #1e293b;
    --accent: #00c896; /* Vibrant teal/cyan */
    --accent-hover: #00e5ab;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-mono: 'Fira Code', 'SF Mono', 'Roboto Mono', monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

::selection {
    background-color: var(--accent);
    color: var(--bg-main);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent);
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(0, 200, 150, 0.05);
}

/* Fixed Sidebars */
.sidebar-left, .sidebar-right {
    width: 40px;
    position: fixed;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-left {
    left: 40px;
}

.sidebar-right {
    right: 40px;
}

.vertical-line {
    width: 1px;
    height: 90px;
    background-color: var(--text-secondary);
    margin-top: 20px;
}

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

.social-links-vertical a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: block;
    transition: var(--transition);
}

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

.email-vertical {
    writing-mode: vertical-rl;
    margin-bottom: 20px;
}

.email-vertical a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .sidebar-left, .sidebar-right {
        display: none;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-sans);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

/* Main Content Wrapper */
main {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 0 150px;
}

@media (max-width: 1080px) {
    main { padding: 0 100px; }
}
@media (max-width: 768px) {
    main { padding: 0 50px; }
    .nav-container { padding: 0 25px; }
    .nav-links { display: none; }
}
@media (max-width: 480px) {
    main { padding: 0 25px; }
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Centered Section Headings */
.section-heading-centered {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-pre-title {
    display: block;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-heading-centered .section-title {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Hero Section */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-top: -50px; /* Adjust vertical centering slightly */
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary); /* Greyed out subtitle instead of accent */
    font-weight: 500;
}

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

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

/* Hero Image & Glowing Effects */
.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {
    .hero-image-wrapper {
        width: 100%;
        max-width: 280px;
        height: 280px;
    }
}

.glow-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0,200,150,0.1) 0%, rgba(11,17,32,0) 65%);
    border-radius: 50%;
    z-index: 0;
}

.hero-image-card {
    position: relative;
    z-index: 1;
    width: 260px;
    height: 260px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Subtle glow matched to the reference */
    box-shadow: 0 0 30px rgba(0, 200, 150, 0.1), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.floating-badge {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: var(--bg-main);
    font-size: 1.1rem;
}

.badge-left {
    left: -5%;
    top: 40%;
}

.badge-right {
    right: -5%;
    bottom: 25%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

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

.subsection-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Interest Badges */
.interest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.interest-badge {
    background-color: rgba(0, 200, 150, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* Currently Working On Cards */
.touch-flip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 200, 150, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

/* Tech Stack Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tech-grid { grid-template-columns: 1fr; }
}

.folder-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
}

.folder-header {
    background-color: rgba(0,0,0,0.2);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.folder-path {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
}

.icon-plus {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.folder-body {
    padding: 1.5rem;
}

.tree-root {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.icon-folder {
    color: var(--accent);
}

.tree-list {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.tree-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tree-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background-color: var(--border-color);
}

.tree-icon {
    font-size: 1rem;
}

.text-blue { color: #3b82f6; }
.text-orange { color: #f97316; }
.text-red { color: #ef4444; }
.text-yellow { color: #eab308; }
.text-green { color: #22c55e; }

/* Qualifications / Timeline Section */
.timeline-group-title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .timeline-header {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
}

.timeline-date {
    background-color: rgba(255,255,255,0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.timeline-institution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.institution-logo {
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
    font-size: 0.7rem;
}

.timeline-body {
    background-color: transparent;
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.timeline-degree {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-specs {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-courses {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact Form Section */
.contact-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.thoughts-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 200, 150, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    background-color: #64ffda; /* Light cyan matching the image */
    color: #0B1120; /* Dark text */
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: #00c896; /* Matches our accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.2);
}

/* Footer */
.footer {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Global Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-image-wrapper { width: 280px; height: 280px; }
    .hero-image-card { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .hero-container { margin-top: 0; }
    .hero-title { font-size: 2.5rem; letter-spacing: 0; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-outline { width: 100%; }
    .about-grid { gap: 2.5rem; }
    .tech-grid { gap: 1rem; }
    .thoughts-form { padding: 0 1rem; }
}
