.glass-image-container { /* Optional: Add a container if you have multiple glass images in a row/grid */
    display: flex; /* Example: for centering or spacing multiple images */
    justify-content: center; /* Example */
    padding: 20px; /* Example */
  }
  
  .glass-image {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1); /* Glass effect background */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    /* --- Responsive Changes START --- */
    width: 100%; /* Allow it to take the full width of its parent */
    max-width: 300px; /* Set a maximum size, it won't grow larger than this */
    
    /* Option 1: Fixed Aspect Ratio (e.g., 3:3.5 or 6:7 based on original 300:350) */
    /* height: 0; */ /* Required for padding-bottom aspect ratio trick */
    /* padding-bottom: 116.66%; */ /* (350 / 300 * 100) -- This creates a 6:7 aspect ratio */
                                  /* The image will be absolutely positioned inside */
  
    /* Option 2: Height based on width (simpler, might not keep exact aspect ratio if width is constrained differently) */
     height: auto; /* Let the content (image) define the height or set proportionally */
     aspect-ratio: 300 / 350; /* Modern CSS for aspect ratio, good browser support */
  
    /* Option 3: Fixed height that reduces on smaller screens (less ideal for image aspect ratio) */
    /* height: 350px; */ /* We'll adjust this in media queries if using this option */
  
    overflow: hidden; /* Keep this to clip the scaled image */
    position: relative; /* Needed if using Option 1 for absolute positioning of the image */
    margin: 0 auto; /* Center the block if its parent is wider and it's not filling it */
  }
  
  .glass-image img {
    display: block; /* Removes extra space below inline images */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    border-radius: 20px; /* Match parent's border-radius */
    transition: transform 0.4s ease-in-out; /* Keep your transition */
  
    /* If using Option 1 (padding-bottom aspect ratio) */
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
  }
  
  .glass-image:hover img {
    transform: scale(1.1);
  }
  
  /* --- Media Queries for further adjustments --- */
  
  /* Example: For tablets where you might want slightly smaller max-width or different aspect ratio */
  @media (max-width: 768px) {
    .glass-image {
      max-width: 250px; /* Adjust max-width if needed */
      /* If using Option 3 (fixed height), adjust height here: */
      /* height: 300px; */
      /* If using Option 1 or 2, aspect-ratio / padding-bottom will adapt automatically with max-width */
    }
  }
  
  /* Example: For mobile phones */
  @media (max-width: 480px) {
    .glass-image {
      max-width: 90%; /* Or a specific pixel value like 200px */
                       /* Using percentage here makes it relative to its parent's width */
      border-radius: 15px; /* Optionally reduce border-radius on smaller screens */
  
      /* If using Option 3 (fixed height), adjust height here: */
      /* height: 240px; */
    }
    .glass-image img {
      border-radius: 15px; /* Match parent */
    }
  }
  /* --- Stable Hero Title Styling --- */
.hero-title-stable {
    display: block; /* Or inline-block if it needs to sit alongside other inline elements */
    font-family: "Your Custom Hero Font Name", Arial, sans-serif; /* IMPORTANT: Replace with your actual font stack */
                                                              /* Ensure the fallback (Arial) is reasonably similar in x-height */
    font-weight: 700; /* Or your desired weight */
    text-transform: none; /* Or uppercase, etc., as per your design */
    letter-spacing: normal; /* Or your specific letter-spacing */
    color: #1A1A1A; /* Assuming text-dark makes it this color */

    /* --- Core of the attempt to stabilize --- */
    /* 1. Responsive Font Size (ADJUST THESE VALUES TO MATCH YOUR DESIGN) */
    font-size: 4rem;  /* Default for large screens */
    line-height: 1.1; /* Crucial: Slightly more than 1 to give breathing room */
                      /* This also influences the height of the text box */

    /* 2. Initial Single Line Handling (if applicable to your design) */
    white-space: nowrap; /* If it's meant to be on one line on desktop */
                         /* This helps JS calculate initial width based on full text */

    /* 3. Minimum Height (Approximation) */
    /* This is a bit of a hack. Calculate an approximate min-height based on
       your largest font-size and line-height. E.g., 4rem * 1.1 = ~4.4rem.
       Convert rem to px based on your root font-size if needed for precision,
       or use a slightly generous rem value.
       This tries to reserve vertical space.
    */
    min-height: 4.4rem; /* Example: 4rem font-size * 1.1 line-height */

    /* 4. Text Alignment */
    text-align: center; /* Or left/right as per your design */

    /* 5. Prevent initial collapse if a scrolling library is hiding it with opacity */
    opacity: 1 !important; /* Use with caution - only if opacity is the issue */
    visibility: visible !important; /* Use with caution */

    /* 6. Help browser rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; /* Can sometimes help with font rendering consistency */
}

