/* Import Fira Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap');

/* Ensure box-sizing is applied universally */
* {
    box-sizing: border-box;
}

/* Global Styles */
html, body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #010203;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%; 
}

/* Main Content Styles */
#mainContent {
    display: none; /* Initially hidden */
    padding: 20px;
    width: 100%; /* Ensure full width */
}

/* Loading Screen Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loadingScreen {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
  /* visibility transition delayed by opacity duration */
}

#loadingScreen.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}



/* Line styles */
.line {
    height: 5px;
    background-color: #ffffff;
    border-radius: 5px;
    width: 0;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

/* Line 1 - grows from left to right */
.line1 {
    animation: growLeft 0.6s ease-in-out forwards;
    animation-delay: 0.2s;
}

/* Line 2 - grows from right to left */
.line2 {
    animation: growRight 0.6s ease-in-out forwards;
    animation-delay: 0.4s;
}

/* Line 3 - expands from center outwards */
.line3 {
    transform-origin: center;
    animation: growCenter 0.6s ease-in-out forwards;
    animation-delay: 0.8s;
}

/* Animations */

@keyframes growLeft {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes growRight {
    from { width: 0; transform: translateX(60px); }
    to { width: 100px; transform: translateX(0); }
}

@keyframes growCenter {
    from { width: 0; transform: scaleX(0); }
    to { width: 60px; transform: scaleX(1); }
}




/* Animations For Sections */
/* Define the slide-up animation */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px); /* Adjust based on how far you want to slide */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation to elements */
.animate-up {
    opacity: 0; /* Start as invisible */
    transform: translateY(50px); /* Adjust initial position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

.animate-up.visible {
    animation: slide-up 0.6s ease-out forwards; /* Apply the slide-up animation */
}


/* Navigation Styles */
nav {
    background-color: #010203;
    width: 100%;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 100;
    padding: 14px 20px;
    display: inline-block;
    letter-spacing: 3px;
}

nav .nav-right a:hover {
    background-color: #ddd;
    color: black;
}

nav .nav-left a:hover {
    background-color: transparent;
    color: white;
}

nav .nav-left {
    font-style: italic;
    font-size: larger;
}

.nav-right {
    display: flex;
    gap: 10px; /* Optional: Adjust spacing between links */
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    font-size: 30px; /* Size of the hamburger icon */
    cursor: pointer; /* Pointer cursor on hover */
    color: white; /* Color of the hamburger icon */
    width: 50px; /* Set width of the hamburger div */
    height: 50px; /* Set height of the hamburger div */
    align-items: center; /* Center icon vertically */
    justify-content: center; /* Center icon horizontally */
    text-align: center; /* Center text inside the hamburger div */
}


/* Overlay Styles */
.overlay {
    position: fixed; /* Fixed positioning */
    top: 0;
    right: 0; /* Align to the right */
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 999; /* Behind the side menu but above other content */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for both transform and opacity */
    opacity: 0; /* Initially invisible */
}

.overlay.active {
    transform: translateX(0); /* Slide in from the right */
    opacity: 1; /* Make the overlay visible */
}


/* Side Menu Styles */
.side-menu {
    position: fixed; /* Fixed positioning */
    top: 0;
    right: 0;
    width: 250px; /* Width of the side menu */
    height: 100vh; /* Full height of the viewport */
    background-color: #010203; /* Background color */
    color: white; /* Text color */
    z-index: 1000; /* Ensure it is above other content */
    transform: translateX(100%); /* Hide off-screen */
    opacity: 0; /* Initially invisible */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for both transform and opacity */
}

.side-menu.active {
    transform: translateX(0); /* Slide in from the right */
    opacity: 1; /* Make the side menu visible */
}


.side-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.close-btn {
    margin:10px;
    font-size: 50px; /* Size of the close button */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Side Menu Navigation Styles */
.side-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    padding: 20px;
}

.side-menu-nav a {
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
    padding: 15px 0; /* Vertical padding */
    font-size: 1.5em; /* Font size */
}

.side-menu-nav a:hover {
    background-color: #ddd; /* Background color on hover */
    color: black; /* Text color on hover */
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    nav a {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    nav .nav-left {
        font-size: 1; /* Adjust font size */
    }

    .nav-right {
        display: none; /* Hide nav links by default */
    }

    .hamburger {
        display: block; /* Show hamburger icon on small screens */
    }
}

/* Section Styles */
section {
    padding: 30px 20px; /* 100px top & bottom, 20px left & right */
    margin: 20px 0;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
}


/* Case Studies Section */
#case1,
#case2 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px;
}

#case1 {
    background-image: url('/images/tcpcbg.webp');
}

