:root {
    --primary: #0a1628;
    --secondary: #1e3a5f;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    --gradient-2: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Site Wrapper */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    color: var(--accent);
    font-size: 1.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-cta::after {
    display: none !important;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 1rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-white);
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary-custom:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent);
    font-weight: 500;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section Styling */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Services Preview */
.services-preview {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 5rem 2rem;
    margin: 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.services-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Services Full Page */
.services-full {
    padding: 2rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.service-detail:hover .service-detail-image img {
    transform: scale(1.02);
}

.service-detail-icon {
    font-size: 4rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.service-detail-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-detail-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.service-features {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.service-features li {
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Process Section */
.process-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 4rem 2rem;
    margin: 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About Page */
.about-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.values-section {
    padding: 4rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding: 4rem 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--bg-light);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 auto 1rem;
}

.team-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Portfolio */
.portfolio-grid-section {
    padding: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.portfolio-card.featured {
    grid-column: span 2;
}

.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

/* Testimonials */
.testimonials-section {
    padding: 4rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact Page */
.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
}

.contact-form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #1e293b;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.2s, border-color 0.2s;
}

.social-link:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    margin: 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-section .btn-primary-custom {
    background: #ffffff;
    color: var(--primary);
    position: relative;
}

.cta-section .btn-primary-custom:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--primary);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    color: #ffffff;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-icon {
    font-size: 2rem;
    color: var(--accent-light);
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Error UI */
#blazor-error-ui {
    background: #b32121;
    padding: 1rem;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 9999;
}

#blazor-error-ui a {
    color: white;
    margin-left: 1rem;
}

/* Validation */
.validation-message {
    color: #ef4444;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-card.featured {
        grid-column: span 2;
    }
    
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 350px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .nav-toggle-label {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        display: none;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-image img {
        height: 280px;
    }
    
    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }
    
    .main-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .main-nav .nav-link:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }
    
    .nav-cta {
        text-align: center;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        justify-content: center;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-preview {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .service-detail-icon {
        width: fit-content;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card.featured {
        grid-column: span 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .cta-section {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
    }
    
    .page-header {
        padding: 3rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}
