/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4a6cfa;
    --primary-light: #6e8aff;
    --primary-dark: #3453cc;
    --secondary: #34d399;
    --secondary-light: #5eead4;
    --accent: #f43f5e;
    --dark: #111827;
    --light: #f9fafb;
    --gray: #9ca3af;
    --gray-light: #f3f4f6;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(74, 108, 250, 0.3);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(74, 108, 250, 0.4);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    box-shadow: 0 4px 6px rgba(244, 63, 94, 0.3);
}

.btn-accent:hover {
    background-color: #e11d48;
    box-shadow: 0 6px 10px rgba(244, 63, 94, 0.4);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.language-toggle {
    position: relative;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
}

.lang-active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

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

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 140%;
    background: var(--gradient);
    transform: rotate(-12deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: morphGradient 15s infinite alternate ease-in-out;
}

@keyframes morphGradient {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--dark);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Animated 3D Elements */
.floating-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 30%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(74, 108, 250, 0.2));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(74, 108, 250, 0.2));
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 40%;
    animation-delay: -10s;
    background: linear-gradient(135deg, rgba(74, 108, 250, 0.2), rgba(52, 211, 153, 0.2));
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
}

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

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

.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-category {
    flex-basis: calc(50% - 1rem);
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark);
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: calc(33.33% - 1rem);
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(0deg);
    transform-style: preserve-3d;
}

.pricing-card:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    z-index: 1;
}

.card-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-duration {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-light);
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.card-body {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* Make it take available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.price-container {
    margin-bottom: 1.5rem;
    min-height: 4.5rem; /* Adjust as needed for consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.original-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.currency {
    font-size: 1rem;
    vertical-align: top;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.feature {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.card-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--gray-light);
    margin-top: auto; /* Push to bottom */
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
    background: var(--light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

#about .about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#about .about-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.9;
}

.location {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.location-icon {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2); /* soft purple/blue gradient */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    box-shadow: var(--shadow);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.2;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.floating-shapes {
    z-index: 1;
}

.shape {
    opacity: 0.15;
    backdrop-filter: blur(2px);
}

/* Footer Fixes */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    padding: 1rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--gray);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Language Switch */
.lang-content {
    display: none;
}

#en-content {
    display: block;
}

#lang-toggle:checked ~ .lang-toggle-label {
    background-color: var(--primary);
    color: white;
}

#lang-toggle:checked ~ * #en-content {
    display: none;
}

#lang-toggle:checked ~ * #id-content {
    display: block;
}

.lang-toggle-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--gray-light);
    color: var(--dark);
    transition: all 0.3s ease;
}

#lang-toggle {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-category {
        flex-basis: 100%;
    }
    
    .pricing-card {
        flex-basis: calc(50% - 1rem);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card {
        flex-basis: 100%;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .language-toggle {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
}