/* ========================================
   OzisTech - High-Converting Website Styles
   Mobile-first, Modern, Premium Design
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Brand Colors - Based on Logo */
    --primary: #00b4d8;
    --primary-dark: #0096c7;
    --primary-light: #48cae4;
    --primary-glow: rgba(0, 180, 216, 0.3);
    
    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --bg-section-alt: #0d0d14;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    /* Accent Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 119, 182, 0.1) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

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

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

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 180, 216, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(10, 10, 15, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 0.625rem 1.25rem !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: var(--radius-md) !important;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu Open State */
.nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-headline {
    margin-bottom: var(--space-lg);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.hero-visual {
    display: none;
}

.hero-mockup {
    position: relative;
}

.mockup-browser {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 6px;
    padding: var(--space-md);
    background: var(--bg-card-hover);
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.browser-dots span:first-child { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27ca40; }

.browser-content {
    padding: var(--space-xl);
    min-height: 300px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
}

.mockup-loading {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--bg-card-hover) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-card-hover) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mockup-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.showcase-img.active {
    opacity: 1;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-subheadline {
        margin-left: 0;
    }
    
    .hero-ctas {
        flex-direction: row;
    }
    
    .trust-badges {
        justify-content: flex-start;
    }
    
    .hero-visual {
        display: block;
    }
}

/* ========== SOCIAL PROOF STRIP ========== */
.social-proof {
    padding: var(--space-xl) 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-proof .container {
    text-align: center;
}

.social-proof-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========== GOOGLE REVIEWS SECTION ========== */
.google-reviews {
    padding: var(--space-2xl) 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: #202124;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-icon {
    flex-shrink: 0;
}

.reviews-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FBBC05;
    font-size: 1.5rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sliding Reviews Carousel */
.reviews-slider {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.reviews-track {
    display: flex;
    gap: var(--space-lg);
    animation: slideReviews 35s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes slideReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 5 - var(--space-lg) * 5));
    }
}

.review-card {
    flex-shrink: 0;
    width: 350px;
    padding: var(--space-lg);
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a73e8;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-info strong {
    display: block;
    color: #202124;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.stars-small {
    color: #FBBC05;
    font-size: 0.8rem;
    letter-spacing: 0px;
}

.review-time {
    font-size: 0.75rem;
    color: #70757a;
}

.google-g {
    flex-shrink: 0;
    margin-left: auto;
}

.review-text {
    color: #3c4043;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.review-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #70757a;
}

.review-location::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2370757a'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
}

@media (min-width: 640px) {
    .reviews-header {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .google-reviews {
        padding: var(--space-xl) 0;
    }
    
    .reviews-header {
        margin-bottom: var(--space-lg);
    }
    
    .google-badge {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
    
    .star {
        font-size: 1.25rem;
    }
    
    .reviews-slider {
        mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    }
    
    .reviews-track {
        gap: var(--space-md);
        animation-duration: 30s;
    }
    
    .review-card {
        width: 300px;
        padding: var(--space-md);
    }
    
    .review-card:hover {
        transform: none;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }
    
    .review-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .reviews-track {
        gap: var(--space-sm);
        animation-duration: 25s;
    }
    
    .review-card {
        width: 280px;
        padding: var(--space-md);
    }
    
    @keyframes slideReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 5 - var(--space-sm) * 5));
        }
    }
    
    .reviewer-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .reviewer-info strong {
        font-size: 0.9rem;
    }
    
    .review-text {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: var(--space-sm);
    }
    
    .google-g {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 375px) {
    .review-card {
        width: 260px;
    }
    
    @keyframes slideReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 5 - var(--space-sm) * 5));
        }
    }
    
    .review-header {
        gap: var(--space-sm);
    }
    
    .reviewer-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .review-text {
        font-size: 0.8rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        gap: var(--space-md);
        padding: 0 var(--space-md);
    }
    
    .reviews-slider {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-md);
    }
    
    .review-card {
        scroll-snap-align: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .review-card:hover {
        transform: none;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }
    
    .reviews-track {
        animation-duration: 40s;
    }
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio {
    padding: var(--space-4xl) 0;
    background: var(--bg-section-alt);
}

.portfolio-grid {
    display: grid;
    gap: var(--space-xl);
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: var(--shadow-lg);
}

.portfolio-preview {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-card-hover);
}

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

