/* ===========================
   Variables & Reset
   =========================== */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --foreground: #1f2937;
    --background: #ffffff;
    --muted: #f9fafb;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --accent: #f3f4f6;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-900: #581c87;
    --purple-800: #6b21a8;
    --radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Header Styles
   =========================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background);
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.desktop-cta {
    display: none;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* ===========================
   Button Styles
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--purple-50) 50%, var(--background) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: 5rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 50%;
    filter: blur(60px);
}

.shape-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18rem;
    height: 18rem;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.shape-3 {
    position: absolute;
    right: 0;
    top: 8rem;
    width: 33.333%;
    height: 16rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 9999px 0 0 9999px;
    display: none;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
}

.image-frame-bg {
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 3rem;
    transform: rotate(3deg);
}

.image-frame {
    position: relative;
    background: white;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

.image-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ===========================
   Trust Section
   =========================== */
.trust-section {
    padding: 5rem 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.feature-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 0 0 100%;
    transition: var(--transition);
}

.feature-card:hover .feature-corner {
    transform: scale(1.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ===========================
   Services Section
   =========================== */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--purple-50) 0%, var(--background) 50%, var(--purple-50) 100%);
}

.services-card {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.125rem;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item p {
    font-weight: 500;
    line-height: 1.7;
}

.service-notice {
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    text-align: center;
}

.service-notice p {
    color: var(--muted-foreground);
}

.notice-highlight {
    font-weight: 600;
    color: var(--primary);
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 5rem 0;
    background: var(--background);
}

.contact-wrapper {
    max-width: 64rem;
    margin: 0 auto;
}

.contact-form-card {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--purple-50) 0%, var(--background) 100%);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-message.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-800) 100%);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.footer-hours {
    font-size: 0.875rem;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: var(--primary-light);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* ===========================
   Responsive Design
   =========================== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .desktop-nav {
        display: flex;
    }

    .desktop-cta {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-card {
        padding: 3rem;
    }

    .contact-form-card {
        padding: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 10rem 0 6rem;
    }

    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .shape-3 {
        display: block;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}