:root {
    --primary-blue: #5116FF;
    --accent-beige: #DED9E2;
    --autumn-brown: #5E503F;
    --text-dark: #2d2d2d;
    --text-muted: #6c6c6c;
    --white-background: #ffffff;
    
    --color-primary: #EF9447;
    --color-secondary: #5E503F;
    --color-tertiary: #53917E;
    --color-accent: #5116FF;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--accent-beige);
    font-family: 'Assistant', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Header */
.main-header {
    background-color: var(--white-background);
    border-bottom: 2px solid var(--autumn-brown);
    position: relative;
}

/* Navigation */
nav {
    position: relative;
}

.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-contact, 
.btn-form {
    background-color: var(--text-dark);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(81, 22, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #4012cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(81, 22, 255, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Welcome Section */
.welcome-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
}

.profile-container {
    position: relative;
    z-index: 15;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.gradient-blob:nth-child(1) {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    width: 40vw;
    height: 40vw;
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-blob:nth-child(2) {
    background: linear-gradient(135deg, var(--color-tertiary), var(--color-secondary));
    width: 35vw;
    height: 35vw;
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.gradient-blob:nth-child(3) {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    width: 30vw;
    height: 30vw;
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 3%) scale(1.05); }
    100% { transform: translate(-3%, -3%) scale(0.95); }
}

.welcome-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.profile-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.profile-image:hover {
    transform: scale(1.02);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--white-background);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.about-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--autumn-brown);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-details {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-details:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: var(--accent-beige);
}

.project-card {
    border: none;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-project {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-project:hover {
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
}

/* Contacts style */
.contact-section {
    padding: 4rem 0;
    background-color: var(--accent-beige);
    text-align: center;
}

.contact-section .welcome-title {
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

.contact-section i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--white-background);
    padding: 2rem 0;
    border-top: 2px solid var(--autumn-brown);
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.footer-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    /* Mobile menu when active */
    .desktop-nav.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white-background);
        border: 2px solid var(--autumn-brown);
        border-radius: 8px;
        min-width: 200px;
        z-index: 1000;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .desktop-nav.show .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .desktop-nav.show .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--accent-beige);
        width: 100%;
    }
    
    .desktop-nav.show .nav-link:hover {
        background: var(--accent-beige);
    }
    
    .desktop-nav.show .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Gradient blobs for mobile */
    .gradient-blob:nth-child(1) {
        width: 80vw;
        height: 80vw;
        top: -40%;
        left: -20%;
    }

    .gradient-blob:nth-child(2) {
        width: 70vw;
        height: 70vw;
        bottom: -35%;
        right: -20%;
    }

    .gradient-blob:nth-child(3) {
        width: 60vw;
        height: 60vw;
        top: 50%;
        left: 10%;
    }

    .about-card {
        margin-bottom: 2rem;
    }

    .btn-contact {
        margin-top: 1rem;
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Fix contact section on mobile */
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-section .welcome-title {
        font-size: 2rem;
    }
    
    .contact-section p {
        font-size: 1rem;
        word-break: break-word;
    }
    

/* Services section
/* Services Section CSS */
.services-section {
    padding: 4rem 0;
    background-color: var(--white-background);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Services section - modern card design */
.services-section .about-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(81, 22, 255, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-section .about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.services-section .about-card .about-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(81, 22, 255, 0.1), rgba(81, 22, 255, 0.05));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.services-section .about-card h3 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.services-section .service-features {
    list-style: none;
    padding: 0 1rem;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.services-section .service-features li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(222, 217, 226, 0.5);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.services-section .service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1rem;
}

.services-section .service-features li:last-child {
    border-bottom: none;
}

.services-section .btn-details {
    background: linear-gradient(135deg, var(--primary-blue), #4012cc);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(81, 22, 255, 0.3);
}

.services-section .btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 22, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Medium screen fixes (tablets) */
@media (max-width: 991px) and (min-width: 769px) {
    .services-section .about-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .services-section .about-card .about-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }
    
    .services-section .about-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .services-section .service-features {
        max-width: 100%;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-section .service-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0 0.6rem 1.3rem;
        line-height: 1.4;
    }
    
    .services-section .service-features li:before {
        top: 0.6rem;
        font-size: 0.9rem;
    }
    
    .services-section .btn-details {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small mobile screens */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .services-section .about-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .services-section .service-features {
        max-width: 100%;
        padding: 0;
    }
}

    /* Footer Mobile Styles */
    .main-footer {
        background-color: var(--white-background);
        padding: 2rem 1rem;
        border-top: 2px solid var(--autumn-brown);
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-footer .nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-link {
        display: block !important;
        color: var(--primary-blue) !important;
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        font-weight: 500;
    }
    
    .copyright {
        color: var(--text-dark) !important;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .main-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
}

.contact {
	background-color: #DED9E2;
}

/* Forms  */
.form-label {
    font-weight: bold;
    padding-top: 1rem;
}