/* ===== ELEGANT CSS VARIABLES ===== */
:root {
    --elegant-navy: #0a2540;
    --elegant-gold: #c5a47e;
    --tech-blue: #0066ff;
    --tech-cyan: #00e6e6;
    --elegant-light: #f8f9fa;
    --elegant-gray: #6c757d;
    --elegant-dark: #212529;
    --elegant-border: rgba(10, 37, 64, 0.1);
    --gradient-tech: linear-gradient(135deg, var(--tech-blue), var(--tech-cyan));
    --gradient-navy: linear-gradient(135deg, var(--elegant-navy), #1a365d);
    --gradient-gold: linear-gradient(135deg, var(--elegant-gold), #e6c19c);
    --shadow-subtle: 0 4px 20px rgba(10, 37, 64, 0.05);
    --shadow-elevated: 0 20px 60px rgba(10, 37, 64, 0.15);
    --transition-elegant: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--elegant-gray);
    background-color: var(--elegant-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--elegant-navy);
}

/* Accessibility: Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gradient-tech);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--tech-cyan);
    outline-offset: 2px;
}

/* Accessibility: Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--tech-blue);
    outline-offset: 2px;
}

/* Accessibility: Remove focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* Accessibility: Add focus for keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--tech-blue);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ELEGANT NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--elegant-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-elegant);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 160px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--elegant-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-elegant);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-blue);
    transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--tech-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 12px;
    min-height: 44px;
    min-width: 44px;
}

.menu-bar {
    width: 25px;
    height: 2px;
    background: var(--elegant-navy);
    transition: var(--transition-elegant);
}

/* ===== ELEGANT HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 37, 64, 0.97), rgba(10, 37, 64, 0.95)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80&q=80&fit=max');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 140px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Performance: Remove fixed background on mobile */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 80vh;
        padding-top: 100px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.hero-title {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3.5rem;
    max-width: 700px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.btn-primary,
.btn-secondary {
    padding: 1.4rem 3.2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-elegant);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    min-height: 60px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-tech);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== ELEGANT SECTIONS ===== */
.section {
    padding: 120px 0;
    contain: layout style;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    color: var(--tech-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-tech);
}

.section-subtitle {
    color: var(--elegant-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 3rem auto 0;
    opacity: 0.8;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== JUICY SERVICES SECTION ===== */
.services-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 102, 255, 0.03) 0%, transparent 100%);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--shadow-elevated);
    transition: var(--transition-elegant);
    overflow: hidden;
    position: relative;
    border: none;
    contain: layout style paint;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-tech);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 102, 255, 0.2);
}

.service-header {
    background: var(--gradient-navy);
    padding: 50px 40px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 230, 230, 0.1) 0%, transparent 50%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 30px;
    transition: var(--transition-elegant);
}

.service-card:hover .service-icon {
    background: var(--gradient-tech);
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.service-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
}

.service-body {
    padding: 40px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--elegant-gray);
    font-size: 1rem;
    position: relative;
    padding-left: 10px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--tech-blue);
    border-radius: 50%;
}

.service-features li i {
    color: var(--tech-blue);
    font-size: 1rem;
    width: 20px;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tech-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition-elegant);
    min-height: 44px;
    min-width: 44px;
}

.service-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-tech);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-cta:hover::after,
.service-cta:focus::after {
    transform: scaleX(1);
}

.service-cta:hover,
.service-cta:focus {
    gap: 15px;
}

/* Tech pattern overlay */
.tech-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.03;
    pointer-events: none;
    background: 
        linear-gradient(45deg, var(--tech-blue) 25%, transparent 25%),
        linear-gradient(-45deg, var(--tech-blue) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--tech-blue) 75%),
        linear-gradient(-45deg, transparent 75%, var(--tech-blue) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* ===== ELEGANT ABOUT SECTION ===== */
.about-section {
    background: white;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--elegant-navy);
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--elegant-gray);
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 300;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 230, 230, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-elegant);
    border: 1px solid rgba(0, 102, 255, 0.1);
    contain: layout style;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--tech-blue);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--tech-blue);
    margin-bottom: 20px;
}