.portfolio-card:hover .portfolio-preview img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.portfolio-niche {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-glow);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.portfolio-info h3 {
    margin-bottom: var(--space-sm);
}

.portfolio-features {
    margin-bottom: var(--space-lg);
}

.portfolio-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
}

.portfolio-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.portfolio-actions {
    display: flex;
    gap: var(--space-sm);
}

.portfolio-actions .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== WHY US SECTION ========== */
.why-us {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    gap: var(--space-lg);
}

.why-item {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all var(--transition-base);
}

.why-item:hover {
    border-color: rgba(0, 180, 216, 0.2);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.why-item h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.why-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== PROCESS SECTION ========== */
.process {
    padding: var(--space-4xl) 0;
    background: var(--bg-section-alt);
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.process-step {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 300px;
    width: 100%;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
}

.process-step h3 {
    margin-bottom: var(--space-sm);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.process-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

@media (min-width: 1024px) {
    .process-steps {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
    
    .process-connector {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--primary), transparent);
        margin-top: 24px;
    }
}

/* ========== PRICING SECTION ========== */
.pricing {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.pricing-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

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

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.price-from {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.check {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-best-for {
    padding: var(--space-md);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
}

.pricing-note a {
    color: var(--primary);
}

.pricing-note a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-start;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--bg-section-alt);
}

.placeholder-notice {
    color: var(--warning) !important;
    font-size: 0.9rem;
}

.testimonials-grid {
    display: grid;
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card.placeholder {
    border-style: dashed;
    opacity: 0.8;
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
}

.author-info strong {
    display: block;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== CONTACT / LEAD FORM SECTION ========== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    gap: var(--space-3xl);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.trust-signals {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.trust-signal {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-signal strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.trust-signal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.what-happens-next {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.what-happens-next h3 {
    margin-bottom: var(--space-md);
}

.what-happens-next ol {
    counter-reset: steps;
}

.what-happens-next li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.what-happens-next li::before {
    content: counter(steps);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form-wrapper {
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form {
    display: grid;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

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

.form-privacy {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group.full-width,
    .form-privacy,
    .contact-form .btn {
        grid-column: span 2;
    }
    
    .trust-signals {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: var(--space-4xl) 0;
    background: var(--bg-section-alt);
}

.faq-grid {
    display: grid;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    display: grid;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-abn {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 2fr;
    }
}

/* ========== STICKY MOBILE CTA ========== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    padding: 1rem;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* ========== UTILITIES ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.spinning {
    animation: spin 1s linear infinite;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}

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

/* ========== SELECTION ========== */
::selection {
    background: rgba(0, 180, 216, 0.3);
    color: white;
}

/* ========================================
   ENHANCED MOBILE OPTIMISATIONS
   ======================================== */

/* Extra small devices (phones, 375px and below) */
@media (max-width: 375px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.15rem; }
    
    .hero-headline {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .pricing-card {
        padding: var(--space-lg);
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* Small devices (phones, 480px and below) */
@media (max-width: 480px) {
    /* Ensure minimum tap target size of 44px */
    .btn,
    .nav-cta,
    .filter-btn,
    .faq-question {
        min-height: 48px;
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: calc(70px + var(--space-2xl));
        padding-bottom: var(--space-2xl);
        min-height: auto;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-ctas {
        gap: var(--space-sm);
    }
    
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Trust badges - stack on very small screens */
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    /* Section spacing reduction */
    .services,
    .portfolio,
    .why-us,
    .process,
    .pricing,
    .testimonials,
    .contact,
    .faq {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    /* Service cards - full width */
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Portfolio cards */
    .portfolio-preview {
        aspect-ratio: 16/9;
    }
    
    .portfolio-info {
        padding: var(--space-md);
    }
    
    .portfolio-actions {
        flex-direction: column;
    }
    
    .portfolio-actions .btn {
        width: 100%;
    }
    
    /* Process steps - vertical layout */
    .process-step {
        padding: var(--space-lg);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Pricing - ensure readable on small screens */
    .pricing-features li {
        font-size: 0.85rem;
    }
    
    /* Contact form */
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 1rem;
    }
    
    /* What happens next */
    .what-happens-next {
        padding: var(--space-md);
    }
    
    /* FAQ */
    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-main {
        gap: var(--space-xl);
    }
    
    .footer-links {
        gap: var(--space-lg);
    }
    
    .footer-col {
        text-align: center;
    }
}

/* Mobile devices (up to 768px) */
@media (max-width: 767px) {
    /* Improve touch scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile navigation improvements */
    .navbar {
        padding: var(--space-sm) 0;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links.open {
        padding: var(--space-lg);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-links.open a {
        padding: var(--space-md);
        font-size: 1.1rem;
        display: block;
        text-align: center;
        border-radius: var(--radius-md);
    }
    
    .nav-links.open a:active {
        background: var(--bg-card-hover);
    }
    
    .nav-links.open .nav-cta {
        margin-top: var(--space-sm);
        padding: var(--space-md) !important;
    }
    
    /* Social proof strip */
    .industry-tags {
        gap: var(--space-xs);
    }
    
    .tag {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Why us grid */
    .why-item {
        padding: var(--space-lg);
    }
    
    .why-icon {
        font-size: 1.75rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    /* Trust signals in contact */
    .trust-signals {
        grid-template-columns: 1fr;
    }
    
    .trust-signal {
        padding: var(--space-sm);
        background: var(--bg-card);
        border-radius: var(--radius-md);
    }
    
    /* Sticky CTA enhancements */
    .sticky-cta {
        padding: var(--space-sm) var(--space-md);
        padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
    }
    
    .sticky-cta .btn {
        font-size: 1rem;
        font-weight: 700;
        padding: 0.875rem;
        box-shadow: 0 -4px 20px rgba(0, 180, 216, 0.3);
    }
    
    /* Improve tap feedback */
    .btn:active,
    .service-card:active,
    .portfolio-card:active,
    .faq-question:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Disable hover effects on touch */
    @media (hover: none) {
        .btn:hover {
            transform: none;
        }
        
        .service-card:hover,
        .portfolio-card:hover,
        .pricing-card:hover {
            transform: none;
            border-color: rgba(255, 255, 255, 0.05);
        }
        
        .portfolio-overlay {
            opacity: 1;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
        }
        
        .portfolio-overlay .btn {
            position: absolute;
            bottom: var(--space-md);
            left: 50%;
            transform: translateX(-50%);
        }
    }
}

/* Tablet devices (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-container {
        gap: var(--space-xl);
    }
    
    .hero-visual {
        display: block;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(60px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .hero-visual {
        display: none;
    }
    
    .sticky-cta {
        display: none;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    .sticky-cta {
        padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .showcase-img {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-card: #000000;
        --bg-card-hover: #1a1a1a;
        --text-secondary: #d0d0d0;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
    
    .service-card,
    .portfolio-card,
    .pricing-card,
    .testimonial-card {
        border-width: 2px;
    }
}

/* Dark mode scrollbar for Firefox */
@supports (scrollbar-color: auto) {
    html {
        scrollbar-color: var(--bg-card-hover) var(--bg-dark);
        scrollbar-width: thin;
    }
}

/* Touch device specific styles */
.touch-device .btn {
    -webkit-tap-highlight-color: transparent;
}

.touch-device .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.touch-device .portfolio-overlay .btn {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Ensure inputs don't zoom on iOS */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Loading state for images */
.portfolio-preview img,
.showcase-img {
    background: var(--bg-card-hover);
}

/* Smooth scrolling container for touch */
.touch-device .nav-links.open {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Active states for touch feedback */
.touch-device .btn:active {
    transform: scale(0.97);
}

.touch-device .service-card:active,
.touch-device .portfolio-card:active,
.touch-device .pricing-card:active {
    background: var(--bg-card-hover);
}

.touch-device .faq-question:active {
    background: rgba(0, 180, 216, 0.05);
}
