/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f9; 
    color: #555;
}

/* --- Header & Navigation Layout --- */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url('images/banner.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #ffffff;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff; 
    border: 1px solid #fff; 
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 1s;
}

.hero-btn:hover {
    border: 1px solid #2c3e50; 
    background: #2c3e50; 
}

.text-box {
    width: 90%;
    color: #f9f9f9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

nav .fa {
    display: none;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

/* --- Services Headline --- */
.course-header {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.course-header p {
    color: #555555; 
    padding-bottom: 15px;
    font-size: 16px; 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.course-header p::after {
    content: '';
    width: 700px; 
    height: 3px; 
    background: #2c3e50; 
    display: block;
    margin: 15px auto 0; 
    border-radius: 5px; 
}

.course-boxes {
    width: 100%;
    padding-top: 0.01px; 
    padding-bottom: 0px;
    padding-left: 10%;
    padding-right: 10%;
    background-color: #f4f4f9; 
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: #f1f1f1;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.course-col {
    flex-basis: 31%;
    background: #2c3e50; 
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    transition: 0.5s;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-col:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35); 
    transform: translateY(-8px); 
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
}

/* --- Campus Layout Styling --- */
.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.campus p {
    color: #555555; 
    padding-bottom: 15px;
    font-size: 16px; 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.campus p::after {
    content: '';
    width: 700px; 
    height: 3px; 
    background: #2c3e50; 
    display: block;
    margin: 15px auto 0; 
    border-radius: 5px; 
}

.campus-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* --- Forces perfectly equal LANDSCAPE image sizes --- */
.campus-col img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    background-color: #d3d3d3; 
    display: block;
    border-radius: 10px;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 5; 
}

.layer:hover {
    background: rgb(44, 62, 80, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    margin: 0; 
    top: 100%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    top: 50%; 
    opacity: 1;
}

/* ========================================== */
/* --- Custom Card Slider Layouts --- */
/* ========================================== */

/* Fixed Specificity: Forces the slider images to hide properly */
.campus-col img.card-slide {
    display: none;
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    background-color: #d3d3d3; 
    border-radius: 10px;
}

.campus-col img.card-slide.active {
    display: block;
    animation: fadeEffect 0.5s ease-in-out;
}

/* Card Control Navigation Hooks */
.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.75); 
    color: #ffffff;
    border: none;
    cursor: pointer;
    width: 60px; 
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, background-color 0.2s;
    z-index: 10; 
    opacity: 0; 
}

.campus-col:hover .card-slider-btn {
    opacity: 1;
}

.card-slider-btn:hover {
    background-color: #f44336; 
}

.card-slider-btn.prev {
    left: 15px;
}

.card-slider-btn.next {
    right: 15px;
}

/* --- Rest of Homepage Details --- */
.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facilities > p {
    color: #555555; 
    padding-bottom: 15px;
    font-size: 16px; 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.facilities > p::after {
    content: '';
    width: 700px; 
    height: 3px;  
    background: #2c3e50; 
    display: block;
    margin: 15px auto 0; 
    border-radius: 5px; 
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #ffffff; 
    padding: 20px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); 
    transition: 0.5s; 
}

.facilities-col:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); 
    transform: translateY(-5px); 
    background: rgba(44, 62, 80, 0.7); 
}

.facilities-col:hover h3,
.facilities-col:hover p {
    color: #ffffff; 
    transition: 0.3s; 
}

.facilities-col img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    background-color: #d3d3d3; 
    border-radius: 10px;
}

.facilities-col p {
    padding: 0;
    color: #555555; 
    margin-top: 10px; 
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 6px;
    text-align: left;
    color: #01040c; 
}

.testimonials {
    width: 80%;
    margin: 50px auto; 
    text-align: center;
    padding: 50px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/emp.jpg'); 
    background-size: cover; 
    background-position: center;
    color: #ffffff; 
}

