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

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Navigation Styles */
nav {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

nav .nav-links {
    display: flex;
    align-items: center;
}

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

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

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

nav .cta-button {
    background-color: #ff5f5f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

nav .cta-button:hover {
    background-color: #ff3434;
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #fff;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        transition: left 0.3s ease;
    }

    .nav-links.mobile-menu {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a {
        color: #fff;
    }
}

/* Hero Section Styles with Particle Effects */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #00C9C0;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #00a8a1;
}

/* Overlapping Logo Styles */
.logo-circle {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #00C9C0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid Layout Styles */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Service and Project Cards */
.grid-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 50px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
    transform: translateY(-15px) rotateX(5deg);
}

/* Tech-Like Animation */
.grid-item::before {
    content: '';
    position: absolute;
    top: -75%;
    left: -75%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(45deg);
    animation: animateGlow 5s linear infinite;
}

@keyframes animateGlow {
    0% {
        transform: rotate(45deg) translate(0%, 0%);
    }
    100% {
        transform: rotate(45deg) translate(50%, 50%);
    }
}

/* Service Icons */
.grid-item i {
    font-size: 4em;
    color: #0071E3;
    margin-bottom: 25px;
}

/* Service Titles */
.grid-item h3 {
    margin-bottom: 20px;
    color: #0071E3;
    font-size: 1.5em;
}

/* Service Descriptions */
.grid-item p {
    color: #666;
    font-size: 1em;
}

/* Services Section Styles */
#services {
    padding: 150px 20px; /* Increased padding for extra space */
    background-color: #f0f0f0;
}

#services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 70px;
    color: #333;
}

/* Projects Section Styles */
#projects {
    padding: 150px 20px; /* Increased padding for extra space */
    background-color: #1c1c2c;
}

#projects h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #fff;
}

#projects .grid-item {
    background: #282a36;
    color: #fff;
    padding: 0;
    overflow: hidden;
}

#projects .grid-item:hover {
    transform: translateY(-15px) rotateX(5deg);
}

#projects .grid-item h3 {
    color: #76c7c0;
}

#projects .grid-item p {
    color: #d1d1e0;
}

#projects .grid-item .tech-stack {
    margin-top: 10px;
    font-size: 0.9em;
    color: #b0b0c3;
    font-style: italic;
}

#projects .project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

#projects .project-info {
    padding: 20px;
}

#projects .grid-item .project-image {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Contact Section Styles */
#contact {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

#contact p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0071E3;
}

.contact-form button {
    padding: 15px 30px;
    border: none;
    background-color: #0071E3;
    color: #fff;
    font-size: 1em;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #005bb5;
}

/* Footer Styles */
footer {
    background-color: #111;
    color: #bbb;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-media a {
    color: #bbb;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #fff;
}

/* Shop Section Styles */
#shop {
    padding: 100px 20px;
    background-color: #f9f9f9;
}

#shop h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.product-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-item:hover {
    transform: translateY(-15px);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
}

.product-item h3 {
    margin-bottom: 15px;
    color: #0071E3;
    font-size: 1.5em;
}

.product-item p {
    color: #666;
    font-size: 1em;
    margin-bottom: 15px;
}

.product-item .price {
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-item .btn-primary {
    padding: 10px 20px;
    font-size: 1em;
}

.product-item .btn-primary:hover {
    background-color: #005bb5;
}

/* Adjustments for Buttons in Shop Section */
.product-item .btn-primary {
    display: inline-block;
    margin: 0 auto;
    text-decoration: none;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .logo-circle {
        top: -40px;
        width: 100px;
        height: 100px;
    }

    .grid-item {
        padding: 30px 15px;
    }

    #projects .grid-item .project-info {
        padding: 15px;
    }

    .contact-form {
        padding: 0 15px;
    }
}
