/* ========================================= */
/* Global Styles & Variables                 */
/* ========================================= */
:root {
    --bg-dark: #10101A;
    --bg-light-dark: #1a1a2e;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
    --primary-accent: #00bfff; /* Deep Sky Blue */
    --secondary-accent: #1e90ff; /* Dodger Blue */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
}

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

h1, h2, h3 {
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-accent);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-accent);
}

.content-section {
    padding: 6rem 0;
}

/* ========================================= */
/* Header & Navigation                       */
/* ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(16, 16, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* ========================================= */
/* Hero Section                              */
/* ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(16, 16, 26, 0.7), rgba(16, 16, 26, 0.9)), url('https://images.unsplash.com/photo-1532187643623-dbf2f5a7d8bd?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    /* You can replace the Unsplash URL with your own background image */
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--primary-accent);
    color: #10101A;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    background: var(--secondary-accent);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    border-radius: 50px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--bg-dark);
}

/* ========================================= */
/* About Section                             */
/* ========================================= */
#about {
    background: var(--bg-light-dark);
}
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-text { flex: 2; }
.about-image { flex: 1; }
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

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

.project-card {
    background: var(--bg-light-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2);
}

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

.card-content {
    padding: 1.5rem;
}

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

.card-content p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========================================= */
/* Experience / Timeline Section             */
/* ========================================= */
#experience {
    background: var(--bg-light-dark);
}
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-accent);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 1rem 3rem 2rem 5rem;
    position: relative;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary-accent);
    left: 11px;
    top: 21px;
    z-index: 1;
}
.timeline-meta {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}
.timeline-content p {
    color: var(--text-dark);
}

/* ========================================= */
/* Contact Section                           */
/* ========================================= */
.text-center { text-align: center; }
#contact p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    color: var(--text-dark);
}
.social-links {
    margin-top: 2rem;
}
.social-links a {
    margin: 0 1rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-accent);
}

/* ========================================= */
/* Footer                                    */
/* ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light-dark);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ========================================= */
/* Animations & Responsiveness               */
/* ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .nav-links {
        display: none; /* Simplification for this example. A real mobile menu needs JS. */
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::after { left: 10px; }
    .timeline-item { padding: 1rem 1rem 2rem 3rem; }
    .timeline-dot { left: 1px; }
}
