/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and global styles */
body {
    font-family: 'Times New Roman', Times, serif;
    color: #ffffff;
    line-height: 1.6;
    background: url('images/pic.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    margin: 0;
}

/* Overlay for dark theme */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Consistent dark overlay */
    z-index: 0;
}

/* Header styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-40%);
}

/* Navigation styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #cccccc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Main content and sections */
main {
    position: relative;
    z-index: 1;
    margin-left: 0;
}

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

section p {
    font-size: 1.5rem;
    color: #cccccc;
}

/* Home section specific styling */
#home p:first-of-type {
    font-size: 2rem;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#home p:nth-of-type(2) { /* Motto styling */
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.5); /* Blue glow for AI focus */
}

/* Explore Our Solutions icon (Grey downwards-facing triangle) */
.home-icon {
    display: block;
    width: 0;
    height: 0;
    border-left: 40px solid transparent; /* Left half of triangle */
    border-right: 40px solid transparent; /* Right half of triangle */
    border-top: 40px solid #808080; /* Grey triangle pointing down */
    margin-top: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite ease-in-out; /* Subtle pulse for catchiness */
}

/* Hover effects */
.home-icon:hover {
    transform: scale(1.15); /* Slightly larger on hover */
    animation: none; /* Pause pulse on hover */
}

/* Active state for click animation */
.home-icon.active {
    transform: rotate(180deg); /* Rotate 180 degrees when clicked */
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* About Us section styling */
.about-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.about-mission-card {
    flex: 1;
    background: #0d0d0d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    animation: slideInLeft 0.5s ease-out;
}

.about-mission-card:hover {
    transform: translateY(-5px);
}

.mission-header {
    font-size: 1.4rem;
    color: #cccccc;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.about-mission-card p {
    font-size: 1.4rem;
    color: #cccccc;
}

.about-details-card {
    flex: 1;
    background: #0d0d0d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

.about-details-card:hover {
    transform: translateY(-5px);
}

.about-details-card p {
    font-size: 1.4rem;
    color: #cccccc;
}

.about-details-card .highlight {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-mission-card, .about-details-card {
        padding: 1.5rem;
    }
}

/* Services section styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.service-tile {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.service-tile h3 {
    font-size: 1.8rem;
    color: #e0e0e0;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-tile p {
    font-size: 1.2rem;
    color: #999999;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons (e.g., Contact button) */
button {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

button:hover {
    background-color: #357abd;
}

/* Footer styling */
footer {
    position: relative;
    z-index: 1;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #444;
    color: #999999;
    background: rgba(0, 0, 0, 0.7);
}

/* Sidebar styling */
#sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #000000;
    z-index: 3;
    padding: 2rem;
    transition: left 0.3s ease-in-out;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidebar.active {
    left: 0;
}

#sidebar h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    border-bottom: 1px solid #444444;
    padding-bottom: 0.5rem;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar-tile {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 70%);
    border: 1px solid #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sidebar-tile:hover {
    background: linear-gradient(135deg, #404040 0%, #262626 70%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.tile-content {
    padding: 0.5rem 0;
}

.tile-content h4 {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.tile-content h4:hover {
    color: #cccccc;
}

.tile-content p {
    font-size: 1rem;
    color: #999999;
    line-height: 1.4;
}

#sidebar-close {
    width: 100%;
    margin-top: 2rem;
    background: #333333;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#sidebar-close:hover {
    background: #cccccc;
    transform: translateY(-2px);
}

#sidebar-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    font-family: 'Times New Roman', Times, serif;
}

#sidebar-toggle:hover {
    color: #cccccc;
    transform: scale(1.1);
}

/* Contact section specific styling */
#contact a {
    color: #e0e0e0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #ffffff;
}