/* ================= GLOBAL ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f1b;
    color: #ffffff;
    line-height: 1.6;
}

/* Gradient Accent */
:root {
    --primary: #8e2de2;
    --secondary: #4a00e0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 27, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

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

/* ================= HERO ================= */

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(-45deg, #0f0f1b, #141427, #1a1a2e, #0f0f1b);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero h2 {
    font-size: 24px;
    margin-top: 10px;
    color: #cfcfcf;
}

.hero p {
    margin: 20px 0;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
}

.primary-btn:hover {
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid var(--primary);
    color: #fff;
}

.secondary-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* ================= SECTION ================= */

section {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= ABOUT ================= */

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

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

.skills {
    flex: 1;
    min-width: 280px;
}

.skill {
    margin-bottom: 20px;
}

.progress {
    background: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
}

.bar {
    height: 8px;
    width: 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 20px;
    transition: width 2s ease;
}

/* ================= SERVICES ================= */

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s;
}

.service-card i {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--primary);
}

/* ================= PROJECTS ================= */

.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-buttons button {
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
}

.filter-buttons button:hover {
    background: var(--primary);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px var(--secondary);
}

/* ================= TESTIMONIALS ================= */

.testimonial {
    text-align: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* ================= PRICING ================= */

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

.pricing-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0;
}

.pricing-card li {
    margin: 10px 0;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px var(--primary);
}

.popular {
    border: 2px solid var(--primary);
}

/* ================= CONTACT ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1a1a2e;
    color: white;
}

.contact-form textarea {
    min-height: 120px;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 20px;
    color: #25D366;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 20px;
    background: #141427;
}

/* ================= BACK TO TOP ================= */

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .hero h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}
/* ================= LIGHT MODE ================= */

.light-mode {
    background: #f5f5f5;
    color: #111;
}

.light-mode .navbar {
    background: rgba(255,255,255,0.9);
}

.light-mode .service-card,
.light-mode .project-card,
.light-mode .pricing-card,
.light-mode .testimonial {
    background: #ffffff;
    color: #111;
}

.light-mode .contact-form input,
.light-mode .contact-form textarea {
    background: #eeeeee;
    color: #111;
}