.testimonials > p {
    color: #f5f5f5; 
    padding-bottom: 15px;
    font-size: 16px; 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.testimonials > p::after {
    content: '';
    width: 700px; 
    height: 3px; 
    background: #cdcdcd; 
    display: block;
    margin: 15px auto 0; 
    border-radius: 5px; 
}

.testimonial-col {
    flex-basis: 44%; 
    border-radius: 10px; 
    margin-bottom: 5%;
    text-align: left; 
    background: #2c3e50; 
    padding: 25px; 
    display: flex; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); 
    transition: 0.5s; 
}

.testimonial-col:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7); 
    transform: translateY(-5px); 
}

.testimonial-col p {
    padding: 0;
    color: #ffffff; 
    font-style: normal; 
}

.testimonial-col img {
    height: 60px; 
    width: 60px;  
    border-radius: 50%; 
    margin-right: 20px; 
    object-fit: cover;
    background-color: #d3d3d3; 
}

.testimonial-col h3 {
    color: #ffffff; 
    margin-top: 5px; 
    margin-bottom: 5px;
    text-align: left; 
}

.testimonial-col .fa {
    color: #f44336;
}

.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url('images/candies.jpg');
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

/* ========================================== */
/* --- About Us Minimalist Section --- */
/* ========================================== */
.about-us-section {
    width: 85%;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 60px;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h1 {
    color: #555555;
    font-size: 40px;
    font-weight: 600;
}

.about-header p {
    color: #555555; 
    margin-top: 10px;
    padding-bottom: 15px;
    font-size: 16px; 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.about-header p::after {
    content: '';
    width: 700px; 
    height: 3px;  
    background: #2c3e50; 
    display: block;
    margin: 15px auto 0; 
    border-radius: 5px; 
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-image-col {
    flex-basis: 50%;
}

.about-text-col {
    flex-basis: 50%;
}

.about-lead {
    color: #222222;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 0;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    color: #555555;
    font-size: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.about-list li .fa-check {
    color: #3498db;
    font-size: 20px;
    margin-right: 15px;
}

/* --- About Us Image Slider --- */
.slider-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none; 
    width: 100%;
    height: 400px; 
    object-fit: cover; 
    background-color: #d3d3d3; 
}

.slide.active {
    display: block; 
    animation: fadeEffect 0.5s; 
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.7); 
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
}

.slider-btn:hover {
    background-color: rgba(44, 62, 80, 1); 
}

.prev-btn {
    left: 15px; 
}

.next-btn {
    right: 15px; 
}

/* ========================================== */
/* --- Design Factory Section (About page) --- */
/* ========================================== */
.design-factory-section {
    width: 85%;
    margin: 80px auto;
}

.design-factory-header {
    text-align: center;
    margin-bottom: 50px;
}

.design-factory-header h1 {
    color: #0a1442;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
}

.design-factory-header p {
    color: #555555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.df-col {
    flex-basis: 31%;
    background: #0a1442;
    border-radius: 10px;
    padding: 35px 25px;
    color: #fff;
    transition: 0.5s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.df-col:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px);
}

.df-icon {
    width: 70px;
    height: 70px;
    background: #b9c6f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.df-icon .fa {
    font-size: 26px;
    color: #6b7fc4;
}

.df-col h3 {
    text-align: left;
    font-size: 20px;
    margin: 0 0 15px;
}

.df-col p {
    color: #d8dcf0;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================== */
/* --- Services Workflow Section (Timeline) --- */
/* ========================================== */
.workflow-section {
    background-color: #ffffff; 
    padding: 80px 5%;
    font-family: 'Poppins', sans-serif;
}

.workflow-title {
    color: #555555; 
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

.workflow-subtitle {
    text-align: center;
    color: #777777; 
    font-size: 16px;
    margin-bottom: 30px; 
}

.title-underline {
    width: 700px;
    height: 3px;
    background-color: #2c3e50; 
    margin: 0 auto 60px;
    border-radius: 2px;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 35px; 
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: #555555; 
    z-index: 0;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: #2c3e50; 
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 35px; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

.timeline-step p {
    color: #5e5e5e; 
    font-size: 13px;
    line-height: 1.6;
}

.workflow-btn-container {
    text-align: center;
    margin-top: 70px;
}

.workflow-btn {
    display: inline-block;
    background-color: #f44336; 
    color: #ffffff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 15px rgba(244, 67, 54, 0.3); 
}

.workflow-btn:hover {
    background-color: #d32f2f;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.5);
    transform: translateY(-3px);
}

/* ========================================== */
/* --- Footer Element Details (Compact) --- */
/* ========================================== */
.footer {
    width: 100%;
    text-align: center;
    padding: 15px 0; 
    background-color: #2c3e50; 
    color: #ffffff; 
}

.footer h4 {
    margin-bottom: 15px; 
    margin-top: 10px;    
    font-weight: 600;
    color: #ffffff; 
}

.icons .fa {
    color: #f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 10px 0; 
}

.icons a {
    text-decoration: none; 
    display: inline-block; 
    position: relative; 
}

.phone-tooltip {
    visibility: hidden;
    width: 130px;
    background-color: #2c3e50; 
    color: #fff; 
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 100%; 
    left: 50%;
    margin-left: -65px; 
    opacity: 0;
    transition: opacity 0.3s; 
    font-size: 14px;
    font-weight: 600;
}

.phone-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.icons a:hover .phone-tooltip {
    visibility: visible;
    opacity: 1;
}

.fa-heart-o {
    color: #f44336;
}

/* --- Media Queries for Device Responsiveness (< 700px) --- */
@media(max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
    }
    
    .nav-links ul li {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px; 
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    
    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    
    .nav-links ul {
        padding: 30px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .testimonial-col img {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .cta h1 {
        font-size: 24px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-us-section {
        width: 95%;
        padding: 30px 20px;
        margin: 40px auto;
    }
    
    .slide {
        height: 250px; 
    }
    
    .timeline-container {
        flex-direction: column; 
        gap: 40px;
    }
    
    .timeline-container::before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
        background-color: #555555;
    }
    
    .workflow-section {
        padding: 50px 5%;
    }

    .design-factory-section {
        width: 95%;
        margin: 40px auto;
    }

    .design-factory-header h1 {
        font-size: 26px;
    }

    .card-slider-btn {
        opacity: 1 !important;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
#projects-ui {
    /* Changed the second color to a darker gray (#d1d5df) so it's obvious */
    background: linear-gradient(to bottom, #cdcdd8, #a7aaaf);
    padding-bottom: 50px;
}
/* ========================================== */
/* --- Contact Us Section --- */
/* ========================================== */
.contact-section {
    width: 80%;
    margin: 80px auto;
    text-align: center;
}

.contact-section h1 {
    color: #555555;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Overriding the global white text */
.contact-section > p {
    color: #4c4c4c; 
    font-size: 16px;
    margin-bottom: 50px;
}
/* Adds the line under the Contact Us description */
.contact-section > p::after {
    content: '';
    width: 700px; 
    height: 3px;  
    background: #2c3e50; 
    display: block;
    margin: 15px auto 40px; 
    border-radius: 5px; 
}

/* Make sure the line resizes correctly on smaller screens */
@media(max-width: 700px) {
    .contact-section > p::after {
        width: 100%;
    }
}

/* Creating the side-by-side layout */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
}

.contact-col {
    flex-basis: 48%;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-col h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}

/* Overriding global paragraph padding and color */
.contact-col p {
    color: #555555; 
    padding: 0;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Adjusting button for light background */
.contact-col .hero-btn {
    color: #f44336;
    border: 1px solid #f44336;
    display: inline-block;
    margin-top: 10px;
}

.contact-col .hero-btn:hover {
    background: #f44336;
    color: #fff;
    border: 1px solid #f44336;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details .fa {
    color: #f44336;
    font-size: 20px;
    margin-right: 15px;
}

.contact-details a {
    color: #555555;
    text-decoration: none;
    transition: 0.3s;
}

.contact-details a:hover {
    color: #f44336;
}

/* Make it stack properly on mobile devices */
@media(max-width: 700px) {
    .contact-container {
        flex-direction: column;
    }
}