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

:root {
    --primary-color: #000F08;
    --accent-color: #4a4a4a;
    --text-color: #333;
    --white: #ffffff;
    --color-1: #537A5A;
    --color-2: #D2D0BA;
    --color-3: #694A38;
    --color-4: #EC9192;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    letter-spacing: 0.3px;
}

/* Header Styling */
.header {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-1);
    border-bottom-color: var(--color-1);
}

/* Main Content */
.main-content {
    max-width: 100%;
    padding: 0;
}

.section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 2rem);
    padding-right: calc(50vw - 50% + 2rem);
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

/* Alternating Section Colors */
.section:nth-child(1) {
    background-color: var(--color-1);
    color: var(--white);
}

.section:nth-child(1) h2 {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    color: var(--white);    font-weight: 700;
    font-size: 2rem;}

.section:nth-child(1) h3 {
    color: var(--white);
}

.section:nth-child(2) {
    background-color: var(--color-2);
    color: var(--primary-color);
}

.section:nth-child(2) h2 {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.section:nth-child(2) h3 {
    color: var(--primary-color);
}

.section:nth-child(3) {
    background-color: var(--color-3);
    color: var(--white);
}

.section:nth-child(3) h2 {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.section:nth-child(3) h3 {
    color: var(--white);
}

.section:nth-child(3) p {
    color: var(--white);
}

.section:nth-child(4) {
    background-color: var(--color-4);
    color: var(--white);
}

.section:nth-child(4) h2 {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.section:nth-child(4) h3 {
    color: var(--white);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid;
    padding-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: block;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section:nth-child(2) p {
    color: var(--primary-color);
}

/* About Section with Profile Picture */
.about-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.profile-pic {
    width: 200px;
    height: 200px;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.about-content p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
        min-width: 150px;
    }
    
    .about-content h2 {
        text-align: center;
    }
}

.section h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section:nth-child(2) h3 {
    color: var(--primary-color);
}

.work-experience {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.work-experience h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.work-item {
    max-width: 800px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.work-item p {
    max-width: 100%;
}

.work-item p:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-item p:last-child {
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.skill-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.section:nth-child(2) .skill-item {
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: rgba(0, 0, 0, 0.3);
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.section:nth-child(2) .skill-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.skill-item h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: inherit;
}

.skill-item p {
    font-size: 0.95rem;
    color: inherit;
}

.skill-item p {
    font-size: 0.95rem;
}

/* Education */
.education-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section:nth-child(2) .education-item {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.education-item p {
    color: inherit;
}

.education-item:last-child {
    border-bottom: none;
}

.education-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-item p {
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.degree {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.section:nth-child(2) .degree {
    color: var(--primary-color);
}

.date {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.section:nth-child(2) .date {
    color: var(--primary-color);
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .section {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

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

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

@media (max-width: 480px) {
    .header-title {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }
}
