/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #06b6d4;
    --accent-color: #14b8a6;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    --gradient-3: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 70px;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.75rem 15px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.625rem 12px;
        min-height: 55px;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover i {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 5rem;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 968px) {
    .hero {
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 130px !important;
        min-height: auto;
    }
    
    .hero-content {
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-title {
        margin-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px !important;
    }
    
    .hero-content {
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-title {
        margin-top: 0;
        padding-top: 0;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: 0;
        padding-top: 0;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover,
.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-image {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        border-radius: 12px;
    }
}

.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.gallery-image.active {
    opacity: 1;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.card-icon {
    font-size: 2.5rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

section:first-of-type {
    padding-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--bg-light);
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* Disable all entry animations for services section */
.services .section-header,
.services .section-title,
.services .section-subtitle,
.services .services-grid,
.services .service-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
}

/* Keep hover effects working */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-xl) !important;
}

.service-image img {
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    font-size: 2rem;
    margin: 1.5rem 2.5rem 1rem;
    display: inline-block;
    color: var(--primary-color);
}

.service-icon i {
    color: var(--primary-color);
}

.service-card h3 {
    padding: 0 2.5rem;
}

.service-card p {
    padding: 0 2.5rem;
}

.service-features {
    padding: 0 2.5rem 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Technologies Section */
.technologies {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.tech-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.tech-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.technologies .container {
    position: relative;
    z-index: 1;
}

.tech-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-slider-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 2;
    flex-shrink: 0;
    min-width: 50px;
    min-height: 50px;
}

.tech-slider-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.tech-slider-btn:active {
    transform: scale(0.95);
}

.tech-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.tech-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.tech-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 150px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.tech-item:hover {
    background: var(--gradient-1);
    box-shadow: var(--shadow-lg);
}

.tech-item:hover .tech-icon,
.tech-item:hover span {
    color: white;
}

.tech-item:hover .tech-icon i {
    color: white !important;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.tech-icon i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.tech-item span {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.75rem;
    }
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 35px;
    height: 35px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.feature-icon i {
    color: white;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-extra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.extra-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.extra-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    color: var(--primary-color);
}

.extra-icon i {
    color: var(--primary-color);
}

.extra-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.extra-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .contact-info h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

.info-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.3s ease;
}

.form-group.success input,
.form-group.success textarea {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group textarea {
    resize: vertical;
    padding-right: 3rem;
}

.form-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-group textarea ~ .form-icon {
    top: 1.5rem;
    transform: none;
}

.form-icon-valid {
    color: #10b981;
}

.form-icon-invalid {
    color: #ef4444;
}

.form-group.success .form-icon-valid {
    opacity: 1;
}

.form-group.error .form-icon-invalid {
    opacity: 1;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-height: 1.5rem;
}

.form-group.error .form-error {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    display: none;
    animation: slideDownMessage 0.3s ease;
}

.form-message.loading {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #0ea5e9;
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #10b981;
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #ef4444;
}

.form-message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.form-message-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.form-message.loading .form-message-icon {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.form-message.success .form-message-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.form-message.error .form-message-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.form-message-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.6;
}

.form-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.form-success-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

@keyframes slideDownMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section:first-child {
    text-align: left;
}

.footer-section {
    text-align: left;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a,
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section a:hover,
.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .hero {
        padding-bottom: 3rem;
        min-height: auto;
        padding-top: 120px;
    }

    .hero .container,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        z-index: 2;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-image {
        z-index: 1;
        height: 400px;
    }

    .services {
        margin-top: 0;
    }

    .about-left {
        order: -1;
    }

    .about-image {
        height: 300px;
    }

    .about-extra {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-top: 0;
        padding-top: 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 1.5rem 0;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 60px);
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-link {
        justify-content: center;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .tech-slider-wrapper {
        gap: 0.75rem;
    }

    .tech-slider-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        min-width: 48px;
        min-height: 48px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: 130px !important;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 0;
        padding-top: 0;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        height: 300px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        margin-bottom: 0;
    }

    .about-extra {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-image {
        height: 250px;
    }

    .tech-slider-wrapper {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
    }

    .tech-slider-container {
        order: 2;
        flex: 1;
    }

    .tech-slider-btn {
        position: static;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 1.3rem;
        min-width: 45px;
        min-height: 45px;
        flex-shrink: 0;
    }

    .tech-slider-btn.prev {
        order: 1;
    }

    .tech-slider-btn.next {
        order: 3;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section:first-child {
        text-align: center;
    }

    .nav-brand .logo {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 35px;
    }

    .navbar .container {
        padding: 0.75rem 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding-top: 120px !important;
        padding-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-top: 0;
        padding-top: 0;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-image {
        height: 250px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .about-extra {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-image {
        height: 200px;
    }

    .tech-slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        min-width: 42px;
        min-height: 42px;
    }
    
    .tech-slider-wrapper {
        gap: 0.5rem;
    }

    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .tech-icon {
        font-size: 1.75rem;
    }

    .service-card {
        border-radius: 12px;
    }

    .service-image {
        height: 150px;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem 2.25rem 0.75rem 0.75rem;
        font-size: 0.9rem;
    }

    .form-icon {
        right: 0.75rem;
        font-size: 1.1rem;
    }

    .form-message {
        padding: 1.25rem;
        font-size: 0.9rem;
    }

    .form-message-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .form-loader {
        width: 40px;
        height: 40px;
    }

    .nav-brand .logo {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 30px;
    }

    .navbar .container {
        padding: 0.625rem 12px;
    }

    .nav-menu {
        top: 55px;
        padding: 1.25rem 0;
        max-height: calc(100vh - 55px);
    }
    
    .hamburger {
        min-width: 40px;
        min-height: 40px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
        margin-top: 0;
        padding-top: 0;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        top: 55px;
        padding: 1rem 0;
        max-height: calc(100vh - 55px);
    }
    
    .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hamburger {
        min-width: 36px;
        min-height: 36px;
        padding: 0.375rem;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .nav-brand .logo {
        font-size: 1rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 100px !important;
        padding-bottom: 2rem;
    }

    .hero-image {
        height: 250px;
    }

    section {
        padding: 2.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .tech-slider-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .modal-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Modal Responsive Styles */
@media (max-width: 968px) {
    .modal-content {
        max-width: 95%;
        padding: 2.5rem;
    }

    .modal-body h2 {
        font-size: 2rem;
    }

    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .timeline-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .methodology-grid,
    .support-grid,
    .blog-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .timeline-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        padding: 1.5rem 1rem 2rem;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding-top: 0.5rem;
    }

    .modal-body h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .modal-body h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .modal-body p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .process-timeline {
        padding-left: 1.5rem;
    }

    .process-timeline::before {
        left: 0.75rem;
        width: 2px;
    }

    .timeline-number {
        left: -1.25rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .timeline-features {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .timeline-features span {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .methodology-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .methodology-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .methodology-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .methodology-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .stat-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .timeline-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-phase {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .phase-header {
        margin-bottom: 0.75rem;
    }

    .phase-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .phase-number {
        font-size: 1.5rem;
    }

    .timeline-phase h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .phase-duration {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .timeline-phase p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .timeline-note {
        padding: 1.25rem;
        border-radius: 10px;
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-note i {
        font-size: 1.25rem;
        margin-top: 0;
    }

    .timeline-note p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .support-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .support-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .support-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .support-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .support-detail-item {
        padding: 0.625rem;
        font-size: 0.85rem;
    }

    .support-contact {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }

    .support-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .support-contact-item i {
        font-size: 1.75rem;
        width: 45px;
        height: 45px;
    }

    .support-contact-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .support-contact-item p {
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .blog-card {
        border-radius: 12px;
    }

    .blog-card-image {
        height: 120px;
        font-size: 2.5rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .blog-card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .blog-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .blog-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-section-item {
        padding: 1.25rem;
    }

    .blog-section-item i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .blog-section-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .blog-section-item p {
        font-size: 0.85rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .case-study-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .case-header {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .case-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .case-study-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .case-challenge,
    .case-solution {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .case-challenge strong,
    .case-solution strong {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .case-challenge p,
    .case-solution p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .result-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 1rem;
        gap: 0.75rem;
    }

    .faq-question i.fa-question-circle {
        font-size: 1.1rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .faq-toggle {
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.6;
        padding-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100%;
        padding: 1.25rem 0.75rem 1.75rem;
        border-radius: 0;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }

    .modal-body {
        padding-top: 0.5rem;
    }

    .modal-body h2 {
        font-size: 1.35rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }

    .modal-body h3 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.625rem;
        line-height: 1.4;
    }

    .modal-body p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
    }

    .process-timeline {
        padding-left: 1.25rem;
    }

    .process-timeline::before {
        left: 0.625rem;
        width: 2px;
    }

    .timeline-number {
        left: -1rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
        border-radius: 8px;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .timeline-features {
        gap: 0.625rem;
        margin-top: 0.625rem;
    }

    .timeline-features span {
        padding: 0.35rem 0.625rem;
        font-size: 0.8rem;
    }

    .methodology-card,
    .support-card,
    .case-study-card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .methodology-card-icon,
    .support-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .methodology-card h3,
    .support-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }

    .methodology-card p,
    .support-card p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
    }

    .stat-badge {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }

    .timeline-phase {
        padding: 1rem;
        border-radius: 8px;
    }

    .phase-header {
        margin-bottom: 0.625rem;
    }

    .phase-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .phase-number {
        font-size: 1.25rem;
    }

    .timeline-phase h3 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .phase-duration {
        font-size: 0.8rem;
        margin-bottom: 0.625rem;
    }

    .timeline-phase p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .timeline-note {
        padding: 1rem;
        border-radius: 8px;
        gap: 0.625rem;
    }

    .timeline-note i {
        font-size: 1.1rem;
    }

    .timeline-note p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .support-detail-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .support-contact {
        padding: 1rem;
        gap: 0.875rem;
    }

    .support-contact-item i {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .support-contact-item h4 {
        font-size: 0.9rem;
    }

    .support-contact-item p {
        font-size: 0.8rem;
    }

    .blog-card-image {
        height: 100px;
        font-size: 2rem;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-card-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .blog-card-content p {
        font-size: 0.8rem;
        margin-bottom: 0.625rem;
    }

    .blog-meta {
        font-size: 0.75rem;
        gap: 0.625rem;
    }

    .blog-section-item {
        padding: 1rem;
    }

    .blog-section-item i {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }

    .blog-section-item h4 {
        font-size: 0.95rem;
    }

    .blog-section-item p {
        font-size: 0.8rem;
    }

    .case-header {
        margin-bottom: 0.875rem;
    }

    .case-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .case-study-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .case-challenge,
    .case-solution {
        padding: 0.75rem;
    }

    .case-challenge strong,
    .case-solution strong {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .case-challenge p,
    .case-solution p {
        font-size: 0.8rem;
    }

    .result-item {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }

    .faq-question {
        padding: 0.875rem;
        gap: 0.625rem;
    }

    .faq-question i.fa-question-circle {
        font-size: 1rem;
    }

    .faq-question h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .faq-toggle {
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 0 0.875rem 0.875rem;
    }

    .faq-answer p {
        font-size: 0.8rem;
        line-height: 1.5;
        padding-top: 0.625rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .modal {
        padding: 0;
    }
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal.active {
        align-items: flex-start;
        padding: 0;
    }
}

.modal:not(.active) {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

body.modal-open {
    overflow: hidden !important;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 3rem;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        padding: 1.5rem 1rem 2rem;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.25rem 0.75rem 1.75rem;
    }
}

.modal.active .modal-content {
    animation: slideUp 0.3s ease;
}

.modal:not(.active) .modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.75rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }
}

.modal-body {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .modal-body {
        padding-top: 0.5rem;
    }
}

.modal-body h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Process Timeline Styles */
.process-timeline {
    position: relative;
    padding-left: 3rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-number {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-features span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-features i {
    color: var(--primary-color);
}

/* Methodology Grid Styles */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.methodology-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.methodology-card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.methodology-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.methodology-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.methodology-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stat-badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-badge i {
    color: var(--primary-color);
}

/* Timeline Horizontal Styles */
.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-phase {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.phase-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.phase-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

.timeline-phase h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.phase-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.phase-progress {
    height: 6px;
    background: var(--gradient-1);
    border-radius: 3px;
    margin-bottom: 1rem;
}

.timeline-phase p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-note {
    background: #e0f2fe;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
}

.timeline-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.timeline-note p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Support Grid Styles */
.support-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.support-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.support-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.support-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.support-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.support-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.support-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.support-detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.support-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.support-contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
}

.support-contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.support-contact-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Case Studies Grid Styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.case-study-card.featured {
    background: var(--gradient-1);
    color: white;
    border-left: 5px solid white;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.case-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.case-study-card.featured .case-icon {
    background: rgba(255, 255, 255, 0.3);
}

.case-stats {
    display: flex;
    gap: 1rem;
}

.case-stat {
    text-align: right;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.case-study-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.case-study-card.featured h3 {
    color: white;
}

.case-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-challenge,
.case-solution {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.case-study-card:not(.featured) .case-challenge,
.case-study-card:not(.featured) .case-solution {
    background: white;
}

.case-challenge strong,
.case-solution strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.case-study-card.featured .case-challenge strong,
.case-study-card.featured .case-solution strong {
    color: white;
}

.case-challenge p,
.case-solution p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.case-study-card.featured .case-challenge p,
.case-study-card.featured .case-solution p {
    color: rgba(255, 255, 255, 0.9);
}

.case-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-card:not(.featured) .result-item {
    background: white;
    color: var(--primary-color);
}

.case-study-card.featured .result-item {
    color: white;
}

.result-item i {
    color: var(--primary-color);
}

.case-study-card.featured .result-item i {
    color: white;
}

/* FAQ Accordion Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i.fa-question-circle {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    padding-top: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Advanced Scroll Animations */
.section-scrolling-to {
    animation: sectionPulse 0.6s ease-out;
}

@keyframes sectionPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth transitions for all animatable elements */
.service-card,
.tech-item,
.feature-item,
.stat-item,
.extra-card,
.about-image,
.contact-form,
.contact-info,
.section-header,
.section-title,
.section-subtitle {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Enhanced hover effects with animations */
.service-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feature-item:hover {
    transform: translateX(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.extra-card:hover {
    transform: translateY(-5px) rotate(-2deg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Prevent animation on services section (as per user requirement) */
.services .section-header,
.services .section-title,
.services .section-subtitle,
.services .service-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Smooth scroll indicator */
html {
    scroll-behavior: smooth;
}

/* 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;
    }
}

/* Global Responsive Rules */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all images are responsive */
.service-image img,
.about-image img,
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prevent horizontal scroll */
* {
    max-width: 100%;
}

/* Ensure text doesn't overflow */
p, h1, h2, h3, h4, h5, h6, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

