/* Global Styles & Variables */
:root {
    --primary-color: #00ADB5;
    /* Teal Accent */
    --secondary-color: #EEEEEE;
    /* Light Text */
    --bg-color: #222831;
    /* Dark Background */
    --bg-alt: #393E46;
    /* Slightly lighter background for sections */
    --text-color: #EEEEEE;
    --text-muted: #B2B2B2;
    /* Muted Text */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Helper Classes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 20px;
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 40, 49, 0.95);
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.name {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    width: 350px;
    height: 350px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 173, 181, 0.3);
    color: var(--text-muted);
    overflow: hidden;
    /* Ensure image stays within border radius */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text h3,
.skills-container h3,
.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.skill-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: '▹';
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.tech-stack {
    background-color: var(--bg-alt);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-category p {
    color: var(--text-muted);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 15px;
    /* Start at the center of the first circle (5px offset + 10px radius) */
    bottom: 0;
    left: 30px;
    /* Shifted for better spacing */
    box-sizing: border-box;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    /* Increased padding */
    margin-bottom: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 21px;
    /* 30px (line) + 1px (half line) - 10px (half circle) = 21px */
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    box-sizing: border-box;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.edu-logo {
    margin-top: 15px;
    max-width: 75px;
    height: auto;
    display: block;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-alt);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 173, 181, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-links a {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-right: 15px;
    font-weight: 600;
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-links a.disabled {
    color: #666;
    cursor: not-allowed;
}

/* Certificates */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cert-list li {
    background-color: var(--bg-color);
    padding: 15px 25px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: var(--transition);
}

.cert-list li:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cert-list li i {
    margin-left: 10px;
    color: var(--primary-color);
}

/* Contact */
.contact-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background-color: #1a1e24;
    /* Darker than bg-color */
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials {
    margin-top: 15px;
}

.footer-socials a {
    margin: 0 10px;
    color: #777;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        margin-top: 40px;
    }

    .social-links {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Below the navbar */
        left: 0;
        width: 100%;
        background-color: rgba(34, 40, 49, 0.98);
        padding: 20px 0;
        text-align: center;
        transform: translateY(-150%);
        /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        color: var(--text-color);
    }

    .hamburger.active {
        color: var(--primary-color);
    }

    .name {
        font-size: 3rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
}