/* --- Global Variables & Reset --- */
:root {
    --primary-blue: #007bff; /* Primary Accent Color */
    --dark-blue: #1c2e4a;    /* Header/Text Color */
    --light-gray: #f8f9fa;   /* Section Background */
    --white: #ffffff;
    --text-color: #495057;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* --- Utility Classes --- */
.section {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

h1 { font-size: 3.5em; font-weight: 700; color: var(--white); }
h2 { font-size: 2.2em; font-weight: 600; color: var(--dark-blue); margin-bottom: 40px; }
h3 { font-size: 1.5em; font-weight: 600; color: var(--dark-blue); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Header & Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    height: 95px; /* Adjusted logo height */
    width: auto;
    margin-right: 10px;
}

.logo-tagline {
    font-size: 0.8em;
    color: var(--primary-blue);
    font-weight: 500;
}

.nav a {
    color: var(--dark-blue);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

.nav .btn-primary {
    margin-left: 30px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 150px 20px;
    text-align: center;
    background-image: url('./assets/images/hero.png'); /* Ensure this image is in your directory */
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(28, 46, 74, 0.85); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content .subtitle {
    font-size: 1.4em;
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* --- Expertise Section --- */
.expertise-section {
    background-color: var(--white);
}

.expertise-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    flex-basis: 30%;
    background-color: var(--light-gray);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.expertise-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.expertise-card .icon {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
}

.expertise-card p {
    font-size: 0.95em;
    margin-top: 10px;
}

/* --- Portfolio Section --- */
.portfolio-section {
    background-color: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: 250px; 
    gap: 15px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item.large-item {
    grid-column: span 2; 
    grid-row: span 2;    
    height: 100%; 
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 46, 74, 0.7); 
    color: var(--white);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    margin-bottom: 5px;
    color: var(--white);
}

/* --- NEW Contact Section Styles --- */
.contact-section {
    background-color: var(--white);
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 50px;
}

.contact-info {
    flex: 1;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--dark-blue);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-form {
    flex: 2;
    padding: 30px 0;
}

.contact-form h3 {
    margin-bottom: 25px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: var(--font-family);
}

.contact-form textarea {
    resize: vertical;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5em;
    color: var(--primary-blue);
    margin-right: 15px;
}

.info-item p {
    margin: 0;
    font-size: 1.0em;
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary-blue);
}

.follow-heading {
    margin-top: 30px !important;
}

.social-links-contact a {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-right: 20px;
    transition: color 0.3s;
}

.social-links-contact a:hover {
    color: var(--primary-blue);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    padding: 50px 40px 20px;
    color: var(--white);
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-logo p {
    margin-top: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    opacity: 0.6;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .header {
        padding: 15px 20px;
    }
    .nav {
        display: none; 
    }
    .expertise-grid {
        flex-direction: column;
        gap: 20px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr 1fr; 
        grid-auto-rows: 200px;
    }
    .portfolio-item.large-item {
        grid-column: span 2; 
        grid-row: span 1; 
    }
    .contact-grid {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        flex: none; 
        width: 100%; 
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-links {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    .hero-section { padding: 80px 15px; }
    .portfolio-grid {
        grid-template-columns: 1fr; 
        grid-auto-rows: 250px;
    }
    .portfolio-item.large-item {
        grid-column: span 1;
    }
}