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

:root {
    --primary: #8b4513; /* Saddle Brown for beige theme */
    --secondary: #f5f5dc; /* Beige */
    --accent: #daa520; /* Goldenrod */
    --dark: #2f1b14; /* Dark brown */
    --light: #ffffff; /* White */
    --text: #2f1b14; /* Dark brown text */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes full-page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-animation {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========== HEADER ========== */
header {
    background: var(--light);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    background: var(--light);
    letter-spacing: -1px;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-tabs a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs a.active {
    background: var(--primary);
    color: var(--light);
}

.nav-tabs a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* ========== MAIN CONTENT ========== */
main {
    flex: 1;
    padding-top: 20px; /* Adjust based on header height */
}

.tab-content {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

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

/* ========== HERO SECTION ========== */
.hero-content {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
}

.dark-mode .logo {
    background: var(--primary);
    color: var(--light);
}

.hero-content .highlight {
    color: var(--accent);
}

.hero-content .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 1rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* ========== SKILLS SECTION ========== */
#skills h2, #experience h2, #projects h2, #contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 3rem;
    position: relative;
}

#skills h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}



.skills-container {
    display: grid;
    justify-content: center;
    gap: 2rem;

    grid-template-columns: repeat(3, minmax(250px, 1fr));
}












































































































































































































































































































































































































































































































































































































































































































































































































































.certifications-container {
    display: grid;
















































































































    justify-content: center;


    gap: 2rem;

    grid-template-columns: repeat(3, minmax(250px, 1fr));
    padding-top: 10px
}












































@media (max-width: 768px) {




    .skills-container, .certifications-container {

        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}














































@media (max-width: 480px) {




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





}








.skill-group {
    background: var(--light);
    border: 2px solid var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    /*flex: 1 1 250px;*/
    /*width: fit-content;*/
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

























.skill-group h3 {
    color: var(--accent);




    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}





.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}













































































.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-group h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    margin-bottom: 1rem;
}

.skill-group h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-group p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== EXPERIENCE SECTION ========== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    margin-left: 50%;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-marker {
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--primary);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

.timeline-content .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

/* Expandable Content */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.expanded {
    max-height: 500px; /* Adjust based on content height */
}

.expand-btn {
    background: var(--primary);
    color: var(--light);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.expand-btn:hover {
    background: var(--accent);
}

.timeline-content .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-basis: 100%; /* Ensure date is on its own line */
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.timeline-content li {
    color: var(--text);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 60px; /* Space for the vertical line and marker */
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0; /* Remove right padding for odd items on mobile */
        text-align: left; /* Align text to left for odd items on mobile */
    }

    .timeline-item:nth-child(even) {
        padding-left: 60px; /* Consistent left padding for even items on mobile */
        margin-left: 0; /* Remove margin-left for even items on mobile */
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 10px; /* Align marker with the vertical line */
        right: auto;
        transform: translateX(0);
    }

    .timeline-content .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content .date {
        flex-basis: auto;
        margin-bottom: 0.5rem; /* Adjust margin for date on mobile */
    }
}

/* ========== PROJECTS SECTION ========== */
#projects h2, #contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 3rem;
    position: relative;
}

#projects h2::after, #contact h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}

.project-group {
    background: var(--light);
    border: 2px solid var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-group p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--secondary);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* ========== CONTACT SECTION ========== */
.contact-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1 1 45%;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-block svg {
    color: var(--accent);
}

.info-block a, .info-block span {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: var(--accent);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.contact-form .btn-primary {
    align-self: flex-start;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
}

.dark-mode .social-link {
    background: var(--primary);
    color: var(--light);
}

@media (max-width: 992px) {
    .contact-info, .contact-form {
        flex: 1 1 100%;
    }
}


/* ========== FOOTER ========== */
footer {
    padding: 1rem;
    text-align: center;
    background: var(--light);
    border-top: 2px solid var(--primary);
    color: var(--text);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

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

    .logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

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

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        gap: 0.5rem;
    }

    .nav-tabs a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    #skills h2, #experience h2, #projects h2, #contact h2 {
        font-size: 2rem;
    }
}

.hidden-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.hidden-link:hover {
    text-decoration: underline;
}

/* Dark Mode */
.dark-mode {
    --primary: #9c5c2d; /* A lighter brown for better visibility */
    --secondary: #3a2218; /* A slightly lighter dark brown */
    --accent: #f0c45c; /* A brighter goldenrod */
    --dark: #f5f5dc; /* Beige (for text) */
    --light: #1c1c1c; /* A slightly lighter black for the background */
    --text: #e0e0e0; /* A light gray for general text */
}

.theme-toggle-btn {
    background-color: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--accent);
}

.theme-toggle-btn svg {
    fill: var(--light);
}

/* Update nav for button */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}