#case2 {
    background-image: url('/images/engrbg.webp'); 
}

/* Heading */
#case1 h2,
#case2 h2 {
    margin: 0;
    font-size: 2em; /* Adjust font size as needed */
}

/* Paragraph */
#case1 p,
#case2 p {
    margin: 20px 0; /* Space between paragraphs */
    font-size: 0.9em; /* Adjust font size as needed */
}

/* Button for Case Studies */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: transparent; /* Button background color */
    text-decoration: none;
    border: 2px solid white; /* White border with 2px width */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transitions for background color and border color */
    margin-top: 20px; /* Space above the button */
}

.button:hover {
    background-color: #010203;
}

/* Media Query for smaller screens */
@media (max-width: 480px) {
    #case1,
    #case2 {
        text-align: center; /* Center text alignment */
        align-items: center; /* Center align items horizontally */
    }

    #case1 h2,
    #case2 h2 {
        font-size: 1.5em; /* Adjust font size for smaller screens */
    }

    #case1 p,
    #case2 p {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }

    .button {
        display: block;         /* Make the button a block-level element */
        width: 50%;            /* Make the button take up the full width of its container */
        padding: 6px 12px;     /* Adjust padding as needed */
        font-size: 0.8em;         /* Adjust font size as needed */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
}

/* Tools Section */
#tools {
    text-align: center;
    background-color: #000;
    color: white;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 50px;
    padding-right: 20px;
    padding-bottom: 200px; /* Adjust this value as needed */
    padding-left: 20px;
    box-sizing: border-box;
}

#tools .horizontal-line {
    width: 20%; 
    height: 1px;
    background-color: white;
    margin: 40px auto 20px; /* Center horizontally and add spacing */
}

#tools h2 {
    margin-bottom: 20px;
    font-size: 2.5em; /* Adjust font size for readability */
}

.tools-icons {
    display: flex;
    flex-wrap: wrap;              /* Allow wrapping on smaller screens */
    justify-content: space-evenly; /* Distribute icons across full width */
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;                  /* Take full width of parent section */
    box-sizing: border-box;
}


.tools-icons img {
    width: 70;
    height: 70px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    #tools {
        padding: 60px 40px; /* Increased padding for larger screens */
    }

    #tools h2 {
        font-size: 1.5em; /* Larger font size on larger screens */
    }

    #tools img {
        width: 60%; /* Make the image take up the full width of the container */
    }
}


/* Blog Section */
#blog {
    padding: 20px;
    background-color: #010203;
    color: white;
}

#blog .post {
    margin-bottom: 20px;
}

#blog .post h3 {
    margin-top: 0;
}

#blog .post p {
    margin-bottom: 0;
}

#blog .post a {
    color: #00f;
    text-decoration: none;
}

#blog .post a:hover {
    text-decoration: underline;
}

/* Home Section */
#home {
    color: #fff;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 0px; /* Reduced from default */
}

#home h2, #home h3, #home p {
    margin: 0;
    text-align: left; /* Align text to the left in landscape mode */
}

#home h2 {
    font-size: 3.5em;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1;
    margin-bottom: 0.2em;
}

#home h3 {
    font-size: 1.5em;
    font-weight: 200; /* Use numeric value for consistent weight */
    /*letter-spacing: 8px;*/
    line-height: 1.5;
}

#home p {
    letter-spacing: 3px;
}

