/* ============================================
   LOVABLE DESIGN SYSTEM - EXACT REPLICA
   ============================================ */

:root {
    /* Color Palette - HSL values (space-separated) */
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;
    --card: 222 47% 8%;
    --card-foreground: 210 40% 98%;
    --popover: 222 47% 8%;
    --popover-foreground: 210 40% 98%;
    --primary: 187 85% 53%;
    --primary-foreground: 222 47% 6%;
    --secondary: 222 47% 12%;
    --secondary-foreground: 210 40% 98%;
    --muted: 222 30% 15%;
    --muted-foreground: 215 20% 65%;
    --accent: 270 60% 60%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    --border: 222 30% 18%;
    --input: 222 30% 18%;
    --ring: 187 85% 53%;
    --radius: 0.75rem;

    /* Custom Mountain Theme Colors */
    --glacier: 187 85% 53%;
    --glacier-glow: 187 100% 65%;
    --aurora-purple: 270 60% 60%;
    --aurora-pink: 320 70% 60%;
    --peak-dark: 222 47% 4%;
    --peak-medium: 222 47% 8%;
    --peak-light: 222 30% 20%;
    --snow: 210 40% 98%;
    --ice: 200 30% 80%;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
}

body.portfolio-preview-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--aurora-purple)), hsl(var(--aurora-pink)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.glow-border {
    position: relative;
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2), inset 0 0 20px hsl(var(--primary) / 0.05);
}

.aurora-glow {
    background: radial-gradient(ellipse at 50% 0%, hsl(var(--primary) / 0.15) 0%, transparent 70%);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    background: transparent;
}

.header.scrolled {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--foreground));
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
}

.logo-accent {
    color: hsl(var(--primary));
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    margin: 0.5rem 1.5rem;
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
}

.nav-mobile.active {
    display: flex;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aurora-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mountain-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.mountain-far {
    height: 85vh;
    min-height: 650px;
    opacity: 0.4;
}

.mountain-mid {
    height: 80vh;
    min-height: 600px;
    opacity: 0.6;
}

.mountain-near {
    height: 75vh;
    min-height: 550px;
    opacity: 0.8;
}

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: hsl(var(--primary) / 0.5);
    border-radius: 50%;
    animation: particleFloat 4s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0.2;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.5);
    }
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.3);
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.hero-title .text-gradient {
    display: block;
}

.hero-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-display);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2), inset 0 0 20px hsl(var(--primary) / 0.05);
    width: 100%;
    padding: 1rem;
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-hero-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2), inset 0 0 20px hsl(var(--primary) / 0.05);
}

.btn-hero-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: hsl(var(--primary) / 0.2);
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: left;
}

.contact-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.contact-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 1rem;
    height: 1rem;
    animation: scrollBounce 1.5s infinite;
}

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

/* ============================================
   FLOATING CALL BUTTON
   ============================================ */

.floating-call {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: block;
}

.call-button {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.floating-call:hover .call-button {
    transform: scale(1.1);
}

.call-button svg {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary-foreground));
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: hsl(var(--primary));
    opacity: 0.3;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, hsl(var(--primary)) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.section-title .text-gradient {
    display: block;
}

.section-description {
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Services List */
.services-list-wrapper {
    margin: 3rem 0 4rem;
    text-align: center;
}

.services-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: hsl(var(--card) / 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.3);
    border-radius: calc(var(--radius) / 1.5);
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: hsl(var(--primary) / 0.5);
    background-color: hsl(var(--card) / 0.6);
    color: hsl(var(--foreground));
    transform: translateY(-2px);
}

.service-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.service-item span {
    line-height: 1.5;
}

@media (min-width: 640px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.feature-card:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: hsl(var(--primary));
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: hsl(var(--primary) / 0.2);
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.feature-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.service-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px hsl(0 0% 0% / 0.5);
}

.service-card-highlighted {
    border-color: hsl(var(--primary) / 0.7);
    box-shadow: 0 8px 32px hsl(var(--primary) / 0.2);
}

.service-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background-color: hsl(var(--primary) / 0.2);
    transform: scale(1.1);
}

.service-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.service-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.service-card-desc {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    position: relative;
    padding: 6rem 0;
    background-color: hsl(var(--secondary) / 0.3);
}

.mountain-divider-top,
.mountain-divider-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 6rem;
    pointer-events: none;
    z-index: 0;
}

.mountain-divider-top {
    top: 0;
    transform: translateY(-100%);
}

.mountain-divider-bottom {
    bottom: 0;
    transform: translateY(100%) rotate(180deg);
}

.mountain-divider-top svg,
.mountain-divider-bottom svg {
    width: 100%;
    height: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    cursor: pointer;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    text-decoration: none;
}