.tech-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--elegant-navy);
}

.tech-item p {
    color: var(--elegant-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== ELEGANT CONTACT SECTION ===== */
.contact-section {
    background: var(--elegant-light);
    padding: 140px 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-elevated);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-tech);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--elegant-navy);
}

.contact-details p {
    color: var(--elegant-gray);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-elevated);
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--elegant-navy);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-elegant);
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-submit {
    width: 100%;
    padding: 20px;
    background: var(--gradient-tech);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    min-height: 60px;
}

.form-submit:hover,
.form-submit:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.4);
}

/* Form Feedback */
.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== ELEGANT FOOTER ===== */
.footer {
    background: var(--elegant-navy);
    color: white;
    padding: 100px 0 50px;
}

/* Updated footer grid for newsletter */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Added column for newsletter */
    gap: 60px;
    margin-bottom: 80px;
}

/* Company info with logo spacing */
.footer-company-info {
    display: flex;
    flex-direction: column;
}

.footer-logo-spacer {
    margin-bottom: 5cm; /* 5cm space as requested */
    display: flex;
    align-items: flex-start;
}

.footer-logo-image {
    width: 180px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    line-height: 1.9;
    font-size: 1rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-elegant);
    min-height: 44px;
    min-width: 44px;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--gradient-tech);
    transform: translateY(-3px);
    outline: none;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--tech-cyan);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-tech);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-elegant);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--tech-cyan);
    transform: translateX(5px);
    outline: none;
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.footer-newsletter h3 {
    font-size: 1.4rem;
    color: var(--tech-cyan);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-tech);
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.newsletter-form .form-group {
    margin-bottom: 20px;
}

.newsletter-input-group {
    position: relative;
    display: flex;
}

.newsletter-input-group input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-elegant);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--tech-cyan);
    box-shadow: 0 0 0 3px rgba(0, 230, 230, 0.1);
}

.newsletter-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-tech);
    color: white;
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-elegant);
    min-height: 44px;
    min-width: 44px;
}

.newsletter-submit:hover,
.newsletter-submit:focus {
    background: var(--tech-blue);
    transform: translateY(-50%) scale(1.05);
}

.newsletter-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.newsletter-agreement input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--tech-blue);
    flex-shrink: 0;
}

.newsletter-agreement label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 300;
    cursor: pointer;
}

.newsletter-feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-feedback.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #75b798;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.newsletter-feedback.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #ea868f;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-cta,
    .mobile-menu-btn,
    .social-links,
    .form-submit,
    .newsletter-form {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding-top: 50px;
    }
    
    .hero-title,
    .hero-subtitle,
    .section-title,
    .service-title,
    .about-text h3 {
        color: black !important;
    }
    
    .hero-title span {
        background: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .footer a {
        color: black !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        min-height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        padding: 120px 40px 40px;
        gap: 35px;
        transition: var(--transition-elegant);
        box-shadow: var(--shadow-elevated);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active .menu-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .menu-bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-logo-spacer {
        margin-bottom: 3cm; /* Reduced for tablet */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 100px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1.2rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .service-header {
        padding: 40px 30px 30px;
    }

    .service-body {
        padding: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 50px 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-newsletter {
        padding: 30px;
    }
    
    .footer-logo-spacer {
        margin-bottom: 2cm; /* Further reduced for mobile */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-header,
    .service-body,
    .contact-info,
    .contact-form {
        padding: 40px 30px;
    }
    
    .footer {
        padding: 80px 0 40px;
    }
    
    .footer-newsletter {
        padding: 25px;
    }
    
    .newsletter-input-group input {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .newsletter-submit {
        width: 45px;
        height: 45px;
    }
    
    .footer-logo-spacer {
        margin-bottom: 1.5cm; /* Minimum for mobile */
    }
}

/* Reduced motion preferences */
@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;
    }
    
    .service-card:hover,
    .tech-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .service-cta:hover,
    .social-links a:hover,
    .footer-links a:hover,
    .newsletter-submit:hover {
        transform: none !important;
    }
}