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

:root {
    --primary-color: #3a86ff;
    --secondary-color: #4361ee;
    --accent-color: #7209b7;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #f8f9fa;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Updated H1 for text-based header, if you were to use it instead of image */
h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}


h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

section {
    padding: 6rem 0;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: #fff;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1484417894907-623942c8ee29?ixlib=rb-1.2.1&auto=format&fit=crop&w=1489&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

header .container {
    position: relative;
    z-index: 1;
}

/* NEW: Styles for the image logo in the header */
.header-logo img {
    max-width: 250px; /* Adjust as needed */
    height: auto;
    margin: 0 auto 1rem; /* Centers the image and adds bottom margin */
    display: block; /* Ensures it behaves like a block element for margin:auto */
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-top: 0.8rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0; /* Initially hide the button */
    transition: opacity 1s ease-out, all 0.3s ease;
}

.btn.fade-in {
    opacity: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
    transform: translateY(-3px);
}

.btn:hover::before {
    width: 100%;
}

.btn-submit {
    border: none;
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* About Section */
.about {
    text-align: center;
    position: relative;
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Features in About Section */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 3rem 0 1rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    width: 200px;
    transition: all 0.3s ease;
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tags for portfolio */
.tag {
    display: inline-block;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-right: 0.5rem;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.portfolio-item-1 {
    background-color: var(--light-color);
    padding: 0;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: url('https://careless-cloud.s3.eu-north-1.amazonaws.com/paw5.png') 16 16, auto;
}

.portfolio-item-2 {
    background-color: var(--light-color);
    padding: 0;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: url('https://careless-cloud.s3.eu-north-1.amazonaws.com/makeup.png') 16 16, auto;
}

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

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

.gif-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.gif-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.8s ease;
}

.portfolio-item-1:hover .gif-container video {
    transform: scale(1.08);
}

.portfolio-item-2:hover .gif-container video {
    transform: scale(1.08);
}


.portfolio-item-content {
    padding: 1.5rem;
}

/* Services Section */
.services {
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.service {
    background-color: var(--light-color);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.15);
    color: var(--light-color);
}

.service:hover::before {
    opacity: 1;
}

.service:hover i, .service:hover h3 {
    color: var(--light-color);
}

.service i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.service h3 {
    transition: color 0.4s ease;
}

/* Service features list */
.service-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
    padding: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-features li i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.service:hover .service-features li i {
    color: var(--light-color);
}

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

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gray-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

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

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

textarea {
    height: 180px;
    resize: vertical;
}

/* Form validation styles */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.success-message {
    background-color: #2ecc71;
    color: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Contact container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-method {
    position: relative;
    margin-bottom: 1.8rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-method i {
    position: absolute;
    left: -15px;
    top: 0;
    background-color: white;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.social-media {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--dark-color), var(--primary-color));
    color: var(--light-color);
    text-align: center;
    padding: 3rem 0;
}

/* Footer content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    /* These styles were for text, they are commented out or adjusted for image */
    /* font-size: 2rem; */
    /* font-weight: 700; */
    /* background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    margin-bottom: 1rem; /* Keep this for spacing below the logo */
}

/* NEW: Styles for the image logo in the footer */
.footer-image-logo {
    max-width: 180px; /* Adjust this to your preferred size for desktop */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures it behaves like a block element for consistent spacing */
    /* filter: brightness(0) invert(1); */ /* Optional: Uncomment to make a dark logo appear white on dark background */
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-language {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.current-language:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.current-language span {
    margin-right: 0.5rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    list-style: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-dropdown li:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.language-dropdown li.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    /* Header Logo */
    .header-logo img {
        max-width: 200px; /* Smaller on mobile */
    }

    /* General */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Header */
    header {
        padding: 6rem 0 4rem;
    }

    .subtitle {
        font-size: 1.3rem;
        line-height: 1.4; /* Adjusted for better readability on smaller lines */
    }

    /* About Section */
    .about p {
        font-size: 1.05rem;
        padding: 0 10px;
        line-height: 1.5; /* Slightly tighter line-height for body text on mobile */
    }

    .about-more {
        text-align: left;
    }

    .about-more h2 {
        text-align: center;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem; /* Increased gap slightly for better separation */
        margin-top: 2rem; /* Reduced top margin for features */
    }

    .feature {
        width: 90%;
        max-width: 350px; /* Slightly increased max-width for features */
        margin-bottom: 0; /* Managed by gap now */
        padding: 1.5rem 1rem; /* Adjusted padding */
    }

    /* Portfolio Section */
    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 2.5rem; /* Slightly larger gap between stacked items */
        margin-top: 2rem; /* Reduce top margin */
    }

    .portfolio-item-content {
        padding: 1rem;
    }

    .portfolio-item-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem; /* Reduced margin */
    }

    .portfolio-item-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem; /* Adjusted margin */
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem; /* Slightly larger tags for better touch targets */
        margin-right: 0.4rem; /* Adjusted spacing */
        margin-top: 0.6rem; /* Adjusted spacing */
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem; /* Slightly larger gap between stacked services */
        margin-top: 2rem; /* Reduce top margin */
    }

    .service {
        padding: 2.5rem 1.5rem; /* Adjusted padding for better visual weight */
    }

    .service i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service h3 {
        font-size: 1.2rem;
    }

    .service-features li {
        font-size: 0.9rem; /* Slightly larger font for service features */
        margin-bottom: 0.4rem; /* Slightly tighter spacing */
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem; /* Reduce top top margin */
    }

    .contact-info {
        padding: 2rem;
        text-align: center; /* Center content in contact info */
    }

    .contact-info-content {
        align-items: center; /* Center content within the flex container */
    }

    .contact-method {
        margin-bottom: 1.5rem;
        padding-left: 0; /* Remove left padding */
        border-left: none; /* Remove border */
        display: flex; /* Use flexbox to center content */
        flex-direction: column;
        align-items: center;
        position: relative; /* Keep relative for icon positioning */
    }

    .contact-method i {
        position: static; /* Let icon flow naturally with content */
        margin-bottom: 0.5rem; /* Space between icon and text */
        margin-right: 0; /* Remove horizontal margin */
        top: auto; /* Reset top positioning */
        left: auto; /* Reset left positioning */
    }

    .contact-method h3 {
        text-align: center; /* Ensure heading is centered */
    }

    .contact-method p {
        text-align: center; /* Ensure paragraph is centered */
    }

    .social-media {
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1rem; /* Slightly more space between social icons */
    }

    .social-icon {
        width: 45px; /* Slightly larger touch target */
        height: 45px; /* Slightly larger touch target */
        font-size: 1.1rem; /* Larger icon size */
    }

    /* Language Switcher */
    .language-switcher {
        top: 15px; /* Adjusted position */
        right: 15px; /* Adjusted position */
        font-size: 0.85rem; /* Slightly adjusted font size */
    }

    .current-language {
        padding: 0.5rem 0.9rem; /* Adjusted padding */
    }

    /* Footer Logo */
    .footer-image-logo {
        max-width: 150px; /* Adjust size for tablets */
    }
}

@media screen and (max-width: 480px) {
    /* Header Logo */
    .header-logo img {
        max-width: 150px; /* Even smaller on very small screens */
    }
    

    /* General */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    /* Header */
    header {
        padding: 4rem 0 3rem;
    }

    .subtitle {
        font-size: 1.1rem;
        line-height: 1.3; /* Tighter line-height for very small screens */
    }

    /* About Section */
    .about p {
        font-size: 0.95rem;
        padding: 0 5px;
        line-height: 1.4; /* Adjusted for very small screens */
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Portfolio Section */
    .portfolio-item-content {
        padding: 0.8rem;
    }

    .portfolio-item-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .portfolio-item-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        margin-right: 0.3rem;
        margin-top: 0.5rem;
    }

    /* Services Section */
    .service {
        padding: 2rem 1rem; /* Slightly reduced padding */
    }

    .service i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .service h3 {
        font-size: 1.1rem;
    }

    .service-features li {
        font-size: 0.8rem; /* Further adjustment for very small screens */
    }

    /* Contact Section */
    .form-group {
        margin-bottom: 1.2rem; /* Tighter spacing */
    }

    label {
        font-size: 0.9rem; /* Smaller label font */
        margin-bottom: 0.4rem;
    }

    input, textarea {
        padding: 0.7rem; /* Smaller input fields */
        font-size: 0.85rem;
    }

    textarea {
        height: 120px; /* Shorter textarea */
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-method {
        margin-bottom: 1rem;
    }

    .social-icon {
        width: 40px; /* Still a good touch target */
        height: 40px;
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0; /* Even less footer padding */
    }

    /* Footer Logo */
    .footer-image-logo {
        max-width: 120px; /* Adjust size for mobile phones */
    }

    .tagline {
        font-size: 0.75rem;
    }

    /* Language Switcher */
    .language-switcher {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
    }

    .current-language {
        padding: 0.4rem 0.7rem;
    }
}