/* ========================================
   INNOVATECH HEALTH - CSS v3 FINAL
   Responsive ottimizzato per tutti i device
   ======================================== */

/* ========== COLOR PALETTE ========== */
:root {
    --primary-blue: #2E5C8A;
    --accent-teal: #00A8A8;
    --neutral-grey: #4A4A4A;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
    --dark-blue: #1e3a5f;
    --light-blue: #E3EDF7;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--neutral-grey);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover { color: var(--accent-teal); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--neutral-grey);
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--neutral-grey);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
    background: var(--light-blue);
}

.btn-nav {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 10px 25px !important;
}

.btn-nav:hover {
    background: var(--accent-teal) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 25px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--light-grey);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-full { width: 100%; }

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========== SECTIONS ========== */
.expertise-section,
.services-preview,
.featured-projects,
.about-preview {
    padding: 80px 20px;
}

.expertise-section { background: var(--light-grey); }
.featured-projects { background: var(--light-grey); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-grey);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--neutral-grey);
    margin: 0;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--light-grey);
    padding: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-highlights {
    list-style: none;
    margin: 20px 0;
}

.service-highlights li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--neutral-grey);
}

.service-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.link-arrow {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.link-arrow:hover {
    color: var(--accent-teal);
    gap: 12px;
}

/* ========== SERVICE DETAIL PAGES ========== */
.service-detail {
    padding: 80px 20px;
    background: var(--white);
}

.service-detail.alternate {
    background: var(--light-grey);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-detail-grid.reverse {
    grid-template-columns: 1fr 2fr;
}

.service-label {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-description {
    margin: 25px 0;
}

.offering-item {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: var(--light-grey);
    border-radius: 8px;
}

.offering-item i {
    font-size: 2rem;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.offering-item h4 {
    margin-bottom: 8px;
}

.target-list {
    list-style: none;
    margin: 25px 0;
}

.target-list li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.target-list li i {
    position: absolute;
    left: 0;
    color: var(--accent-teal);
}

.service-detail-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.service-stats {
    display: grid;
    gap: 15px;
}

.stat-box {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-box h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--neutral-grey);
    margin: 0;
    font-size: 0.9rem;
}

/* ========== TECH STACK ========== */
.tech-stack {
    margin: 30px 0;
}

.tech-category {
    margin: 20px 0;
}

.tech-category h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tags span {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== PROCESS STEPS ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.process-step {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

/* ========== WORK PROCESS ========== */
.work-process {
    padding: 80px 20px;
    background: var(--light-grey);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.process-card i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

/* ========== PROJECTS ========== */
.projects-showcase {
    margin-bottom: 40px;
}

.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.project-featured.reverse {
    direction: rtl;
}

.project-featured.reverse > * {
    direction: ltr;
}

.project-featured img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-tag {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ========== PORTFOLIO ========== */
.portfolio-filters {
    padding: 40px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--light-grey);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--light-grey);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--neutral-grey);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.portfolio-section {
    padding: 80px 20px;
    background: var(--white);
}

.portfolio-item {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.portfolio-grid.reverse {
    direction: rtl;
}

.portfolio-grid.reverse > * {
    direction: ltr;
}

.portfolio-image {
    position: relative;
}

.portfolio-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.project-category {
    background: var(--accent-teal);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-tagline {
    font-size: 1.1rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 20px;
}

.project-section {
    margin: 30px 0;
}

.project-section h3 {
    margin-bottom: 15px;
}

.project-section ul {
    margin-left: 20px;
}

.project-section li {
    margin: 10px 0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.impact-item {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.impact-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-teal);
    margin-bottom: 5px;
}

.impact-item span {
    font-size: 0.9rem;
    color: var(--neutral-grey);
}

.tech-stack-portfolio {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-grey);
}

.tech-stack-portfolio h4 {
    margin-bottom: 15px;
}

/* ========== ABOUT PAGE ========== */
.about-detail {
    padding: 80px 20px;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.profile-large {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.credentials {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
}

.credentials h3 {
    margin-bottom: 20px;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.credentials li:last-child {
    border-bottom: none;
}

.credentials i {
    color: var(--accent-teal);
    margin-right: 10px;
    width: 20px;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

.social-btn:hover {
    background: var(--accent-teal);
    transform: translateX(5px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.highlight-box {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.highlight-box i {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

/* ========== TIMELINE ========== */
.timeline-section {
    padding: 80px 20px;
    background: var(--light-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-teal);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 20px;
    background: var(--accent-teal);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-blue);
}

.timeline-date {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--neutral-grey);
    font-style: italic;
}

/* ========== EXPERTISE ========== */
.expertise-detail {
    padding: 80px 20px;
    background: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.expertise-icon i {
    font-size: 2rem;
    color: var(--white);
}

.expertise-card ul {
    list-style: none;
}

.expertise-card li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--neutral-grey);
}

.expertise-card li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ========== RESEARCH ========== */
.research-section {
    padding: 80px 20px;
    background: var(--light-grey);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.research-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.research-card i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

/* ========== CONTACT ========== */
.contact-section {
    padding: 80px 20px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-container h2 {
    margin-bottom: 15px;
}

.form-description {
    color: var(--neutral-grey);
    margin-bottom: 30px;
}

.contact-form {
    background: var(--light-grey);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.form-note {
    font-size: 0.875rem;
    color: var(--neutral-grey);
    margin-top: 15px;
}

.contact-info-container h2 {
    margin-bottom: 25px;
}

.contact-info-card {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-teal);
    flex-shrink: 0;
    width: 30px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p,
.info-item a {
    color: var(--neutral-grey);
    margin: 0;
}

.social-connect h3 {
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn-large {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn-large:hover {
    background: var(--accent-teal);
    transform: translateX(5px);
}

.social-btn-large i {
    font-size: 1.5rem;
}

.availability-note {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
    margin-top: 30px;
}

.availability-note i {
    color: var(--accent-teal);
    margin-right: 10px;
}

/* ========== FAQ ========== */
.faq-section {
    padding: 80px 20px;
    background: var(--light-grey);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.faq-item i {
    color: var(--accent-teal);
    font-size: 1.5rem;
}

/* ========== CTA ========== */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-section ul li a:hover {
    color: var(--accent-teal);
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--accent-teal);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* ========== TABLET (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project-featured,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE (max 768px) ========== */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .process-steps,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE SMALL (<480px) - iPhone SE FIX ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero {
        padding: 50px 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Typography */
    .section-header h2,
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .service-card,
    .stat-card,
    .expertise-card,
    .research-card,
    .faq-item {
        padding: 25px 20px;
    }
    
    .project-featured {
        padding: 30px 20px;
    }
    
    /* SERVICE DETAIL PAGE - CRITICAL FIX */
    .service-detail {
        padding: 50px 15px;
    }
    
    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .service-detail-content {
        padding: 0;
    }
    
    .service-detail h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .service-label {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .service-description p {
        font-size: 0.95rem;
    }
    
    .offering-item {
        flex-direction: column;
        gap: 15px;
        padding: 18px 15px;
    }
    
    .offering-item i {
        font-size: 2rem;
        margin: 0 auto;
    }
    
    .offering-item h4 {
        font-size: 1.1rem;
    }
    
    .offering-item p {
        font-size: 0.9rem;
    }
    
    /* Tech tags */
    .tech-stack-portfolio .tech-tags,
    .tech-tags {
        gap: 6px;
    }
    
    .tech-tags span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* Target list */
    .target-list li {
        padding: 8px 0 8px 25px;
        font-size: 0.9rem;
    }
    
    .target-list li i {
        font-size: 0.9rem;
    }
    
    /* Service stats */
    .service-stats {
        gap: 10px;
    }
    
    .stat-box {
        padding: 15px 12px;
    }
    
    .stat-box h4 {
        font-size: 1rem;
    }
    
    .stat-box p {
        font-size: 0.85rem;
    }
    
    /* Tech stack */
    .tech-category {
        margin: 15px 0;
    }
    
    .tech-category h4 {
        font-size: 1rem;
    }
    
    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .process-step {
        padding: 20px 15px;
    }
    
    .process-step h4 {
        font-size: 1.05rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    /* Portfolio */
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-item {
        padding: 18px 15px;
    }
    
    .impact-item strong {
        font-size: 1.3rem;
    }
    
    .project-section {
        margin: 20px 0;
    }
    
    .project-section ul {
        margin-left: 15px;
    }
    
    .project-section li {
        margin: 8px 0;
        font-size: 0.9rem;
    }
    
    .project-tagline {
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 50px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}