* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #F7F3E9;
    --beige: #E8DCC0;
    --light-chocolate: #D2B48C;
    --chocolate: #7A3B0F;
    --dark-chocolate: #5D2F0A;
    --text-dark: #3E2723;
    --text-light: #50312C;
    --white: #FFFFFF;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(247, 243, 233, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(247, 243, 233, 0.98);
    box-shadow: 0 2px 20px rgba(139, 69, 19, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--chocolate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--chocolate);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--chocolate);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--chocolate);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-chocolate);
    font-weight: bold;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--chocolate);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-content .bio {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--chocolate);
    color: white;
    border-color: var(--chocolate);
}

.btn-primary:hover {
    background: var(--dark-chocolate);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--chocolate);
    border-color: var(--chocolate);
}

.btn-secondary:hover {
    background: var(--chocolate);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.2);
    transition: transform 0.3s ease;
    border: 5px solid var(--light-chocolate);
}

.profile-image:hover {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--cream) 0%, var(--white) 50%, var(--beige) 100%);
    opacity: 0.5;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-chocolate);
    animation: fadeInUp 0.8s ease-out;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--chocolate);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--beige);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--chocolate);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Experience Section */
.experience {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
}

.experience-timeline {
    position: relative;
    margin: 3rem 0;
}

.experience-item {
    background: var(--white);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border-left: 5px solid var(--chocolate);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-item h3 {
    color: var(--dark-chocolate);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-item .company {
    color: var(--chocolate);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-item .duration {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.experience-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Tools Section */
.tools {
    padding: 6rem 5%;
    background: var(--white);
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-category {
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--light-chocolate);
}

.tool-category:hover {
    transform: translateY(-5px);
}

.tool-category h3 {
    color: var(--dark-chocolate);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tool-list {
    list-style: none;
    padding: 0;
}

.tool-list li {
    color: var(--text-light);
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--light-chocolate) 100%);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--cream);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(139, 69, 19, 0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--light-chocolate);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--dark-chocolate);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--dark-chocolate);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--cream);
    color: var(--chocolate);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--beige);
}

.view-details {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--chocolate);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: var(--dark-chocolate);
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background: var(--dark-chocolate);
    color: var(--cream);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    color: var(--cream);
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    color: var(--light-chocolate);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-chocolate);
    margin-bottom: 1rem;
}

.service-cta {
    background: var(--light-chocolate);
    color: var(--dark-chocolate);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-cta:hover {
    background: var(--cream);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background: var(--cream);
    color: var(--text-dark);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    color: var(--dark-chocolate);
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--chocolate);
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--chocolate);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--chocolate);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--dark-chocolate);
}

.modal h2 {
    color: var(--dark-chocolate);
    margin-bottom: 1rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    background: var(--cream);
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chocolate);
    font-style: italic;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--beige);
    color: var(--text-light);
}

.feature-list li:before {
    content: "✓ ";
    color: var(--chocolate);
    font-weight: bold;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu open state */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(247, 243, 233, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 5%;
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
        border-top: 1px solid var(--beige);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    body.nav-open .nav-links {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu.open span:nth-child(1) { 
        transform: translateY(6px) rotate(45deg); 
    }
    .mobile-menu.open span:nth-child(2) { 
        opacity: 0; 
    }
    .mobile-menu.open span:nth-child(3) { 
        transform: translateY(-6px) rotate(-45deg); 
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .profile-image {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 3%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .projects,
    .about,
    .contact,
    .experience,
    .tools,
    .services {
        padding: 4rem 3%;
    }

    .project-card {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}