  /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* TechStand R&D Institutional Palette */
    --bloco_visao45: #f8fafc ;
  --primary: #1D2A4D;
    --primary-light: #2A3A6B;
    --secondary: #2563EB;
    --accent: #3B82F6;
    --graphite: #374151;
    --white: #FFFFFF;
    --light: #F8FAFC;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --dark: #111827;
    --dark-light: #1F2937;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    --border: #E5E7EB;
}

/* Dark Mode Variables */
body.dark-mode {
    --bloco_visao45: #01053354;
    --primary: #1c306b;
    --primary-light: #3A4A8B;
    --secondary: #3B82F6;
    --accent: #60A5FA;
    --white: #0F172A;
    --light: #1E293B;
    --gray: #94A3B8;
    --gray-light: #CBD5E1;
    --dark: #F1F5F9;
    --dark-light: #E2E8F0;
    --border: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.97);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

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

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark);
}

.sun-icon { display: block; }
.moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--graphite);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

body.dark-mode .nav-link {
    color: var(--gray-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Hero Section with Carousel */
.hero {
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    /*object-position: center;*/
    object-position: left center;
    background: #0F172A;
    margin-left: 0;
    
}

.slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.85) 0%, rgba(29, 42, 77, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.slide-content {
    color: var(--white);
    max-width: 600px;
    text-align: left;
}

.hero-slogan {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    padding: 13px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Hero model flow */
.hero-model {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    max-width: 760px;
    margin: 0 auto;
}

.hero-model span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-model svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-block {
    margin-bottom: 28px;
}

.about-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.about-description {
    color: var(--gray);
    line-height: 1.85;
    font-size: 1rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.about-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.about-values span {
    padding: 5px 14px;
    background: var(--bloco_visao45);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-light);
    letter-spacing: 0.02em;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: var(--light);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.about-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    object-fit: contain;
}

.image-decoration {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.about-intro {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--light);
    border-left: 3px solid var(--secondary);
    border-radius: 0 8px 8px 0;
}

.about-intro p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Services / Divisions Section */
.services {
    padding: 100px 0;
    background: var(--light);
    transition: background-color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    opacity: 1;
    transform: translateY(0);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.service-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.service-focus {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.service-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.service-list li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--gray);
    font-size: 0.85rem;
}

.service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1rem;
}

/* Capabilities Section */
.capabilities {
    padding: 100px 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.capability-block {
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--white);
}

.capability-block:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

.capability-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.capability-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.capability-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    padding: 5px 12px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--graphite);
}

body.dark-mode .tech-tags span {
    background: var(--bloco_visao45);
    color: var(--gray-light);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--light);
    transition: background-color 0.3s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 180px;
    background: linear-gradient(135deg, #0F172A 0%, #1D2A4D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-placeholder {
    width: 72px;
    height: 72px;
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-placeholder svg {
    width: 100%;
    height: 100%;
}

.project-status {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-status.active {
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
}

.project-status.soon {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-content {
    padding: 24px;
}

.portfolio-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.portfolio-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: var(--primary);
    transition: background-color 0.3s ease;
}

.partners .section-title {
    color: #fff;
}

.partners .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.partners-text {
    max-width: 640px;
    margin: -30px auto 48px;
    text-align: center;
}

.partners-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 14px;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.partner-icon {
    width: 120px;
    height: 80px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-icon svg {
    width: 100%;
    height: 100%;
}

.partner-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo-small {
    max-width: 80%;
    max-height: 45px;
    margin-top: -10px;
}

.partner-logo-large {
    max-width: 100%;
    max-height: 70px;
}

.partner-item span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
}

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

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border);
}

body.dark-mode .contact-form {
    background: var(--light);
    border-color: var(--border);
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--dark-light);
    color: var(--dark);
    border-color: var(--border);
}

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

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 180px;
    max-height: 220px;
    padding-bottom: 44px;
}

.attach-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.25s ease;
}

.attach-btn:hover {
    color: #1E4E8C;
}

@media (max-width: 768px) {
    .attach-btn {
        bottom: 10px;
        right: 10px;
    }
}

/* Footer */
.footer {
    background: #0F172A;
    color: #fff;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.footer-slogan {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    font-size: 0.85rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}

.footer-links a,
.footer-services a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #fff;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .slide-overlay { width: 60%; padding: 50px; }
}

@media (max-width: 968px) {
    .about-content { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .contact-content { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-model { gap: 4px; }
    .hero-model span { font-size: 0.7rem; }
}

@media (max-width: 768px) {
    /* Navbar improvements */
    .navbar .container {
        padding: 10px 15px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-tagline {
        font-size: 0.55rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        gap: 28px;
    }

    body.dark-mode .nav-menu {
        background: #0F172A;
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    
    .nav-link {
        font-size: 1.1rem;
    }

    /* Hero section improvements */
    .hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    .hero-carousel {
        height: 70vh;
    }
    
    .hero-title { font-size: 1.8rem; line-height: 1.3; }
    .hero-description { font-size: 0.95rem; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.9rem; }

    .services-grid { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr; }

    .hero-model {
        display: none;
    }

    .contact-form { padding: 28px 20px; }
    .footer-content { grid-template-columns: 1fr; }

    /* Carousel responsive - FIX for mobile content cutoff */
    .carousel-slide {
        display: flex;
        flex-direction: column;
    }
    
    .carousel-slide img {
        width: 100%;
        height: 50%;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .slide-overlay {
        width: 100%;
        height: 100%;
        padding: 30px 20px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(29, 42, 77, 0.85) 50%, rgba(15, 23, 42, 0.95) 100%);
        position: relative;
        top: 0;
        right: auto;
        display: flex;
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .slide-content {
        text-align: center;
        max-width: 100%;
        padding-top: 40%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        z-index: 20;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    
    .carousel-dots {
        bottom: 20px;
        z-index: 20;
    }
    
    /* About section - FIX for text cutoff */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        width: 100%;
        overflow: hidden;
    }
    
    .about-block {
        margin-bottom: 24px;
    }
    
    .about-description {
        font-size: 0.9rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .about-list {
        padding-left: 0;
    }
    
    .about-list li {
        font-size: 0.85rem;
        padding: 8px 0 8px 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-intro {
        padding: 16px 20px;
        margin-top: 20px;
    }
    
    .about-intro p {
        font-size: 0.85rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-image-img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px auto 0;
    }
    
    .about-values {
        gap: 6px;
    }
    
    .about-values span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* Service cards */
    .service-card {
        padding: 24px 20px;
    }
    
    /* Partners section */
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-icon {
        width: 100px;
        height: 70px;
    }
    
    /* Contact section */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .email-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .email-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .btn { padding: 11px 22px; font-size: 0.88rem; }
    .section-title { font-size: 1.7rem; }
    .service-card { padding: 28px 20px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Additional fixes for very small screens */
    .container {
        padding: 0 15px;
    }
    
    .about-description {
        font-size: 0.85rem;
    }
    
    .about-intro p {
        font-size: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-list li {
        font-size: 0.8rem;
    }
    
    .portfolio-content p {
        font-size: 0.85rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
}
