@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #fcfcfc;
    --surface-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #eaeaea;
    --accent-color: #222222;
}

/* Dark mode support for minimalism */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f0f0f;
        --surface-color: #141414;
        --text-primary: #f0f0f0;
        --text-secondary: #a0a0a0;
        --border-color: #2a2a2a;
        --accent-color: #ffffff;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
}

/* Typography elements */
.highlight {
    font-weight: 600;
    color: var(--text-primary);
}

/* Nav Bar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 5%;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Primary Layout Container */
main.container {
    padding-top: 120px; 
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 300;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Sections */
.section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Qualifications & Education */
.timeline {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--text-secondary);
}

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

.timeline-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

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

/* About / Skills Layout */
.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    border-color: var(--text-secondary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.project-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.project-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-weight: 300;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-upcoming {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Page */
.contact-section {
    max-width: 600px;
    margin: 0;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 2rem 0;
    text-decoration: none;
    display: inline-block;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-email:hover {
    border-color: var(--text-primary);
}

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

.social-icon {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.social-icon:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-secondary);
}

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

.contact-form {
    width: 100%;
    margin-top: 3rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
}

/* Animations classes */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: -1;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 100;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .btn { display: inline-block; width: max-content; }
}
