/* General Styling */
:root {
    --primary-color: #0f172a; /* Deeper Dark Blue */
    --secondary-color: #1e293b; /* Lighter Slate Blue */
    --accent-color: #34d399; /* Emerald Green */
    --text-color: #cbd5e1;
    --heading-color: #f1f5f9;
    --card-bg: #1e293b;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents header from covering section title */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Reusable Components */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    color: var(--heading-color);
    text-align: center;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.cta-button {
    background: linear-gradient(90deg, #34d399, #2dd4bf);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

/* Header & Navigation */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 8%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links { list-style: none; display: flex; }
.nav-links li { margin: 0 20px; }
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-color); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 1)), url('https://images.pexels.com/photos/943096/pexels-photo-943096.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-button-hero {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}
.cta-button-hero:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Services Section */
.services-section, .why-us-section {
    padding: 100px 8%;
    background-color: var(--primary-color);
}

.services-grid, .why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card, .why-us-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--accent-color);
}

.service-card:hover, .why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card i, .why-us-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.service-card h3, .why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}
.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.service-link:hover { text-decoration: underline; }

/* Portfolio Section */
.portfolio-section {
    padding: 100px 8%;
    background-color: var(--secondary-color);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.1); }
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 1;
    transition: all 0.5s ease;
}
.overlay h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio-item:hover .overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 100px 8%;
    background-color: var(--primary-color);
    text-align: center;
}
.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.contact-button i { margin-right: 15px; }
.whatsapp { background-color: #25D366; color: white; }
.email { background-color: #5865f2; color: white; }
.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background-color: #0c1221;
    color: var(--text-color);
    padding-top: 60px;
    text-align: center;
}
.footer-content h3 { font-size: 2rem; color: var(--heading-color); margin-bottom: 10px; }
.footer-content p { max-width: 500px; margin: 0 auto 30px; }
.social-links { list-style: none; display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.footer-bottom {
    background-color: #080d18;
    padding: 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; } /* For simplicity. Can add a hamburger menu with JS */
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }
}