/* --- Responsive Adjustments --- */

/* For slightly smaller desktops / large tablets */
@media (max-width: 1200px) {
    .hero-title-stable {
        font-size: 3.5rem;
        min-height: 3.85rem; /* 3.5rem * 1.1 */
    }
}

/* For tablets */
@media (max-width: 992px) {
    .hero-title-stable {
        font-size: 3rem;
        min-height: 3.3rem; /* 3rem * 1.1 */
        white-space: normal; /* Allow wrapping now */
    }
}

/* For smaller tablets and larger mobile phones */
@media (max-width: 768px) {
    .hero-title-stable {
        font-size: 2.5rem;
        min-height: 2.75rem; /* 2.5rem * 1.1 */
        line-height: 1.2; /* Adjust if it wraps to multiple lines */
    }
}

/* For most mobile phones */
@media (max-width: 576px) {
    .hero-title-stable {
        font-size: 2rem;
        min-height: 2.2rem; /* 2rem * 1.1 */
    }
}

/* For very small mobile phones */
@media (max-width: 400px) {
    .hero-title-stable {
        font-size: 1.7rem;
        min-height: 1.87rem; /* 1.7rem * 1.1 */
        line-height: 1.3;
    }
}
  /* ==========================================================================
   Project Card and Contained Elements Styling
   ========================================================================== */

/* --- Main Project Card Item (Overlay Container) --- */
.project-card-item { /* This is your .overlay.overlay-show... div */
    position: relative; /* CRUCIAL for absolute positioning of children */
    overflow: hidden;   /* Good practice if children might overflow during animations */
    /* Add any other base styles for your card item, like margin, display: block, etc. */
}

/* Image within the card */
.project-card-item .horizontal-scroller-image {
    display: block; /* Removes extra space if image is inline */
    width: 100%;
    height: auto; /* Maintain aspect ratio, or set specific height if needed */
    /* border-radius: 0; /* As per your original class */
    /* transition for hover effects on image if any */
}


/* --- Corner Action Button ("View Projects") --- */
button.image-action-button {
    /* Positioning */
    position: absolute;
    top: 50%;
    right: 30px; /* Default distance from the right edge - adjust as needed */
    transform: translateY(-50%); /* Initial vertical centering */
    z-index: 15; /* Above image/gradient, potentially below modals */

    /* Base Styling - Consistent Size Across Views */
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    /* Appearance for Visibility on Image */
    color: #EAE0D5; /* Light Beige text */
    background-color: rgba(26, 26, 26, 0.8); /* Semi-transparent DARK background */
    border: 1px solid rgba(234, 224, 213, 0.4); /* Subtle Light Beige border */
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    backdrop-filter: blur(5px); /* Optional: Glassmorphism touch */
    -webkit-backdrop-filter: blur(5px);

    cursor: pointer;
    outline: none;
    overflow: hidden;
    transform-style: preserve-3d;

    /* Transitions */
    transition:
        color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
        background-color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
        border-color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s,
        box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* In-View Animation */
    opacity: 0;
    /* Initial transform for animation, includes vertical centering */
    transform: translateY(-50%) translateX(30px) scale(0.9);
    animation: fadeInButtonFromRight 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
}

