/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #081b29;
    color: #fff;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    color: #00abf0;
}

.navbar a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: #00abf0;
}

#menu-icon {
    font-size: 30px;
    color: #fff;
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 8% 10%;
    gap: 40px;
    /* flex-wrap: wrap; */
    text-align: center;
}

.home-content {
    max-width: 600px;
    text-align: left;
    animation: fadeIn 1s ease-in-out;
}

.home-content h3 {
    font-size: 28px;
    font-weight: 500;
}

.home-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: #00abf0;
}

.home-content span {
    color: #00abf0;
    font-weight: 600;
}

.typing-text::after {
    content: "|";
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
.social-media a {
    font-size: 20px;
    color: #00abf0;
    margin-right: 15px;
    transition: 0.3s;
}

.social-media a:hover {
    color: #fff;
}
/* Image Styling */
.home-img img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 6px 15px rgba(0, 171, 240, 0.5);
    transition: transform 0.4s ease-in-out;
}

.home-img img:hover {
    transform: scale(1.05) rotate(3deg);
}

/* Button Effects */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00abf0, #0087c7);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.4s;
    font-weight: 600;
}

.btn:hover {
    background: linear-gradient(135deg, #0087c7, #00abf0);
    transform: scale(1.05);
}

/* About Section */
/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5% 10%;
    gap: 50px;
    flex-wrap: wrap;
}

/* About Image */
.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 171, 240, 0.4);
    transition: transform 0.4s ease-in-out;
}

.about-img img:hover {
    transform: scale(1.05);
}

/* About Content */
.about-content {
    flex: 1;
    max-width: 600px;
}

.about-content h2 {
    font-size: 40px;
    color: #00abf0;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    text-align: justify;
}

/* Button Styling */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #00abf0;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #0087c7;
}

/* Services Section */
.services {
    text-align: center;
    padding: 5% 10%;
}

.services .heading {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Services Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Service Box */
.service-box {
    background: #122738;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 171, 240, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 171, 240, 0.4);
}

/* Service Icons */
.service-box i {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 15px;
}

/* Service Titles */
.service-box h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

/* Service List */
.service-box ul {
    list-style: none;
    padding: 0;
}

.service-box ul li {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

/* Adding Bullet Points */
.service-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00abf0;
    font-weight: bold;
}

/* Button Styling */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #00abf0;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0087c7;
}




/* Portfolio Section */
.portfolio {
    text-align: center;
    padding: 5% 10%;
    background: #0b1a2b;
}

/* Portfolio Heading */
.portfolio .heading {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Portfolio Grid */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Portfolio Card */
.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 171, 240, 0.3);
    transition: transform 0.3s ease-in-out;
}

.portfolio-box:hover {
    transform: translateY(-5px);
}

/* Project Images */
.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

/* Hover Effect on Images */
.portfolio-box:hover img {
    transform: scale(1.1);
}

/* Project Details Layer */
.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Show Details on Hover */
.portfolio-box:hover .project-layer {
    opacity: 1;
}

/* Project Titles */
.project-layer h3 {
    font-size: 22px;
    color: #00abf0;
    margin-bottom: 10px;
    text-align: center;
}

/* Project Description */
.project-layer p {
    font-size: 16px;
    color: #ddd;
    text-align: center;
    margin-bottom: 15px;
}

/* GitHub Link Button */
.project-layer a {
    font-size: 20px;
    color: #00abf0;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 50%;
    transition: background 0.3s;
}

.project-layer a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #fff;
}



/* Contact Section */
/* Contact Section */
.contact {
    text-align: center;
    padding: 5% 10%;
    background: #0b1a2b;
}

/* Section Heading */
.contact .heading {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Form Container */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 171, 240, 0.3);
}

/* Input Box Grid */
.input-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

/* Input Fields */
.input-box input,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: 0.3s ease-in-out;
}

/* Focus & Hover Effects */
.input-box input:focus,
textarea:focus {
    border-color: #00abf0;
    background: rgba(255, 255, 255, 0.2);
}

/* Textarea */
textarea {
    width: 100%;
    height: 120px;
    resize: none;
}

/* Submit Button */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #00abf0;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* Button Hover Effect */
.btn:hover {
    background: #0087c7;
}




/* Footer Section */
.footer {
    text-align: center;
    padding: 20px;
    background: #0b1a2b;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Footer Text */
.footer-text p {
    font-size: 16px;
    color: #00abf0;
    margin: 0;
    padding: 5px;
}

/* Back to Top Icon */
.footer-IconTop {
    position: absolute;
    right: 20px;
    bottom: 15px;
}

/* Icon Styling */
.footer-IconTop a {
    display: inline-block;
    font-size: 22px;
    color: #00abf0;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}

/* Hover Effect */
.footer-IconTop a:hover {
    background: #00abf0;
    color: #fff;
}


@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 25% 8%;
    }

    .home-content {
        text-align: center;
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 22px;
    }

    .home-content p {
        font-size: 14px;
    }

    .home-img img {
        width: 250px;
        height: 250px;
    }
    .about {
        flex-direction: column;
        text-align: center;
        padding: 5% 8%;
    }

    .about-img img {
        max-width: 300px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content h3 {
        font-size: 22px;
    }

    .about-content p {
        font-size: 14px;
    }
    .services {
        padding: 5% 8%;
    }

    .services .heading {
        font-size: 32px;
    }

    .service-box {
        padding: 20px;
    }

    .service-box h3 {
        font-size: 20px;
    }

    .service-box ul li {
        font-size: 14px;
    }
    .portfolio {
        padding: 5% 8%;
    }

    .portfolio .heading {
        font-size: 32px;
    }

    .portfolio-box {
        border-radius: 10px;
    }

    .project-layer h3 {
        font-size: 18px;
    }

    .project-layer p {
        font-size: 14px;
    }

    .project-layer a {
        font-size: 18px;
    }
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        text-align: center;
        flex-direction: column;
        padding: 20px 0;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
        font-size: 18px;
    }

    #menu-icon {
        display: block;
        cursor: pointer;
    }
    .contact {
        padding: 5% 8%;
    }

    .contact .heading {
        font-size: 32px;
    }

    .input-box {
        flex-direction: column;
    }
    .footer {
        padding: 15px;
    }

    .footer-text p {
        font-size: 14px;
    }

    .footer-IconTop {
        right: 10px;
        bottom: 10px;
    }

    .footer-IconTop a {
        font-size: 18px;
        padding: 6px 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}