/* =====================================
   GLOBAL STYLES & CSS VARIABLES
   ===================================== */
:root {
    --bg-dark: #0a0f1e;
    --bg-card: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-gradient: linear-gradient(90deg, #3b82f6, #8b5cf6);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Futuristic Floating Blob Animation */
.blob {
    position: fixed;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--text-secondary);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    gap: 1.5rem;
}

.grid-3-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }


/* =====================================
   HERO SECTION
   ===================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(10,15,30,0.8) 0%, rgba(10,15,30,1) 70%), 
              url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23111827" fill-opacity="0.4"><circle fill="%23111827" cx="50" cy="50" r="3"/><circle cx="0" cy="50" r="3"/><circle cx="100" cy="50" r="3"/><circle cy="0" cx="50" r="3"/><circle cy="100" cx="50" r="3"/></g></svg>');
    background-attachment: fixed; /* Parallax effect */
}

.hero-content {
    max-width: 800px;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #a7c5ff, #e0d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--bg-card);
    transform: translateY(-3px);
}

/* =====================================
   CONTENT SECTIONS
   ===================================== */
.content-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

#about { border-top: 1px solid var(--border-color); }
#contact { border-bottom: none; }

/* Capability Cards */
.capability-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.capability-card h3 {
    font-size: 1.1rem;
}
.capability-card:hover {
    transform: translateY(-5px);
    background-color: #1f2937;
}

/* Industry Icons */
.icon-grid {
    gap: 2rem;
}
.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.industry-item i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.industry-item span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Why BitCare Cards */
.why-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.why-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8b5cf6;
}
.why-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.why-card p {
    font-size: 0.9rem;
}

/* Project Highlights Scroll Gallery */
.scroll-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem; /* For scrollbar space */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.scroll-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    scroll-snap-align: start;
}
.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.project-card h4, .project-card p {
    padding: 0 1.5rem;
}
.project-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.project-card p {
    padding-bottom: 1.5rem;
}


/* Certifications & Partners Logos */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.logo-item {
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}
.logo-item:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    display: grid;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.contact-form input, .contact-form select, .contact-form textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}
.contact-form button {
    justify-self: start;
    border: none;
    cursor: pointer;
}

/* =====================================
   FOOTER
   ===================================== */
#footer {
    background-color: #060912;
    padding: 2rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-left p {
    margin: 0;
}
.tagline {
    font-size: 0.9rem;
    font-style: italic;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-right a:hover {
    color: var(--text-primary);
}
.footer-right i {
    font-size: 1.2rem;
}

/* =====================================
   ANIMATIONS & RESPONSIVENESS
   ===================================== */
/* Fade-in animations */
.fade-in { animation: fadeIn 1s ease-in-out forwards; }
.fade-in-delay-1 { animation: fadeIn 1s 0.3s ease-in-out forwards; }
.fade-in-delay-2 { animation: fadeIn 1s 0.6s ease-in-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-based animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Notification Styles */
.form-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.form-notification.success {
    border-left: 4px solid #10B981;
}

.form-notification.error {
    border-left: 4px solid #EF4444;
}

.form-notification.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.form-notification button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
}

.form-notification button:hover {
    color: var(--text-primary);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .content-section { padding: 4rem 1rem; }
    .scroll-gallery { grid-auto-columns: 90%; }
    .footer-content { flex-direction: column; text-align: center; }
    
    .form-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}
