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

:root {
    --primary-bg: #fafafa;
    --secondary-bg: #ffffff;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Smooth scrolling for Safari */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    gap: 2rem;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.75;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}

.logo i {
    font-size: 26px;
    color: var(--accent-color);
}

/* Mobile menu toggle - hidden by default */
.mobile-menu-toggle {
    display: none;
}

.mobile-cta-btn {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--primary-bg);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border-radius: 7px;
    transition: var(--transition);
    min-width: 40px;
}

.lang-btn.active {
    background: var(--secondary-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

/* ===== BUTTONS ===== */
.cta-btn {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn-large {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: center;
}

.cta-btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn-large:active {
    transform: translateY(0);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    50% { 
        transform: translate(-20px, 20px) scale(1.05); 
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeIn 1.2s ease-out;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    margin-bottom: 0.4em;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 2em;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5em;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--secondary-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 70px;
}

.about-card {
    background: var(--primary-bg);
    padding: 48px 36px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    transform: scaleX(0);
    transition: var(--transition);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

/* Mobile: disable transform on hover */
@media (hover: none) and (pointer: coarse) {
    .about-card:hover,
    .service-card:hover,
    .advantage-item:hover,
    .experience-card:hover,
    .stack-category:hover {
        transform: none;
    }

    .about-card:hover .about-icon,
    .service-card:hover .service-icon {
        transform: none;
    }
}

.about-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.1);
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #f0f4ff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 70px;
}

.service-card {
    background: var(--secondary-bg);
    padding: 44px 32px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.05));
    transition: var(--transition);
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
    background: var(--secondary-bg);
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 70px;
}

.advantage-item {
    display: flex;
    gap: 28px;
    padding: 44px 36px;
    background: var(--primary-bg);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.advantage-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), #60a5fa);
    transform: scaleY(0);
    transition: var(--transition);
}

.advantage-item:hover::before {
    transform: scaleY(1);
}

.advantage-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.advantage-number {
    font-size: 52px;
    font-weight: 800;
    color: var(--accent-color);
    min-width: 70px;
    opacity: 0.4;
    line-height: 1;
}

.advantage-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.advantage-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #f0f4ff 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 70px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--primary-bg);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(6px);
}

.info-item i {
    font-size: 1.6rem;
    color: var(--accent-color);
    min-width: 32px;
}

.info-item h4 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