@keyframes fadeInButtonFromRight {
    to {
        opacity: 1;
        /* Final transform, includes vertical centering */
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

button.image-action-button span {
    position: relative;
    z-index: 2; /* Above shimmer */
    display: block;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

button.image-action-button .arrow-icon {
    width: 18px; /* Consistent size */
    height: 18px; /* Consistent size */
    margin-left: 8px; /* Consistent spacing */
    stroke: #EAE0D5; /* Initial color */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), stroke 0.3s ease;
    position: relative;
    z-index: 2; /* Above shimmer */
}

/* Shimmer Effect (::before) */
button.image-action-button::before {
    content: '';
    position: absolute;
    top: -75%; left: -75%;
    width: 250%; height: 250%;
    background-image: linear-gradient(
        120deg,
        rgba(234, 224, 213, 0) 0%,    /* Transparent Light Beige */
        rgba(234, 224, 213, 0) 35%,
        rgba(234, 224, 213, 0.2) 48%, /* Subtle Light Beige highlight */
        rgba(234, 224, 213, 0.2) 52%,
        rgba(234, 224, 213, 0) 65%,
        rgba(234, 224, 213, 0) 100%
    );
    z-index: 1; /* Below text/icon, above base background */
    transform: rotate(20deg);
    transition: transform 0.7s cubic-bezier(0.075, 0.82, 0.165, 1), opacity 0.5s ease;
    opacity: 0; /* Hidden initially */
}

/* --- Button HOVER Effects --- */
button.image-action-button:hover {
    background-color: #EAE0D5; /* Light Beige background */
    color: #1A1A1A;           /* Dark text */
    border-color: #DCD0C0;   /* Darker Beige border */
    /* Maintain vertical centering while applying hover transforms */
    transform: translateY(-50%) translateX(-5px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(220, 208, 192, 0.5); /* Outer beige glow */
}

button.image-action-button:hover::before { /* Shimmer activation */
    transform: translate(20%, 20%) rotate(20deg);
    opacity: 0.9; /* More prominent on light hover background */
}



button.image-action-button:hover .arrow-icon {
    transform: translateX(4px) scale(1.1);
    stroke: #1A1A1A; /* Dark stroke */
}

/* Spinning Border (::after) - Optional */
button.image-action-button::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px; /* Slightly outside */
    border: 1px dashed transparent;
    border-radius: inherit; /* Match parent's (button) border-radius */
    z-index: 0; /* Behind main button content */
    opacity: 0;
    transition: opacity 0.4s ease, border-color 0.4s ease;
    pointer-events: none; /* Doesn't interfere with clicks */
}

button.image-action-button:hover::after {
    opacity: 0.7;
    border-color: #1A1A1A; /* Dark dashed border on hover */
    animation: spinBorderSmall 12s linear infinite;
}

@keyframes spinBorderSmall {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Button ACTIVE (Click) State --- */
button.image-action-button:active {
    /* Maintain vertical centering */
    transform: translateY(-50%) translateX(0px) scale(0.98);
    background-color: #DCD0C0; /* Darker beige */
    color: #1A1A1A;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px #DCD0C0;
}


/* --- Responsive Media Queries FOR BUTTON POSITIONING (Optional) --- */
/* Use these only if the default 'right: 30px' needs adjustment on specific screen sizes.
   The button's visual size (padding, font-size) remains consistent. */
@media (max-width: 768px) {
    button.image-action-button {
        /* Example: If 30px from right is too much on tablets */
        right: 20px; 
    }
}

@media (max-width: 480px) {
    button.image-action-button {
        /* Example: If 30px from right is too much on small phones */
         right: 15px; 

        /* Optional: Disable complex animations on very small screens for performance */
         &:hover::after { animation: none; opacity: 0; } 
        &:hover::before { opacity: 0; } 
    }
}


/* --- Bottom-Left Caption (Web Development Title) --- */
.project-caption-actions {
    /* Your existing Bootstrap classes for positioning this whole block:
       p-absolute bottom-0 left-0 w-100
       p-5 (Bootstrap's default padding for this class)
       d-none d-lg-block (visibility based on screen size)
    */
    /* Example of overriding Bootstrap's p-5 if it's too large: */
    /* padding: 1.5rem 2rem !important; */
    /* Using Bootstrap's CSS variable for p-5 if available or a fallback */
    padding: var(--bs-p-5, 3rem) !important;


    /* If you had flex styles here for a side-by-side button before,
       they are not needed if the button is moved out.
       This div now just contains the H4. */
    z-index: 10; /* Above image, but potentially below the corner button if they overlap */
}

.project-caption-actions .project-category-title { /* Target H4 within this specific context */
    color: #FFFFFF; /* White text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* For better readability on image */
    margin-bottom: 0 !important; /* Override Bootstrap if needed */
    /* Ensure your theme's text utility classes (text-7, line-height-4 etc.) are applied */
}


/* 
/* ==========================================================================
   Hero Section (#home) Responsive Styles - REVISIONS
   ========================================================================== */

/* ... (keep all your previous responsive styles) ... */

/* --- Specific adjustments for "FULL STACK DEVLOPER" --- */

/* Container of "FULL STACK DEVLOPER" */
/* Default styles for #hero-main-title or .custom-hero-font-1 */
/* Make sure you have your base styles defined somewhere */
#hero-main-title,
.custom-hero-font-1 { /* Targeting both in case custom-hero-font-1 has the font-size */
    display: block; /* Or inline-block, depending on desired layout with siblings */
    font-size: 4rem;  /* STARTING LARGE FONT SIZE - Adjust this to your design */
    font-weight: 700; /* Or whatever weight your custom font uses */
    line-height: 1.1; /* Adjust for good spacing if it wraps */
    text-align: center; /* Or left/right based on your design */
    white-space: nowrap; /* Initially prevent wrapping to see its full width impact */
    overflow-wrap: break-word;                     /* We will allow wrapping on smaller screens if needed */
    color: #1A1A1A; /* Assuming text-dark makes it this color from your palette */
    /* Any other base styles like letter-spacing, text-transform */
}

/* Parent div styles - ensure it allows text to flow */
div[data-scroll-direction="horizontal"] {
    /* This div might be set to display: flex by the scroll library, or have other styles.
       Usually, you want it to take up available width. */
    width: 100%; /* Or auto, depending on context */
    overflow: hidden; /* If the scroll effect is making it wider than viewport temporarily */
}


/* --- Responsive Adjustments for #hero-main-title --- */

/* For slightly smaller desktops / large tablets */
@media (max-width: 1200px) {
    #hero-main-title,
    .custom-hero-font-1 {
        font-size: 3.5rem; /* Slightly smaller */
    }
}

/* For tablets (e.g., iPads in portrait and landscape) */
@media (max-width: 992px) {
    #hero-main-title,
    .custom-hero-font-1 {
        font-size: 3rem;   /* Further reduction */
        white-space: normal; /* Allow text to wrap if it's too long now */
        /* text-align: center; Ensure it's centered if it wraps */
    }
}

/* For smaller tablets and larger mobile phones (landscape) */
@media (max-width: 768px) {
    #hero-main-title,
    .custom-hero-font-1 {
        font-size: 2.5rem; /* Getting smaller */
        line-height: 1.2;  /* May need to adjust line height if it wraps to multiple lines */
    }
}

/* For most mobile phones (portrait) */
@media (max-width: 576px) {
    #hero-main-title,
    .custom-hero-font-1 {
        font-size: 2rem;   /* Even smaller */
        /* You might want to ensure the text is centered if it's not globally */
        /* text-align: center; */
    }
}

/* For very small mobile phones */
@media (max-width: 400px) {
    #hero-main-title,
    .custom-hero-font-1 {
        font-size: 1.7rem; /* Smallest size */
        line-height: 1.3;
    }
}
/*
   IMPORTANT: You should fix the typo in your HTML from "DEVLOPER" to "DEVELOPER".
   If you do, update the CSS selectors accordingly:
   Replace:
   #home .row.py-3.py-lg-0.custom-border-bottom-1:first-child strong.custom-hero-font-1
   With:
   #home .row:has(strong:contains("Full Stack Developer")) strong.custom-hero-font-1
   (This :has selector has good support now, but check browser compatibility if very old browsers are a target)
   OR, give that specific <strong> an ID or a unique class for easier targeting.
   Example if you add class="hero-title-main":
   #home .hero-title-main { ... }
*/Skill Card Hover and Animation Effects */
.skill-card {
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e8e4d9;
  border-radius: 12px;
}

.skill-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.12), 0 0 0 4px #e8e4d9;
  border-color: #d4c9b5;
  transform: translateY(-8px) scale(1.02);
  z-index: 2;
}

.skill-card .skill-icon {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: #4a4a4a;
}

.skill-card:hover .skill-icon {
  color: #2c2c2c;
  transform: scale(1.15) rotate(-5deg);
  text-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Advanced In/Out Animations */
.animate-in {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.animate-in.animated {
  animation: fadeInStagger 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-in.out {
  animation: fadeOutDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInStagger {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  40% {
    opacity: 1;
    transform: translateY(-12px) scale(1.02);
  }
  70% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeOutDown {
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
}

.skill-card img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  background: #f9f7f2;
  padding: 8px;
  border: 2px solid #e8e4d9;
  transform-origin: center;
}

.skill-card img:hover {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #f5f1e8;
  border-color: #d4c9b5;
}

#my-skills {
  background: #faf9f6;
}

.skill-card h4 {
  color: #2c2c2c !important;
  transition: color 0.3s ease;
}

.skill-card:hover h4 {
  color: #1a1a1a !important;
}
/* --- Global Styles (Optional but good for consistency) --- */
body.project-overlay-active {
    overflow: hidden;
}

/* --- Project Details Overlay --- */
#projectDetailsOverlay {
    display: none; /* Initially hidden - JS controls this */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88); /* Darker overlay background */
    z-index: 2000;
    /* display: flex; /* JS will change this to flex to show */
    align-items: center;
    justify-content: center;
    padding: 15px; /* Padding for smaller screens */
    box-sizing: border-box;
}

#projectDetailsModal {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden; /* Important for border-radius and children */
    color: #1A1A1A;
}

#projectDetailsCloseBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.8rem;
    color: #777777;
    cursor: pointer;
    z-index: 2005; /* Above sidebar */
    background: #FFFFFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
}
#projectDetailsCloseBtn:hover {
    color: #1A1A1A;
    background-color: #EAE0D5;
    transform: scale(1.1);
}

