/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth; /* Enables smooth scrolling when clicking nav links */
}

/* Header and Navigation Bar */
header {
    background-color: #2c3e50; /* Dark blue background */
    color: #fff;
    padding: 1rem 0;
    position: fixed; /* Makes the header stick to the top */
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #1abc9c; /* Added a small accent border */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Updated logo container */
.logo {
    width: 280px; /* Give the container a specific width */
    height: 40px;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px; /* Added padding for easier clicking */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #1abc9c; /* Teal color on hover */
    color: #fff;
}

/* Main content area needs padding to not be hidden by the fixed header */
main {
    padding-top: 80px; /* Adjusted this value slightly */
}

/* Hero Section */
.hero {
    background: #34495e; /* Slightly lighter dark blue */
    color: #fff;
    min-height: 60vh; /* Use min-height to ensure it's not too small */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem; /* Add padding for smaller screens */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px; /* Prevents the text from becoming too wide */
    margin: 0 auto 2rem;
}

.cta-button {
    background-color: #1abc9c; /* Teal */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #16a085; /* Darker teal */
}

/* General Content Section Styles */
.content-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bg-light {
    background-color: #f4f4f4; /* Light grey background */
}
/* Add this to your main CSS area */
main > section[id] {
    scroll-margin-top: 80px; /* Offset for the desktop fixed header height */
}

/* Services Section */
.services-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: 30%; /* Each card takes up about 30% of the container width */
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px); /* Lifts the card up slightly on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Contact Section */
.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-info a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
}

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


/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}
/* --- SVG Logo Styles --- */
.logo-font {
    font-family: 'Consolas', 'Courier New', monospace; /* Tech-style font */
    font-size: 24px;
    fill: #FFFFFF; /* White text color */
    font-weight: bold;
}

.logo-cursor {
    fill: #1abc9c; /* Teal cursor color */
    animation: blink 1.2s step-end infinite;
}

/* Blinking animation keyframes */
@keyframes blink {
    50% {
        opacity: 0;
    }
}
/* =================================== */
/* RESPONSIVE STYLES         */
/* =================================== */

/* For tablets and smaller devices (up to 768px wide) */
/* Replace your old block with this one */
@media (max-width: 768px) {
    
    /* This new rule fixes the scroll blocking issue on mobile */
    main > section[id] {
        scroll-margin-top: 200px; /* Taller offset for the taller mobile header */
    }

    nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo {
        width: 90%;
        max-width: 280px;
        height: auto;
        margin-bottom: 1rem;
    }

    .logo svg {
        width: 100%;
    }

    nav ul {
        margin-top: 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        padding-top: 220px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-container {
        flex-direction: column;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* For mobile phones (up to 480px wide) */
@media (max-width: 480px) {
    /* Further reduce font sizes for very small screens */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}