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

:root {
    --primary-color: #1e3a5f;
    --primary-light: #2d5a8f;
    --secondary-color: #00d4ff;
    --accent-color: #00a8cc;
    --text-dark: #1a1a2e;
    --text-medium: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --border-color: #e2e8f0;
    --success-color: #00c853;
    --error-color: #f44336;
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.15);
    --shadow-xl: 0 20px 50px rgba(30, 58, 95, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-medium);
    overflow-x: hidden;
    min-width: 320px;
    background: var(--bg-white);
}

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

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    position: relative;
}

.logo {
    flex-shrink: 0;
    z-index: 1001;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    max-width: 180px;
    height: auto;
    display: block;
    width: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.1));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--secondary-color);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--secondary-color);
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: block;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width var(--transition-normal);
}

.nav a:hover {
    color: var(--secondary-color);
}

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

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, #1a4d7a 100%);
    position: relative;
    color: white;
    padding: clamp(80px, 15vw, 140px) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 204, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    padding: 0 10px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    padding: 0 10px;
    position: relative;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
    min-width: 160px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.section {
    padding: clamp(60px, 10vw, 100px) 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    line-height: 1.2;
    padding: 0 10px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    line-height: 1.7;
}

.about {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform var(--transition-slow);
}

.about-image:hover .about-img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.badge-text strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.badge-text span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.feature-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-medium);
    font-weight: 500;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-medium);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.4;
}

.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 168, 204, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 168, 204, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: scale(1.1) rotate(5deg);
}

.service-icon-svg {
    stroke: var(--secondary-color);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-svg {
    stroke: white;
}

.service-card h3 {
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(1rem, 2vw, 1.05rem);
    margin-bottom: 0;
}

.technologies {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.tech-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.tech-category h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.tech-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.tech-item:hover img {
    transform: scale(1.15);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    text-align: center;
}

.why-choose {
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 168, 204, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: rotate(360deg) scale(1.1);
}

.why-icon svg {
    stroke: var(--secondary-color);
    transition: stroke var(--transition-normal);
}

.why-card:hover .why-icon svg {
    stroke: white;
}

.why-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.quote {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text-medium);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    transition: all var(--transition-fast);
    font-family: inherit;
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: none;
    font-size: clamp(0.95rem, 2vw, 1rem);
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, #1a4d7a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 168, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter .section-title,
.newsletter .section-description {
    color: white;
    position: relative;
}

.newsletter .section-title::after {
    background: white;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-fast);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    background: white;
}

.newsletter-input-group .btn {
    flex-shrink: 0;
}

.newsletter-form .form-message {
    color: white;
}

.newsletter-form .form-message.success {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-form .form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(1rem, 2vw, 1.05rem);
}

.contact-form-wrapper h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-form-wrapper .form {
    padding: clamp(2rem, 3vw, 2.5rem);
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 204, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: clamp(1.15rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.floating-quote-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    z-index: 999;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    animation: floatingPulse 3s ease-in-out infinite;
}

.floating-quote-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    animation: none;
}

.floating-quote-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-quote-text {
    white-space: nowrap;
}

@keyframes floatingPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 212, 255, 0.5);
    }
}

#quote ~ .floating-quote-btn {
    opacity: 0;
    pointer-events: none;
}

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    margin: 20px 20px 0 0;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.modal-body h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.modal-body h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-body ul, .modal-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (min-width: 480px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .nav ul {
        gap: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-input-group {
        flex-wrap: nowrap;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .stat-card {
        padding: 2.5rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 399px) {
    .hero-buttons {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        min-width: unset;
    }
    
    .nav ul {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .newsletter-input-group input,
    .newsletter-input-group .btn {
        width: 100%;
        min-width: unset;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .floating-quote-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .floating-quote-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -4px 0 20px rgba(30, 58, 95, 0.15);
        transition: right var(--transition-normal);
        z-index: 1000;
        padding-top: 80px;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 20px;
    }
    
    .nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        padding: 16px 12px;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav a::after {
        display: none;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(30, 58, 95, 0.5);
        backdrop-filter: blur(2px);
        display: none;
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .floating-quote-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .floating-quote-text {
        display: none;
    }

    .floating-quote-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-quote-btn svg {
        width: 24px;
        height: 24px;
        margin: 0;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media print {
    .header,
    .footer,
    .btn,
    .newsletter {
        display: none;
    }
    
    body {
        color: black;
    }
}

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

.service-card {
    animation: fadeInUp 0.6s ease-out;
}