/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================
   NEW: AI Animated Background Canvas Style
   ========================================= */
#ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places the canvas behind all content */
    /* Fallback background if JS fails to load */
    background: linear-gradient(to bottom, #0a0a2a, #000000);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    /* Changed for Dark Mode: Light text color */
    color: #e0e0e0;
    /* Changed: Transparent background so canvas shows through */
    background-color: transparent;
    scroll-behavior: smooth;
}

/* Base Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Changed for Dark Mode: Headings are white */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* Changed for Dark Mode: Paragraphs are light gray */
p {
    margin-bottom: 15px;
    color: #ccc;
}

a {
    text-decoration: none;
    /* Keep the bright blue accent for links, fits the neon vibe */
    color: #0077FF;
    transition: color 0.3s ease;
}

a:hover {
    /* Lighter cyan on hover for neon effect */
    color: #00f7ff;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #0077FF;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.3); /* Slight glow */
}

.btn-primary:hover {
    background-color: #005bbd;
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.6); /* Stronger glow on hover */
}

.btn-secondary {
    background-color: transparent;
    color: #0077FF;
    border: 2px solid #0077FF;
}

.btn-secondary:hover {
    background-color: rgba(0, 119, 255, 0.1); /* Subtle background tint */
    color: #00f7ff;
    border-color: #00f7ff;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

/* Header & Navigation */
header {
    /* Changed for Dark Mode: Semi-transparent dark background */
    background-color: rgba(10, 10, 42, 0.85);
    /* Blur effect for modern glassmorphism look */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 247, 255, 0.1); /* Subtle neon border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0077FF;
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.3); /* Logo glow */
}

nav .nav-links {
    display: flex;
    align-items: center;
}

nav .nav-links li {
    margin-left: 30px;
}

nav .nav-links a {
    /* Changed: Lighter text for dark header */
    color: #ccc;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    /* Active/Hover link gets neon cyan color */
    color: #00f7ff;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0077FF;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    /* Removed old background image to let animation show */
    background: transparent;
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 60vh;
    /* Added: Slight dark overlay to ensure text readability over animation */
    background: linear-gradient(to bottom, rgba(10,10,42,0.2), rgba(0,0,0,0.5));
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 119, 255, 0.5); /* Stronger glow for main title */
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255,255,255,0.9);
}

.hero-cta .btn {
    margin: 0 10px;
}

/* Section common styles */
section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* About Brief Section */
.about-brief {
    /* Removed light background color */
    background-color: transparent;
    text-align: center;
    padding: 60px 0;
}

.about-brief h2 {
    color: #0077FF;
    margin-bottom: 25px;
}

.about-brief p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.cta-section {
    margin-top: 40px;
}

/* Services Overview */
.services-overview {
    text-align: center;
}

.services-overview h2 {
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Common High-Tech Card Style (Services, Blog, Team, Industries) */
.service-card,
.blog-card,
.team-member-card,
.industry-card {
    /* Changed: Dark semi-transparent background */
    background-color: rgba(20, 20, 45, 0.6);
    /* Added blur filter */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    /* Added: Subtle glowing border */
    border: 1px solid rgba(0, 247, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: all 0.3s ease;
}

.service-card:hover,
.blog-card:hover,
.team-member-card:hover,
.industry-card:hover {
    transform: translateY(-5px);
    /* Brighter border and glow on hover */
    border-color: rgba(0, 247, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 247, 255, 0.15);
}

.service-card img,
.industry-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    /* Optional: Make icons glow slightly */
    filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.4));
}

/* Heading colors inside cards */
.service-card h3,
.blog-card .post-content h3,
.team-member-card h3,
.industry-card h3 {
    color: #00f7ff; /* Neon Cyan */
    margin-bottom: 10px;
}

/* Paragraph colors inside cards */
.service-card p,
.blog-card p,
.team-member-card p,
.industry-card p {
    font-size: 0.95rem;
    color: #ccc; /* Light Gray */
}

