/* /var/www/html/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #3b82f6; /* Blue-500 */
    --primary-dark-color: #2563eb; /* Blue-700 */
    --secondary-color: #6b7280; /* Gray-500 */
    --text-color: #1f2937; /* Gray-900 */
    --background-color: #f3f4f6; /* Gray-100 */
    --card-background: #ffffff;
    --border-color: #d1d5db; /* Gray-300 */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #10b981; /* Green-500 */
    --error-color: #ef4444; /* Red-500 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

body {
    background: linear-gradient(135deg, #e0f2f7, #c1e4f3, #a2d6ee, #83c8e9);
    background-size: 400% 400%; /* Larger than viewport to allow movement */
    animation: gradientShift 20s ease infinite; /* Subtle, slow movement */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to background-size */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Navigation Bar --- */
#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-button .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-color-1 {
    background-color: var(--primary-color);
    color: white;
}

.btn-color-1:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
}

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

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

/* --- Hamburger Menu (for mobile) --- */
#hamburger-nav {
    display: none; /* Hidden by default */
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above menu-links */
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%; /* Position below the nav */
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 250px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0; /* Remove default padding */
}

.menu-links.open {
    max-height: 300px; /* Adjust based on content */
    padding: 1rem;
}

.menu-links li {
    list-style: none;
    padding: 0.75rem 0;
    text-align: center;
}

.menu-links a, .menu-links .btn {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    width: 100%; /* Make buttons full width */
    margin: 0.5rem 0; /* Spacing for buttons */
}

.menu-links a:hover {
    color: var(--primary-color);
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px; /* Space for fixed header */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    min-height: 2.5rem; /* Ensure space for typing text */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.typing-text {
    display: inline-block;
    min-width: 200px; /* Give it some initial width */
}

.cursor {
    display: inline-block;
    background-color: var(--primary-color);
    width: 3px;
    height: 2rem; /* Match font size */
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- Content Sections (for nav links) --- */
.content-section {
    padding: 80px 20px;
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.service-card {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: var(--secondary-color);
}

.about-text, .contact-text {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.contact-details {
    text-align: center;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-color); /* Dark background for footer */
    color: white;
    font-size: 0.9rem;
    margin-top: 40px;
}


/* --- Media Queries (from your previous file, adjust as needed) --- */
@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
    .section-heading {
        font-size: 2rem;
    }
    .content-section {
        padding: 60px 15px;
    }
    .service-cards {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .cursor {
        height: 1.2rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}
