/* STREAMING_CHUNK:Setting up CSS variables and resets... /
/ ==========================================================================
Apex Dynamics Corporate Profile Stylesheet
Path: css/style.css
========================================================================== */

/* 1. Global Variables & Variables Reset */
:root {
--primary-bg: #0f172a;
--primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
--accent-blue: #2563eb;
--accent-blue-hover: #1d4ed8;
--accent-blue-light: #eff6ff;
--text-dark: #0f172a;
--text-muted: #64748b;
--text-light: #f8fafc;
--card-bg: #ffffff;
--body-bg: #f8fafc;
--border-color: #e2e8f0;
--radius-lg: 2.5rem;
--radius-md: 0.75rem;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
--font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
font-family: var(--font-family);
background-color: var(--body-bg);
color: var(--text-dark);
line-height: 1.5;
min-height: 100vh;
padding: 1.5rem;
}

/* Container */
.app-container {
max-width: 1280px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.25rem;
}

/* STREAMING_CHUNK:Styling Top Layer Header (75% / 25% Split)... /
/ ==========================================================================
2. TOP LAYER (Header Grid: Left 75% | Right 25%)
========================================================================== */
.top-layer {
display: grid;
grid-template-columns: 70% 30%;
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 2px solid var(--border-color);
box-shadow: var(--shadow-sm);
overflow:auto;
}

