* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    /* Color System */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    --secondary-50: #fdf4ff;
    --secondary-100: #fae8ff;
    --secondary-200: #f5d0fe;
    --secondary-300: #f0abfc;
    --secondary-400: #e879f9;
    --secondary-500: #d946ef;
    --secondary-600: #c026d3;
    --secondary-700: #a21caf;
    --secondary-800: #86198f;
    --secondary-900: #701a75;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 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);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(20px);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

[data-theme="dark"] {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
    
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

.container,
.nav-container,
.hero-container {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Fix specific mobile overflow issues */
@media (max-width: 968px) {
    .hero-container {
        padding: 0 var(--space-md);
        margin: 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-section {
        padding: 80px var(--space-md) var(--space-4xl);
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile to prevent overflow */
    }
    
    .mockup-container {
        transform: none; /* Remove 3D transform that might cause overflow */
        max-width: 100%;
    }
    
    .device-mockup {
        width: 100%;
        max-width: 300px; /* Smaller max width for mobile */
    }
}

@media (max-width: 480px) {
    .hero-container,
    .container,
    .nav-container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

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

.nav-brand .brand-link {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.brand-accent {
    color: var(--primary-600);
}

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

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-600);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--primary-600);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-500));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 0.7;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--primary-600);
    color: var(--primary-600);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.float-element {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-200), var(--secondary-200));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.float-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -10s;
}

.float-element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-700);
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    color: var(--gray-600);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

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

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

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform var(--transition-slow);
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(-10deg) scale(1.05);
}

.device-mockup {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    height: var(--space-sm);
    background: var(--gray-700);
    border-radius: var(--radius-sm);
}

.screen {
    width: 100%;
    height: calc(100% - var(--space-lg));
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-md);
}

.website-preview {
    padding: var(--space-md);
    height: 100%;
}

.preview-header {
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.preview-text {
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.preview-text.short {
    width: 60%;
}

.preview-image {
    height: 100px;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-badge {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

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

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2;
}

.feature-card h3 {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.feature-card p {
    margin-bottom: var(--space-lg);
    color: var(--gray-600);
}

.feature-metric {
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.metric-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-600);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Pricing Section */
.pricing-section {
    padding: var(--space-4xl) 0;
    background: white;
}

.pricing-card-container {
    display: flex;
    justify-content: center;
}

.pricing-card {
    max-width: 500px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.premium-card {
    border-color: var(--primary-600);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.plan-name {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-600);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--gray-500);
}

.plan-description {
    color: var(--gray-600);
    margin-bottom: 0;
}

.features-list {
    margin-bottom: var(--space-2xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.portfolio-item {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.portfolio-content {
    padding: var(--space-lg);
}

.portfolio-content h4 {
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.portfolio-content p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.portfolio-cta {
    text-align: center;
}

/* Mobile Menu Dropdown - Add this to your styles.css */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg) 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-link {
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-menu,
    .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        margin: 0 var(--space-md);
    }
    
    .premium-card {
        transform: none;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: var(--space-md);
    }
    
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}