/* ==========================================================================
   Budzly Website - Modern CSS Styles
   ========================================================================== */

/* Modern Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Initial hidden state for animation */
body {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero {
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

.features {
    opacity: 1;
    transition: all 1s ease-out;
}

.about {
    animation: slideInRight 1s ease-out 0.8s both;
}

.download {
    animation: fadeInUp 1s ease-out 1.1s both;
}

.screenshots {
    animation: slideInLeft 1s ease-out 1.1s both;
}

.contact {
    animation: slideInRight 1s ease-out 1.1s both;
}

/* Floating Animation for Hero Icons */
.floating-icon {
    animation: float 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    animation-delay: 1.5s;
}

.floating-icon:nth-child(3) {
    animation-delay: 3s;
}

/* Enhanced Text Reveal Animation */
.text-reveal {
    display: inline-block;
    overflow: hidden;
    perspective: 1000px;
    /* Add perspective for 3D effects */
}

.text-reveal .letter,
.text-reveal-subtitle .letter,
.text-reveal-subtitle .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    filter: blur(2px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity, filter;
    /* Performance optimization */
    backface-visibility: hidden;
    /* Prevent flickering */
}

.text-reveal .letter {
    /* Enhanced styling for title letters */
    font-weight: var(--font-weight-extra-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-reveal-subtitle {
    font-size: 0.9em;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Animation states for smooth transitions */
.text-reveal.animate .letter,
.text-reveal-subtitle.animate .letter,
.text-reveal-subtitle.animate .word {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Glow effect during animation */
.text-reveal .letter.glow {
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Subtle hover effect for revealed text */
.text-reveal:hover .letter,
.text-reveal-subtitle:hover .letter,
.text-reveal-subtitle:hover .word {
    transition: all 0.3s ease;
}

.text-reveal:hover .letter:nth-child(odd) {
    transform: translateY(-2px) rotate(-1deg);
}

.text-reveal:hover .letter:nth-child(even) {
    transform: translateY(-1px) rotate(1deg);
}

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extra-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.nav-logo i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-extra-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-extra-bold);
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 32px;
    background: var(--white);
}

.phone-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--gradient-primary);
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: float 6s ease-in-out infinite;
}

.plant-icon {
    top: 10%;
    right: -10%;
    color: var(--primary-color);
    animation-delay: 0s;
}

.water-icon {
    bottom: 30%;
    left: -15%;
    color: var(--secondary-color);
    animation-delay: 1s;
}

.light-icon {
    top: 40%;
    right: -20%;
    color: var(--accent-color);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.6;
    filter: blur(60px);
    animation: floatBg 15s ease-in-out infinite;
}

.bg-element-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.bg-element-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-item {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    position: relative;
    padding-left: 20px;
}

.detail-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   Screenshots Section
   ========================================================================== */

.screenshots {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.screenshots-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
}

.screenshot-phone {
    width: 250px;
    height: 500px;
    margin-bottom: var(--spacing-lg);
}

.screenshot-phone .phone-frame {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 30px;
    padding: 6px;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.screenshot-item:hover .screenshot-phone .phone-frame {
    transform: scale(1.05);
}

.screenshot-info h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.screenshot-info p {
    color: var(--text-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.about-feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.visual-element {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.visual-element:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.visual-icon {
    margin-bottom: var(--spacing-md);
}

.visual-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.visual-element h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.visual-element p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   Download Section
   ========================================================================== */

.download {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-3px);
}

.app-store-badge {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: all var(--transition-normal);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin-top: 1rem;
}

.app-store-badge:hover {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}


.download-info {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.info-item i {
    color: var(--primary-color);
}

.phones-mockup {
    position: relative;
    height: 500px;
}

.phones-mockup .phone-mockup {
    position: absolute;
    width: 200px;
    height: 400px;
}

.phones-mockup .primary {
    top: 0;
    right: 50px;
    z-index: 2;
}

.phones-mockup .secondary {
    bottom: 0;
    left: 50px;
    z-index: 1;
    opacity: 0.8;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
}

.contact-simple {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

/* Old grid layout removed - keeping for future use if needed */
/*
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
*/

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.contact-details p {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.contact-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: all var(--transition-normal);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.contact-link:hover {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-link:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-link:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-link:hover .contact-item {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(34, 197, 94, 0.15);
}

.contact-link:hover .contact-icon {
    color: var(--primary-color);
    transform: scale(1.05);
}

.contact-details p a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-details p a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.contact-details span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact form removed - keeping CSS for future use if needed */
/*
.contact-form {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}
*/

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.footer-description {
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all var(--transition-fast);
}

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

.footer-section h4 {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-copyright p {
    color: var(--gray-400);
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: var(--spacing-sm);
}

.store-badge {
    height: 40px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.store-badge:hover {
    opacity: 1;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Permanent Dark Theme Styles
   ========================================================================== */

/* Dark Theme Variables - Now Permanent */
body {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --white: #111827;
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-800: #f3f4f6;
    --gray-900: #ffffff;

    background-color: #111827 !important;
    color: #f9fafb !important;
}


/* Dark Theme Specific Adjustments - Now Permanent */
.navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: #374151;
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
}

.hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.features {
    background: #1f2937;
}

.screenshots {
    background: #111827;
}

.about {
    background: #1f2937;
}

.download {
    background: #111827;
}

.contact {
    background: #1f2937;
}

.feature-card {
    background: #374151;
    border-color: #4b5563;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.1), 0 8px 10px -6px rgba(34, 197, 94, 0.1);
}

body.dark-mode .visual-element {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .visual-element:hover {
    background: #4b5563;
    border-color: var(--primary-color);
}

body.dark-mode .visual-element h4 {
    color: #f9fafb;
}

body.dark-mode .visual-element p {
    color: #d1d5db;
}

/* Contact form removed - keeping CSS for future use if needed */
/*
.contact-form {
    background: #374151;
}
*/

.form-group input,
.form-group select,
.form-group textarea {
    background: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-secondary {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: var(--primary-color);
}

.footer {
    background: #0f172a !important;
}

.footer-logo {
    color: #ffffff !important;
}

.footer-section h4 {
    color: #ffffff !important;
}

.footer-description {
    color: #94a3b8 !important;
}

.footer-links a {
    color: #94a3b8 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.footer-copyright p {
    color: #64748b !important;
}

.social-link {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

.social-link:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Smooth Theme Transition */
body {
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.navbar,
.feature-card,
.visual-element,
.contact-form,
.form-group input,
.form-group select,
.form-group textarea,
.btn-secondary {
    transition: all var(--transition-normal);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {

    .hero-content,
    .about-content,
    .download-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl);
    }

    .language-toggle {
        margin-left: 0;
        margin-top: var(--spacing-xl);
        width: 75px;
        height: 32px;
        font-size: 0.8rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-slider {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Tablet Text Reveal Adjustments */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        transform: translateY(12px) scale(0.75);
    }

    .text-reveal-subtitle {
        font-size: 0.85em;
        line-height: 1.35;
        max-width: 90%;
    }

    /* Enhanced mobile performance */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        will-change: auto;
        /* Reduce memory usage on mobile */
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Text Reveal Adjustments */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        transform: translateY(10px) scale(0.8);
    }

    .text-reveal-subtitle {
        font-size: 0.8em;
        line-height: 1.4;
        max-width: 100%;
    }

    /* Mobile performance optimization */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        transition-duration: 0.4s;
        /* Faster transitions on mobile */
        will-change: auto;
    }
}

@media (max-width: 375px) {

    /* Extra Small Devices (iPhone SE, etc.) */
    :root {
        --container-padding: 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9em;
        line-height: 1.5;
    }

    /* Text Reveal für sehr kleine Bildschirme */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        transform: translateY(8px) scale(0.85);
        font-size: 0.9em;
    }

    .text-reveal-subtitle {
        font-size: 0.75em;
        line-height: 1.5;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Ultra-mobile performance */
    .text-reveal .letter,
    .text-reveal-subtitle .letter,
    .text-reveal-subtitle .word {
        transition-duration: 0.3s;
        /* Even faster for very small screens */
        filter: blur(1px);
        /* Reduced blur for better performance */
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.85em;
        line-height: 1.5;
    }

    .contact-item {
        padding: var(--spacing-sm);
    }

    .contact-text {
        font-size: 0.85em;
    }
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    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);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.p-xl {
    padding: var(--spacing-xl);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Smooth Scrolling for Anchors */
html {
    scroll-padding-top: 80px;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Language Toggle Styles */
/* Language Toggle - Modern Design */
.language-toggle {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    border-radius: 25px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    width: 85px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-toggle:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.language-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.language-toggle .lang-de {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    color: #f9fafb;
}

.language-toggle .lang-en {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    color: #f9fafb;
}

body.english .language-toggle .lang-de {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

body.english .language-toggle .lang-en {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Navigation Toggle */
.nav-toggle .bar {
    background: #f9fafb;
}

.nav-toggle:hover .bar {
    background: #22c55e;
}

/* Print Styles */
@media print {

    .navbar,
    .nav-toggle,
    .language-toggle,
    .back-to-top,
    .floating-elements,
    .hero-bg-elements {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}