/* Global Styles */
:root {
    --primary-color: #0056b3;
    /* Deep Blue */
    --secondary-color: #00a8cc;
    /* Lighter Blue */
    --text-color: #333;
    --bg-color: #ffffff;
    --light-bg: #f4f8fb;
    /* Very light blue/white */
    --white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Navbar */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f0ff 100%);
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sections Global */
.section {
    padding: 5rem 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

/* About Section */
.about-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Experience Section (Timeline) */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content .location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: disc;
    margin-left: 1.2rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-category i {
    color: var(--secondary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.edu-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.edu-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.edu-card .year {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--light-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.success-message p {
    margin-bottom: 1.5rem;
}

.success-message p {
    margin-bottom: 1.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 2px;
    /* Fine-tune icon centering */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 3rem 5%;
    }

    .timeline {
        border-left: none;
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 0;
        border-left: 2px solid var(--primary-color);
        padding-left: 1.5rem;
        margin-left: 10px;
    }

    .timeline-dot {
        left: -21px;
    }
}