:root {
    --primary-blue: #3b82f6;
    --dark-navy: #0f172a;
    --slate-gray: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Improvement: Visible focus for keyboard users */
a:focus, button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Design Improvement: Soften the card entry */
.service-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(5px); /* Adds a subtle modern glass effect */
}

/* Global Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;   /* Makes internal links slide instead of jump */
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: #0f172a;   /* Deep charcoal/navy */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: 3px; 
    color: #3b82f6;        /* Brand Accent Blue */
    text-decoration: none;   /* Removes the underline */
    transition: 0.3s ease;
}

.logo:hover {
    color: #60a5fa;         /* Slightly lighter blue when hovered */
    transform: scale(1.05);   /* Gives a tiny "pop" effect when touched */
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Interactive: Sliding underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 85vh;

    /* Dark overlay ensures text is readable over any image */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('');

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);   /* Responsive font size */
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #cbd5e1;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive: Button lift and glow */
.btn:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Service Section */
.services {
    padding: 6rem 8%;
    text-align: center;
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #3b82f6;
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Interactive: Card elevation and border accent */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom: 6px solid #3b82f6;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Contact Section */
.contact {
    background: #f1f5f9;
    padding: 6rem 8%;
    text-align: center;
}

.contact-form {
    max-width: 650px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input, 
.contact-form textarea {
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Interactive: Input focus glow */
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
}

/* Responsive Design Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}