/* --- Global Styles --- */
:root {
    --primary-color: #4A90E2; /* A nice, professional blue */
    --secondary-color: #F5A623; /* Accent color */
    --background-color: #FDFDFD;
    --text-color: #333333;
    --light-gray: #EFEFEF;
    --white-color: #FFFFFF;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

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

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #357ABD;
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 5px;
    position: relative;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}


/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-container {
    flex-shrink: 0;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white-color);
    box-shadow: var(--card-shadow);
}


/* --- Social Links Section --- */
.social-links-section {
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-color);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Page Header --- */
.page-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- Projects Page --- */
.projects-grid {
    padding: 4rem 0;
}

.projects-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-timeline {
    font-style: italic;
    color: #777;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-stack span {
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-description {
    margin-bottom: 1.5rem;
}

.project-links a {
    margin-right: 1rem;
    font-weight: 600;
}

.project-links i {
    margin-right: 0.5rem;
}


/* --- Experience Page --- */
.experience-timeline {
    padding: 4rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--primary-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--white-color);
}

.timeline-company {
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-date {
    font-style: italic;
    color: #777;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* --- Skills Page --- */
.skills-section {
    padding: 4rem 0;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.skills-list h4 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cert-list i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}


/* --- Contact Page --- */
.contact-section {
    padding: 4rem 0;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info .contact-item i {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    width: 25px;
    text-align: center;
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

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