/* InnovativeX Website Styles */
/* Modern CSS with Dark Blue & Black Gradient Theme */

/* CSS Variables for Easy Customization */
:root {
    /* Primary Colors */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --accent-hover: #0891b2;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1e1e 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 58, 138, 0.1);
    --bg-overlay: rgba(15, 23, 42, 0.9);
    
    /* Border & Shadow */
    --border-color: rgba(59, 130, 246, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --element-spacing: 2rem;
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

:root {
    --logo-height: 60px; /* Increased from 40px to 60px */
    --logo-max-width: 300px;
}

.logo-img {
    height: var(--logo-height); /* Using CSS variable for easy adjustment */
    width: auto; /* Maintains aspect ratio */
    max-width: var(--logo-max-width); /* Using CSS variable for easy adjustment */
}

/* Optional: Add some styling for better appearance */
.brand-logo {
    display: flex;
    align-items: center;
}

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

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-primary);
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100vw;
}

* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}



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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    transition: all var(--transition-normal);
}

.brand-logo i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: var(--font-size-2xl);
}

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

.nav-menu {
    display: flex;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    animation: slideInLeft 1s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 1s ease-out, float 6s ease-in-out infinite;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.card-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 0.5rem;
    animation: typewriter 3s steps(40) infinite;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #8be9fd; }
.code-function { color: #50fa7b; }

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    animation: slideInUp 1s ease-out;
}

.hero-title .line-1 {
    display: block;
}

.hero-title .line-2 {
    display: block;
}

.ai-main-title {
    display: block;
    font-size: var(--font-size-6xl);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
    animation: aiGlow 3s ease-in-out infinite, slideInDown 1s ease-out;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
}

.ai-main-title::before {
    content: '🤖 ';
    display: inline-block;
    font-size: 0.8em;
    margin-right: 0.5rem;
    animation: robotFloat 2s ease-in-out infinite;
    vertical-align: middle;
}

.sub-title {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes aiGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    }
    50% {
        filter: brightness(1.2) saturate(1.3);
        text-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

@keyframes robotFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    50% {
        transform: translateY(3px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-5deg);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.4s both;
    flex-wrap: wrap;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::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 0.5s ease;
}

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

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-modern:hover .btn-icon {
    transform: translateX(5px);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    animation: pulse 2s infinite;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-secondary);
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--text-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

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

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-package {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    width: 100%;
    justify-content: center;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    background: var(--gradient-accent);
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Sections */
section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

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

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

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

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.service-features i {
    color: var(--accent-color);
    font-size: var(--font-size-xs);
}

/* Packages Section */
.packages {
    background: var(--gradient-dark);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.package-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card.popular {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

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

.package-card.popular:hover {
    transform: translateY(-10px) scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-header {
    text-align: center;
    margin-bottom: 2rem;
}

.package-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.package-price {
    margin-bottom: 1rem;
}

.package-price .currency {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    vertical-align: top;
}

.package-price .amount {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--accent-color);
    margin-left: 0.25rem;
}

.package-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.package-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-features ul {
    list-style: none;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-secondary);
}

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

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

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

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    padding: 1rem;
}

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

.portfolio-content {
    text-align: center;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 500;
    white-space: nowrap;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.portfolio-info .portfolio-client {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 1.8vw, 0.875rem);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.portfolio-info .portfolio-description {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.9vw, 0.9rem);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.portfolio-info .portfolio-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.portfolio-actions .btn {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Contact Section */
.contact {
    background: var(--gradient-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

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

.contact-details h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.whatsapp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    float: right;
}

.whatsapp-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
    text-decoration: none;
}

.whatsapp-contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn i {
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
}

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

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.6;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-bottom i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    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);
}

/* WhatsApp Button */
/* Custom Order Section */
.custom-order-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.custom-order-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.custom-order-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.custom-order-content {
    flex: 1;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.custom-order-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.custom-order-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-order-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.custom-order-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.feature-item span {
    font-size: 1rem;
    color: #555;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 100%);
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-cta i {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

.custom-order-image {
    width: 40%;
    position: relative;
    background: linear-gradient(135deg, #4a90e2 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.image-icon {
    position: relative;
    z-index: 2;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@media (max-width: 992px) {
    .custom-order-image {
        width: 30%;
    }
    
    .custom-order-content {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .custom-order-container {
        flex-direction: column-reverse;
    }
    
    .custom-order-content {
        padding: 2rem;
        text-align: center;
    }
    
    .custom-order-image {
        width: 100%;
        height: 150px;
    }
    
    .custom-order-features {
        justify-content: center;
    }
    
    .feature-item {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.whatsapp-btn i {
    color: white;
}

/* Notification */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 1001;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    min-width: 350px;
    max-width: 500px;
}

.notification::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.notification.show::before {
    opacity: 1;
}

.notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: var(--font-size-lg);
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
    white-space: pre-line;
    line-height: 1.4;
}

.notification:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.notification.show:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.notification::after {
    content: '×';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.notification:hover::after {
    opacity: 1;
}

/* Contact Success Message */
.contact-success-message {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.6s ease-out;
}

.success-content {
    color: white;
}

.success-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.success-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.success-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --section-padding: 80px 0;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .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 {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-card {
        max-width: 300px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .ai-main-title {
        font-size: var(--font-size-4xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-badge {
        margin: 0 1rem 1.5rem 1rem;
        padding: 0.75rem 2rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }

    .hero-badge {
        justify-content: center;
    }
    
    .services-grid,
    .packages-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio responsive adjustments for tablet */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .portfolio-title {
        font-size: clamp(0.95rem, 2.2vw, 1.1rem);
        margin-bottom: 0.6rem;
    }
    
    .portfolio-description {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .portfolio-tech {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag {
        font-size: clamp(0.6rem, 1.3vw, 0.7rem);
        padding: 0.15rem 0.5rem;
    }
    
    .portfolio-actions .btn {
        font-size: clamp(0.7rem, 1.6vw, 0.8rem);
        padding: 0.4rem 0.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .whatsapp-contact-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .notification {
        min-width: 280px;
        max-width: 90vw;
        margin: 0 1rem;
    }
    
    .package-card.popular {
        transform: none;
    }
    
    .package-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* Medium Mobile Devices */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Portfolio mobile adjustments */
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-title {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 0.5rem;
    }
    
    .portfolio-description {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        margin-bottom: 0.7rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .portfolio-tech {
        gap: 0.25rem;
        margin-bottom: 0.7rem;
    }
    
    .tech-tag {
        font-size: clamp(0.55rem, 2vw, 0.65rem);
        padding: 0.1rem 0.4rem;
    }
    
    .portfolio-actions .btn {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
        padding: 0.35rem 0.7rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --section-padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        color: white;
    }
    
    .service-card,
    .package-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Portfolio extra small screen adjustments */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-image {
        height: 160px;
    }
    
    .portfolio-overlay {
        padding: 0.5rem;
    }
    
    .portfolio-content {
        padding: 0.8rem;
    }
    
    .portfolio-title {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .portfolio-description {
        font-size: clamp(0.65rem, 3.5vw, 0.75rem);
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }
    
    .portfolio-tech {
        gap: 0.2rem;
        margin-bottom: 0.6rem;
    }
    
    .tech-tag {
        font-size: clamp(0.5rem, 2.5vw, 0.6rem);
        padding: 0.08rem 0.3rem;
    }
    
    .portfolio-actions {
        margin-top: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .portfolio-actions .btn {
        font-size: clamp(0.6rem, 3vw, 0.7rem);
        padding: 0.3rem 0.6rem;
    }
    
    .portfolio-info {
        padding: 1rem;
    }
    
    .portfolio-info h4 {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.2;
    }
    
    .portfolio-info .portfolio-client {
        color: var(--text-muted);
        font-size: clamp(0.7rem, 3vw, 0.8rem);
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-info .portfolio-description {
        color: var(--text-secondary);
        font-size: clamp(0.7rem, 3vw, 0.8rem);
        line-height: 1.3;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
    }
    
    .portfolio-info .portfolio-actions {
        display: flex;
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
    
    .portfolio-info .portfolio-actions .btn {
        font-size: clamp(0.6rem, 3vw, 0.7rem);
        padding: 0.3rem 0.6rem;
        white-space: nowrap;
    }
    
    .whatsapp-contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
        gap: 0.4rem;
    }
    
    .whatsapp-contact-btn i {
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-btn {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .notification {
        top: 50%;
        left: 50%;
        right: auto;
        min-width: 250px;
        max-width: 85vw;
        padding: 1.25rem 1.5rem;
        transform: translate(-50%, -50%) scale(0.8);
        transition: transform var(--transition-normal), opacity var(--transition-normal);
    }
    
    .notification.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    
    .notification:not(.show) {
        opacity: 0;
        pointer-events: none;
    }
    
    .notification:hover {
        transform: translate(-50%, -50%) scale(1.02);
        box-shadow: var(--shadow-2xl);
    }
    
    .notification.show:hover {
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .notification,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --border-color: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    .hero-particles {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Selection Styles */
::selection {
    background: var(--accent-color);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--text-primary);
}