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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    color: #6c5ce7;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a29bfe;
}

.btn-contact {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
}

.btn-login {
    border: 2px solid #6c5ce7;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #6c5ce7, #ff7675);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #b2bec3;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6c5ce7;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5649c0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #6c5ce7;
    color: white;
}

.btn-secondary:hover {
    background: rgba(108, 92, 231, 0.1);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abstract Shape Placeholder until image is generated */
.abstract-shape {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #6c5ce7, #fd79a8);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(80px);
    animation: blob-bounce 10s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes blob-bounce {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0);
    }

    33% {
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
        transform: translate(20px, -20px);
    }

    66% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
        transform: translate(-20px, 20px);
    }
}

/* Services Section */
.services {
    padding: 5rem 10%;
    background: #111;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card i {
    font-size: 2.5rem;
    color: #6c5ce7;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: #b2bec3;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 10%;
}

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

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

.project-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 1.2rem;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #b2bec3;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* About Section */
.about {
    padding: 5rem 10%;
    background: #111;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #b2bec3;
    margin-bottom: 1rem;
}

.about-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #6c5ce7;
    margin-bottom: 0.5rem;
}

/* Why Us Section */
.why-us {
    padding: 5rem 10%;
    background: #0d0d0d;
    text-align: center;
    /* Ensure title and general content is center aligned */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Center the grid itself */
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    /* Center text inside cards */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #6c5ce7;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #a29bfe;
    margin-bottom: 1.5rem;
    background: rgba(108, 92, 231, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #fff;
}

.feature-card p {
    color: #b2bec3;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    text-align: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    text-align: left;
    /* Keep form text alignment natural, but container centered */
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    align-items: flex-start;
    /* Ensure icons align properly */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-item i {
    color: #6c5ce7;
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem 10%;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    margin-left: 1.5rem;
    font-size: 1.2rem;
    color: #b2bec3;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #6c5ce7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 5rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Fix for horizontal scroll on mobile */
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden !important;
    }

    /* Equalize heights and spacing on mobile */
    .services,
    .about,
    .why-us,
    .contact {
        padding: 3rem 5%;
        /* Reduced padding for mobile */
    }

    .service-cards,
    .features-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .card,
    .feature-card {
        height: 100%;
        /* Ensure full height usage if in grid */
        margin-bottom: 1rem;
    }
}