/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(to right, #0056b3, #003f88);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    animation: fadeInDown 1.2s ease-out;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Navigation */
nav {
    margin-top: 1rem;
}

nav a {
    display: inline-block;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

section h2 {
    color: #0056b3;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Lists */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.skills-list li {
    background: #e6f0ff;
    padding: 10px 16px;
    border-radius: 25px;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: default;
}

.skills-list li:hover {
    background: #cce0ff;
    transform: translateY(-3px);
}

ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

ul li {
    margin-bottom: 0.75rem;
}

/* Education blocks */
.edu-item {
    background: #fff;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

/* Footer */
footer {
    text-align: center;
    background: #003f88;
    color: white;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        margin: 6px 4px;
        padding: 8px 12px;
    }

    section {
        padding: 2rem 1rem;
    }
}

/* --------------------------------- */
/* ✅ Profile Section (ADDED BELOW) */
/* --------------------------------- */

.intro-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    max-width: 950px;
    margin: 3rem auto;
    animation: fadeInUp 0.8s ease forwards;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0056b3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease;
}

.intro-content h2 {
    font-size: 2rem;
    color: #003f88;
    margin-bottom: 0.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: #555;
}

/* Responsive for Profile Section */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }
}
