:root {
    --primary-color: #262525;
    --background-color: #f8ecdc;
    --text-color: #333333;
    --secondary-color: #666666;
    --card-background: #f8ecdc; 
    --border-color: #000000;
}

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

body {
    font-family: monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 5rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

nav::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: var(--border-color);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hide burger menu by default */
.burger-menu {
    display: none;
}

/* Main Content */
main {
    padding: 0;
}

section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

/* Section Headings */
h2 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: monospace;
    padding-top: 100px;
}

h2::before {
    content: '/';
    margin-right: 0.5rem;
}

/* Home Section */
.home-section {
    margin-top: 3rem;
    min-height: auto;
    margin-bottom: 0.5rem;
}

.intro {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    
}

.intro p:first-child {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    margin-right: 330px;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    
}

.intro .title {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: right;
}

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

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

/* About Section */
.about-content {
    max-width: 900px;
    line-height: 1.8;
    
}

#about {
    margin-top:-5rem;
}

#about h2 {
    font-size: 25px;
    margin-top: -5rem;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 15px;
    align-items: center;
    text-align: justify;
}

/* History Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    padding: 0;
    background: none;
    border: none;
    animation: slideIn 0.5s ease forwards;
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-item .company {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-item .date {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-style: italic;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

#tools {
    margin-top:-9rem ;
}

#tools h2 {
    font-size: 25px;
    margin-top: -9rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    animation: fadeIn 0.5s ease forwards;
}

.tool-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
    transition: filter 0.3s ease;
}

.tool-item span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Projects Section */
#projects {
    margin-top: -8rem;
}

#projects h2 {
    font-size: 25px;
    margin-top: -9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}


.project-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: bold;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.project-tech i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.project-tech i:hover {
    transform: scale(1.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

.project-links a i {
    font-size: 0.9rem;
}

/* Dark theme adjustments for projects */
.dark-theme .project-card {
    background: var(--card-background);
    border-color: var(--border-color);
}

.dark-theme .project-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive for Projects */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-icon {
        font-size: 1.8rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .project-links a {
        padding: 0.5rem 1rem;
    }
}

/* Resume Section */
#resume {
    padding: 1rem 0;
    margin-top: -8rem;
}

#resume h2 {
    font-size: 25px;
}

.resume-content {
    max-width: 800px;
    margin: 0 auto;
}

.resume-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}



.resume-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resume-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resume-card p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    margin-top: 2rem;
}

.quote {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.quote-author {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dark theme */
.dark-theme {
    --primary-color: #ffffff;
    --background-color: #262525;
    --text-color: #e0e0e0;
    --secondary-color: #a0a0a0;
    --card-background: #2a2a2a;
    --border-color: #ffffff;
}

/* Theme Switch */
.theme-toggle {
    margin-left: 1rem;
    cursor: pointer;
}

.switch {
    position: relative;
    width: 40px;
    height: 20px;
}

.switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-background);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.switch-thumb {
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--border-color);
    border-radius: 50%;
    transition: 0.4s;
}

.switch i {
    font-size: 10px;
    color: var(--border-color);
}

.dark-theme .switch-thumb {
    transform: translateX(20px);
}

/* Mobile Responsive */
@media screen and (max-width: 1200px) {
    body {
        max-width: 900px;
    }

    .intro {
        max-width: 450px;
    }

    .intro p:first-child {
        margin-right: 280px;
    }

    .intro {
        margin-top: 100px;
    }
}

@media screen and (max-width: 992px) {
    body {
        max-width: 700px;
    }

    .intro {
        max-width: 400px;
    }

    .intro p:first-child {
        margin-right: 230px;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        height: 60px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.8rem 2rem;
        width: 100%;
        display: block;
        text-align: center;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .theme-toggle {
        padding: 0.8rem 0;
        border-top: 1px solid var(--border-color);
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .burger-menu {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }

    .burger-menu .bar {
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .burger-menu .bar:first-child {
        top: 0;
    }

    .burger-menu .bar:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-menu .bar:last-child {
        bottom: 0;
    }

    .burger-menu.active .bar:first-child {
        transform: rotate(45deg);
        top: 50%;
    }

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

    .burger-menu.active .bar:last-child {
        transform: rotate(-45deg);
        bottom: 50%;
    }

    .intro {
        max-width: 350px;
    }

    .intro p:first-child {
        margin-right: 180px;
        font-size: 0.9rem;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .intro .title {
        font-size: 0.9rem;
    }

    .social-links {
        margin-top: -1.5rem;
    }

    .social-links a {
        font-size: 1.8rem;
    }

    .about-section h2 {
        margin-top: -3rem;
    }

    .about-content p {
        font-size: 14px;
    }

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

    .tool-item {
        padding: 1rem;
    }

    .tool-item img {
        width: 30px;
        height: 30px;
    }

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

    .project-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    body {
        padding: 0 1rem;
    }

    nav {
        padding: 0 1rem;
    }

    .intro {
        max-width: 300px;
    }

    .intro p:first-child {
        margin-right: 130px;
        font-size: 0.85rem;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .intro .title {
        font-size: 0.85rem;
    }

    .social-links {
        margin-top: -1rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 13px;
    }

    .tools-grid {
        gap: 0.8rem;
    }

    .tool-item {
        padding: 0.8rem;
    }

    .tool-item img {
        width: 25px;
        height: 25px;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.85rem;
    }

    .project-tech i {
        font-size: 1rem;
    }

    .project-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 360px) {
    .intro {
        max-width: 280px;
    }

    .intro p:first-child {
        margin-right: 100px;
        font-size: 0.8rem;
    }

    .intro h1 {
        font-size: 1.5rem;
    }

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

    .tool-item {
        padding: 0.6rem;
    }

    .project-card {
        padding: 1rem;
    }
}

/* Contact Section */
#contact {
    padding: 1rem 2rem;
    background: var(--background-color);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -8rem;
}

#contact h2 {
    font-size: 25px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    padding: 2rem;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    background: var(--background-color);
    width: fit-content;
}


.contact-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-form {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 0.6rem 1rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1.5rem 1rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-item span {
        font-size: 0.9rem;
    }

    .quote {
        font-size: 1rem;
    }

    .quote-author {
        font-size: 0.9rem;
    }
}

/* Dark theme adjustments for mobile */
.dark-theme .nav-links {
    background-color: var(--background-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dark-theme .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media screen and (min-width: 769px) {
    .burger-menu {
        display: none;
    }
    
    body {
        padding-top: 80px;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    nav::after {
        width: 100%;
    }
}

/* Dark theme adjustments */
.dark-theme .tool-item img {
    filter: brightness(0) invert(1); /* This will make the icons white */
} 