/* TOP LEFT (75% - Logo & Branding) */
.top-left-branding {
background: #ffffff;
color: var(--text-light);
padding: 2rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.top-left-branding img{
    max-height: 12rem;
    width:100%;
    object-fit: fill;
}

/* TOP RIGHT (25% - Address & Contact Info) */
.top-right-address {
background-color: #f8fafc;
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: center;
gap: 1rem;
border-left: 1px solid var(--border-color);
}

.info-card {
display: flex;
align-items: flex-start;
gap: 0.5rem;
}

.info-icon {
width: 2.5rem;
height: 2.5rem;
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
flex-shrink: 0;
}

.address-icon { background: #dbeafe; color: #2563eb; }
.phone-icon { background: #d1fae5; color: #059669; }
.email-icon { background: #e0e7ff; color: #4f46e5; }

.info-text {
font-size: 0.9rem;
line-height:1.2;
justify-content: center;
color: var(--text-muted);
}

.info-text strong {
color: var(--text-dark);
display: block;
font-size: 0.9rem;
}

.info-text address {
font-style: normal;
line-height: 1.2;
}

.sub-label {
display: block;
font-size: 0.65rem;
text-transform: uppercase;
font-weight: 700;
color: #94a3b8;
}

.info-text a {
color: var(--text-dark);
text-decoration: none;
font-weight: 600;
}

.info-text a:hover {
color: var(--accent-blue);
}

/* STREAMING_CHUNK:Styling Bottom Layer Layout (25% / 75% Split)... /
/ ==========================================================================
3. BOTTOM LAYER (Main Grid: Left 25% | Right 75%)
========================================================================== */
.bottom-layer {
display: grid;
grid-template-columns: 25% 74%;
gap: 1rem;
min-height: 520px;
}

/* BOTTOM LEFT (25% - Navigation Menu) */
.bottom-left-menu {
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
padding: 0.25rem;
display: flex;
flex-direction: column;
justify-content:space-around;
}

.menu-header {
display: flex;
align-items: center;
justify-content: space-around;
padding-top:0.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
color: var(--text-muted);
letter-spacing: 0.05em;
margin-bottom: 0.75rem;
}

.nav-list {
list-style: none;
display: flex;
flex-direction:column;
gap: 0.5rem;
}

.menu-link {
width: 100%;
display: flex;
align-items: center;
gap: 0.85rem;
padding: 0.5rem 0.5rem;
background: transparent;
border: none;
border-radius: var(--radius-md);
color: var(--text-muted);
font-size: 1.0rem;
font-weight: 500;
cursor: pointer;
text-align: left;
transition: all 0.2s ease;
}

.menu-link:hover {
background-color: var(--body-bg);
color: var(--text-dark);
}

.menu-link.active {
background-color: var(--accent-blue-light);
color: var(--accent-blue);
font-weight: 600;
border-right: 4px solid var(--accent-blue);
}

.nav-icon {
width: 1rem;
text-align: center;
}

/* Sidebar Bottom Box */
.sidebar-widget {
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}

.cert-box {
background: #f0f9ff;
border: 1px solid #bae6fd;
border-radius: var(--radius-md);
padding: 0.75rem;
display: flex;
align-items: center;
gap: 0.75rem;
}

.cert-icon {
color: var(--accent-blue);
font-size: 1.1rem;
}

.cert-box strong {
display: block;
font-size: 0.75rem;
color: var(--text-dark);
}

.cert-box p {
font-size: 0.68rem;
color: var(--text-muted);
}

.copyright {
font-size: 0.7rem;
color: #94a3b8;
text-align: center;
margin-top: 1rem;
}
/* STREAMING_CHUNK:Styling Top Layer Header (75% / 25% Split)... /

/ ==========================================================================
4. BOTTOM RIGHT (75% - Detailed Content Areas)
========================================================================== */
.bottom-right-content {
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
padding: 2rem;
}

.tab-content {
display: none;
animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
display: block;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}

.section-header {
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}

.category-badge {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
color: var(--accent-blue);
background: var(--accent-blue-light);
padding: 0.25rem 0.75rem;
border-radius: 1rem;
border: 1px solid #dbeafe;
}

.section-header h2 {
font-size: 1.5rem;
font-weight: 800;
color: var(--text-dark);
margin-top: 0.5rem;
}
.scroller-title {
  display: block; /* Allows block-level styling like margins and text-align */
  text-align: center;
  font-size: 1.5em;
  font-weight:bolder;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}
.image-scroller-container {
    width: 100%; 
    max-width: 400px; /* Adjust this to match your desired width */
    height: 230px;
    overflow: hidden; /* Hides the other 7 images */
    border-radius: 12px; /* Keeps a card-like aesthetic if desired */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    margin: 0 auto;
}

.image-scroller-track {
    display: flex;
    width: 800%; /* 8 images * 100% width each */
    height: 100%;
    transition: transform 0s cubic-bezier(); /* Smooth sliding effect */
}

.scroller-image {
    width: 12.5%; /* 100% divided by 8 images */
    height: 100%;
    max-height: 200px;
    object-fit: contain; /* Prevents image distortion */
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* ==========================================================================
5. Footer Image LAYER (No Grid)
========================================================================== */
.footer-layer {
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 2px solid var(--border-color);
box-shadow: var(--shadow-sm);
display: flex;
justify-content: center;
width: 100%;
overflow: hidden;
}

.footer-layer img {
  width: 100px;             /* Define your exact desired width */
  height: 100px;            /* Define your exact desired height */
  object-fit: contain;     /* Ensures images don't distort */
  flex-shrink: 0;          /* CRITICAL: Prevents images from squeezing/shrinking */
}

.footer-scroller-container {
    width: 100%; 
    max-width: 100%; /* Adjust this to match your desired width */
    height: 150px;
    overflow: hidden; /* Hides the other 7 images */
    border-radius: 12px; /* Keeps a card-like aesthetic if desired */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.footer-scroller-track {
    display: flex;
    width: 100%; /* 8 images * 100% width each */
    height: 100%;
    object-position: center;
    transition: transform 0s ease; /* Smooth sliding effect */
}

/* About Section */
.about-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 1.5rem;
margin-bottom: 2rem;
}

.about-text p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 1rem;
line-height: 1.6;
}

.metrics-row {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.metric-card {
background: var(--body-bg);
padding: 1rem;
border-radius: var(--radius-md);
border: 1px solid var(--border-color);
flex: 1;
}

.metric-card h3 {
font-size: 1.35rem;
font-weight: 800;
color: var(--text-dark);
}

.metric-card p {
font-size: 0.75rem;
margin: 0;
}

.quote-card {
background: var(--primary-bg);
color: #ffffff;
padding: 1.5rem;
border-radius: var(--radius-md);
display: flex;
flex-direction: column;
justify-content: space-between;
}

.subsection-title {
font-size: 1rem;
font-weight: 700;
margin-bottom: 1rem;
}

.pillars-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}

.pillar-card {
border: 1px solid var(--border-color);
padding: 1rem;
border-radius: var(--radius-md);
}

.pillar-icon {
width: 2.25rem;
height: 2.25rem;
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75rem;
}

.pillar-icon.blue { background: #dbeafe; color: #2563eb; }
.pillar-icon.green { background: #d1fae5; color: #059669; }
.pillar-icon.purple { background: #f3e8ff; color: #9333ea; }

.pillar-card h4 {
font-size: 0.9rem;
margin-bottom: 0.25rem;
}

.pillar-card p {
font-size: 0.9rem;
color: var(--text-muted);
}

/* Services Section */
.services-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.25rem;
}

.service-card {
border: 1px solid var(--border-color);
padding: 1.25rem;
border-radius: var(--radius-md);
transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-icon {
width: 2.5rem;
height: 2.5rem;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
margin-bottom: 1rem;
font-size: 1.1rem;
}

.icon-blue { background: #2563eb; }
.icon-indigo { background: #4f46e5; }
.icon-green { background: #059669; }
.icon-amber { background: #d97706; }

.service-card h3 {
font-size: 1.35rem;
margin-bottom: 0.5rem;
}

.service-card p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 0.4rem;
line-height: 1.5;
}

/* Portfolio Section */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.25rem;
}

.portfolio-card {
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
}

.portfolio-image {
height: 140px;
position: relative;
background: #0f172a;
}

.portfolio-image img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.7;
}

.portfolio-image .tag {
position: absolute;
top: 0.75rem;
left: 0.75rem;
background: rgba(15, 23, 42, 0.85);
color: #ffffff;
font-size: 0.65rem;
padding: 0.2rem 0.6rem;
border-radius: 1rem;
}

.portfolio-body {
padding: 1rem;
}

.portfolio-body h3 {
font-size: 1.35rem;
margin-bottom: 0.35rem;
}

.portfolio-body p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.portfolio-body ul{
    font-size: 0.9rem;
    font-weight: bold;
    list-style-type: none;
    color: var(--text-muted);
    padding-left: 10px;
}
.portfolio-body li{
    margin-left:7px;
    font-weight:lighter;
}
.portfolio-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.7rem;
border-top: 1px solid var(--border-color);
padding-top: 0.75rem;
}

.portfolio-footer a {
color: var(--accent-blue);
text-decoration: none;
font-weight: 600;
}

/* Team Section */
.team-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
}

.team-card {
text-align: center;
padding: 1.25rem;
background: var(--body-bg);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
}

.team-card img {
width: 4.5rem;
height: 4.5rem;
border-radius: 50%;
object-fit: cover;
margin-bottom: 0.75rem;
}

.team-card h3 {
font-size: 1.35rem;
}

.team-card .role {
font-size: 0.75rem;
color: var(--accent-blue);
font-weight: 600;
display: block;
margin-bottom: 0.5rem;
}

.team-card p {
font-size: 1rem;
color: var(--text-muted);
}

/* Contact Form */
.contact-form {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 600px;
}

.form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}

.form-group {
display: flex;
flex-direction: column;
gap: 0.35rem;
}

.form-group label {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
padding: 0.65rem 0.85rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
font-family: var(--font-family);
font-size: 0.8rem;
outline: none;
transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border-color: var(--accent-blue);
}

.submit-btn {
background: var(--accent-blue);
color: #ffffff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
align-self: flex-start;
transition: background 0.2s;
}

.submit-btn:hover {
background: var(--accent-blue-hover);
}

.form-status {
padding: 0.75rem;
background: #d1fae5;
color: #065f46;
border: 1px solid #a7f3d0;
border-radius: var(--radius-md);
font-size: 0.75rem;
margin-top: 1rem;
}

.hidden { display: none; }

/* STREAMING_CHUNK:Adding Responsive Media Queries... /
/ ==========================================================================
6. RESPONSIVE MEDIA QUERIES (Mobile and Tablet adaptivity)
========================================================================== */
@media (max-width: 900px) {
.top-layer {
grid-template-columns: 1fr;
}
.top-right-address {
border-left: none;
border-top: 1px solid var(--border-color);
}
.bottom-layer {
grid-template-columns: 1fr;
}
.brand-stats {
display: none;
}
}

@media (max-width: 640px) {
body {
padding: 0.75rem;
}
.about-grid, .pillars-grid, .services-grid, .portfolio-grid, .team-grid, .form-row {
grid-template-columns: 1fr;
}
.top-left-branding {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}

}