#projectDetailsContent {
    flex-grow: 1;
    overflow-y: auto;
    height: 100%; /* Fallback for non-flex stacking */
    background-color: #FFFFFF;
    padding: 28px 24px;
}

/* Custom Scrollbar for Content Area */
#projectDetailsContent::-webkit-scrollbar { width: 7px; }
#projectDetailsContent::-webkit-scrollbar-track { background: #F7F7F7; border-radius: 10px;}
#projectDetailsContent::-webkit-scrollbar-thumb { background: #C6B8A4; border-radius: 10px;}
#projectDetailsContent::-webkit-scrollbar-thumb:hover { background: #A99A8D; }


#projectListSidebar {
    width: 260px; /* Slightly reduced width */
    min-width: 260px;
    height: 100%; /* Fallback for non-flex stacking */
    background: #EAE0D5;
    border-left: 1px solid #DCD0C0;
    overflow-y: auto;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.35s ease-out,
                width 0.3s ease, min-width 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    z-index: 2001; /* Ensure sidebar is above content if overlaps occur */
}

/* Custom Scrollbar for Sidebar */
#projectListSidebar::-webkit-scrollbar { width: 7px; }
#projectListSidebar::-webkit-scrollbar-track { background: #E0D8CC; border-radius: 10px;}
#projectListSidebar::-webkit-scrollbar-thumb { background: #B0A091; border-radius: 10px;}
#projectListSidebar::-webkit-scrollbar-thumb:hover { background: #9A8C7F; }


