/* Enhanced Portfolio Styles with Performance Optimizations */

/* CSS Custom Properties for Better Maintainability */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    
    /* Background Colors */
    --bg-primary: #fff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
    
    /* Mobile-specific CSS Custom Properties */
    --mobile-nav-height: 70px;
    --mobile-touch-target: 48px;
    --mobile-padding: 1rem;
    
    /* Responsive breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1200px;
}

/* Enhanced Reset with Performance Focus */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    /* Improve text rendering */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Reduce motion for accessibility */
    scroll-behavior: smooth;
    /* Enhanced touch interaction */
    touch-action: manipulation;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Performance optimizations for animations */
.animate-gpu {
    transform: translateZ(0);
    will-change: transform;
}

/* Focus management for accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-brand h2 {
    color: #667eea;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
    background: rgba(102, 126, 234, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.2s ease;
    border-radius: 2px;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hamburger {
    display: none;
}

/* Mobile Home Button */
.mobile-home-btn {
    display: none;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    font-size: 0.9rem;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.home-btn i {
    font-size: 1rem;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23667eea" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    min-height: 48px;
    min-width: 120px;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a72e8, #6a42a0);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.profile-img {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 8rem;
    color: white;
}

.profile-img::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.image-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-subtitle {
    display: inline-block;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #667eea;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-profile-img {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 6rem;
    color: white;
}

.about-profile-img::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.skill-item span {
    font-weight: 500;
    color: #333;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #666;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    background: #f8f9fa;
}

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

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
}

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

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

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

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border-left: 4px solid #667eea;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.client-info span {
    font-size: 0.9rem;
    color: #666;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: #ffc107;
}

.testimonial-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.positive {
    background: #d4edda;
    color: #155724;
}

.badge.constructive {
    background: #fff3cd;
    color: #856404;
}

.badge.negative {
    background: #f8d7da;
    color: #721c24;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #666;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #fff;
    min-height: 48px;
    position: relative;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #d1d9e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: #667eea;
}

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

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #333;
    background: #2a2a2a;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
}

