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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    /* Force light appearance for UA widgets (forms, scrollbars, etc.) */
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; /* solid white for maximum contrast */
    backdrop-filter: blur(0); /* disable blur to prevent translucency on dark mode */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* limit transitions */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    width: 230px;
    height: 230px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.nav-logo img:hover {

    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Ensure logo text is visible if present */
.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1f2937; /* force dark text in navbar */
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color); /* use brand color for visibility */
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* Increased padding to move title lower */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Blog grid layout */
.blog-section .services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 per row on desktop */
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .blog-section .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
    }
}

@media (max-width: 640px) {
    .blog-section .services-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    min-width: 140px;
    z-index: 1;
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    z-index: 3;
}

.floating-card:nth-child(2) {
    top: 45%;
    right: 10%;
    animation-delay: 2s;
    z-index: 2;
}

.floating-card:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
    z-index: 1;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch; /* Make all cards equal height per row */
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%; /* Stretch to the tallest card in the row */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    /* Keep same size as others; use border and shadow for emphasis */
    transform: none;
    z-index: 2; /* Ensure featured card is above others */
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 3; /* Ensure badge is visible */
}

.service-header {
    text-align: center;
    margin-bottom: 2rem;
}

.service-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1; /* Take remaining space */
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 500;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.service-card .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

.special-service {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 2rem; /* Add space above */
}

.special-service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.special-service-text h3 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.special-service-text p {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.special-service-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.special-service-text li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.special-service-text i {
    color: var(--primary-color);
}

.special-service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.special-service-visual i {
    font-size: 6rem;
    color: var(--primary-color);
    animation: heartbeat 2s ease-in-out infinite;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #374151;
    line-height: 1.6;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.about-description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 500;
}

.mission-text {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.7;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 400px;
}

.tech-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tech-item span {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-details p {
    color: #374151;
    line-height: 1.6;
    font-weight: 500;
}

.chatbot-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chatbot-section h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.chatbot-message {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
    font-weight: 500;
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
    background: #ffffff;
}

.chatbot-input input::placeholder {
    color: #6b7280;
    font-weight: 500;
}

/* Blog section styles */
.blog-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.blog-search {
    margin: 1.5rem 0 2rem;
}

.blog-search input[type="search"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #1f2937;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-search input[type="search"]::placeholder {
    color: #6b7280;
}

.blog-search input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Blog filter pills */
.blog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pill {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Blog meta (date + read time) */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}


.blog-card h3 {
    margin: 0 0 0.5rem;
}

.blog-card p {
    color: #374151;
    margin: 0 0 1rem;
}

/* Equalize blog cards */
.services-grid {
    align-items: stretch;
}
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; /* ensures consistent card height on desktop */
}
.blog-card .btn {
    margin-top: auto;
}

/* Clamp long titles and descriptions so heights stay consistent */
.blog-card h3 a {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card p {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-card {
        min-height: auto; /* let cards grow naturally on mobile */
    }
}

/* Article nav */
.article-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
    margin: 0 auto 2rem;
    max-width: 1000px;
}

.article-nav .prev-next {
    display: flex;
    gap: 0.75rem;
}

.article-nav .back-link {
    white-space: nowrap;
}

.chatbot-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chatbot-btn i {
    font-size: 1rem;
    color: white;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form p {
    color: #374151;
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #1f2937;
    background: #ffffff;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.newsletter-input input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-input .btn {
    background: var(--bg-dark);
    color: white;
}

.newsletter-input .btn:hover {
    background: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section li {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

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

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

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

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Scroll Animations: keep content visible by default (progressive enhancement) */
[data-aos] {
    opacity: 1; /* visible by default to avoid hidden content if JS fails */
    transform: none;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 140px; /* Even more padding for mobile */
        min-height: 90vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        color: var(--text-primary);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .floating-card {
        padding: 1rem;
        font-size: 0.875rem;
        min-width: 120px;
    }

    .floating-card:nth-child(1) {
        top: 5%;
        left: 2%;
        z-index: 3;
    }

    .floating-card:nth-child(2) {
        top: 40%;
        right: 5%;
        z-index: 2;
    }

    .floating-card:nth-child(3) {
        bottom: 10%;
        left: 15%;
        z-index: 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .service-card {
        margin: 0;
        padding: 1.5rem;
        max-width: 100%;
    }

    .service-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }

    .special-service {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .special-service-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .tech-item {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .container {
        padding: 0 1rem;
    }

    /* Fix chatbot button visibility on mobile */
    .chatbot-btn {
        background: var(--primary-color);
        color: white;
        border: 2px solid white;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

    .chatbot-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }

    .chatbot-btn i {
        color: white;
        font-size: 1.25rem;
    }

    /* Responsive logo sizing for mobile */
    .logo-img {
        width: 120px;
        height: 120px;
    }

    /* Fix mobile navigation menu visibility */
    .nav-menu {
        background-color: #1f2937; /* dark background */
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .nav-link {
        color: #ffffff; /* ensure links are visible on dark background */
        font-weight: 600;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background-color: rgba(99, 102, 241, 0.05);
    }

    .nav-menu .nav-link.active {
        color: var(--primary-color);
        background-color: rgba(99, 102, 241, 0.1);
    }

    /* Mobile toggle button color aligned with brand */
    .nav-toggle .bar {
        background: var(--primary-color);
        box-shadow: none;
    }

    .nav-toggle:hover .bar {
        background: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 150px; /* Maximum padding for very small screens */
    }

    .hero-container {
        padding-top: 1rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .floating-card {
        padding: 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
    }

    .floating-card:nth-child(1) {
        top: 3%;
        left: 1%;
        z-index: 3;
    }

    .floating-card:nth-child(2) {
        top: 35%;
        right: 2%;
        z-index: 2;
    }

    .floating-card:nth-child(3) {
        bottom: 8%;
        left: 10%;
        z-index: 1;
    }

    .floating-card i {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }

    .special-service {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 16px;
    }

    /* Ensure chatbot button is highly visible on small screens */
    .chatbot-btn {
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: white;
        border: 3px solid white;
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }

    .chatbot-btn i {
        font-size: 1.25rem;
        color: white;
    }

    /* Responsive logo sizing for very small screens */
    .logo-img {
        width: 100px;
        height: 100px;
    }

    /* Ensure mobile navigation is visible on very small screens */
    .nav-menu .nav-link {
        color: #ffffff; /* keep white text on dark bg */
        font-weight: 600;
        font-size: 1.1rem;
        padding: 1.25rem 0;
    }

    .nav-toggle .bar {
        background: var(--primary-color); /* brand color ensures contrast on white */
        width: 28px;
        height: 3px;
        margin: 4px 0;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Dark mode is intentionally disabled to keep a consistent light theme */

/* Loading animations */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.loading:nth-child(2) { animation-delay: 0.1s; }
.loading:nth-child(3) { animation-delay: 0.2s; }
.loading:nth-child(4) { animation-delay: 0.3s; }

/* Hover effects for interactive elements */
.interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Article typography */
.article-content {
    max-width: 820px;
    margin: 2rem auto 0;
    font-size: 1.06rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 0.75rem;
    color: #1f2937;
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.5rem;
    color: #1f2937;
}

.article-content p {
    margin: 0 0 1rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1rem 1.25rem;
}

.article-content li { margin: 0.25rem 0; }

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background: #f8fafc;
}

.article-content pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow: auto;
    margin: 1rem 0;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}
