/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #E9E4E0;
    background-color: #1B191A;
    background: linear-gradient(135deg, #1B191A 0%, #2a2628 50%, #1B191A 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(27, 25, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(148, 58, 31, 0.3);
    z-index: 1000;
    border-bottom: 2px solid #943A1F;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic-nav {
    width: 192px;
    height: 192px;
    border-radius: 8px;
    border: 3px solid #943A1F;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(148, 58, 31, 0.4);
}

.profile-pic-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E9E4E0;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #E9E4E0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #943A1F;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #943A1F;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2a2628 0%, #3a3638 50%, #2a2628 100%);
    border-radius: 10px;
    margin: 40px 0;
    border: 2px solid #943A1F;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #E9E4E0;
}

.hero-content p {
    font-size: 1.1rem;
    color: #E9E4E0;
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.8;
}

.location {
    font-size: 1rem;
    color: #E9E4E0;
    margin-bottom: 25px !important;
    font-weight: 500;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    border-bottom: 1px solid #2a2628;
}

.experience h2,
.skills h2,
.projects h2,
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #E9E4E0;
    position: relative;
    padding-bottom: 15px;
}

.experience h2::after,
.skills h2::after,
.projects h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #943A1F;
}

.experience-list {
    display: grid;
    gap: 40px;
}

.experience-item {
    padding: 30px;
    background: #2a2628;
    border-left: 4px solid #943A1F;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(148, 58, 31, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 1.3rem;
    color: #E9E4E0;
}

.company {
    background: #3a3638;
    color: #E9E4E0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.date {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.description {
    color: #E9E4E0;
    line-height: 1.8;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    border-bottom: 1px solid #2a2628;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
    background: #2a2628;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3638;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(148, 58, 31, 0.2);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #E9E4E0;
    border-bottom: 2px solid #943A1F;
    padding-bottom: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: #E9E4E0;
    position: relative;
    padding-left: 20px;
}

.skill-category li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #943A1F;
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    border-bottom: 1px solid #2a2628;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 30px;
    background: #2a2628;
    border-radius: 8px;
    border-top: 4px solid #943A1F;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #3a3638;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(148, 58, 31, 0.25);
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #E9E4E0;
}

.tech-stack {
    color: #943A1F;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-card p {
    color: #E9E4E0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-link {
    color: #E9E4E0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
    color: #943A1F;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #2a2628;
}

.contact > p {
    font-size: 1.1rem;
    color: #E9E4E0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    background: #2a2628;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #3a3638;
}

.contact-info p {
    margin: 10px 0;
    color: #E9E4E0;
    font-size: 1rem;
}

.contact-info a {
    color: #E9E4E0;
    text-decoration: none;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 30px;
    background: #943A1F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: 1px solid #943A1F;
}

.contact-btn:hover {
    background: #a84d2b;
    transform: translateY(-2px);
    border-color: #E9E4E0;
}

/* Footer */
.footer {
    padding: 30px 20px;
    text-align: center;
    color: #a0a0a0;
    background: #1B191A;
    border-top: 2px solid #943A1F;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .profile-pic-nav {
        width: 150px;
        height: 150px;
    }

    .nav-links {
        gap: 15px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .experience h2,
    .skills h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 15px;
    }

    .experience,
    .skills,
    .projects,
    .contact {
        padding: 50px 0;
    }
}
