/* About Section Modern Styles */
.about-flex-row {
    display: flex;
    flex-direction: row; /* Ensure row layout by default */
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap; /* Prevent wrapping so image stays right */
}
.content-column {
    order: 1; /* Text LEFT */
    width: 60%;
    min-width: 280px;
}
.image-column {
    order: 2; /* Image RIGHT */
    width: 40%;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-inner {
    background: none !important;
    color: #222 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.sec-title {
    margin-bottom: 1.5rem;
}
.about-accent-title {
    color: #f4CB0D;
    font-weight: bold;
    font-size: 2.2rem;
    display: flex;           /* Use flex to align text and underline */
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}
.about-accent-title span {
    display: block;          /* Show the underline */
    flex: 1;
    height: 1px;
    background: #f4CB0D;
    margin-left: 1rem;
}
.about-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f4CB0D;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.2;
}
.about-inner .text {
    color: #f4CB0D;
    font-size: 1.08rem;
    margin-bottom: 2rem;
}
.about-inner .email {
    font-weight: bold;
    color: #111;
    margin-bottom: 2rem;
}
.about-inner .theme_color {
    color: #000;
}
.about-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid #f4CB0D;
    color: #f4CB0D;
    font-weight: bold;
    background: #000000;
    border-radius: 3px;
    font-size: 1.1rem;
    box-shadow: 4px 8px 0 #f4CB0D;
    position: relative;
    transition: all 0.2s;
}
.about-btn:hover {
    background: #f4CB0D;
    color: #222;
    box-shadow: 2px 4px 0 #eee;
    border-color: #222;
}
.about-image-box {
    position: relative;
    display: inline-block;
    background: #fff;
    border: 8px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
    border-radius: 12px;
    padding: 12px;
    /* Give a slight tilt for a "memory photo" effect */
    transform: rotate(-2deg);
    transition: box-shadow 0.3s, transform 0.3s;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    overflow: hidden;
    /* Add responsive fallback for small screens */
    box-sizing: border-box;
}
.about-image-box:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.13);
    transform: rotate(1deg) scale(1.03);
}
.about-image-box img {
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.about-flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap; /* Prevent wrapping so image stays right */
}
.image-column {
    order: 2; /* Image RIGHT */
    width: 40%;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-column {
    order: 1; /* Text LEFT */
    width: 60%;
    min-width: 280px;
}
.about-image-border {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 60vh;
    border: 2px solid #f4CB0D;
    z-index: 1;
    border: none;
}
.about-years-badge {
    position: absolute;
    left: 18px;
    bottom: 28px;
    background: #000000;
    border: 2px solid #eee;
    padding: 1.2rem 2.2rem 1.2rem 1.2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(209, 255, 2, 0.133);
    z-index: 2;
}
#about-years-number {
    font-size: 2.5rem;
    color: #f4CB0D;
    font-weight: bold;
    margin-right: 0.7rem;
}
.about-years-badge span:last-child {
    color: #f4CB0D;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Typing effect styles */
.about-typing-container {
    width: 100%;
    text-align: left;
    margin: 1.2rem 0 1.2rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4CB0D;
    letter-spacing: 1px;
    position: relative;
    min-height: 2.2em;
    font-family: 'Alatsi', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.about-typing-text-fade {
    opacity: 0;
    transition: opacity 0.7s;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
}
.about-typing-text-fade.active {
    opacity: 1;
    position: relative;
    transition: opacity 0.7s;
}
.about-typing-cursor {
    display: none;
}

/* Ensure image column centers content on all screens */
.about-carousel-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
}
.about-carousel-image.active {
    opacity: 1;
    z-index: 1;
}
.about-image-box {
    position: relative;
    width: 50vh;
    height: 50vh;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    overflow: hidden;
}

/* Fade-in animation for about-section */
.about-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.about-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.division-title {
    display: flex;
    align-items: center;
    color: #f4CB0D;
    font-weight: bold;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 2rem 0 2.5rem 0;
    font-family: inherit;
    gap: 1rem;
    text-align: left;
    z-index: 10; /* Ensure above overlays */
    position: relative;
}
.division-title span {
    flex: 1;
    height: 2px;
    background: #f4CB0D;
    margin-left: 1rem;
    display: block;
    border-radius: 2px;
}
.division-title::after,
.division-title::before {
    content: none;
}

/* Division Modal Styles - Fullscreen Parallax with Slide Animation (like menu-overlay) */
.division-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: #000000 !important;
    background-image: none !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    transition: opacity 0.3s;
    opacity: 1;
    left: -100vw;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    opacity: 1;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.division-modal-overlay.active {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}
.division-modal-overlay.hidden {
    display: none;
    opacity: 0;
}
.division-modal-content {
    background: transparent;
    color: #f4CB0D;
    margin: 0 auto;
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
    min-height: 100vh;
    max-height: none;
    box-shadow: none;
    position: relative;
    padding: 0;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.division-modal-close {
    position: fixed;
    top: 1.2rem;
    right: 2.2rem;
    background: transparent;
    border: none;
    color: #f4CB0D;
    font-size: 3.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}
.division-modal-close:hover {
    color: #fff;
}
.division-modal-body {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    color: #f4CB0D;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 4.5rem 0 2.5rem 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: transparent;
    /* For parallax effect, you can add more backgrounds or elements here */
}
.division-modal-body h2 {
    color: #f4CB0D;
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.division-modal-body ul {
    color: #fff;
    margin-bottom: 1.2rem;
    padding-left: 1.5em;
}
.division-modal-body li {
    margin-bottom: 0.7em;
}
.division-modal-body a.cta {
    display: inline-block;
    margin-top: 1.5rem;
    background: #f4CB0D;
    color: #181818;
    font-weight: bold;
    padding: 0.7em 1.7em;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.2s, color 0.2s;
}
.division-modal-body a.cta:hover {
    background: #181818;
    color: #f4CB0D;
    border: 2px solid #f4CB0D;
}
.division-modal-testimonial, .division-modal-case {
    background: #222;
    color: #f4CB0D;
    border-left: 4px solid #f4CB0D;
    padding: 1em 1.2em;
    margin: 1.2em auto;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.08em;
    max-width: 700px;
}
.division-modal-parallax-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    padding: 2rem 0;
}
.division-modal-parallax-content .division-parallax-block {
  display: flex;
  flex-direction: column; /* 🟢 default for mobile */
  width: 100%;
  height: auto;
  min-height: 100vh;
}


/* Fade-in animation for division modal blocks */
.division-modal-parallax-content .division-parallax-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
    pointer-events: none;
}

/* When in view, fade in and slide up */
.division-modal-parallax-content .division-parallax-block.in-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Remove hover border and shadow in modal view */
.division-modal-parallax-content .division-parallax-block,
.division-modal-parallax-content .division-parallax-block:hover {
    border: none !important;
    box-shadow: none !important;
}

/* Info panel: left side, fill half the modal, center content vertically and horizontally */
.division-modal-parallax-content .division-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: 50vw;
    min-width: auto;
    max-width: 700px;
    height: 100vh;
    background: #000000;
    color: #f4CB0D;
    padding: 3rem 2.5rem 3rem 2rem;
    margin: 0;
    z-index: 2;
    border-radius: 0;
    border-right: 4px solid #f4CB0D;
    box-shadow: none;
    text-align: right;
    font-family: inherit;
    overflow: auto;
    /* Center content horizontally for smaller screens */
    box-sizing: border-box;
    white-space: normal;
    overflow: auto;
    text-overflow: unset;
    max-height: none;
    word-break: break-word;
}
.division-modal-parallax-content .division-info,
.division-modal-parallax-content {
  width: 100%; /* 🟢 stack vertically */
  height: auto;
  border: none;
  padding: 2rem 1.5rem;
}
.division-img img{
    max-height: 600px;
    max-width: 600px;
}
.division-modal-parallax-content .division-info p {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
}