/* CTA Partner */
.cta-partner {
    /* Changed background to fit theme better, still distinct */
    background: linear-gradient(45deg, #0077FF, #003388);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 247, 255, 0.2);
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.cta-partner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-partner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.cta-partner .btn-primary {
    background-color: #fff;
    color: #0077FF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.cta-partner .btn-primary:hover {
    background-color: #f0f0f0;
}


/* Footer */
footer {
    /* Darker semi-transparent background */
    background-color: rgba(5, 5, 15, 0.9);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 247, 255, 0.1);
    color: #fff;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0077FF;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin-right: 25px;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00f7ff;
    text-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
}

.footer-social img {
    width: 30px;
    height: 30px;
    filter: invert(1) drop-shadow(0 0 2px rgba(255,255,255,0.3)); /* White icons with slight glow */
    transition: all 0.3s ease;
}

.footer-social a:hover img {
    /* Change to neon cyan on hover */
    filter: invert(0) sepia(1) saturate(5) hue-rotate(160deg) brightness(1.2) drop-shadow(0 0 8px rgba(0, 247, 255, 0.8));
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Page Specific Styles (About, Services, Industries, Join, Contact, Blog) */
.page-hero {
    /* Removed light background */
    background-color: transparent;
    text-align: center;
    padding: 80px 0 40px 0;
}

.page-hero h1 {
    font-size: 3rem;
    color: #00f7ff; /* Neon cyan title */
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
}

.page-hero p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* About Us Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 60px 0;
}

.about-content h2 {
    color: #0077FF;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #ccc;
}

.why-choose-list {
    margin-top: 20px;
}

.why-choose-list li {
    /* Changed: Dark background for list items */
    background-color: rgba(20, 20, 45, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 247, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid #0077FF;
    border-radius: 4px;
    font-size: 1.05rem;
    color: #e0e0e0;
}

.why-choose-list li strong {
    color: #00f7ff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member-card {
    text-align: center;
    /* Note: Background style is already covered by the common card style above */
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #0077FF;
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
}

/* Services Page */
.services-list {
    padding: 60px 0;
    display: grid;
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    /* Changed: Dark background */
    background-color: rgba(20, 20, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 247, 255, 0.15);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    gap: 25px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}
.service-item:hover {
      border-color: rgba(0, 247, 255, 0.4);
      box-shadow: 0 8px 30px rgba(0, 247, 255, 0.15);
}

.service-item img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    margin-top: 5px;
    filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.4));
}

.service-item h3 {
    color: #00f7ff;
    margin-bottom: 10px;
}

.service-item p {
    color: #ccc;
    font-size: 1rem;
}

/* Industries Page */
.industries-grid {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
/* Note: Industry card style is covered by common card style */


/* Join Form Section & Contact Section */
.join-form-section, .contact-section {
    padding: 60px 0;
}

.form-card {
    /* Changed: Dark background for form styles */
    background-color: rgba(20, 20, 45, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 247, 255, 0.2);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    max-width: 700px;
    margin: 0 auto;
    color: #e0e0e0;
}

.form-card h2 {
    text-align: center;
    color: #00f7ff;
    margin-bottom: 20px;
}

.form-card p {
    text-align: center;
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #00f7ff; /* Neon label color */
}

/* Form Inputs Styled for Dark Mode */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    /* Dark input background */
    background-color: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(0, 247, 255, 0.3);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #fff; /* Light text inside inputs */
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
    background-color: rgba(15, 15, 40, 0.9);
}
/* Placeholder color tweak */
::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}
/* Adjust success/error messages for dark mode visibility */
.form-message.success {
    background-color: rgba(21, 87, 36, 0.8);
    color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: rgba(114, 28, 36, 0.8);
    color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 60px 0;
}

.contact-info h2, .contact-form h2 {
    color: #00f7ff;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #ccc;
}

.contact-info a {
    font-weight: 500;
    color: #0077FF;
}
.contact-info a:hover {
    color: #00f7ff;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.map-container iframe {
    display: block;
    filter: invert(90%) hue-rotate(180deg); /* Optional: Makes Google Maps look "dark mode" */
}

/* Blog Page Styles */
.blog-posts {
    padding: 60px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    /* Note: Main card style covered by common card styles */
    overflow: hidden;
    padding: 0; /* Reset padding for image */
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.blog-card .post-content {
    padding: 25px;
}

.blog-card .post-meta {
    font-size: 0.9rem;
    color: #999; /* Lighter meta text */
    margin-bottom: 15px;
}


.blog-card .read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    color: #0077FF;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.blog-card .read-more-btn:hover {
    color: #00f7ff;
    text-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
}

/* Modal Styles (Updated for Dark Mode) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    /* Changed: Dark modal content background */
    background-color: rgba(20, 20, 45, 0.95);
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 5px 25px rgba(0, 247, 255, 0.2);
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #e0e0e0;
}

.modal-content img#modalImage {
    width: 100%;
    max-height: 300px;
    object-fit: cover