.copy-trigger {
    margin-left: 10px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-trigger:hover {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
    border-color: var(--accent-color);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    background: var(--secondary-bg);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
    border-color: var(--accent-color);
}

/* ===== TECH STACK SECTION ===== */
.tech-stack {
    background: var(--secondary-bg);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 70px;
}

.stack-category {
    background: var(--primary-bg);
    padding: 40px 32px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.stack-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stack-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stack-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-badge {
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stack-badge:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ===== IT TOOLS SECTION ===== */
.it-tools-section {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #f0f4ff 100%);
    padding: 90px 0;
}

.it-tools-section .section-title {
    margin-bottom: 0.5em;
}

.it-tools-section .section-subtitle {
    margin-bottom: 60px;
}

/* Override IT Utility Engine container to fit design */
.it-tools-section .it-utility-engine {
    margin: 0 auto;
    max-width: 100%;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #f0f4ff 100%);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 70px;
}

.experience-card {
    background: var(--secondary-bg);
    padding: 44px 36px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.experience-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.experience-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.experience-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-brand i {
    font-size: 24px;
    color: var(--accent-color);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 44px;
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-bg);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.modal-content h2 {
    margin-bottom: 32px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-right: 40px;
}

/* Mobile modal optimizations */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .modal-content {
        max-height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 12px;
        padding-top: 40px;
    }

    .modal-content {
        padding: 32px 24px;
        border-radius: 16px;
        max-height: calc(100vh - 60px);
    }

    .modal-content h2 {
        font-size: 26px;
        margin-bottom: 24px;
        padding-right: 36px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        top: 16px;
        right: 16px;
        font-size: 1.3rem;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        min-height: auto;
        padding: 12px 0;
        gap: 12px;
        align-items: center;
    }

    .logo {
        font-size: 20px;
        flex: 1;
    }

    .logo-image {
        height: 28px;
        max-width: 140px;
    }

    .logo i {
        font-size: 24px;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        order: 2;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: var(--transition);
    }

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

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

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

    .nav-menu {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        background: var(--secondary-bg);
        border-radius: 12px;
        margin-top: 8px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 15px;
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .header-controls {
        order: 3;
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .language-switcher {
        padding: 3px;
        gap: 3px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 36px;
    }

    /* Hide desktop CTA button on mobile */
    .header-controls .cta-btn {
        display: none;
    }

    /* Show CTA button in mobile menu */
    .mobile-cta-btn {
        display: block;
        width: calc(100% - 32px);
        margin: 8px 16px;
        padding: 12px;
        text-align: center;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        min-height: 75vh;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-grid,
    .services-grid,
    .advantages-list,
    .stack-grid,
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 10px 0;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-image {
        height: 24px;
        max-width: 120px;
    }

    .logo i {
        font-size: 22px;
    }

    .nav-menu {
        gap: 0.6rem;
        padding: 6px 0;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 4px 6px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 36px;
    }

    .cta-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .cta-btn-large {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
    }

    .hero {
        min-height: 70vh;
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 30px;
        margin-bottom: 0.5em;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 1.5em;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::before {
        width: 40px;
        height: 3px;
        top: -16px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    section {
        padding: 50px 0;
    }

    .about-card,
    .service-card,
    .advantage-item,
    .experience-card {
        padding: 28px 20px;
    }

    .about-icon,
    .service-icon,
    .experience-icon {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .about-card h3,
    .service-card h3,
    .experience-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .about-card p,
    .service-card p,
    .experience-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .advantage-item {
        gap: 16px;
        padding: 24px 18px;
    }

    .advantage-number {
        font-size: 36px;
        min-width: 50px;
    }

    .advantage-content h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .advantage-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .stack-category {
        padding: 28px 20px;
    }

    .stack-icon {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .stack-category h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .stack-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .info-item {
        gap: 14px;
    }

    .info-item i {
        font-size: 1.3rem;
        min-width: 26px;
    }

    .info-item h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .info-item p {
        font-size: 14px;
        line-height: 1.5;
    }

    .modal-content {
        padding: 28px 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .modal-close {
        width: 30px;
        height: 30px;
        top: 14px;
        right: 14px;
        font-size: 1.2rem;
    }

    .footer {
        padding: 35px 0;
    }

    .footer-brand {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .footer-brand i {
        font-size: 20px;
    }

    .footer-content p {
        font-size: 13px;
        line-height: 1.5;
    }

    .about-grid,
    .services-grid,
    .advantages-list,
    .stack-grid,
    .experience-grid {
        gap: 18px;
    }
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    .header-content {
        padding: 8px 0;
    }

    .logo {
        font-size: 16px;
    }

    .logo-image {
        height: 22px;
        max-width: 110px;
    }

    .logo i {
        font-size: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .nav-menu {
        gap: 0.4rem;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 3px 5px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 32px;
    }

    .cta-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .cta-btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }

    .about-card,
    .service-card,
    .advantage-item,
    .experience-card,
    .stack-category {
        padding: 24px 16px;
    }

    .advantage-item {
        gap: 14px;
    }

    .advantage-number {
        font-size: 30px;
        min-width: 45px;
    }

    .about-card h3,
    .service-card h3,
    .experience-card h3,
    .stack-category h3 {
        font-size: 16px;
    }

    .about-card p,
    .service-card p,
    .experience-card p,
    .advantage-content p {
        font-size: 13px;
    }

    .stack-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ===== LANDSCAPE MODE FOR MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .header-content {
        padding: 8px 0;
        gap: 8px;
    }

    .nav-menu {
        padding: 4px 0;
    }

    .hero {
        min-height: auto;
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 0.3em;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 1em;
    }

    section {
        padding: 40px 0;
    }

    .modal {
        padding-top: 15px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .about-card,
    .service-card,
    .advantage-item,
    .experience-card,
    .stack-category {
        padding: 20px 16px;
    }
}

/* ===== TABLET LANDSCAPE ===== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .container {
        max-width: 900px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 40px;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .modal,
    .cta-btn,
    .cta-btn-large,
    .contact-form,
    .language-switcher {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-title::before {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #333333;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Selection color */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