.division-modal-parallax-content .division-img img  {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 600px;
    min-width: 260px;
    min-height: 260px;
    object-fit: cover;
    border-radius: 18px;
    background: #181818;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Photograph border effect */
    border: 10px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(245,204,13,0.13);
    transition: 
        box-shadow 0.4s cubic-bezier(.4,0,.2,1),
        transform 0.4s cubic-bezier(.4,0,.2,1),
        border-color 0.3s;
    /* Add a slight tilt for a photo effect */
    transform: rotate(-2deg) scale(1);
}

/* Hover animation: lift, color border, tilt */
.division-modal-parallax-content .division-img img:hover {
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 8px 32px #f4CB0D55;
    border-color: #f4CB0D;
    transform: rotate(2deg) scale(1.04);
    z-index: 2;
    filter: brightness(1.08) saturate(1.1);
}

/* Optional: subtle animation on parent for photograph effect */
.division-modal-parallax-content .division-img:hover img {
    /* Extra highlight on parent hover */
    box-shadow: 0 32px 80px rgba(245,204,13,0.18), 0 8px 32px #f4CB0D99;
    border-color: #f4CB0D;
    transform: rotate(3deg) scale(1.07);
}

/* Fix for parallax background on about section */
.about-parallax-bg,
.about-section .about-parallax-bg {
    background-image: url('../images/aboutbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

/* Ensure .about-section content is above the parallax bg */
.about-section {
    position: relative;
    background: transparent !important;
    z-index: 1;
}

/* Optional: overlay for readability */
.about-parallax-overlay,
.about-section .about-parallax-overlay {
    background: linear-gradient(120deg, rgba(21,24,26,0.85) 60%, rgba(245,204,13,0.15) 100%);
    z-index: 2;
}


/* Fix: Prevent horizontal scroll from 100vw on .about-parallax-bg and overlays */
.about-parallax-bg,
.about-section .about-parallax-bg,
.about-parallax-overlay,
.about-section .about-parallax-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.about-parallax-bg,
.about-section .about-parallax-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/aboutbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    pointer-events: none;
}
/* View Projects button for division modal */
.division-modal-body .view-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: transparent;
    color: #f4CB0D;
    border: 2px solid #f4CB0D;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-family: inherit;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: none;
}
.division-modal-body .view-projects-btn:hover,
.division-modal-body .view-projects-btn:focus {
    background: #f4CB0D;
    color: #181818;
    border-color: #f4CB0D;
    text-decoration: none;
}

