/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

/* --- Utilities --- */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    color: #1a202c;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #0066cc;
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0052a3;
}

/* --- Header & Nav --- */
header {
    background: #1a202c;
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: #0066cc;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.85)), 
                url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=1470') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 60px; /* Offset for sticky header */
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #a0aec0;
}

/* --- About --- */
.about-grid {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    font-size: 1.1rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.skill-card p {
    color: #718096;
    font-size: 0.95rem;
}

/* --- Experience Timeline --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0066cc;
    border: 3px solid #fff;
}

.timeline-date {
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: #718096;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    border-top: 4px solid #0066cc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.project-card p {
    color: #4a5568;
    font-size: 0.95rem;
}

/* --- Contact --- */
.contact {
    text-align: center;
}

.contact-sub {
    color: #718096;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn i {
    margin-right: 8px;
}

.contact-btn:hover {
    background: #2d3748;
    color: #fff;
    border-color: #2d3748;
}

/* --- Footer --- */
footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #2d3748;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    nav ul li {
        margin: 0 1rem;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}