/* assets/css/style.css */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00bcd4;
    --secondary-color: #6c757d;
    --accent-color: #ff9800;
    --header-bg-dark: #1a2a4b;
    --text-dark: #333;
    --text-light: #ffffff;
    --bg-light: #f0f2f5;
    --bg-white: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0097a7;
    border-color: #0097a7;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* --- Header --- */
.main-header {
    background-color: var(--header-bg-dark);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Styling */
.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.08);
}

/* Main Navigation (Desktop) */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (hidden by default on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Language Switcher (Desktop) */
.language-switcher select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    background-color: var(--header-bg-dark);
    color: var(--text-light);
    font-size: 1em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.language-switcher select:hover {
    background-color: #2b3e66;
    border-color: #00e5ff;
}

/* --- Main Content Area --- */
main {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 100px;
    min-height: 500px;
}

/* --- Hero Section --- */
.hero-section {
    background: url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 90px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons .btn {
    margin: 0 10px;
    animation: zoomIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* --- Services Overview --- */
.services-overview {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.services-overview h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* --- Featured Projects --- */
.featured-projects {
    padding: 80px 0;
    text-align: center;
}

.featured-projects h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-item h4 {
    font-size: 1.4em;
    padding: 15px;
    margin: 0;
}

.project-item .btn {
    margin: 0 15px 15px;
}

/* --- Why Choose Us --- */
.why-choose-us {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.usp-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.usp-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* --- Call to Action --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--header-bg-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* --- Notification / Alert Styles --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.notification-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.notification-box.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-box .notification-message {
    margin: 0;
    margin-right: 20px;
}

.notification-box .close-notification {
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    color: white;
    transition: color 0.3s ease;
}

.notification-box .close-notification:hover {
    color: #ccc;
}

/* Notification types */
.notification-box.success {
    background-color: #28a745;
}
.notification-box.error {
    background-color: #dc3545;
}
.notification-box.info {
    background-color: #007bff;
}

/* --- Contact Form Styling --- */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 189, 212, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1em;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Main header container */
    .main-header .container {
        padding: 0 15px;
    }
    
    /* Set the parent container of the menu to relative position */
    .main-header .header-tools {
        order: 3;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        
        /* This creates the compact menu panel next to the button */
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 250px;
        
        background-color: var(--bg-light);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        border-radius: 8px;
        
        /* Scrolling properties for long lists */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    /* Style for the list inside the menu */
    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .main-nav ul li {
        border-bottom: 1px solid #e0e0e0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    /* Styles for the links inside the menu */
    .main-nav ul li a {
        color: var(--text-dark);
        padding: 12px 20px;
        font-size: 1.1em;
        font-weight: 500;
        
        /* This will fix the alignment */
        text-align: right;
        display: block;
        
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

    .main-nav ul li a:hover {
        background-color: #e9ecef;
    }

    /* Toggle animation for the icon */
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-color);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-color);
    }
}
@media (max-width: 768px) {
    .main-header .container {
        padding: 0 15px;
    }

    .main-header .header-tools {
        order: 3;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 100%;
        max-width: 123px;

        background-color: var(--bg-light);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        border-radius: 8px;

        max-height: calc(100vh - 100px); /* Scroll space */
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;

        /* Ensure vertical stacking */
        display: flex;
        flex-direction: column;
    }

    .main-nav ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
        font-weight: 500;
        color: var(--text-dark);
        text-align: left;
        transition: background-color 0.2s ease;
    }

    .main-nav ul li a:hover {
        background-color: #e9ecef;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-color);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-color);
    }
}
/* --- Image Slider --- */
.image-slider {
    background-color: var(--bg-light);
    padding: 20px 0;
    overflow: hidden; /* Hides the images when they move out of the container */
    white-space: nowrap;
}

.slider-track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
    animation-delay: -2s; /* Starts the animation a bit into the cycle */
}

.image-slider img {
    height: 60px; /* Adjust the height of the images as needed */
    width: auto;
    object-fit: contain;
}

/* The animation itself */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 15px)); /* This moves the content from right to left */
    }
}
/* Founder & Team Profile Photos */
.founder-photo {
    width: 150px;       /* Set a fixed width */
    height: 150px;      /* Set a fixed height to make it a square */
    object-fit: cover;  /* This is key: it crops the image to fill the square without distorting it */
    border-radius: 50%; /* This turns the square into a perfect circle */
    display: block;
    margin: 0 auto;     /* Centers the image if it's in a block container */
    border: 3px solid var(--primary-color); /* Adds a nice colored border */
}
/* --- Portfolio Gallery Styles --- */
.portfolio-gallery {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* You can adjust this height */
    object-fit: cover;
    display: block;
}

.portfolio-item .item-info {
    padding: 25px;
}

.portfolio-item .item-info h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.portfolio-item .item-info .category {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-item .item-info p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-medium);
}

.portfolio-item .item-info h4 {
    font-size: 1.1em;
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.portfolio-item .item-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio-item .item-info ul li {
    font-size: 0.9em;
    color: var(--text-medium);
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.portfolio-item .item-info ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.portfolio-item .item-info .btn-small {
    margin-top: 20px;
}

/* --- Search Bar Styles (New Layout) --- */
.portfolio-search-bar {
    margin-bottom: 30px;
}

.portfolio-search-bar form {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to a new line */
    gap: 10px; /* Space between items */
}

.portfolio-search-bar input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* On small screens, the input will take up the full width */
    width: 200px; 
}

.portfolio-search-bar .btn {
    /* These styles will make the buttons take up the full width on a new line */
    flex-grow: 1;
    text-align: center;
    width: 50px;
}

/* This media query ensures the buttons stay on their own row on small screens */
@media (min-width: 500px) {
    .portfolio-search-bar .btn {
        width: auto;
    }
}
/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* Thank You Page Styles */
.thank-you-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.thank-you-content {
    max-width: 600px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thank-you-content h1 {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.thank-you-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.thank-you-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}
/* Make required field asterisks red */
.required {
    content: " *";
    color: red;
    font-weight: bold;
}

.career-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.career-container h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.career-container p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

#careerForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#careerForm label {
    font-weight: 600;
    color: #333;
}

#careerForm input,
#careerForm select,
#careerForm textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
    transition: border 0.2s;
}

#careerForm input:focus,
#careerForm select:focus,
#careerForm textarea:focus {
    border-color: #007bff;
    outline: none;
}

#careerForm button {
    background: #007bff;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

#careerForm button:hover {
    background: #0056b3;
}