/* Restore Our Division section underline style */
.division-title {
    display: flex;
    align-items: center;
    color: #f4CB0D;
    font-weight: bold;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 2rem 0 2.5rem 0;
    font-family: inherit;
    gap: 1rem;
    text-align: left;
}
.division-title span {
    flex: 1;
    height: 2px;
    background: #f4CB0D;
    margin-left: 1rem;
    display: block;
    border-radius: 2px;
}
.division-title::after,
.division-title::before {
    content: none;
}

/* Restore footer styles */
.site-footer {
    background: #181818;
    color: #fff;
    padding: 0 0rem;
    margin: 0;
    font-size: 1.1rem;
    border-top: 4px solid #f4CB0D;
    margin-top: 0;
}
.footer-container {
    max-width: 100%;
    padding: 0 0rem;
    display: flex; 
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}


.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    gap: 2rem;
}
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-logo img {
    width: 90px;
    height: auto;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    width: 100%; 
    max-width: 640px; 
    box-sizing: border-box;
    white-space: nowrap;
}


.footer-contact i {
    color: #f4CB0D;
    margin-right: 0em;
    width: 1.4em;
    text-align: center;
}
.footer-contact p {
    color: #f4CB0D;
}

.footer-social {
    margin: 1rem 0;
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    color: #f4CB0D;
    font-size: 1.7rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff;
}

.footer-copy {
    text-align: center;
    font-size: 0.97rem;
    color: #aaa;
    margin-top: 0.5rem;
}

/* Ensure division-title is above overlays */
.division-section > .container {
    position: relative;
    z-index: 3;
}