#projectListSidebar > div { /* Inner container */
    padding: 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#projectListSidebarTitle {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: #1A1A1A;
    border-bottom: 2px solid #1A1A1A;
    padding-bottom: 10px;
    white-space: nowrap;
    font-weight: 600;
}

#categoryProjectList {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

#categoryProjectList li {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #333333; /* Darker beige text */
    border: 1px solid transparent; /* Keep space for border */
    display: block;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
/* Hover and Active states will be managed by JS for consistency */


/* --- General Content Styling inside Modal --- */
#projectDetailsContent .project-banner-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px 8px 0 0; /* Rounded top corners if banner is first */
    display: block; /* Remove extra space below image */
}

#projectDetailsContent .content-padding {
    padding: 28px 24px; /* Default padding, can be overridden */
}
#projectDetailsContent .content-padding-no-banner {
    padding-top: 10px; /* Less top padding if no banner directly above */
}


#projectDetailsContent h2.project-title {
    font-size: 2rem;
    color: #1A1A1A;
    margin:0 0 10px 0;
    line-height: 1.3;
}

#projectDetailsContent h3.section-title {
    font-size: 1.25rem;
    color: #1A1A1A;
    margin-top: 28px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E0E0E0; /* Lighter gray underline */
    padding-bottom: 8px;
    font-weight: 600;
}

