/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 1s ease;
}

.logo {
    color: #38bdf8;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: white;
    position: relative;
    transition: 0.3s;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: 0.4s;
}

.navbar a:hover::after {
    width: 100%;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 50px;
    gap: 60px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #38bdf8;
    filter: blur(150px);
    top: -100px;
    left: -100px;
    opacity: 0.3;
}

.hero-text {
    animation: fadeLeft 1.5s ease;
}

.hero-text h2 span {
    color: #38bdf8;
}

.hero-image img {
    width: 320px;
    border-radius: 20px;
    animation: float 4s ease-in-out infinite;
}

/* ================= BUTTON ================= */
.btn, .btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.4s;
    font-weight: bold;
}

.btn {
    background: #38bdf8;
    color: black;
}

.btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px #38bdf8;
}

.btn-outline {
    border: 2px solid #38bdf8;
    color: #38bdf8;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #38bdf8;
    color: black;
    box-shadow: 0 0 15px #38bdf8;
}

/* ================= SECTIONS ================= */
section {
    padding: 120px 50px;
    text-align: center;
    position: relative;
    animation: fadeUp 1.5s ease;
}

section::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: #38bdf8;
    filter: blur(120px);
    bottom: -50px;
    right: -50px;
    opacity: 0.15;
}

/* ================= SKILLS ================= */
.skills {
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-inline: auto;
}

.skill {
    margin-bottom: 20px;
}

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

.progress span {
    display: block;
    height: 10px;
    background: #38bdf8;
    animation: loadBar 2s ease forwards;
}

/* ================= SERVICES ================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px rgba(56,189,248,0.4);
}

/* ================= GALLERY ================= */
.gallery-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s;
}

.card img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.1);
}

.card:hover {
    box-shadow: 0 0 25px rgba(56,189,248,0.5);
}

/* ================= TESTIMONIAL ================= */
.testimonial-card {
    background: #1e293b;
    padding: 30px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 20px;
    transition: 0.4s;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(56,189,248,0.5);
}

/* ================= CONTACT ================= */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

form input, form textarea {
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
}

form button {
    cursor: pointer;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes loadBar {
    from { width: 0; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .navbar {
        padding: 15px 20px;
    }

    section {
        padding: 100px 20px;
    }
}