.newsletter-form button {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #764ba2;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

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

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

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 0;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Hide desktop navigation completely on mobile */
    .nav ul,
    .nav-menu {
        display: none !important;
    }
    
    /* Enhanced mobile navigation visibility */
    .mobile-home-btn {
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .time-display {
        order: -1;
        font-size: 0.9rem;
    }
    
    /* Desktop elements adjustments */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-preview {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile performance optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    input, textarea, button, select {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile accessibility improvements */
    .mobile-btn:focus,
    .mobile-nav-item:focus,
    .mobile-portfolio-link:focus {
        outline: 3px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        .mobile-hero::before {
            animation: none;
        }
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Mobile-First Responsive Design System */
/* Hide desktop elements on mobile by default */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile viewport fix */
:root {
    --vh: 1vh;
    --mobile-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --mobile-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    --mobile-border-radius: 20px;
    --mobile-spacing: 1.5rem;
}

.mobile-device {
    min-height: calc(var(--vh, 1vh) * 100);
    scroll-behavior: smooth;
}

/* Mobile Sticky Navigation - Bottom Position Enhanced */
.mobile-sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: clamp(4px, 1vw, px) clamp(8px, 2vw, px) clamp(8px, 2vw, 7px);
    margin: 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12), 0 -2px 10px rgba(102, 126, 234, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: calc(clamp(2px, 1vw, 2px) + env(safe-area-inset-bottom));
}

.mobile-sticky-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15), 0 -4px 15px rgba(102, 126, 234, 0.15);
}

.mobile-sticky-nav .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.65rem;
    font-weight: 600;
    padding: clamp(5px, 1.2vw, 8px) clamp(6px, 1.5vw, 10px);
    margin: clamp(0.5px, 0.125vw, 1px) clamp(1px, 0.25vw, 2px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: clamp(46px, 11.5vw, 52px);
    max-width: clamp(62px, 15.5vw, 70px);
    flex: 1;
    position: relative;
    touch-action: manipulation;
    user-select: none;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.mobile-sticky-nav .mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-primary);
    border-radius: 16px;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-sticky-nav .mobile-nav-item::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--mobile-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-sticky-nav .mobile-nav-item:hover::before,
.mobile-sticky-nav .mobile-nav-item.active::before {
    transform: scale(1);
    opacity: 1;
}

.mobile-sticky-nav .mobile-nav-item:hover::after,
.mobile-sticky-nav .mobile-nav-item.active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.mobile-sticky-nav .mobile-nav-item:hover,
.mobile-sticky-nav .mobile-nav-item.active {
    color: white;
    transform: translateY(-4px) scale(1.05);
}

.mobile-sticky-nav .mobile-nav-item i {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    margin-bottom: clamp(0.1rem, 0.5vw, 0.2rem);
    margin-top: clamp(0.05rem, 0.2vw, 0.1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mobile-sticky-nav .mobile-nav-item span {
    font-weight: 600;
    margin-top: clamp(0.05rem, 0.2vw, 0.1rem);
    margin-bottom: clamp(0.02rem, 0.1vw, 0.05rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(0.52rem, 1.2vw, 0.62rem);
    line-height: 1;
}

.mobile-sticky-nav .mobile-nav-item:hover i,
.mobile-sticky-nav .mobile-nav-item.active i {
    transform: scale(1.2);
}

.mobile-sticky-nav .mobile-nav-item:hover span,
.mobile-sticky-nav .mobile-nav-item.active span {
    font-weight: 700;
}

/* Mobile Card-Based Layout - Enhanced Responsive Design */
.mobile-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--mobile-border-radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 clamp(0.75rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--mobile-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s ease;
}

.mobile-card:hover::before {
    left: 100%;
}

.mobile-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.mobile-hero {
    padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 6vw, 3rem) clamp(4rem, 12vw, 7rem);
    margin-top: clamp(1rem, 4vw, 2.5rem);
    text-align: center;
    background: var(--mobile-primary);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: clamp(55vh, 75vw, 70vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: float 25s ease-in-out infinite;
    z-index: 0;
}

.mobile-hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
    z-index: 1;
}

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

.mobile-hero .container {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem);
    margin-top: clamp(0.5rem, 2vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.mobile-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    margin-top: clamp(0.5rem, 2vw, 1rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-hero p {
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
    margin-top: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
    max-width: clamp(400px, 80vw, 550px);
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

/* Mobile Hero Button Container */
.mobile-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin-top: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

/* Mobile Touch-Friendly Buttons - Professional Enhancement */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    background: var(--mobile-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px; /* Enhanced touch target */
    min-width: 140px;
    margin: 0.75rem 0.75rem 0.75rem 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.mobile-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-btn:hover::after {
    opacity: 1;
}

.mobile-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 45px rgba(102, 126, 234, 0.5);
}

.mobile-btn:active {
    transform: translateY(-3px) scale(0.99);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.mobile-btn:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35), 0 0 0 4px rgba(102, 126, 234, 0.25);
}

.mobile-btn i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Mobile Services Grid - Enhanced Professional Design */
.mobile-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
    margin: clamp(1rem, 4vw, 2rem) 0;
}

.mobile-service-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    margin: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
    text-align: center;
    box-shadow: var(--mobile-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    cursor: pointer;
    backdrop-filter: blur(15px);
}

.mobile-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.mobile-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.05) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

.mobile-service-card:hover::before {
    left: 100%;
}

.mobile-service-card:hover::after {
    transform: scale(1.2);
    opacity: 1;
}

.mobile-service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 8px 30px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.mobile-service-card:active {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.mobile-service-icon {
    width: 80px;
    height: 80px;
    background: var(--mobile-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    z-index: 1;
}

.mobile-service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--mobile-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-service-card:hover .mobile-service-icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.mobile-service-card:hover .mobile-service-icon::before {
    opacity: 0.3;
    transform: scale(1.1);
}

.mobile-service-card h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.mobile-service-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Mobile Portfolio Grid - Professional Enhancement */
.mobile-portfolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
    margin: clamp(1rem, 4vw, 2rem) 0;
}

.mobile-portfolio-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--mobile-border-radius);
    margin: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
    overflow: hidden;
    box-shadow: var(--mobile-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.mobile-portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-portfolio-item:hover::before {
    opacity: 1;
}

.mobile-portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.mobile-portfolio-image {
    height: 220px;
    background: var(--mobile-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.mobile-portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    transition: all 0.3s ease;
}

.mobile-portfolio-image i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mobile-portfolio-item:hover .mobile-portfolio-image i {
    transform: scale(1.1) rotate(-5deg);
}

.mobile-portfolio-content {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
}

.mobile-portfolio-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2d3748;
    line-height: 1.3;
}

.mobile-portfolio-desc {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.mobile-portfolio-links {
    display: flex;
    gap: 0.75rem;
}

.mobile-portfolio-link {
    background: var(--mobile-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-portfolio-link:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile Contact Form - Professional Enhancement */
.mobile-contact-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--mobile-border-radius);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    margin: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 3vw, 1.5rem);
    box-shadow: var(--mobile-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.mobile-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mobile-primary);
    border-radius: var(--mobile-border-radius) var(--mobile-border-radius) 0 0;
}

.mobile-form-group {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.mobile-form-group input,
.mobile-form-group textarea {
    width: 100%;
    padding: clamp(18px, 4vw, 24px) clamp(20px, 5vw, 26px);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: clamp(56px, 12vw, 64px); /* Enhanced touch-friendly */
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    color: #2d3748;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.mobile-form-group input::placeholder,
.mobile-form-group textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.mobile-form-group input:hover,
.mobile-form-group textarea:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.mobile-form-group input:focus,
.mobile-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: white;
}

.mobile-form-group input:focus + label,
.mobile-form-group textarea:focus + label {
    color: #667eea;
}

.mobile-form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Tablet Responsive Adjustments - Enhanced */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .mobile-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mobile-portfolio {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mobile-hero {
        padding: clamp(3.5rem, 12vw, 7rem) clamp(2rem, 7vw, 4rem) clamp(4.5rem, 14vw, 8rem);
        margin-top: clamp(1.5rem, 5vw, 3rem);
        min-height: clamp(60vh, 80vw, 75vh);
    }
    
    .mobile-hero .container {
        padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
        margin-top: clamp(1rem, 3vw, 2rem);
    }
    
    .mobile-hero h1 {
        font-size: clamp(2.5rem, 7vw, 3.2rem);
        margin-bottom: clamp(1.2rem, 4vw, 2rem);
        margin-top: clamp(0.75rem, 2.5vw, 1.25rem);
    }
    
    .mobile-hero p {
        font-size: clamp(1.1rem, 3.2vw, 1.35rem);
        max-width: clamp(500px, 85vw, 650px);
        margin-bottom: clamp(2.5rem, 7vw, 4rem);
        margin-top: clamp(0.75rem, 2.5vw, 1.25rem);
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .mobile-hero-buttons {
        gap: clamp(1rem, 3vw, 1.75rem);
        margin-top: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .mobile-card {
        padding: 2.5rem;
    }
    
    .mobile-service-card {
        padding: 2.5rem 2rem;
    }
    
    .mobile-btn {
        min-width: 160px;
        padding: 20px 36px;
    }
    
    .mobile-sticky-nav {
        padding: clamp(3px, 0.8vw, 6px) clamp(6px, 1.5vw, 10px) clamp(6px, 1.5vw, 10px);
        padding-bottom: calc(clamp(6px, 1.5vw, 10px) + env(safe-area-inset-bottom));
    }
}

/* Small mobile optimizations */
@media screen and (max-width: 480px) {
    .mobile-hero {
        padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 10vw, 6rem);
        margin-top: clamp(0.75rem, 3vw, 2rem);
        min-height: clamp(50vh, 65vw, 60vh);
    }
    
    .mobile-hero .container {
        padding: clamp(0.75rem, 3vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
        margin-top: clamp(0.5rem, 2vw, 1rem);
    }
    
    .mobile-hero h1 {
        font-size: clamp(2rem, 5.5vw, 2.4rem);
        margin-bottom: clamp(0.75rem, 2.5vw, 1.25rem);
        margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
    }
    
    .mobile-hero p {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
        margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
        max-width: clamp(350px, 90vw, 450px);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
    
    .mobile-hero-buttons {
        gap: clamp(0.5rem, 1.5vw, 1rem);
        margin-top: clamp(1rem, 3vw, 1.75rem);
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
    
    .mobile-services,
    .mobile-portfolio {
        padding: 1rem;
    }
    
    .mobile-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-service-card {
        padding: 2rem 1.5rem;
    }
    
    .mobile-btn {
        min-width: 120px;
        padding: 16px 28px;
        font-size: 0.9rem;
    }
    
    .mobile-sticky-nav {
        padding: clamp(3px, 0.8vw, 6px) clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
        padding-bottom: calc(clamp(8px, 2vw, 12px) + env(safe-area-inset-bottom));
    }
    
    .mobile-sticky-nav .mobile-nav-item {
        min-width: clamp(40px, 10vw, 46px);
        max-width: clamp(56px, 14vw, 62px);
        padding: clamp(3px, 0.8vw, 6px) clamp(4px, 1vw, 6px);
        margin: clamp(0.2px, 0.05vw, 0.4px) clamp(0.5px, 0.125vw, 1px);
    }
    
    .mobile-sticky-nav .mobile-nav-item span {
        font-size: clamp(0.5rem, 1.1vw, 0.58rem);
    }
    
    .mobile-sticky-nav .mobile-nav-item i {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
        margin-bottom: clamp(0.1rem, 0.4vw, 0.15rem);
    }
}

/* Mobile Contact Section - Add bottom padding for navigation */
#mobile-contact {
    padding-bottom: 100px !important;
}

/* Ensure mobile sections don't get covered by bottom nav */
.mobile-only:last-of-type {
    padding-bottom: 20px;
}

/* Special styling for active navigation items */
.mobile-sticky-nav .mobile-nav-item.active {
    color: white;
}

.mobile-sticky-nav .mobile-nav-item.active::before {
    opacity: 1;
    transform: scale(1);
}

.mobile-sticky-nav .mobile-nav-item.active::after {
    opacity: 1;
}

/* Smooth transitions for all navigation interactions */
.mobile-sticky-nav * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
}

.mobile-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.5rem;
    position: relative;
}

.mobile-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--mobile-primary);
    border-radius: 2px;
}

.mobile-section-header p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-card,
.mobile-service-card,
.mobile-portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

.mobile-service-card:nth-child(2) { animation-delay: 0.1s; }
.mobile-service-card:nth-child(3) { animation-delay: 0.2s; }
.mobile-service-card:nth-child(4) { animation-delay: 0.3s; }
.mobile-service-card:nth-child(5) { animation-delay: 0.4s; }
.mobile-service-card:nth-child(6) { animation-delay: 0.5s; }

.mobile-portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-portfolio-item:nth-child(4) { animation-delay: 0.3s; }
.mobile-portfolio-item:nth-child(5) { animation-delay: 0.4s; }
.mobile-portfolio-item:nth-child(6) { animation-delay: 0.5s; }
.mobile-portfolio-item:nth-child(7) { animation-delay: 0.6s; }

/* Desktop Responsive Design */
@media screen and (min-width: 769px) {
    /* Hide mobile elements on desktop */
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    .mobile-sticky-nav {
        display: none;
    }
    
    /* Desktop Navigation Enhancement */
    .navbar {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu {
        display: flex;
        gap: 2.5rem;
    }
    
    .nav-link {
        position: relative;
        padding: 0.5rem 0;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -10px;
        width: 0;
        height: 0;
        border: 4px solid transparent;
        border-left-color: #667eea;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
    }
    
    /* Desktop Hero Section */
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Desktop Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem;
        transition: all 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    /* Desktop Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .portfolio-item {
        transition: all 0.3s ease;
    }
    
    .portfolio-item:hover {
        transform: translateY(-10px);
    }
    
    /* Desktop Contact Layout */
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* Large Desktop Optimizations */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

/* Ultra-wide Desktop */
@media screen and (min-width: 1600px) {
    .portfolio-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero {
        background: #fff;
        color: #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
