/* 
 * GREEN RIDGE FD LTD - Mobile App & Product Design Studio
 * Modern glassmorphism design with editorial layout elements
 * Key stylistic approach: Glassmorphism with editorial typography and organic shapes
 * This creates a modern, premium feel with translucent elements and sophisticated typography hierarchy
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colour Palette - Modern dark theme with high contrast */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff6b6b;
    --accent: #ffd93d;
    --success: #51cf66;
    --warning: #ffd43b;
    --error: #ff6b6b;
    
    /* Text colors with high contrast */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Background colors */
    --background: #0f172a;
    --background-secondary: #1e293b;
    --background-tertiary: #334155;
    
    /* Surface colors with better contrast */
    --surface: rgba(30, 41, 59, 0.95);
    --surface-glass: rgba(30, 41, 59, 0.8);
    --surface-light: rgba(51, 65, 85, 0.6);
    
    /* Border and shadow */
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 212, 255, 0.15);
    --shadow-primary: 0 8px 32px rgba(0, 212, 255, 0.25);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.minimized {
    transform: translateY(calc(100% - 60px));
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.cookie-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-minimize {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(20px);
}

.phone-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.content-card {
    height: 80px;
    background: linear-gradient(135deg, var(--surface-glass), rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--background);
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Styles */
section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Services Section */
.services {
    background: var(--background-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(255, 107, 107, 0.03) 100%);
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glass);
    border-color: var(--primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glass);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
    position: relative;
}

/* Dark overlay gradient for better text readability */
.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-image::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.project-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--background-tertiary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--background-tertiary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

.team-illustration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    height: 300px;
}

.team-member {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: var(--background-tertiary);
}


.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--background);
    color: var(--text-primary);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 107, 107, 0.02) 100%);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-contact p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Space Page Specific */
#space {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) var(--space-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header Improvements */
    .header {
        padding: 0;
    }
    
    .nav {
        padding: var(--space-sm) var(--space-md);
        position: relative;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-top: none;
        flex-direction: column;
        padding: var(--space-lg) var(--space-md);
        box-shadow: var(--shadow);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: var(--space-sm) 0;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: var(--primary);
        color: white;
        transform: translateX(5px);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile Hero Section */
    .hero {
        padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: var(--space-lg);
    }
    
    .hero-actions {
        justify-content: center;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 140px;
        padding: var(--space-sm) var(--space-md);
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }
    
    /* Mobile Services */
    .services {
        padding: var(--space-xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Mobile Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .portfolio-item {
        margin: 0 var(--space-sm);
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .project-mockup {
        width: 150px;
        height: 150px;
    }
    
    .portfolio-content {
        padding: var(--space-lg);
    }
    
    .portfolio-content h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-content p {
        font-size: 0.95rem;
    }
    
    /* Mobile About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-text h2 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-top: var(--space-lg);
    }
    
    .stat {
        padding: var(--space-md);
        background: var(--surface);
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .team-illustration {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
        height: 200px;
    }
    
    /* Mobile Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-details {
        gap: var(--space-md);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .contact-form {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--space-lg);
    }
    
    /* Mobile Spacing */
    section {
        padding: var(--space-xl) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Devices */
    .nav {
        padding: var(--space-sm);
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        padding: var(--space-md) var(--space-sm);
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: var(--space-sm);
    }
    
    .hero {
        padding: calc(70px + var(--space-lg)) var(--space-sm) var(--space-lg);
        min-height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.95rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-md);
        margin: 0;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-sm);
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .portfolio-item {
        margin: 0;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .project-mockup {
        width: 120px;
        height: 120px;
    }
    
    .portfolio-content {
        padding: var(--space-md);
    }
    
    .portfolio-content h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .stat {
        padding: var(--space-sm);
    }
    
    .stat h3 {
        font-size: 1.75rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    .team-illustration {
        height: 150px;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: var(--space-md);
        margin: 0;
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--space-sm);
        font-size: 16px;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .footer-content {
        gap: var(--space-md);
    }
    
    .footer-brand h3 {
        font-size: 1.1rem;
    }
    
    .footer-brand p,
    .footer-contact p,
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .cookie-content {
        padding: var(--space-sm);
    }
    
    .cookie-content h3 {
        font-size: 1rem;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons .btn {
        font-size: 0.85rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Container adjustments for very small screens */
    .container {
        padding: 0 var(--space-xs);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

.form-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.success-content svg {
    width: 48px;
    height: 48px;
    color: #10b981;
    margin-bottom: var(--space-md);
}

.success-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.success-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Navigation Mobile Styles - Moved to responsive section */

/* Scroll Animations */
.service-card,
.portfolio-item,
.about-text,
.contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.animate-in,
.portfolio-item.animate-in,
.about-text.animate-in,
.contact-info.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Effect */
.header.scrolled {
    background: var(--surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.header.scrolled .nav-brand h1,
.header.scrolled .nav-menu a {
    color: var(--text-primary);
}

/* Loading State */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 9999;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-light: #ffffff;
        --surface: rgba(0, 0, 0, 0.9);
        --border: rgba(255, 255, 255, 0.5);
        --primary: #00ffff;
        --secondary: #ff0000;
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e2e8f0;
        --text-light: #cbd5e1;
    }
}

/* Improved text readability */
.hero-title,
.section-title,
.service-card h3,
.portfolio-content h3,
.contact-info h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle,
.service-card p,
.portfolio-content p,
.about-text p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn, .nav-toggle, .nav-menu a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .hero-actions .btn {
        margin-bottom: var(--space-sm);
    }
    
    /* Improve form usability on mobile */
    .form-group input,
    .form-group textarea {
        -webkit-appearance: none;
        border-radius: var(--radius-sm);
    }
    
    /* Better visual hierarchy */
    .service-card h3,
    .portfolio-content h3 {
        margin-bottom: var(--space-sm);
    }
    
    /* Improve readability */
    .hero-subtitle,
    .service-card p,
    .portfolio-content p,
    .about-text p {
        line-height: 1.6;
    }
    
    /* Better button spacing */
    .hero-actions {
        margin-top: var(--space-lg);
    }
    
    /* Improve cookie banner on mobile */
    .cookie-banner {
        padding: var(--space-sm);
    }
    
    .cookie-content {
        max-width: 100%;
    }
}

/* Mobile-specific body class styles */
body.mobile {
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

body.mobile .nav-menu.active {
    /* Ensure menu is visible on mobile */
    display: flex !important;
}

body.mobile .hero {
    /* Better mobile hero spacing */
    padding-top: calc(80px + var(--space-lg));
}

body.mobile .phone-mockup {
    /* Ensure phone mockup is visible */
    display: block;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-menu a:hover,
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
    
    .btn:active,
    .nav-menu a:active {
        transform: scale(0.98);
    }
    
    .service-card:active,
    .portfolio-item:active {
        transform: scale(0.99);
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-lg) var(--space-md);
    }
    
    .hero-content {
        gap: var(--space-lg);
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}
