:root {
    --sidebar-w: 260px;
    --primary: #ff4500;
    --bg-dark: #121212;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; display: flex; background: #fff; overflow-x: hidden; }

h1, h2, h3, h4, h5, p { padding: 5px 0; }

.spacer { height: 20px; }

a { color: var(--primary) }

/* Sidebar stays the same */
.sidebar {
    position: fixed; left: 0; top: 0; width: var(--sidebar-w); height: 100vh;
    background: var(--bg-dark); color: white; padding: 20px 40px 60px;
    display: flex; flex-direction: column; justify-content: space-between; z-index: 1000;
}
.logo { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 40px; }
.logo img { max-width: 150px }
.nav-menu ul { list-style: none; }
.nav-menu li { margin-bottom: 20px; }
.nav-menu a { color: #888; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav-menu a.active { color: white; border-left: 2px solid var(--primary); padding-left: 10px; }
/* Sidebar Footer & Socials */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.sidebar-footer p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
}

/* Ensure the top section stays up and footer stays down */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Content & Slider */
.content { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); }
.v-section { min-height: 100vh; padding: 50px 8%; display: flex; flex-direction: column; justify-content: flex-start; }

.slider-container { width: 100%; max-width: 1000px; position: relative; margin-bottom: 50px; }
.slide { display: none; animation: slideUp 0.6s ease-out; }
.slide.active { display: block; }

.slide-card {
    width: 100%;
    height: 550px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.slide-content { color: white; max-width: 600px; }
.slide-content h1 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: -1px; line-height: 3.5rem; }
.slide-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-cta:hover { background: #e03d00; transform: scale(1.05); }

/* Dots */
.slider-dots { display: flex; gap: 10px; margin-top: 30px; }
.dot { height: 4px; width: 30px; background: #eee; cursor: pointer; border-radius: 2px; transition: 0.3s; }
.dot.active { background: var(--primary); width: 60px; }

/* Animations & Mobile */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Navigation */
.mobile-header { display: none; width: 100%; padding: 0 20px; background: var(--bg-dark); color: white; justify-content: space-between; align-items: center; position: fixed; top: 0; z-index: 1100; }
#menuToggle { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* Portfolio Header */
.portfolio-header {
    margin-bottom: 50px;
}

.portfolio-header p {
    color: #888;
    margin-top: 10px;
}

/* Filter Buttons Reset */
.filter-controls {
    display: flex;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: #f5f5f5;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Columns */
.column-container {
    display: grid;
    /* This creates as many columns as fit, but never smaller than 250px */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.info-col {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

.info-col:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-col i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.info-col h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-col p {
    color: #666;
    line-height: 1.6;
}

/* Split Columns */
.split-layout {
    display: grid;
    /* Forces two equal columns on desktop */
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /*align-items: center;*/
    width: 100%;
}

.split-column {
    width: 100%;
}

.split-column img {
    width: 100%;
    border-radius: 12px;
}

/*.text-side h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}*/

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;    
}

.feature-list li {
    font-weight: 600;

    display: flex;             /* Creates two columns: Icon and Text */
    align-items: flex-start;    /* Aligns icon to the top of the first line */
    gap: 12px;                 /* Space between icon and text */
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;          /* Ensures comfortable reading for multi-line text */
}    

.feature-list i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
    padding-top: 4px;          /* Fine-tune this to center the icon with the first line of text */
    flex-shrink: 0;            /* Prevents the icon from squishing if the text is long */
}

/* Visual Side Styling */
.visual-side {
    height: 400px;
    background: #f0f0f0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('images/satisfaction2.jpg');
    background-size: cover;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-box span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

/* RESPONSIVE: Stack them when screen is below 900px */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr; /* Switch to 1 column */
        gap: 30px;
    }
    
    .visual-side {
        height: 300px;
        order: -1; /* Puts the image/visual above the text on mobile */
    }
}

/* Grid & Card Reset */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    will-change: transform, opacity;
}

.work-card.is-hidden {
    display: none;
    opacity: 0;
}

.card-inner {
    position: relative;
    height: 300px; /* IMPORTANT: Must have a fixed height */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #222; /* Dark placeholder if images fail */
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-inner:hover .card-image {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    z-index: 10; /* Above the slides */
    pointer-events: none; /* Allows dots underneath to be clickable */
}

.card-inner:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 { font-size: 1.25rem; margin-bottom: 5px; }
.card-overlay span { font-size: 0.85rem; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; }
/* Update these in your existing style.css */
.card-inner {
    /*cursor: pointer;*/
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.card-inner:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-overlay h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    transform: translateY(10px); 
    transition: transform 0.4s ease;
}

.card-inner:hover h3 {
    transform: translateY(0);
}

.card-overlay span {
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    display: block;
    width: fit-content;
    margin-top: 15px;
}

/* Card Slider Container */
.card-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ensures image fills the area */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

/* Mini Dots Overlay */
.card-dots {
    position: absolute;
    bottom: 28px;
    right: 15px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20; /* Highest priority for clicking */
}

.card-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.card-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Ensure overlay stays on top of mini-slider */
.card-overlay {
    z-index: 10;
}

/* Contact Section */
.contact-info {
  list-style: none;
  padding: 30px 0 0;
  margin: 0;
  max-width: 400px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: #222;
}

.contact-info .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border-radius: 50%;
  color: #000;
}

.contact-info .icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.contact-info li:hover .icon {
  background: var(--primary);
  color: #fff;
  transition: 0.3s ease;
}

.contact-info li .add {
    background-color: black;
    padding-right: 0;
    margin-right: 0;
}

@media (max-width: 900px) {
    .mobile-header { display: flex; }
    .mobile-header .logo { margin-bottom: 0 }
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.open { transform: translateX(0); padding-top: 110px }
    .sidebar-top .logo { display: none;}
    .content { margin-left: 0; width: 100%; padding-top: 80px; }
    .slide-card { height: 450px; }
    .slide-overlay { padding: 30px; }
    /*.slide-content h1 { font-size: 2.2rem; }*/
    .slide-content h1 { font-size: 1.4rem; line-height: 1.8rem; }
    .slide-content p { font-size: 16px; }
    .slide-content .btn-cta { margin-bottom: 10px;    
    }
    .slide-content .btn-project { display: none; }
    .v-section { padding-top: 120px }
}