/* Fix division-title underline visibility */
.division-title {
    display: flex;
    align-items: center;
    color: #f4CB0D;
    font-weight: bold;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 2rem 0 2.5rem 0;
    font-family: inherit;
    gap: 1rem;
    text-align: left;
    z-index: 10; /* Ensure above overlays */
    position: relative;
}
.division-title span {
    flex: 1;
    height: 2px;
    background: #f4CB0D;
    margin-left: 1rem;
    display: block;
    border-radius: 2px;
}
.division-title::after,
.division-title::before {
    content: none;
}


/* Fix: Prevent horizontal scroll from .about-image-box and images */
.about-image-box,
.about-image-box img,
.about-image-border {
    width: 100% !important;      /* <-- was 100vw */
    max-width: 100% !important;  /* <-- was 100vw */
    box-sizing: border-box;
    overflow-x: hidden;
}

#about {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: none;
    min-height: 100vh;
    width: 100%;
    display: block;
}

#about .content-container {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    padding: 2rem;
    margin-left: 5%; /* Position the content on the left */
    max-width: 600px; /* Limit the width of the content */
    border-radius: 10px; /* Optional: Add rounded corners */
}
#about .content-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f4CB0D; /* Yellow color for the heading */
    margin-bottom: 1rem;
}




#about .content-container p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #f4CB0D; /* Yellow color for the text */
}

#about .content-container a {
    color: #f4CB0D; /* Yellow link color */
    text-decoration: underline;
    font-weight: bold;
}

#about .content-container a:hover {
    color: #f4CB0D; /* Slightly darker yellow on hover */
}

.about-parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}





.about-section > .container,
.about-section > .container > .row {
    position: relative;
    z-index: 3;
}

.about-parallax-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 3rem 2rem;
    gap: 3rem;
}

.about-parallax-text {
    flex: 2;
    color: #f4CB0D;
    background: rgba(0,0,0,0.65);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}

.about-parallax-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f4CB0D;
}

.about-parallax-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #f4CB0D;
}

.about-parallax-text a {
    color: #f4CB0D;
    text-decoration: underline;
    font-weight: bold;
}

.about-parallax-text a:hover {
    color: #f4CB0D;
}

.about-parallax-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-parallax-image img {
    height: 100vh;
    max-height: 100vh;
    width: auto;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    object-fit: cover;
}

.about-text{
   text-align: justify;
   color: #f4CB0D;
   font-size: 1rem;
}
@media (max-width: 900px) {
  .about-parallax-bg,
  .about-section .about-parallax-bg {
    background-attachment: scroll !important;
  }
}

/* --- About Section Responsive Layout --- */
@media (max-width: 800px) {
  .image-column,
  .about-image-box {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .content-column,
  .about-inner,
  .inner-column.about-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 1.2rem 1rem !important;
    box-sizing: border-box !important;
    display: block !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .about-section > .container {
    padding: 0 !important;
  }
  .about-flex-row {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10 !important;
  }
  body, html {
    overflow-x: hidden !important;
  }
}
/* 1920x1080 (Full HD) */
@media (min-width: 1761px) and (max-width: 1920px) {
.about-section, #about {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  .about-flex-row {
    width: 100%;
  }
}


@media (min-width: 768px) {
    .footer-info {
        flex-direction: row; /* switch to row layout */
        align-items: flex-start; /* align items to top */
        justify-content: center;
        gap: 2rem;
    }

    .footer-logo {
        flex: 0 0 auto; /* don’t stretch */
        text-align: left;
    }

    .footer-contact {
        flex: 1;
        text-align: left;
    }
   .division-modal-parallax-content .division-parallax-block {
    flex-direction: row;
    height: 100vh;
  }
  .division-modal-parallax-content .division-img {
    width: 50vw;
    padding: 3rem 2.5rem;
    border-left: 4px solid #f4CB0D;
  }

  .division-modal-parallax-content .division-info,
  .division-modal-parallax-content .division-img {
    width: 95%;
    max-width: 700px;
    max-height: 700px;
  }

  .division-modal-parallax-content .division-info {
    border-right: 4px solid #f4CB0D;
  }
}
