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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #374151;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #1d4ed8, #1e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: #1d4ed8;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline-block;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #1d4ed8;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.mobile-menu .btn {
    margin-top: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: #1d4ed8;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: white;
    color: #1f2937;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-white {
    background: white;
    color: #1d4ed8;
    border: 1px solid white;
}

.btn-white:hover {
    background: #f3f4f6;
}

.btn i:last-child {
    transition: transform 0.3s ease;
}

.btn:hover i:last-child {
    transform: translateX(4px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    content-visibility: auto;
    contain-intrinsic-size: 800px 600px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.hero-text {
    max-width: 48rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    margin-bottom: 1.5rem;
}

.hero-badge p {
    color: #93c5fd;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 1.5rem;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-section h1 {
        font-size: 3.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 4.5rem;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid #4b5563;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

/* Services Section */
.services-section {
    background: #f9fafb;
}

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

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

.service-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 320px 300px;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

.service-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent);
}

.service-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #1d4ed8;
    padding: 0.75rem;
    border-radius: 0.5rem;
    z-index: 10;
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
    color: #1d4ed8;
}

.service-content p {
    color: #6b7280;
    line-height: 1.75;
}

/* Portfolio Section */
.portfolio-section {
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 380px;
}

.portfolio-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

.portfolio-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111827, rgba(17, 24, 39, 0.5), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 0.4;
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1d4ed8;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-content h3 {
    color: #1d4ed8;
}

.portfolio-content p {
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Team Section */
.team-section {
    background: #f9fafb;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 360px 320px;
}

.team-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

.team-avatar {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #dbeafe;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: #93c5fd;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.team-card:hover h3 {
    color: #1d4ed8;
}

.team-role {
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: #1d4ed8;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    transition: all 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 240px;
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.25rem;
}

blockquote {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: #1d4ed8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid #dbeafe;
}

.author-name {
    font-weight: 700;
    color: #111827;
}

.author-role {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Contact Section */
.contact-section {
    background: #f9fafb;
}

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

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-wrapper {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 100%;
    color: #374151;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    line-height: 1.5;
    min-height: 48px;
}

.form-group select.empty {
    color: #9ca3af;
}

.form-group select option {
    color: #374151;
    padding: 0.5rem;
    background-color: #fff;
}

.form-group select option:first-child {
    color: #9ca3af;
}

.form-group select option:not(:first-child) {
    color: #374151;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.contact-info-intro p {
    color: #6b7280;
    line-height: 1.75;
}

.contact-info-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    background: #dbeafe;
    padding: 0.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.info-icon i {
    color: #1d4ed8;
    font-size: 1.5rem;
}

.info-content h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.info-content a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #1d4ed8;
}

.info-content p {
    color: #6b7280;
}

.cta-card {
    background: #1d4ed8;
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cta-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-about p {
    color: #9ca3af;
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 28rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #60a5fa;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: #60a5fa;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-contact span {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #111827;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
