/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    scroll-behavior: smooth;
}

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

/* Header & Navigation */
header {
    background-color: #2c3e50; /* Dark blue/grey */
    color: #ecf0f1; /* Light grey/white */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db; /* Blue accent */
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Burger Menu (for mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #34495e, #2c3e50); /* Dark blue gradient */
    color: #ecf0f1;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Takes at least 70% of viewport height */
}

.hero-content {
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #3498db; /* Blue accent */
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #bdc3c7; /* Lighter grey */
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 5px solid #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.7);
}

.hero-actions .btn {
    margin: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.primary {
    background-color: #3498db;
    color: #fff;
    border: 2px solid #3498db;
}

.btn.primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn.secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn.secondary:hover {
    background-color: #3498db;
    color: #fff;
}

/* Sections Styling */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: #eaf1f5; /* Light blue-grey for alternate sections */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section .container {
    text-align: left;
    max-width: 800px;
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.6rem;
    color: #3498db;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-size: 1.05rem;
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.skill-category li i {
    color: #2c3e50;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.project-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech, .project-role {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
}

.project-tech strong, .project-role strong {
    color: #333;
}

.project-links {
    margin-top: 20px;
}

.project-links .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-right: 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.project-links .btn i {
    margin-right: 8px;
}

/* Experience Section */
.experience-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

.experience-item h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.experience-date {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
    display: block;
}

.experience-item ul {
    list-style: disc;
    margin-left: 20px;
    color: #555;
}

.experience-item li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.experience-item li strong {
    color: #333;
}

/* Education Section */
.education-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.education-item h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.education-item p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 8px;
}

/* Footer & Contact Section */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0;
    text-align: center;
}

.contact-section h2 {
    color: #ecf0f1;
}

.contact-section h2::after {
    background-color: #3498db;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #bdc3c7;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-link i {
    margin-right: 10px;
    font-size: 1.4rem;
    color: #3498db;
}

.contact-link:hover {
    color: #3498db;
}

footer p:last-child {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default for mobile */
        text-align: center;
        background-color: #34495e;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        padding: 20px 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

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

    .skills-grid, .project-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 80%; /* Adjust as needed */
        margin: 10px auto;
    }
}