@import 'variables.css';

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    text-align: center;
    color: var(--text-color-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__title-highlight {
    color: var(--primary-color);
}

.hero__description {
    color: var(--text-color-light);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(242, 187, 19, 0.3) 0%, transparent 50%);
    animation: pulse 10s infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.button--primary:hover {
    background-color: rgba(242, 187, 19, 0.9);
}

.button--ghost {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.button--ghost:hover {
    background-color: rgba(242, 242, 242, 0.1);
}

.button__icon {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.button:hover .button__icon {
    transform: translateX(4px);
}

.button--full {
    width: 100%;
    justify-content: center;
}

/* Services Section */
.services {
    background-color: var(--dark-color);
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.service__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service__card:hover .service__card-inner {
    transform: rotateY(180deg);
}

.service__card-front,
.service__card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--dark-color);
    border: 1px solid rgba(242, 242, 242, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service__card-front {
    justify-content: flex-start;
    padding-top: 3rem;
}

.service__card-back {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
    justify-content: center;
}

.service__icon {
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(242, 187, 19, 0.1);
    width: 4rem;
    height: 4rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.service__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    height: 1.5em;
    display: flex;
    align-items: center;
}

.service__description {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.service__card-back .service__title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service__card-back .service__description {
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-height: 6.4em;
    -webkit-line-clamp: 4;
}

.service__card-back .service__button {
    padding: 0.75rem 1.5rem;
    background-color: var(--dark-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service__card-back .service__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    background-color: var(--primary-color-light);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__description {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.about__tag {
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.about__tag:hover {
    background-color: var(--dark-color);
    color: var(--primary-color);
}

/* Contact Section */
.section > .container {
    backdrop-filter: blur(20px);
}

.contact__form {
    max-width: 600px;
    margin: 0 auto;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--dark-color);
    border: 1px solid rgba(242, 242, 242, 0.1);
    border-radius: 0.5rem;
    color: var(--text-color);
    transition: border-color 0.3s;
}

/* Select styling */
select.form__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F2BB13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form__input option {
    background-color: var(--dark-color);
    color: var(--text-color);
    padding: 0.5rem;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.button--primary.button--full {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.button--primary.button--full:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.button--primary.button--full .button__icon {
    font-size: 1.4rem;
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a311;
}

/* Responsive Design */
@media screen and (max-width: 968px) {

    .hero__title {
        font-size: 2.5rem;
    }

    .stats__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 2rem;
    }

    .stat__card:nth-child(1) {
        transform: translateY(-20px) rotate(-8deg);
        margin-left: 0;
    }

    .stat__card:nth-child(2) {
        transform: translateY(20px) rotate(8deg);
    }

    .stat__card:nth-child(3) {
        transform: translateY(0) rotate(-5deg);
        grid-column: 1 / -1;
        width: 90%;
        margin: 0 auto;
    }

    .stat__card:hover {
        transform: scale(1.03) rotate(0) translateY(-5px);
    }
}

@media screen and (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .stats__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1rem;
    }

    .stat__card {
        width: 100%;
        margin: 0 auto;
    }

    .stat__card:nth-child(1) {
        transform: rotate(-5deg);
    }

    .stat__card:nth-child(2) {
        transform: rotate(5deg);
    }

    .stat__card:nth-child(3) {
        transform: rotate(-3deg);
        width: 100%;
    }

    .stat__card:hover {
        transform: scale(1.02) rotate(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeInLeft {
    opacity: 0;
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeInRight {
    opacity: 0;
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scaleIn {
    opacity: 0;
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Usual */
.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}