.portfolio-card .glass-card {
    overflow: hidden;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-overlay-amber {
    background: linear-gradient(to top, hsl(45 93% 47% / 0.2), transparent);
}

.card-overlay-emerald {
    background: linear-gradient(to top, hsl(158 64% 52% / 0.2), transparent);
}

.card-overlay-violet {
    background: linear-gradient(to top, hsl(262 83% 58% / 0.2), transparent);
}

.card-overlay-sky {
    background: linear-gradient(to top, hsl(199 89% 48% / 0.2), transparent);
}

.card-overlay-rose {
    background: linear-gradient(to top, hsl(346 77% 50% / 0.2), transparent);
}

.card-overlay-cyan {
    background: linear-gradient(to top, hsl(188 94% 43% / 0.2), transparent);
}

.card-overlay-teal {
    background: linear-gradient(to top, hsl(172 66% 50% / 0.2), transparent);
}

.card-overlay-blue {
    background: linear-gradient(to top, hsl(217 91% 60% / 0.2), transparent);
}

.card-overlay-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-overlay-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary-foreground));
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
    margin: 0;
}

/* ============================================
   PACKAGES SECTION
   ============================================ */

.packages-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.packages-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.05);
    filter: blur(96px);
    pointer-events: none;
    z-index: 0;
}

.website-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .website-packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.package-card {
    position: relative;
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.package-popular {
    border-color: hsl(var(--primary) / 0.5);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.package-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: hsl(var(--primary));
}

.package-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.package-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.package-desc {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.package-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-label {
    display: block;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    width: 100%;
    padding: 1rem;
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--primary) / 0.3);
    color: hsl(var(--foreground));
    width: 100%;
    padding: 1rem;
}

.btn-outline:hover {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.5);
}

.optimization-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.optimization-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.optimization-desc {
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto;
}

.optimization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .optimization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.optimization-card {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.optimization-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.optimization-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: hsl(var(--primary));
}

.optimization-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.optimization-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.optimization-desc-text {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.optimization-price {
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.optimization-price .price {
    font-size: 1.875rem;
}

.optimization-features {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.optimization-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.optimization-features .check-icon {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    position: relative;
    padding: 6rem 0;
}

.contact-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, hsl(var(--secondary) / 0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 75rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form-wrapper {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.contact-form-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    background-color: hsl(var(--secondary) / 0.5);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) / 1.5);
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.form-textarea {
    resize: none;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: color 0.3s ease;
}

.contact-info-item:hover {
    color: hsl(var(--primary));
}

.contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    transition: background-color 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background-color: hsl(var(--primary) / 0.2);
}

.contact-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-info-label {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-info-item:hover .contact-info-value {
    color: hsl(var(--primary));
}

.business-hours {
    background-color: hsl(var(--card) / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px hsl(0 0% 0% / 0.4);
}

.business-hours-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.business-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 0;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--foreground));
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: scale(1.1);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
}

.footer-logo-accent {
    color: hsl(var(--primary));
}

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

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-copyright {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ============================================
   CONTACT MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: hsl(0 0% 0% / 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: hsl(var(--card) / 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px hsl(0 0% 0% / 0.5);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) / 2);
    transition: all 0.3s ease;
    width: 2rem;
    height: 2rem;
}

.modal-close:hover {
    background-color: hsl(var(--secondary) / 0.5);
    color: hsl(var(--foreground));
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.modal-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-modal-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-modal-form .required {
    color: hsl(var(--primary));
}

.contact-modal-form .form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: hsl(var(--secondary) / 0.5);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) / 1.5);
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.contact-modal-form .form-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.contact-modal-form .form-input[readonly] {
    background-color: hsl(var(--muted) / 0.3);
    cursor: not-allowed;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   PORTFOLIO PREVIEW MODAL
   ============================================ */

.portfolio-preview-overlay {
    position: fixed;
    inset: 0;
    background-color: hsl(0 0% 0% / 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-preview-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#portfolioPreviewIframe {
    width: 100%;
    height: calc(100vh - 120px);
    height: calc(100dvh - 120px); /* Dynamic viewport height for mobile */
    border: none;
    background-color: hsl(var(--background));
    flex: 1;
    min-height: 0;
}

.portfolio-preview-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--card) / 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid hsl(var(--border) / 0.5);
    padding: 1.5rem 2rem;
    z-index: 10001;
    box-shadow: 0 -8px 32px hsl(0 0% 0% / 0.3);
}

.preview-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.preview-project-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.preview-category {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.preview-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
    white-space: nowrap;
}

.preview-back-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .portfolio-preview-container {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    #portfolioPreviewIframe {
        height: calc(100vh - 100px);
        height: calc(100dvh - 100px); /* Dynamic viewport height for mobile */
    }
    
    .portfolio-preview-bar {
        padding: 0.75rem 1rem;
        max-height: 100px;
    }
    
    .preview-bar-content {
        gap: 0.5rem;
    }
    
    .preview-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .preview-category {
        font-size: 0.6875rem;
    }
    
    .preview-project-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .preview-title {
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .preview-back-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
}
