/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-orange { color: #f26622; } /* Brand Orange */
.text-purple { color: #8a2a8b; } /* Purple from Logo */
.bg-dark { background-color: #1a1b2f; color: #fff; } /* Brand Dark Blue/Black */
.bg-light { background-color: #f7f9fc; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8a2a8b; /* Purple from Logo */
    color: #ffffff; /* White text for contrast */
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: #6a1a6b; } /* Darker purple for hover */
.btn-dark { background-color: #1a1b2f; }
.btn-dark:hover { background-color: #111222; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Reduced from 20px */
    position: relative;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: flex-end; /* Align to the bottom of the container */
    gap: 12px; /* Space between logo image and text */
    text-decoration: none;
}

.nav-logo img {
    height: 45px; /* Reduced by ~25% from 60px */
    width: auto;
}

.nav-tagline {
    font-size: 0.9rem; /* Made even smaller */
    font-weight: 500; 
    color: #555; /* Slightly softer gray */
    letter-spacing: 2px;
    margin-bottom: -3px; /* Moved up by 1px from -4px */
}

@media (max-width: 950px) {
    .nav-tagline {
        display: none;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem; /* Reduced navigation text size */
    color: #1a1b2f;
    transition: color 0.3s;
}

/* Ensure button inside nav links stays white */
.nav-links a.btn {
    color: #ffffff;
}

.nav-links a:hover,
.nav-links a.active { 
    color: #8a2a8b; 
} /* Updated hover and active state to purple */

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    cursor: pointer;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1b2f;
    transition: color 0.3s, background-color 0.3s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: #8a2a8b;
    background-color: #f7f9fc;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1b2f;
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        min-width: auto;
        padding: 0;
        display: block;
    }
    .nav-dropdown-menu a {
        padding: 8px 0;
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(26, 27, 47, 0.85), rgba(26, 27, 47, 0.85)), url('../images/HeroPowerPlatform.png') center/cover no-repeat fixed;
    color: #fff;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Slightly increased gap to fit labels */
    justify-content: center;
    margin: 50px 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    /* Wrap the whole item so we can animate them independently if desired */
}

.tech-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
    transition: filter 0.3s, transform 0.3s;
}

.tech-item:hover .tech-icon {
    filter: drop-shadow(0 8px 16px var(--hover-color, rgba(0,0,0,0.2)));
    transform: scale(1.1);
}

.tech-label {
    margin-top: 15px;
    font-weight: 600;
    color: #1a1b2f;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: -30px;
    white-space: nowrap;
    text-align: center;
    animation: float 4s ease-in-out infinite; /* Added float to label */
}

.tech-item:hover .tech-label {
    opacity: 1;
}

/* Stagger animations so they don't move exactly together */
/* Apply staggering to the wrapper item so both icon and label float together in sync */
.tech-item:nth-child(1) .tech-icon, .tech-item:nth-child(1) .tech-label { animation-duration: 3.5s; animation-delay: 0s; }
.tech-item:nth-child(2) .tech-icon, .tech-item:nth-child(2) .tech-label { animation-duration: 4.2s; animation-delay: 0.5s; }
.tech-item:nth-child(3) .tech-icon, .tech-item:nth-child(3) .tech-label { animation-duration: 3.8s; animation-delay: 1s; }
.tech-item:nth-child(4) .tech-icon, .tech-item:nth-child(4) .tech-label { animation-duration: 4.5s; animation-delay: 1.5s; }
.tech-item:nth-child(5) .tech-icon, .tech-item:nth-child(5) .tech-label { animation-duration: 3.2s; animation-delay: 2s; }
.tech-item:nth-child(6) .tech-icon, .tech-item:nth-child(6) .tech-label { animation-duration: 4.0s; animation-delay: 0.3s; }
.tech-item:nth-child(7) .tech-icon, .tech-item:nth-child(7) .tech-label { animation-duration: 4.6s; animation-delay: 0.8s; }
.tech-item:nth-child(8) .tech-icon, .tech-item:nth-child(8) .tech-label { animation-duration: 3.7s; animation-delay: 1.2s; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
.modal-close:hover { color: #8a2a8b; }
.modal-content img {
    height: 60px;
    margin-bottom: 20px;
}
.modal-content h3 {
    color: #1a1b2f;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.modal-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #1a1b2f;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: #f7f9fc;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #8a2a8b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}
.testimonial-author-block {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8a2a8b;
}
.testimonial-author {
    font-weight: bold;
    color: #1a1b2f;
}
.testimonial-company {
    color: #8a2a8b;
    font-size: 0.9rem;
}
/* Services */
.services { padding: 80px 0; }
.services h2 { text-align: center; margin-bottom: 50px; font-size: 2.5rem; }
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.card h3 { margin-bottom: 15px; color: #1a1b2f; }

/* Why Choose Us & Info Sections */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
}
.split-section > * { flex: 1; }
.split-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (max-width: 800px) {
    .split-section { flex-direction: column; }
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}
.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}
@media (max-width: 800px) {
    .gallery { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { max-width: 180px; margin-bottom: 20px; }
.footer h4 { color: #f26622; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: #f26622; }
.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    flex: 1;
}

/* Forms */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
textarea.form-control { height: 150px; resize: vertical; }

/* Page Header */
.page-header {
    padding: 20px 0 40px 0; /* Dramatically reduced top padding */
    text-align: center;
    background-color: #f7f9fc;
}
.page-header h1 { 
    font-size: 3rem; 
    color: #8a2a8b; /* Purple from Logo */
    margin-top: 0; /* Remove default browser margin that pushes it down */
}
