/* ==========================================================================
   HomeBliss Interiors - Main Stylesheet
   Created for Kerala Interior Design Website
   ========================================================================== */

/* CSS Variables (Custom Properties) */
:root {
    /* Primary Colors - Inspired by Kerala's rich earth tones */
    --primary-color: #d4a574;          /* Warm golden brown */
    --primary-dark: #b8956a;           /* Darker gold */
    --primary-light: #e8d5b7;          /* Light cream */
    
    /* Secondary Colors */
    --secondary-color: #2c3e50;        /* Deep blue-gray */
    --secondary-light: #34495e;        /* Lighter blue-gray */
    --accent-color: #e74c3c;           /* Warm red accent */
    --success-color: #27ae60;          /* Green for success */
    --warning-color: #f39c12;          /* Orange for warnings */
    
    /* Text Colors */
    --text-primary: #2c3e50;           /* Main text color */
    --text-secondary: #7f8c8d;         /* Secondary text */
    --text-light: #ffffff;             /* White text */
    --text-dark: #2c3e50;              /* Dark text */
    
    /* Background Colors */
    --bg-primary: #ffffff;             /* Main background */
    --bg-secondary: #f8f9fa;           /* Light gray background */
    --bg-dark: #2c3e50;                /* Dark background */
    --bg-overlay: rgba(44, 62, 80, 0.8); /* Overlay background */
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;        /* Main font */
    --font-secondary: 'Playfair Display', serif;   /* Decorative font */
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;           /* 12px */
    --font-size-sm: 0.875rem;          /* 14px */
    --font-size-base: 1rem;            /* 16px */
    --font-size-lg: 1.125rem;          /* 18px */
    --font-size-xl: 1.25rem;           /* 20px */
    --font-size-2xl: 1.5rem;           /* 24px */
    --font-size-3xl: 1.875rem;         /* 30px */
    --font-size-4xl: 2.25rem;          /* 36px */
    --font-size-5xl: 3rem;             /* 48px */
    
    /* Spacing */
    --spacing-xs: 0.25rem;             /* 4px */
    --spacing-sm: 0.5rem;              /* 8px */
    --spacing-md: 1rem;                /* 16px */
    --spacing-lg: 1.5rem;              /* 24px */
    --spacing-xl: 2rem;                /* 32px */
    --spacing-2xl: 3rem;               /* 48px */
    --spacing-3xl: 4rem;               /* 64px */
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;       /* 4px */
    --border-radius-md: 0.5rem;        /* 8px */
    --border-radius-lg: 0.75rem;       /* 12px */
    --border-radius-xl: 1rem;          /* 16px */
    --border-radius-full: 50%;
    
    /* Shadows */
    --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 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Container Widths */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
}

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

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: 500;
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

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

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

