/* ✅ Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(120deg, #f6f7ff, #ffffff);
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}
/* ✅ Final Header (same as second one) */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: #6C63FF;
    font-weight: 700;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6C63FF;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.btn {
    background: #6C63FF;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.btn:hover {
    background: #5149d6;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 26px;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    color: #6C63FF;
}

.menu-toggle.rotate {
    transform: rotate(90deg);
}

/* ✅ Responsive Menu */
@media(max-width:768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        text-align: center;
        border-top: 1px solid #ddd;
    }

    nav a {
        margin: 10px 0;
        font-size: 18px;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        padding: 0px 5px 0px 75px;
        display: block;
    }
}

@media(max-width:380px) {
    header {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 18px;
    }

    nav a {
        font-size: 16px;
    }

    .btn {
        font-size: 13px;
        padding: 7px 15px;
    }
}


/* ✅ Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 60px;
    background: linear-gradient(135deg, #ffffff, #f0f1ff);
    gap: 40px;
}

.hero img {
    width: 50%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-text {
    max-width: 50%;
}

.hero-text h2 {
    font-size: 42px;
    color: #222;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* ✅ About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
    background: #fff;
    border-radius: 20px;
    margin: 40px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-content {
    max-width: 50%;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #222;
}

.about-content p {
    color: #555;
    margin-bottom: 20px;
}

.about-img img {
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ✅ Services Section */
.services {
    background: #f8f9ff;
    text-align: center;
    padding: 70px 60px;
}

.services h2 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #222;
}

.services p {
    color: #666;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.service-card i {
    font-size: 38px;
    color: #6C63FF;
    margin-bottom: 10px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: #6C63FF;
}

.service-card p {
    color: #555;
}

/* ✅ Process Section */
.process {
    padding: 70px 60px;
    background: #fff;
    text-align: center;
}

.process h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.timeline {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.timeline li {
    background: #f9f9ff;
    padding: 20px;
    border-radius: 12px;
    width: 22%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.timeline li:hover {
    transform: scale(1.05);
}

.timeline li span {
    background: #6C63FF;
    color: #fff;
    width: 35px;
    height: 35px;
    display: inline-block;
    border-radius: 50%;
    line-height: 35px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ✅ Portfolio */
.portfolio {
    padding: 70px 60px;
    background: #f8f9ff;
    text-align: center;
}

.portfolio h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.img-box img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.img-box:hover img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.img-box span {
    position: absolute;
    bottom: 0;
    background: rgba(108, 99, 255, 0.8);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

/* ✅ Contact */
.contact {
    display: flex;
    justify-content: center;
    padding: 60px;
}

form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 35px 40px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form h2 {
    text-align: center;
    color: #222;
    margin-bottom: 10px;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.3s ease;
    font-size: 15px;
}

form input:focus,
form textarea:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

form textarea {
    resize: none;
    height: 100px;
}

form button {
    background: #6C63FF;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #5149d6;
}

/* ✅ Footer */
footer {
    background: #f1f1f1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* ✅ Responsive */
@media(max-width:1024px) {
    header {
        padding: 10px 30px;
    }

    .hero {
        padding: 50px 30px;
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 80%;
    }

    .about {
        margin: 30px;
        padding: 40px 30px;
        flex-direction: column;
        text-align: center;
    }

    .about-content,
    .hero-text {
        max-width: 100%;
    }

    .about-img img {
        width: 80%;
    }

    .timeline li {
        width: 45%;
    }
}

/* ✅ Mobile Header Fix */
@media(max-width:768px) {
    header {
        flex-wrap: wrap;
        padding: 10px 20px;
        justify-content: space-between;
    }

    /* Adjust Logo */
    header h1 {
        font-size: 20px;
        flex: 1;
    }

    /* Adjust Toggle Button */
    .menu-toggle {
        display: block;
        font-size: 28px;
        padding: 5px 10px;
        margin-left: auto;
        cursor: pointer;
    }

    /* Hide Get Service Button on Small Screens */
    header .btn {
        display: none;
    }

    /* Navigation Dropdown Style */
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px 0;
        margin-top: 10px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 8px 0;
        font-size: 18px;
    }
}

/* ✅ Extra Small Screens */
@media(max-width:400px) {
    header h1 {
        font-size: 18px;
    }

    .menu-toggle {
        font-size: 24px;
    }
}

@media(max-width:600px) {
    .service-card {
        padding: 20px 15px;
    }

    .portfolio-grid {
        gap: 10px;
    }

    form {
        width: 100%;
        padding: 25px;
    }

    .timeline li {
        width: 100%;
    }
}

@media(max-width:500px) {
    header h1 {
        font-size: 22px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .about {
        padding: 20px;
        margin: 15px;
    }
}

@media(max-width:380px) {
    header {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 18px;
    }

    nav a {
        font-size: 16px;
    }

    .btn {
        font-size: 13px;
        padding: 7px 15px;
    }

    .hero h2 {
        font-size: 24px;
    }

    form button {
        font-size: 14px;
        padding: 8px;
    }
}