/* 
   CAA Information Management - Premium Dark Theme 
   Palette: Deep Navy & Neon Cyan
*/

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #06b6d4;
    /* Cyan-500 */
    --primary-glow: rgba(6, 182, 212, 0.4);
    --accent: #38bdf8;
    /* Sky-400 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --nav-height: 80px;

    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #bfdbfe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bg-v2.png');
    background-size: cover;
    background-position: center;
    margin-top: -var(--nav-height);
    /* Pull up behind transparent nav */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
    position: relative;
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-col-narrow {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

/* About Section */
.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    background-image: url('assets/hero-bg-v2.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.1;
    z-index: 0;
}

.feature-icon-large {
    color: var(--primary);
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list li i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Contact */
.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    color: #fff;
}

.info-item a,
.info-item p {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    /* Fix width issues */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Methodology Timeline */
.methodology-timeline {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 1.5rem;
    max-width: 100%;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-circle {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    transition: var(--transition);
}

.timeline-step:hover .step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.5), rgba(6, 182, 212, 0.1));
    margin: 0 5px;
    margin-bottom: 1.5rem;
    /* Align with circle center (approx) */
}

/* Tech Stack Grid */
.tech-stack-section {
    margin-top: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tech-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

.tech-item i {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}



.subsection-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.badgje-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-automotive {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.badge-fmcg {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.badge-gov {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.badge-mf {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
}

.badge-agri {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.badge-care {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

/* Amber */

.project-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-tags li {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-2-col,
    .grid-2-col-narrow {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* JS will toggle this */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-sub {
        font-size: 1.1rem;
    }
}