#projectDetailsContent p,
#projectDetailsContent .description-text,
#projectDetailsContent .role-impact-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333;
    margin-bottom: 18px;
}
#projectDetailsContent .description-text p:last-child,
#projectDetailsContent .role-impact-text p:last-child {
    margin-bottom: 0;
}

#projectDetailsContent .live-preview-button {
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid #1A1A1A;
}
#projectDetailsContent .live-preview-button:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#projectDetailsContent .live-preview-button.github-button {
    background: #24292e; /* GitHub dark color */
    border-color: #24292e;
}
#projectDetailsContent .live-preview-button.github-button:hover {
    background: #1b1f23;
}


/* Tech Stacks */
#projectDetailsContent .tech-stacks-container {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#projectDetailsContent .tech-stack-item {
    background: #EAE0D5;
    color: #1A1A1A;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Image Gallery */
#projectDetailsContent .gallery-container {
    display: flex;
    gap: 10px;
    margin: 12px 0 24px 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}
#projectDetailsContent .gallery-image {
    height: 110px;
    border-radius: 6px;
    background: #F0F0F0;
    cursor: zoom-in;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #DCD0C0;
}
#projectDetailsContent .gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Info Row */
#projectDetailsContent .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 24px; /* row-gap column-gap */
    margin: 20px 0 15px 0;
    font-size: 0.9rem;
    color: #444444;
    padding-bottom: 15px;
    border-bottom: 1px solid #EAE0D5;
}
#projectDetailsContent .info-row > div {
    min-width: 120px; /* Ensure items don't get too squished */
}
#projectDetailsContent .info-row b {
    color: #1A1A1A;
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}
#projectDetailsContent .info-row span.info-value {
    font-weight: 500;
    color: #1A1A1A;
}


/* Digital Marketing Specifics */
#projectDetailsContent .dm-clients-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
#projectDetailsContent .dm-client-tag {
    background: #333333;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 7px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}


/* --- Zoom Overlay --- */
#zoomImageOverlay {
    /* display:none; /* JS handles */
    position:fixed; top:0; left:0; width:100vw; height:100vh;
    background:rgba(0,0,0,0.92);
    z-index:3000;
    align-items:center; justify-content:center;
}
#zoomCloseBtn { /* This ID is from your original zoom code */
    position:absolute; top:25px; right:35px; font-size:2.5rem; color:#CCCCCC; cursor:pointer; z-index:10;
}
#zoomCloseBtn:hover { color:#FFFFFF; }
#zoomedImg {
    max-width:90vw; max-height:85vh; border-radius:8px;
    box-shadow:0 8px 32px #00000080; object-fit:contain;
    border: 2px solid #FFFFFF;
}