.section-header h2 {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-full);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Systems */
.services-grid,
.features-grid,
.portfolio-grid,
.testimonials-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

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

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

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

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

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)),
                url('../images/backgrounds/kerala-interior-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-3xl) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-light);
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.hero-features {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.hero-features .feature i {
    color: var(--primary-light);
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.services-preview {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.service-icon i {
    font-size: var(--font-size-2xl);
    color: var(--text-light);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.service-card p {
    margin-bottom: var(--spacing-lg);
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.why-choose-us {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon i {
    font-size: var(--font-size-3xl);
    color: var(--primary-dark);
}

.feature-item h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.portfolio-preview {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 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: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.portfolio-overlay h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.portfolio-overlay p {
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
}

.view-project {
    align-self: flex-start;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
}

.view-project:hover {
    background: var(--primary-dark);
    color: var(--text-light);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-style: italic;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.author-info span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.testimonial-rating {
    color: var(--warning-color);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section-main {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--primary-light);
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.cta-note {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-bottom: 0;
}

.cta-section {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: var(--text-light);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-dark); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }

/* ==========================================================================
   Responsive Design - Mobile First Approach
   ========================================================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: var(--container-sm);
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: var(--container-lg);
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: var(--container-2xl);
    }
}
/* ===== MOBILE ENHANCEMENTS ===== */
/* Enhanced Mobile Optimization for HomeBliss Interiors */
/* Add this to your main.css file for better mobile experience */

/* Mobile-First Approach - Base styles for mobile */
@media screen and (max-width: 768px) {
    
    /* Enhanced Typography for Mobile */
    body {
        font-size: 16px; /* Minimum readable size */
        line-height: 1.6;
        -webkit-text-size-adjust: 100%; /* Prevent text scaling */
        -ms-text-size-adjust: 100%;
    }
    
    h1 {
        font-size: 2rem; /* 32px */
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.25rem; /* 20px */
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    /* Enhanced Touch Targets */
    .btn, 
    .btn-primary, 
    .btn-secondary,
    button,
    .nav-link,
    .portfolio-filter-btn {
        min-height: 48px; /* Apple's recommended minimum */
        min-width: 48px;
        padding: 12px 20px;
        margin: 4px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile Navigation Improvements */
    .mobile-nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .mobile-nav-link {
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:active {
        background: #f8f9fa;
        transform: scale(0.98);
    }
    
    /* Enhanced Form Inputs for Mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px;
        border-radius: 12px;
        border: 2px solid #e0e0e0;
        width: 100%;
        margin-bottom: 16px;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        appearance: none;
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
        outline: none;
        transform: translateY(-2px);
    }
    
    /* Mobile-Optimized Gallery */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 10px;
    }
    
    .portfolio-item {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .portfolio-item:active {
        transform: scale(0.98);
    }
    
    /* Swipe Indicators for Gallery */
    .portfolio-swipe-hint {
        text-align: center;
        color: #666;
        font-size: 14px;
        margin-top: 10px;
        opacity: 0.7;
    }
    
    .portfolio-swipe-hint::before {
        content: "👆 ";
    }
    
    /* Mobile Hero Section Optimization */
    .hero {
        min-height: 80vh; /* Reduced for mobile */
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile-Friendly Cards */
    .service-card,
    .blog-card,
    .team-card {
        margin-bottom: 20px;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .service-card:active,
    .blog-card:active,
    .team-card:active {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    
    /* Mobile Contact Section */
    .contact-info {
        text-align: center;
        padding: 30px 20px;
    }
    
    .contact-item {
        margin-bottom: 24px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .contact-item a {
        font-size: 18px;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }
    
    /* Mobile-Optimized Blog */
    .blog-post-card {
        margin-bottom: 24px;
        border-radius: 16px;
        overflow: hidden;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .blog-post-image {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    /* Mobile Footer Optimization */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    /* Loading States for Mobile */
    .loading-spinner {
        width: 24px;
        height: 24px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Error States for Mobile */
    .error-message {
        background: #fee;
        color: #c33;
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid #fcc;
        margin: 10px 0;
        font-size: 14px;
    }
    
    .success-message {
        background: #efe;
        color: #363;
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid #cfc;
        margin: 10px 0;
        font-size: 14px;
    }
}

/* Small Mobile Devices (iPhone SE, small Android) */
@media screen and (max-width: 480px) {
    
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .portfolio-grid {
        gap: 16px;
        padding: 0 8px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    /* Smaller text for very small screens */
    .blog-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 60vh;
        padding: 40px 0 30px;
    }
    
    .mobile-nav {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High DPI / Retina Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    
    /* Use higher quality images for retina displays */
    .hero {
        background-image: url('../images/hero/hero-bg@2x.jpg');
    }
    
    .portfolio-item img,
    .team-member img,
    .blog-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support for Mobile */
@media (prefers-color-scheme: dark) {
    
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .mobile-nav {
        background: rgba(26, 26, 26, 0.98);
        color: white;
    }
    
    input, textarea, select {
        background: #2a2a2a;
        color: white;
        border-color: #444;
    }
    
    .blog-card,
    .service-card,
    .team-card {
        background: #2a2a2a;
        color: white;
    }
}

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

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .portfolio-item:hover,
    .blog-card:hover {
        transform: none;
    }
    
    /* Add active/tap states instead */
    .btn:active {
        transform: scale(0.98);
    }
    
    .portfolio-item:active,
    .blog-card:active {
        transform: scale(0.98);
    }
}