/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* --- CSS Variables (Theme) --- */
:root {
    --primary-color: #0a3d62;   /* Deep, trustworthy blue */
    --accent-color: #00a896;    /* Vibrant teal for buttons and highlights */
    --dark-color: #333333;      /* Dark gray for text */
    --light-color: #f9f9f9;    /* Off-white for section backgrounds */
    --white-color: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

/* --- Global & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background: #008a79;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
    border: 2px solid #eee;
}
.btn-secondary:hover {
    background: var(--dark-color);
    color: var(--white-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}
.navbar a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

/* --- How It Works & Services Sections --- */
.how-it-works, .featured-services {
    background-color: var(--light-color);
}

.steps-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step, .service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.service-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
}

.step i, .service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- Portfolio Showcase --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.portfolio-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.portfolio-grid img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--white-color);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Final CTA Section --- */
.cta {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
}
/* --- Services Page Styles --- */
.page-header {
    background: var(--light-color);
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 3rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* Makes cards in the same row equal height */
}

.service-package-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column; /* Allows footer to stick to the bottom */
}

.service-package-card .card-header,
.service-package-card .card-body,
.service-package-card .card-footer {
    padding: 30px;
}

.service-package-card .card-header {
    border-bottom: 1px solid #eee;
}

.service-package-card .card-body {
    flex-grow: 1; /* Pushes the footer down */
}

.service-package-card .price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.features-list i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.card-footer {
    background: var(--light-color);
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/* --- Portfolio Page Styles --- */
.portfolio-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.portfolio-item-card img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item-info {
    padding: 25px;
}

.portfolio-item-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
/* --- About Page Styles --- */
.about-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.about-content-wrapper h3 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-statement {
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-style: italic;
    background: var(--light-color);
}

.founder-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 3rem;
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
}

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.founder-bio h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Responsive styles for About Page --- */
@media (max-width: 768px) {
    .founder-section {
        flex-direction: column;
        text-align: center;
    }
}
/* --- Contact Page Styles --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
    flex-shrink: 0;
}

.info-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}
.info-list a:hover {
    text-decoration: underline;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Responsive styles for Contact Page --- */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
/* --- Legal Page Styles --- */
.legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.legal-content-wrapper h2 {
    text-align: left;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-content-wrapper p, .legal-content-wrapper li {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.legal-content-wrapper ul {
    list-style-position: inside;
}
/* --- Web Design Service Page Styles --- */
.service-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.service-detail-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-detail-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* --- Homepage Service Grid Update for 4 Items --- */
.featured-services .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* --- Responsive styles for Web Design Page --- */
@media (max-width: 900px) {
    .service-detail-wrapper {
        grid-template-columns: 1fr;
    }
}
/* --- Navigation Dropdown Styles --- */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white-color);
    box-shadow: var(--shadow);
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    min-width: 200px;
    z-index: 10;
}

.navbar .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar .dropdown-menu li {
    padding: 10px 20px;
}

.navbar .dropdown-menu li a {
    white-space: nowrap;
}