/* --- Responsiveness --- */
@media (max-width: 992px) { /* Medium devices (tablets) */
    #projectDetailsModal {
        flex-direction: column; /* Stack sidebar below content */
        max-height: 95vh;
        height: auto; /* Let content define height */
    }
    #projectDetailsContent {
        height: auto; /* Grow as needed, or define fixed part of viewport */
        max-height: 60vh; /* Example: content takes 60% of viewport height */
        padding: 20px 18px;
    }
    #projectListSidebar {
        width: 100%;
        min-width: 100%;
        height: auto; /* Grow as needed */
        max-height: 35vh; /* Example: sidebar takes 35% of viewport height */
        border-left: none;
        border-top: 2px solid #DCD0C0;
        /* Animation from bottom (if enabled in JS) */
        /* transform: translateY(100%); This is the new initial state for stacking */
    }
    #projectListSidebar.sidebar-visible { /* Used by JS to animate in */
        transform: translateY(0);
        opacity: 1;
    }

    #projectDetailsContent h2.project-title { font-size: 1.7rem; }
    #projectDetailsContent h3.section-title { font-size: 1.15rem; }
    #projectDetailsContent p, #projectDetailsContent .description-text { font-size: 0.9rem; }
    #projectDetailsContent .gallery-image { height: 90px; }
}

@media (max-width: 768px) { /* Small devices (landscape phones) */
    #projectDetailsOverlay { padding: 10px; }
    #projectDetailsModal { border-radius: 10px; max-height: calc(100vh - 20px); }

    #projectDetailsContent { padding: 18px 15px; max-height: 60vh; }
    #projectListSidebar { max-height: calc(40vh - 20px); } /* Adjusted for padding */
    #projectListSidebar > div { padding: 15px; }


    #projectDetailsContent h2.project-title { font-size: 1.5rem; }
    #projectDetailsContent h3.section-title { font-size: 1.1rem; }
    #projectDetailsContent .live-preview-button { padding: 8px 15px; font-size: 0.85rem; }
    #projectDetailsContent .gallery-image { height: 80px; }
    #projectListSidebarTitle { font-size: 1.05rem; }
    #categoryProjectList li { padding: 9px 12px; font-size: 0.85rem; }
}

@media (max-width: 480px) { /* Extra small devices (portrait phones) */
    #projectDetailsContent { padding: 15px 12px; max-height: 58vh;}
    #projectListSidebar { max-height: calc(42vh - 20px); }

    #projectDetailsContent h2.project-title { font-size: 1.3rem; }
    #projectDetailsContent .info-row { font-size: 0.85rem; gap: 10px 15px; }
    #projectDetailsContent .gallery-image { height: 70px; }
    #projectDetailsContent .gallery-container { gap: 8px; }
    #projectDetailsContent .tech-stack-item { font-size: 0.8rem; padding: 4px 10px;}
}
/* --- General Setup --- */
.edu-exp-section {
    background-color: #FFFFFF; /* White background */
    padding: 60px 0;
    font-family: 'Arial', sans-serif; /* Or your preferred font */
    color: #1A1A1A;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.edu-exp-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.edu-exp-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 50px;
    text-align: left; /* As per image */
    /* Animation will be handled by JS adding spans */
}

/* --- Columns --- */
.timeline-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.timeline-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.timeline-column .column-title {
    font-size: 0.9rem; /* Smaller as per image */
    font-weight: 600;
    color: #1A1A1A; /* Dark text */
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* Animation will be handled by JS adding spans */
}

/* --- Timeline --- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 5px; /* Start slightly below first dot's center */
    bottom: 5px; /* End slightly above last dot's center */
    left: 4px; /* Position to align with center of dots */
    width: 2px;
    background-color: #EAE0D5; /* Light Beige line */
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 30px; /* Space for dot and line */
    margin-bottom: 35px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* For hover */
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px; /* Align with first line of text */
    width: 10px;
    height: 10px;
    background-color: #EAE0D5; /* Light Beige dot */
    border-radius: 50%;
    z-index: 2; /* Above the line */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.timeline-content {
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background-color: #1A1A1A; /* Dark dot on hover */
    transform: scale(1.3);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
}

