/* Base Styles */
:root {
    --yellow: #F9ED69;
    --orange: #F08A5D;
    --raspberry: #B83B5E;
    --purple: #6A2C70;
    --light: #FFFFFF;
    --dark: #333333;
    --gray: #F5F5F5;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--purple);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--orange);
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--orange);
    color: var(--light);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--raspberry);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--raspberry) 100%);
    color: var(--light);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(106, 44, 112, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    width: 75px;
    height: 75px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--yellow);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 237, 105, 0.8) 0%, rgba(240, 138, 93, 0.8) 100%);
    z-index: 1;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    animation: float-random 15s linear infinite;
}

@keyframes float-random {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(90deg);
    }
    50% {
        transform: translate(0, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    color: var(--purple);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-shape {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: var(--light);
    transform: skewY(-4deg);
    z-index: 3;
}

/* About Section */
.about {
    position: relative;
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    animation: float 3s ease-in-out infinite;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--raspberry);
}

.about-text p {
    margin-bottom: 25px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background-color: var(--yellow);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--orange);
    color: var(--light);
    transform: translateY(-3px);
}

/* Experience Section */
.experience {
    background-color: var(--gray);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--raspberry);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--light);
    border: 4px solid var(--orange);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item .date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--orange);
    color: var(--light);
    font-size: 0.8rem;
    border-radius: 50px;
    margin-bottom: 10px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--raspberry);
}

.timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--purple);
}

.timeline-item .location {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.timeline-item .location i {
    color: var(--raspberry);
    margin-right: 5px;
}

/* Skills Section */
.skills {
    background-color: var(--light);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--gray);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.appear {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--raspberry);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-card p {
    margin-bottom: 20px;
}

.skill-progress {
    width: 100%;
    background-color: #ddd;
    border-radius: 50px;
    height: 8px;
    position: relative;
    overflow: hidden;
}

.skill-progress span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--raspberry) 100%);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--gray);
    position: relative;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.portfolio-filter ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

.portfolio-filter li {
    padding: 8px 20px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-filter li:hover,
.portfolio-filter li.active {
    background-color: var(--orange);
    color: var(--light);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition), transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(249, 237, 105, 0.7), rgba(184, 59, 94, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h4 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--light);
    margin-bottom: 20px;
}

.portfolio-link,
.portfolio-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    color: var(--raspberry);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.portfolio-link:hover,
.portfolio-details:hover {
    background-color: var(--purple);
    color: var(--light);
    transform: translateY(-3px);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Clients Section */
.clients {
    background-color: var(--light);
    padding: 80px 0;
    overflow: hidden;
}

.clients-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Horizontal scrolling client logos */
.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Navigation container */
.clients-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Navigation buttons */
.clients-nav-btn {
    width: 40px;
    height: 40px;
    background-color: var(--raspberry);
    color: var(--light);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.clients-nav-btn:hover {
    background-color: var(--purple);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.clients-slider::before,
.clients-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--light), transparent);
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--light), transparent);
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    transition: transform 0.5s ease-in-out;
}

.clients-track.manual-scroll {
    animation: none;
}

.client-logo-group {
    display: flex;
    gap: 40px;
    min-width: max-content;
}

.client-logo {
    background-color: var(--light);
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 150px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    object-fit: contain;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 40px));
    }
}

/* Responsive adjustments for clients section */
@media (max-width: 991px) {
    .client-logo {
        width: 180px;
        height: 120px;
    }
    
    .client-logo-group {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .client-logo {
        width: 160px;
        height: 100px;
    }
    
    .client-logo-group {
        gap: 25px;
    }
    
    .clients-slider::before,
    .clients-slider::after {
        width: 60px;
    }
    
    .clients-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .client-logo {
        width: 140px;
        height: 90px;
    }
    
    .client-logo-group {
        gap: 20px;
    }
    
    .clients-slider::before,
    .clients-slider::after {
        width: 40px;
    }
    
    .clients-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* Contact Section */
.contact {
    background-color: var(--gray);
    position: relative;
}

.contact-shape {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: var(--gray);
    transform: skewY(-4deg);
    z-index: -1;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--raspberry);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--raspberry);
}

.contact-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 138, 93, 0.3);
}

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

/* reCAPTCHA Styling */
.recaptcha-container {
    margin-bottom: 20px;
}

.g-recaptcha {
    transform-origin: left top;
    margin-bottom: 10px;
}

/* For small screens, scale the reCAPTCHA widget */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

/* Footer */
footer {
    background-color: var(--purple);
    color: var(--light);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        margin-bottom: 30px;
    }

    .about-skills {
        justify-content: center;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        height: calc(100vh - 80px);
        width: 250px;
        background-color: var(--purple);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 22px;
    }

    .skill-card {
        margin-bottom: 20px;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .portfolio-filter ul {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-filter li {
        width: 100%;
        text-align: center;
    }
}