/* Text Column and Image Column */
.text-column, .image-column {
    flex: 1 1 100%; /* Set columns to 100% width */
    padding: 10px 0; /* Adjust padding for better spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    }
    

.text-column {
    order: 1;
}

.image-column {
    order: 2;
}

/* Image Styles */
#home img {
    max-width: 80%;     /* Slightly smaller width if needed */
    max-height: 1000px;  /* Limit the image height */
    height: auto;       /* Maintain aspect ratio */
    display: block;
    margin: 0 auto;
}

/* Social Media Links Container for Home Section */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center; /* Center social links */
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em; /* Increased font size for better visibility */
}

/* Responsive Design for iPad Portrait and Smaller Devices */
@media (max-width: 1024px) {
    #home {
        flex-direction: column; /* Stack items vertically on iPad portrait */
        align-items: center; /* Center columns horizontally */
        text-align: center; /* Center text */
    }
     .text-column, .image-column {
        flex: 1 1 100%; /* Set columns to 100% width */
        padding: 10px 0; /* Adjust padding for better spacing */
    }
    
    #home img {
        max-width: 50%; /* Adjust as needed */
    }
    
     #home h2 {
        font-size: 4em;
        letter-spacing:5px;
    }

    #home h3 {
            font-size: 2.5em;
        }
}

@media (max-width: 768px) {
    #home {
        padding: 20px; /* Adjust padding for smaller screens */
    }

   .text-column {
        flex: 3 1 75%; /* Larger width for the text column */
        padding: 10px 0; /* Adjust padding for better spacing */
    }
    
    .image-column {
            flex: 1 1 25%; /* Smaller width for the image column */
            padding: 10px 0; /* Adjust padding for consistency */
        }

    #home img {
        max-width: 50%; /* Adjust as needed */
    }
    
        #home h2 {
        font-size: 2em;
    }

        #home h3 {
            font-size: 1em;
        }
}

/* About   Styles */
#about {
    background-color: white;
    margin: 0 auto; /* Center align the section horizontally */
}


.about-container {
    display: flex;
    align-items: center;
    flex-direction: row; /* Default to row direction */
    text-align: left; /* Default left alignment */
}

.about-header,
.about-content {
    flex: 1;
    padding: 20px;
}

.about-header {
    font-size: 2.5em;
    font-weight: bold;
}

.about-content {
    font-size: 1.2em;
    text-align: justify; /* Justify the text */
}

.about-content p {
    text-indent: 20px; /* Indent the first line of paragraphs */
}


.about-content p .highlight a {
    font-weight: 500; /* Adjusted to a lighter weight */
    color: #010203; /* Change to your desired color */
}


.about-content .contact-links {
    display: flex;
    flex-direction: row; /* Ensure items are arranged horizontally */
    justify-content: center; /* Center items horizontally within the container */
    align-items: center; /* Align items vertically centered within the container */
    padding: 20px 0; /* Padding on top and bottom */
}

.about-content .contact-links a {
    color: #010203; /* Match the link color with the background color */
    text-decoration: none; /* Remove underline */
    margin: 0 10px; /* Space between links */
    display: flex; /* Ensure icon and text align properly */
    align-items: center; /* Vertically center the icon and text */
}

.about-content .contact-links a:hover {
    color: #010203; /* Optional: change color on hover */
}

.about-content .contact-links i {
    margin-right: 8px; /* Space between icon and text */
}

/* Responsive Design for iPad Portrait and Smaller Devices */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column; /* Stack elements vertically on iPad portrait */
        text-align: center; /* Center align text */
    }

    .about-header,
    .about-content {
        padding: 10px 0; /* Adjust padding for better spacing */
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        text-align: center; /* Center align text */
    }

    .about-header,
    .about-content {
        padding: 10px 0; /* Adjust padding for better spacing */
    }
    
    .about-header{
        font-size: 1.5em;
    }

   .about-content .contact-links {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
    justify-content: center; /* Center items horizontally */
    padding: 10px 0; /* Adjust padding for better spacing */
}
    .about-content .contact-links a {
        margin: 10px; /* Add margin to create space between links */
        text-align: center; /* Center text within each link */
    }
}



/* Footer */
footer {
    background-color: #010203;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .social-links a {
    margin: 0 10px;
    color: white;
    font-size: 24px;
}

footer .social-links a:hover {
    color: #ddd;
}