/* Optional: subtle shadow on item hover */
/*
.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(200, 190, 180, 0.3);
}
*/

.timeline-content .item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 5px 0;
    /* Animation will be handled by JS adding spans */
}

.timeline-content .item-subtitle {
    font-size: 0.9rem;
    color: #555555; /* Dark Gray */
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.timeline-content .item-date {
    font-size: 0.8rem;
    color: #777777; /* Medium Gray */
    margin: 0;
}

/* --- Word by Word Text Reveal Animation --- */
.animate-text-reveal > .char-animated,
.item-title > .char-animated {
    display: inline-block; /* Crucial for transform and consistent spacing */
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform; /* Performance hint */
}

/* When .is-visible is added to the parent or the element itself */
.is-visible .animate-text-reveal > .char-animated,
.is-visible.animate-text-reveal > .char-animated, /* if is-visible on the text element itself */
.timeline-item.is-visible .item-title > .char-animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .edu-exp-section .section-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
    .timeline-columns {
        gap: 20px;
    }
    .timeline-column .column-title {
        font-size: 0.85rem;
    }
    .timeline-content .item-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .edu-exp-section .section-title {
        font-size: 2rem;
        text-align: center;
    }
    .timeline-columns {
        flex-direction: column;
        gap: 40px; /* Space between stacked columns */
    }
    .timeline-column {
        flex: none; /* Reset flex behavior */
        width: 100%;
    }
    .timeline-column .column-title {
        text-align: left; /* Or center if preferred when stacked */
        margin-bottom: 20px;
    }
    .timeline::before {
        left: 4px; /* Ensure line is still positioned correctly */
    }
    .timeline-item {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .edu-exp-section {
        padding: 40px 0;
    }
    .edu-exp-section .section-title {
        font-size: 1.8rem;
    }
    .timeline-column .column-title {
        font-size: 0.8rem;
    }
    .timeline-content .item-title {
        font-size: 0.95rem;
    }
    .timeline-content .item-subtitle {
        font-size: 0.85rem;
    }
    .timeline-content .item-date {
        font-size: 0.75rem;
    }
}
/* Project Details Overlay Animations & Hover Effects */
#projectDetailsOverlay {
  animation: overlayFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.85);
}

@keyframes overlayFadeIn {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

#projectDetailsOverlay .modal-content,
#projectDetailsOverlay > div {
  animation: cardPopIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #faf9f6;
  border: 2px solid #e8e4d9;
}

@keyframes cardPopIn {
  0% { 
    opacity: 0;
    transform: scale(0.94) translateY(30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-8px);
  }
  100% { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#projectDetailsOverlay > div:hover {
  box-shadow: 0 16px 56px rgba(0,0,0,0.15), 0 0 0 4px #e8e4d9;
  transform: scale(1.01) translateY(-4px);
}

#projectDetailsOverlay a,
#projectDetailsOverlay button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #e8e4d9;
  color: #2c2c2c;
  border: 2px solid #d4c9b5;
}

#projectDetailsOverlay a:hover,
#projectDetailsOverlay button:hover {
  background: #d4c9b5 !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px) scale(1.03);
}

#projectDetailsOverlay span[style*='background:#e0e0e0'] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #e8e4d9 !important;
  color: #2c2c2c;
  border: 2px solid #d4c9b5;
  cursor: pointer;
}

#projectDetailsOverlay span[style*='background:#e0e0e0']:hover {
  background: #d4c9b5 !important;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: scale(1.05);
}

/* Image Gallery Animations */
.project-image {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid #e8e4d9;
  border-radius: 12px;
  overflow: hidden;
}

.project-image:hover {
  transform: scale(1.03);
  border-color: #d4c9b5;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.project-image img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover img {
  transform: scale(1.08);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .skill-card { 
    margin-bottom: 24px;
  }
}
