/* Color Scheme */
:root {
    --primary: #1a3a3a;        /* Deep teal */
    --secondary: #2d5a5a;      /* Medium teal */
    --accent: #4a9b9b;         /* Bright teal */
    --neutral-light: #f5f9f9;  /* Off-white */
    --neutral-dark: #2c2c2c;   /* Dark gray */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border: #d4e4e4;
}

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

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--neutral-light);
}

/* Layout Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.header h1 {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary);
    color: white;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar (Content Left) */
.content-left {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.content-left h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background-color: var(--neutral-light);
    border-left-color: var(--accent);
    color: var(--primary);
}

/* Main Content (Content Right) */
.content-right {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.content-right h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-right p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.content-right img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Content Sections (for toggling) */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Skill Bars */
.skill-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skill-info {
    flex: 0 0 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percentage {
    font-weight: 500;
    color: var(--accent);
    margin-left: auto;
}

.skill-bar-container {
    flex: 1;
    height: 12px;
    background-color: var(--neutral-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-category {
    margin-top: 2rem;
}

.skill-category:first-child {
    margin-top: 0;
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Hamburger Menu (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-left {
        flex: 1;
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .nav-links a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .header-content {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
        order: 2;
    }

    .header-content h1 {
        order: 1;
    }

    .header-content nav {
        order: 3;
    }

    /* Hide navigation by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 5rem 1rem 1rem 1rem;
        gap: 0.5rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    /* Show navigation when active */
    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-radius: 6px;
    }

    /* Overlay background */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    .main-content {
        padding: 1rem;
        gap: 1rem;
    }

    .content-right,
    .content-left {
        padding: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .skill-item {
        margin-bottom: 0.5rem;
    }

    .skill-info {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .skill-bar-container {
        height: 6px;
    }

    .skill-category {
        margin-top: 1.25rem;
    }

    .skill-category:first-child {
        margin-top: 0;
    }

    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
}
