/* --- Global Styles --- */
:root {
    --primary-color: #2563eb;    /* Royal Blue */
    --secondary-color: #1e293b;  /* Slate Dark */
    --accent-color: #3b82f6;     /* Light Blue */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --max-width: 1100px;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

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

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

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

.btn-contact:hover {
    background: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 120px 0;
}

.profile-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.profile-image {
    position: relative;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-info {
    text-align: left;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin: 20px 0;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin: 0 0 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* --- About --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #d1d5db;
    top: 0;
    bottom: 0;
    left: 20px; /* Mobile alignment */
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    left: 13px; /* Mobile dot alignment */
}

.timeline-content {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.timeline-content h4 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-dark);
}

.timeline-content ul li {
    margin-bottom: 8px;
}

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

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- Education --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.edu-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.edu-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.edu-card .school {
    color: var(--text-light);
}

.edu-card .year {
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0 30px;
}

.footer h2 {
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.contact-links a, .contact-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

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

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hide for mobile, ideally use JS for toggle */
    }
    
    .navbar .container {
        justify-content: center;
    }

    /* Hero Mobile Styles */
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* About Mobile Styles */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item::after {
        left: 13px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
}