/* --- Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #050505;
    --card-bg: #0c0c0c;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: #222222;
    --accent-blue: #00a2ff;
    --accent-yellow: #ffcc00;
    --accent-green: #00ff88;
    --accent-purple: #a855f7;
    --mono-font: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Background Grid & Glow --- */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, #111 1px, transparent 1px),
        linear-gradient(to bottom, #111 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
}

.glow-effect {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-weight: 700; font-size: 1.2rem; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s ease-in-out; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.contact-btn {
    background: white; color: black; padding: 8px 16px;
    border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 0.85rem;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    padding: 120px 20px 80px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.status-header {
    font-family: var(--mono-font);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; line-height: 1.1; margin-bottom: 25px; }

/* --- Shared Content Layout --- */
.content-section { padding: 60px 8%; text-align: center; }
.badge {
    display: inline-block; border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 20px; font-size: 0.7rem;
    color: var(--text-muted); margin-bottom: 40px; text-transform: uppercase;
}

.main-description { font-size: 1.8rem; max-width: 800px; margin: 0 auto 100px; }

.skills-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; text-align: left; align-items: center;
    max-width: 1100px; margin: 0 auto 120px;
}

.skills-section.reverse .feature-text { order: 2; }
.skills-section.reverse .feature-card { order: 1; }

.feature-text .category-tag {
    color: var(--text-muted); font-size: 0.8rem;
    border: 1px solid #333; padding: 4px 10px;
    border-radius: 4px; background: #111; display: inline-block; margin-bottom: 15px;
}

.feature-text h3 { font-size: 2.2rem; margin-bottom: 20px; }
.feature-text p { color: var(--text-muted); margin-bottom: 30px; max-width: 450px; }

.pill-container { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-container span {
    background: #111; border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; color: var(--text-muted);
}

/* --- Mockup Cards --- */
.feature-card, .process-card {
    background: #0d0d0d; border: 1px solid var(--border);
    border-radius: 12px; padding: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.card-header { font-size: 0.75rem; color: var(--text-muted); border-bottom: 1px solid #181818; padding-bottom: 15px; margin-bottom: 20px; }
.status-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #181818; font-size: 0.9rem; }
.status-row span.time { color: var(--text-muted); font-size: 0.8rem; }

/* Pipeline Visuals */
.pipeline-item { display: flex; gap: 15px; margin-bottom: 20px; position: relative; }
.pipeline-item:not(:last-child)::after {
    content: ''; position: absolute; left: 11px; top: 25px; height: 30px;
    width: 1px; border-left: 1px dashed #444;
}
.step-circle { width: 24px; height: 24px; border-radius: 50%; background: #222; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #888; }
.step-info { flex: 1; }
.step-top { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.step-box { background: #111; border: 1px solid #222; padding: 8px; border-radius: 6px; font-size: 0.75rem; color: #888; }

/* Process Grid Styles */
.process-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 25px; max-width: 1100px; margin: 0 auto 100px; text-align: left;
}
.process-card { padding: 40px; }
.step-label { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 10px; display: block; }
.visual-container {
    background: #080808; border: 1px solid #1a1a1a;
    border-radius: 12px; padding: 24px; min-height: 180px;
    display: flex; align-items: center; justify-content: center; margin-top: 20px;
}

/* Radar Animation */
.radar-circle {
    width: 80px; height: 80px; border-radius: 50%; border: 1px solid #222;
    position: relative; overflow: hidden; margin-right: 20px;
}
.radar-sweep {
    position: absolute; width: 100%; height: 100%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.3));
    animation: rotate 4s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Integration Visual */
.node-flow { display: flex; align-items: center; gap: 20px; }
.node { width: 50px; height: 50px; border: 1px solid #333; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #111; }
.line-connector { height: 1px; width: 40px; background: linear-gradient(to right, var(--accent-purple), transparent); }

/* --- Case Studies Slider --- */
.case-studies-section {
    padding: 100px 0;
    text-align: center;
    /* Removed horizontal padding from here as it will be managed by slider-container */
}

.slider-container {
    position: relative;
    max-width: 1650px; /* Set a specific max-width for better control */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 8% 60px; /* Add padding here to create space for arrows */
}

.case-slider-wrapper {
    display: flex;
    overflow-x: scroll; /* Changed from auto to scroll to ensure consistent behavior */
    scroll-snap-type: x mandatory;
    gap: 40px;
    padding: 0; /* Remove horizontal padding from here */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    width: 100%; /* Make it take full width inside padded container */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.case-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    transition: all 0.3s ease-in-out;
    -webkit-appearance: none; /* Remove default button styles for webkit */
    -moz-appearance: none;    /* Remove default button styles for mozilla */
    appearance: none;         /* Remove default button styles */
    outline: none;            /* Remove outline on focus */
}

.slider-arrow:hover {
    background-color: var(--card-bg);
    border-color: var(--accent-blue);
}

.slider-arrow.left {
    left: 0; /* Position at the very left of the padded container */
}

.slider-arrow.right {
    right: 0; /* Position at the very right of the padded container */
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.case-study-card {
    min-width: 850px;
    scroll-snap-align: center;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
    align-items: center;
}

.case-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.impact-list {
    list-style: none;
    margin-top: 25px;
}

.impact-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.impact-list li::before {
    content: "•";
    color: var(--text-main);
    font-weight: bold;
}

.drag-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 8% 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
	background-color: black;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; margin-bottom: 30px; }

.footer-col h4 { margin-bottom: 25px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 15px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease-in-out; }
.footer-col a:hover { color: white; }
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 40px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 950px) {
    .case-study-card {
        min-width: 90vw;
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .skills-section, .skills-section.reverse, .process-grid { grid-template-columns: 1fr; text-align: center; }
    .skills-section.reverse .feature-text, .skills-section.reverse .feature-card { order: unset; }
    .feature-text p { margin-left: auto; margin-right: auto; }
    .pill-container { justify-content: center; }
    .nav-links { display: none; }
    footer { grid-template-columns: 1fr 1fr; }
}
/* New media query to be added below */
@media (max-width: 600px) {
    .content-section {
        padding: 40px 5%;
    }
    .slider-container {
        padding: 20px 2% 60px;
    }
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .case-study-card {
        min-width: 95vw;
    }
}
/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}