* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

/* Modern Color Palette */
:root {
    /* Light Theme */
    --primary-color: #60a5fa;     /* Light Blue */
    --secondary-color: #3b82f6;   /* Bright Blue */
    --accent-color: #2563eb;      /* Royal Blue */
    --bg-color: #0f172a;          /* Dark Blue */
    --snd-bg-color: #27364d;     /* Navy Blue */
    --text-color: #f1f5f9;        /* Light Gray */
    --heading-color: #ffffff;     /* White */
    --nav-bg: #344865;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --home-color:linear-gradient(135deg, #1f2837, #1c253a);
    --bg-color: #ffffff;
    --text-color: #ffffff;
    --main-color: #bb86fc;
    --hover-color: #3700b3;
    --header-bg: #121212;
}


/* Dark Theme Colors */
body.dark-theme {

    --primary-color: #b8c2cf;     /* Light Blue */
    --secondary-color: #28bb74;   /* Bright Blue */
    --accent-color: #c9c9c9;      /* Royal Blue */
    --snd-bg-color: #9c9fa4;     /* Navy Blue */
    --heading-color: #f9e1e1;     /* White */
    --nav-bg: #B1BCB4;
    --box-shadow: 0 8px 32px rgba(188, 174, 174, 0.3);
    --home-color:linear-gradient(135deg, #ebf3ff, #8f97a8);
    --bg-color: #ffffff;
    --text-color: #110d0d;
    --main-color: #8454c3;
    --hover-color: #6545ae;
    --header-bg: #121212;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header & NavBar Section */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: var(--nav-bg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
    
}

.logo {
    font-size: 3rem;
    color: var(--bg-color);
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
    font-weight: 700;
    cursor: default;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center
}

/* Header Navigation Buttons */
.navbar a {
    font-size: 1.8rem;
    margin-left: 2rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    background: transparent;
    border: 0px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.navbar a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: 0.3s ease;
    z-index: -1;
}

.navbar a:hover {
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.navbar a:hover:before {
    width: 100%;
}

.navbar a.active {
    color: var(--text-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}


/* Theme toggle button styling */
#theme-toggle {
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--text-color);
    background: transparent;
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    color: var(--main-color);
    transform: rotate(360deg);
}


/* Home Section */

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--home-color);
    min-height: 100vh;
}

.home-img img {
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
    border-radius: 0%;
    box-shadow: 0 0 5px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 25px var(--main-color),
                0 0 25px var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-content {
    margin-left: 8rem;
    left: 10%;
    flex: 1;
    min-height: 200px;
    padding-right: 4rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 2rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: var(--);
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .3s ease-in-out;
}

.social-media a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color); 
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--snd-bg-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--main-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* Section Styling */
.section {
    background: var(--bg-color);
}

.heading {
    color: var(--heading-color);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* About Section */

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}

.about-img img {
    width: 25vw;
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 0%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 25px var(--main-color),
                0 0 25px var(--main-color);
}

.heading {
    text-align: center;
    font-size: 6rem;
}

.about-content {
    padding: 0 4rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 4rem;
}

.about-content p {
    font-size: 2rem;
    margin: 2rem 0 3rem;
}



/* Skills Section */
.skills {
    padding: 50px 10;
    background: var(--snd-bg-color);
}

.skills .heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 50px;
}

.skills .skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap:5rem;
    width: 100%;
}

.skills .skills-container .skill-box {
    flex: 1 1 30rem;
    background: var(--home-color);
    padding: 4rem 4rem;
    border-radius: 5rem;
    text-align: center;
    border: .3rem solid var(--snd-bg-color);
    transition: .5s ease;
}

.skills .skills-container .skill-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.skills .skill-box h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.skills .skill-box p {
    font-size: 1.8rem;
}

/* Projects Section */
.projects {
    padding: 50px 1.5;
    background: var(--snd-bg-color);
}

.projects .heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 20px;
}

.projects .projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 3rem;
}

.projects .projects-container .project-box {
    flex: 1 1 30rem;
    background: var(--home-color);
    padding: 3.9rem 3.9rem;
    border-radius: 7rem;
    text-align: center;
    border: .3rem solid var(--snd-bg-color);
    transition: .5s ease;
}

.projects .projects-container .project-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.projects .project-box h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.projects .project-box p {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.projects .project-box .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: background 0.3s, color 0.3s;
}

.projects .project-box .btn:hover {
    background: var(--hover-color);
}

/* Blogs Section */
.blogs {
    padding: 50px 10;
    background-color: var(--snd-bg-color);
}

.blogs .heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.blogs .blogs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}

.blogs .blogs-container .blog-box {
    flex: 1 1 30rem;
    background: var(--home-color);
    padding: 6rem 4.5rem;
    border-radius: 7rem;
    text-align: center;
    border: .3rem solid var(--snd-bg-color);
    transition: .5s ease;
}

.blogs .blogs-container .blog-box:hover {
    border-color: var(--home-color);
    transform: scale(1.02);
}

.blogs .blog-box h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.blogs .blog-box p {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.blogs .blog-box .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: background 0.3s, color 0.3s;
}

.blogs .blog-box .btn:hover {
    background: var(--hover-color);
}

.blog-loader {
    text-align: center; /* Center the text */
    width: 100%; /* Full width */
    margin-top: 4rem; /* Add some space above */
    margin-bottom: 3rem;
    opacity: 100; /* initially hidden */
    animation: fadeIn 1s ease-in-out forwards; /* Fade in animation */
    animation-delay: 0.5s; /* delay animation */
}

.blog-loader a {
    display: inline-block;
    padding: 1.5rem 2rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 10rem;
    font-size:2rem;
    font-weight: 600;
    min-width: 150px;
    transition: all 0.3s ease;
}

.blog-loader a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(142, 82, 238, 0.2);
}

/* Contact Section */
.contact {
    padding: 8rem 9% 0;
    background: var(--snd-bg-color);
    margin-bottom:0;
}

.contact .heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.contact .heading span {
    color: var(--primary-color);
}

/* Main Grid Layout */
.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

/* Left Column - Contact Form */
.contact-form {
    background: var(--home-color);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    color: var(--text-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Right Column Stack */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--home-color);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.newsletter:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.newsletter h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

/* Map Section */
.map {
    background: var(--home-color);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.map:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.map iframe {
    width: 100%;
    height: 250px;
    border-radius: 1rem;
}

/* Button Styling */
.submit-btn,
.newsletter button {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: auto;
    min-width: 150px;
}

.submit-btn:hover,
.newsletter button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        gap: 2rem;
    }
}

@media (max-width: 450px) {
    .contact {
        padding: 8rem 5% 4rem;
    }
    
    .contact-form,
    .newsletter,
    .map {
        padding: 2rem;
    }
}
/* ******************Footer Section********************* */

footer {
    background: var(--snd-bg-color);
    padding: 2rem 9%;
    text-align: center;
    border-top: .1rem solid rgba(0, 0, 0, 0.1);
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 20px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--home-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--home-color);
}
.footer .copyright{
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* BreakPoint */

@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:991px) {
    .header {
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3%;
    }
    .services{
        padding: 7rem
    }
    
    .testimonials .wrapper{
        grid-template-columns: repeat(1,1fr);
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media (max-width:786px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }

    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }

    .navbar.active {
        right: 0;
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-content{
        order: 2;
        margin-left: 1rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
}

@media (max-width:617px) {
    .home-img img{
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}
@media (max-width:450px) {
    html{
        font-size: 50%;
    }
}