/* General Styling */
:root {
    --primary-bg: #1A1A2E; /* Dark purple/blue background */
    --secondary-bg: #16213E; /* Slightly lighter dark purple/blue */
    --text-color: #E0E0E0; /* Light grey for text */
    --accent-purple: #8B5CF6; /* Bright purple accent */
    --accent-pink: #EC4899; /* Bright pink accent */
    --accent-cyan: #22D3EE; /* Bright cyan accent */
    --card-bg: #2B2B45; /* Darker background for cards */
    --border-color: rgba(255, 255, 255, 0.1);
    --btn-bg: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    --btn-text: #fff;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from shapes */
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-pink);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: var(--accent-purple);
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    line-height: 1.1;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

/* Header & Navbar */
.header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    padding: 100px 20px 50px;
    text-align: left;
    overflow: hidden; /* Hide overflowing shapes */
}

.hero-content {
    max-width: 700px;
    z-index: 1; /* Ensure content is above shapes */
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks through shapes */
}

.shape {
    position: absolute;
    opacity: 0.6;
    filter: blur(50px); /* Soften the edges */
}

.circle-purple {
    width: 250px;
    height: 250px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    top: 15%;
    right: 15%;
    transform: translate(50%, -50%);
}

.circle-pink {
    width: 180px;
    height: 180px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    bottom: 20%;
    left: 70%;
    transform: translate(-50%, 50%);
}

.triangle-cyan {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173.2px solid var(--accent-cyan); /* Equilateral triangle */
    top: 50%;
    left: 85%;
    transform: rotate(30deg); /* Adjust rotation as needed */
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.services-intro {
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(1); /* Adjust icon color for dark background if needed */
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--accent-purple);
}

.service-item p {
    color: var(--text-color);
}


/* E-commerce Portfolio Section */
.ecommerce-portfolio {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ecommerce-platforms {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.ecommerce-platforms img {
    height: 40px; /* Adjust as needed for actual logos */
    filter: brightness(0) invert(1) saturate(0) contrast(1); /* Make logos white/light */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ecommerce-platforms img:hover {
    opacity: 1;
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent look */
    object-fit: cover; /* Cover the area, crop if necessary */
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #fff;
}

.project-info p {
    font-size: 0.95em;
    color: var(--accent-purple); /* Project category/type */
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Footer */
.footer {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 0.9em;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Make social icons white */
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 0 15px 10px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-content {
        text-align: center;
    }

    .hero-shapes {
        display: none; /* Hide shapes on smaller screens for simplicity */
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}