 /* ===== CASE STUDIES SECTION STARTS HERE ===== */
:root {
    --me-blue: #0066ff;
    --me-light-blue: #d0e2ff; 
    --me-border: #e2e8f0;
}

.inkbytes-container {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.title-portfolio {
    padding-top: 70px;   /* push below fixed menu */
}

.me-row {
    display: flex;
    width: 100%;
    background-color: var(--me-border);
    gap: 1px;
    margin-bottom: 1px;
    /* Changed to stretch to prevent height recalculation jitters */
    align-items: stretch; 
    overflow: hidden;
}

.me-card {
    flex: 1;
    background: #fff;
    padding: 30px 25px; 
    height: 340px; 
    position: relative;
    overflow: hidden;
    /* Hardware acceleration to stop shaking */
    transform: translateZ(0);
    will-change: flex, background-color; 
    backface-visibility: hidden;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Logic for Default Open Cards */
.me-card.active-default {
    flex: 1.5;
    background-color: var(--me-blue);
}

.me-card.active-default .card-title,
.me-card.active-default .badge {
    color: #ffffff !important;
}

.me-card.active-default .card-expanded-content {
    opacity: 1;
    visibility: visible;
}

.me-card.active-default .hover-icon svg {
    stroke: var(--me-light-blue) !important;
    transform: scale(1.1) translate(-10px, -10px);
    opacity: 0.3;
}

/* Hover Logic: Shrink default card when another is hovered */
.me-row:hover .me-card.active-default:not(:hover) {
    flex: 0.75;
    background-color: #fff;
}

.me-row:hover .me-card.active-default:not(:hover) .card-title {
    color: #111 !important;
}

.me-row:hover .me-card.active-default:not(:hover) .badge {
    color: #ffffff !important;
    background-color: var(--me-blue);
}

.me-row:hover .me-card.active-default:not(:hover) .card-expanded-content {
    opacity: 0;
    visibility: hidden;
}

/* Hover Logic: Standard Hover Effects */
.me-row:hover .me-card:not(:hover) {
    flex: 0.75;
}

.me-row .me-card:hover {
    flex: 1.5;
    background-color: var(--me-blue);
    z-index: 5;
}

.badge { 
    align-self: flex-start; /* Keeps badge from stretching */
    background: var(--me-blue);
    color: #ffffff !important;
    padding: 4px 14px; 
    font-size: 0.9rem !important; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px; 
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-title { 
    font-size: 1.35rem; 
    font-weight: 700;
    color: #111; 
    margin-top: 25px;
    transition: color 0.3s ease; 
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.card-expanded-content {
    position: relative; 
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    /* Added a slight delay to opacity to let the flex expand first */
    transition: opacity 0.3s ease-in-out; 
    z-index: 2;
}

.me-card:hover .card-expanded-content {
    opacity: 1;
    visibility: visible;
}

.card-expanded-content h4 { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    margin-bottom: 2px;
    color: #fff;
}

.card-expanded-content p { 
    font-size: 0.9rem; 
    line-height: 1.3; 
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.card-expanded-content li { 
    font-size: 0.85rem; 
    margin-bottom: 2px; 
    color: #fff;
}

/* SVG ICON */
.hover-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    pointer-events: none;
}

.hover-icon svg {
    width: 170px;
    height: 170px;
    stroke: var(--me-light-blue);
    fill: none;
    stroke-width: 1px;
    transition: transform 0.5s ease, opacity 0.5s ease; 
}

.me-card:hover .hover-icon svg {
    stroke: var(--me-light-blue) !important;
    transform: scale(1.1) translate(-10px, -10px);
    opacity: 0.3; 
}

.me-card:hover .card-title { 
    color: #ffffff !important; 
}
 /* ===== CASE STUDIES SECTION ENDS HERE ===== */


 /* =====  SUBTLE HOVER LINE===== */

 :root {
  --primary-blue: #002366; /* Dark Blue */
  --secondary-blue: #e6f0ff;
  --text-dark: #333;
  --text-light: #555;
  --white: #fff;
}


.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 50px;
}

/* ===============================
   SKILLS SECTION – LIGHT THEME
================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* FORCE 4 cards */
  gap: 24px;
}

.skill-card {
  position: relative;
  padding: 32px;
  min-height: 220px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e6eef8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 82, 204, 0.15);
}

.skill-card h3 {
  color: #003a8f;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.skill-card p {
  color: #334155;
  max-width: 85%;
  line-height: 1.5;
}

/* SVG watermark */
.card-icon {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 140px;
  height: 140px;

  stroke: #1e5eff;
  stroke-width: 2;
  fill: none;

  opacity: 0.08;
  transition: transform 0.4s ease;
}

.skill-card:hover .card-icon {
  transform: scale(1.1) rotate(3deg);
}

.skills-section {
  padding: 80px 0;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1e5eff;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===============================
 PROCESS TIMELINE STARTS HERE
================================ */

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

/* The connecting line behind steps */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #1e5eff, #3b82f6);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-icon {
  width: 90px;
  height: 90px;
  background: #1a2b4b;;       
  border: 3px solid #1e5eff; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ffffff !important; 
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(30, 94, 255, 0.35);
}

/* Service Status Widget */
.status-widget {
    display: inline-flex;
    align-items: center;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #64ffda;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #64ffda;
    animation: pulse 2s infinite;
}

/* Under Development Ribbon */
.dev-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
/* ===============================
    PROCESS TIMELINE ENDS HERE
================================ */

/* ===============================
 ENTERPRISE SECTION STARTS HERE
================================ */
/* --- Root Variables --- */

/* ===============================
   Inkbytes Technologies – Bento Grid
   Enterprise Polished Version
=============================== */


/* Container */
.inkbytes-tech-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

/* Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: 22px;
}

/* ===============================
   Bento Card – Premium Glass Style
=============================== */
.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85); /* Glass effect */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1.5px solid #1e3a8a;
    border-radius: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;
    overflow: hidden;

    transition: 
        background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.04);
}

