/* Custom Properties for easy theming */
:root {
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-main);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

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

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 70px; /* Offset for fixed nav */
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.timeline-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-item li {
    margin-bottom: 0.5rem;
}

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

.card {
    background: var(--bg-main);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.tech-stack {
    font-size: 0.875rem;
    color: var(--secondary-color) !important;
    margin-bottom: 1rem !important;
    font-weight: 600;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content h2 {
    margin-bottom: 1rem;
}

.footer-content p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

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

.contact-links a {
    color: white;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.contact-links a:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.copyright {
    font-size: 0.875rem;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

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

    .nav-links {
        display: none; /* In a full build, wire this to a hamburger menu toggle */
    }

    .section {
        padding: 3rem 0;
    }
}