/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background-color: #f8f9fa; /* Lighter background */
}

.container {
    width: 90%;
    max-width: 1200px; /* Slightly wider container */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 15px; /* Added horizontal padding */
}

/* Header & Navigation */
header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Stronger shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

header h1 {
    font-size: 28px; /* Larger title */
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

header h1 span {
    color: #3498db;
}

nav a {
    text-decoration: none;
    color: #555; /* Slightly darker link color */
    font-weight: 600;
    margin-left: 25px; /* More spacing */
    transition: 0.3s ease-in-out;
    display: inline-flex; /* Align icon and text */
    align-items: center;
}

nav a i {
    margin-right: 8px; /* Space between icon and text */
    color: #3498db; /* Icon color */
}

nav a:hover {
    color: #3498db;
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Hero Section */
.hero {
    height: 90vh; /* Taller hero section */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), /* Darker overlay */
                url('https://images.unsplash.com/photo-1556761175-b413da4b93a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* New background image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 3.5rem; /* Larger heading */
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem; /* Larger paragraph */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    background: #3498db;
    color: white;
    padding: 14px 35px; /* Larger button */
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4); /* Button shadow */
}

.btn i {
    margin-left: 10px;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

/* Section Common Styling */
section {
    padding: 100px 0; /* More vertical padding */
    background-color: white; /* Default background */
    margin-bottom: 20px; /* Space between sections */
    border-radius: 8px; /* Rounded corners for sections */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft shadow */
}

section:nth-of-type(even) { /* Alternate background for even sections */
    background-color: #f8f9fa;
}


section h2 {
    text-align: center;
    font-size: 3rem; /* Larger section heading */
    margin-bottom: 50px; /* More space below heading */
    position: relative;
    color: #2c3e50;
    font-weight: 700;
    display: inline-flex; /* To center the ::after properly with icon */
    align-items: center;
    justify-content: center;
    width: 100%; /* Important for centering the after pseudo-element */
}

section h2 i {
    margin-right: 12px;
    color: #3498db;
}

section h2::after {
    content: '';
    width: 80px; /* Wider underline */
    height: 4px; /* Thicker underline */
    background: #3498db;
    position: absolute;
    bottom: -15px; /* Lower the underline */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    text-align: center;
    background: white;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem; /* Larger text */
    color: #666;
    line-height: 1.8;
}

/* Services Section */
.services .container {
    padding-bottom: 0; /* Remove bottom padding for cards to align better */
}
.service-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* More gap between cards */
    padding-top: 20px;
}

.card {
    background: white;
    padding: 50px 30px; /* More padding */
    border-radius: 12px; /* More rounded corners */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Stronger shadow */
    transition: 0.4s ease-in-out;
    border-bottom: 5px solid #3498db; /* Blue border at bottom */
}

.card:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #2c3e50; /* Darker border on hover */
}

.service-icon {
    font-size: 3.5rem; /* Large icons */
    color: #3498db;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card:hover .service-icon {
    color: #2c3e50; /* Change icon color on hover */
}

.card h3 {
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 1.8rem; /* Larger heading */
    font-weight: 600;
}
.card p {
    font-size: 1rem;
    color: #777;
}

/* Contact Section */
.contact {
    background: #ecf0f1;
}

.contact form {
    max-width: 700px; /* Wider form */
    margin: 0 auto;
    background: white;
    padding: 50px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact input, .contact textarea {
    width: 100%;
    padding: 15px; /* Larger inputs */
    margin-bottom: 20px;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px; /* More rounded inputs */
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact input:focus, .contact textarea:focus {
    border-color: #3498db; /* Blue border on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); /* Light blue glow on focus */
}

.contact textarea {
    height: 150px; /* Taller textarea */
    resize: vertical; /* Allow vertical resizing */
}

.contact button {
    width: 100%;
    padding: 18px; /* Larger button */
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.contact button i {
    margin-left: 10px;
}

.contact button:hover {
    background: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0; /* More padding */
    margin-top: 30px; /* Space above footer */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

footer p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #3498db;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    section h2 {
        font-size: 2.5rem;
    }
    .card {
        padding: 40px 20px;
    }
    .service-icon {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 15px;
    }

    nav {
        margin-top: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px 10px; /* Adjust spacing for mobile nav */
    }
    
    .hero {
        height: 70vh;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    section h2 i {
        font-size: 1.8rem;
    }

    .about p {
        font-size: 1rem;
    }

    .contact form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }
    nav a {
        font-size: 0.9rem;
        margin: 5px 7px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
    section h2 i {
        font-size: 1.5rem;
    }
    .service-icon {
        font-size: 2.5rem;
    }
    .card h3 {
        font-size: 1.5rem;
    }
    .contact button {
        font-size: 1rem;
        padding: 12px;
    }
    .social-icons a {
        font-size: 1.2rem;
        margin: 0 7px;
    }
}