/* Hover – Glow without movement */
.bento-card:hover {
    background: rgba(248, 250, 252, 0.96);
    border-color: #2563eb;
    border-width: 2px;

    box-shadow:
        0 0 30px rgba(37, 99, 235, 0.18),
        inset 0 0 10px rgba(37, 99, 235, 0.05);
}

/* ===============================
   Icon Styling
=============================== */
.bento-card svg,
.bento-card img {
    width: 75px !important;
    height: 75px !important;
    margin-bottom: 14px;
    z-index: 2;

    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
    transition: transform 0.3s ease;
}

.bento-card:hover svg,
.bento-card:hover img {
    transform: scale(1.05);
}

/* ===============================
   Label Text
=============================== */
.bento-card .label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: -0.005em;
    z-index: 2;
    transition: color 0.3s ease;
}

.bento-card:hover .label {
    color: #2563eb;
}

/* ===============================
   Light Sweep Animation
=============================== */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.08),
        transparent
    );

    transition: left 0.6s ease;
    z-index: 1;
}

.bento-card:hover::before {
    left: 100%;
}

/* ===============================
   Accessibility Focus
=============================== */
.bento-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

/* ===============================
   Grid Mapping
=============================== */
.aws-block {
    grid-column: span 2;
    grid-row: span 2;
}

.drupal-pillar {
    grid-column: span 1;
    grid-row: span 2;
}

.office-wide {
    grid-column: span 2;
}


/* ===============================
 ENTERPRISE SECTION ENDS HERE
================================ */



/* ===============================
    CTA SECTION STARTS HERE
================================ */
/* --- Digital Silk Premium CTA (Square & Flush) --- */
.portfolio-cta {
    position: relative;
    width: 100%;
    height: 240px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0; 
    background: #002244; 
}

/* THE GRAPHIC: Layered Silk Waves */
.cta-silk-graphic {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(125deg, #003366 0%, #002244 40%, #0055aa 50%, #002244 60%, #001122 100%);
    background-size: 200% 200%;
    animation: waveMove 8s ease-in-out infinite alternate;
    opacity: 0.8;
}

/* Minimal sheen overlay */
.portfolio-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    z-index: 2;
    pointer-events: none;
}

@keyframes waveMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.portfolio-cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 30px 20px 0 20px;
}

.portfolio-cta-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.portfolio-cta-content p {
    font-size: 1.1rem;
    color: #b0c4de;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- The Modern Solid Button --- */
.portfolio-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #0077ff;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 119, 255, 0.4);
}

.portfolio-cta-btn:hover {
    background: #ffffff;
    color: #0077ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}
/* ===============================
    CTA SECTION ENDS HERE
================================ */

/* ===============================
   MEDIA QUERY STARTS HERE
================================ */

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .me-row {
        flex-direction: column !important;
        background-color: transparent !important;
        gap: 15px !important;
    }

    .me-card {
        flex: none !important;
        width: 100% !important;
        height: auto !important; /* Forces card to grow with content */
        min-height: unset !important;
        padding: 40px 20px 30px 20px !important; /* Extra top padding for badge */
        display: flex;
        flex-direction: column;
    }

    /* Reset the title to sit naturally in the document flow */
    .card-title {
        position: relative !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        font-size: 1.4rem !important;
        color: inherit; /* Allows background-logic to handle color */
    }

    /* Reset the expanded content so it doesn't overlap */
    .card-expanded-content {
        position: relative !important; /* Removes absolute positioning */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Logic for cards that aren't hovered/active on mobile */
    /* If you want ALL cards to show details on mobile: */
    .me-card:not(.active-default) .card-expanded-content {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure icons don't clutter the text on small screens */
    .hover-icon svg {
        width: 100px !important;
        height: 100px !important;
        opacity: 0.15 !important;
    }

    /* Fix for the 'shrink' effect that ruins mobile layout */
    .me-row:hover .me-card,
    .me-row:hover .me-card.active-default:not(:hover) {
        flex: none !important;
        width: 100% !important;
    }
}

/* Media Query for skills card */
/* Tablet */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Media Query for process time line*/
@media (max-width: 768px) {
  .process-timeline { flex-direction: column; }
  .process-timeline::before { display: none; }
}

/* Media Query for Enterprise */
/* --- Mobile Styling --- */
@media (max-width: 768px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        margin-left: 15px;
        padding-left: 50px;
    }
}


/* Media Query for CTA*/
 @media (max-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }
  .cta-content p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
/* ===============================
   Media Query for Bento Grid
=============================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aws-block,
    .office-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .aws-block,
    .office-wide,
    .drupal-pillar {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Mobile Fix */
@media (max-width: 768px) {
    .hero-clean-banner {
        height: 30vh;
    }
    .hero-center-content h1 {
        font-size: 2.2rem;
    }
}
/* ===============================
   MEDIA QUERY ENDS HERE
================================ */

/* CONTACT WEBFORM - FINAL FIX */
.webform-submission-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Labels */
.webform-submission-contact-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #12192b;
}

/* Inputs + textarea */
.webform-submission-contact-form input,
.webform-submission-contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Focus */
.webform-submission-contact-form input:focus,
.webform-submission-contact-form textarea:focus {
  border-color: #12192b;
  outline: none;
}

/* Button */
.webform-submission-contact-form input[type="submit"] {
  background: #12192b;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.webform-submission-contact-form input[type="submit"]:hover {
  background: #0d1422;
}

.webform-submission-contact-form {
  margin-top: 100px;
  padding-top: 20px;
}