@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

:root {

    --dark-body-color: black;
    --light-body-color: black;
    --white-text-color: #ffffff;
    --red-color: #ff4a57;
}

* {
    background-color: black;
    box-sizing: border-box;
    margin: 0%;
    padding: 0%;
    font-family: "Heebo", sans-serif;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
p,
a,
label {
    /* Because puri body ke text ko white nahi dena tha is liye sirf in ko diya hy  */
    color: var(--white-text-color);
}

/* Modern Cookie Consent Banner */
.cookie_consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cookie_consent.show {
    opacity: 1;
    visibility: visible;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 20px);
    }

    to {
        transform: translate(-50%, 0);
    }
}

.cookie_content {
    padding: 20px;
}

.cookie_header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cookie_header i {
    color: var(--red-color);
    font-size: 24px;
    margin-right: 10px;
}

.cookie_header h4 {
    font-size: 18px;
    font-weight: 600;
}

.cookie_content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--white-text-color);
    opacity: 0.9;
}

.cookie_buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cookie_btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex: 1;
}

.cookie_btn.primary {
    background-color: var(--red-color);
    color: var(--white-text-color);
}

.cookie_btn.secondary {
    background-color: transparent;
    color: var(--white-text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie_btn:hover {
    transform: translateY(-2px);
}

.cookie_btn.primary:hover {
    background-color: #e6404b;
}

.cookie_btn.secondary:hover {
    border-color: var(--white-text-color);
}

@media (max-width: 480px) {
    .cookie_consent {
        bottom: 10px;
        width: 95%;
    }

    .cookie_content {
        padding: 15px;
    }

    .cookie_buttons {
        flex-direction: column;
    }
}

/* -----------------------------------------------------------Header Section----------------------------------------------------- */
header {
    background-color: var(--dark-body-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo_container {
    display: flex;
    align-items: center;
}

.web_logo {
    font-size: 25px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.web_logo:hover {
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.logo-text.code {
    color: var(--white-text-color);
    font-weight: 800;
    animation: pulse 2s infinite alternate;
}

.logo-text.by {
    color: var(--white-text-color);
    font-size: 0.8em;
    opacity: 0.9;
    font-style: italic;
    transform: translateY(1px);
}

.logo-text.ali {
    color: var(--red-color);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 74, 87, 0.5);
    animation: glow 2s infinite alternate;
}

.logo-separator {
    color: var(--red-color);
    font-weight: 700;
    margin: 0 2px;
    display: inline-block;
    transform: scale(0.9);
    animation: rotate 5s infinite linear;
}

.web_logo:hover .logo-text.code {
    transform: translateY(-2px);
}

.web_logo:hover .logo-text.ali {
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 74, 87, 0.8);
}

.web_logo:hover .logo-separator {
    animation: rotateFast 1s infinite linear;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 74, 87, 0.5);
    }

    100% {
        text-shadow: 0 0 15px rgba(255, 74, 87, 0.8), 0 0 20px rgba(255, 74, 87, 0.5);
    }
}

@keyframes rotate {
    0% {
        transform: scale(0.9) rotate(0deg);
    }

    100% {
        transform: scale(0.9) rotate(360deg);
    }
}

@keyframes rotateFast {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Desktop Menu Styling */
.desktop_menu {
    display: flex;
    align-items: center;
}

.desktop_menu ul {
    display: flex;
    gap: 20px;
}

.desktop_menu li {
    padding: 8px 15px;
    position: relative;
    overflow: hidden;
}

.desktop_menu a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px 2px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.desktop_menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 74, 87, 0.15);
    transition: height 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.desktop_menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--red-color);
    transition: width 0.3s ease, box-shadow 0.3s ease;
    border-radius: 3px;
}

.desktop_menu a:hover {
    color: var(--red-color);
    transform: translateY(-3px);
    text-shadow: 0 0 8px rgba(255, 74, 87, 0.3);
}

.desktop_menu a:hover::before {
    height: 70%;
}

.desktop_menu a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 74, 87, 0.6);
}

.desktop_menu li.active a {
    color: var(--red-color);
    transform: translateY(-2px);
}

.desktop_menu li.active a::after {
    width: 100%;
    box-shadow: 0 0 15px rgba(255, 74, 87, 0.8);
}

.desktop_menu li::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    background-color: var(--red-color);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.desktop_menu li:hover::before,
.desktop_menu li.active::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Mobile Menu Button */
.hamburger_icon {
    display: none;
    cursor: pointer;
}

.hamburger_icon i {
    color: var(--white-text-color);
    font-size: 30px;
}

/* Mobile Menu Styling */
.mobile_menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark-body-color);
    z-index: 100;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile_menu.active {
    right: 0;
}

.menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 50px;
}

.close_btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
    margin-left: auto;
    /* Push button to right side */
    position: relative;
    right: 0;
}

.close_btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close_btn i {
    color: var(--white-text-color);
    font-size: 28px;
    transition: 0.3s;
}

.close_btn:hover i {
    color: var(--red-color);
    transform: rotate(90deg);
}

.mobile_menu_content {
    padding: 20px 0;
}

.mobile_nav_items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.mobile_nav_items .nav_item {
    width: 85%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile_nav_items .nav_item:hover {
    background-color: var(--red-color);
    transform: translateY(-3px);
}

.mobile_nav_items .menu_link {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile_nav_items .menu_link i {
    font-size: 28px;
    margin-right: 15px;
    color: var(--red-color);
    background-color: transparent;
    transition: transform 0.3s ease;
}

.mobile_nav_items .menu_link span {
    font-size: 18px;
    background-color: transparent;
}

.mobile_nav_items .nav_item:hover .menu_link {
    background-color: rgba(255, 74, 87, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 74, 87, 0.2);
}

.mobile_nav_items .nav_item:hover .menu_link i {
    color: var(--white-text-color);
    background-color: transparent;
    transform: scale(1.2);
}

.mobile_nav_items .nav_item:hover .menu_link span {
    color: var(--white-text-color);
    background-color: transparent;
}

.mobile_nav_items .nav_item:hover * {
    background-color: transparent;
}
/* Mobile Menu Footer */
.mobile_menu_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile_menu_footer * {
    background-color: transparent;
}

.contact_btn {
    width: 100%;
    margin-bottom: 20px;
}

.hire_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: var(--red-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hire_btn i {
    font-size: 20px;
}

.hire_btn:hover {
    background-color: transparent;
    border-color: var(--red-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 74, 87, 0.2);
}

.mobile_menu_footer .social_icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.mobile_menu_footer .social_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile_menu_footer .social_icon i {
    font-size: 20px;
    color: var(--white-text-color);
}

.mobile_menu_footer .social_icon:hover {
    background-color: var(--red-color);
    transform: translateY(-5px);
}
/* -----------------------------------------------------------Header Main Section----------------------------------------------------- */

.header_main_section {
    background-color: var(--light-body-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.header_container {
    max-width: 1200px;
    width: 100%;
    /* Its Amazing koi bi contnt ko colum me dhiana ho 1fr mean 1 colum */
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0px 20px;
    gap: 20px;
}

.image_box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 450px;
    margin-left: 15px;
    position: relative;
    animation: fadeIn 1.8s ease-in-out forwards !important;
}

.image_box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: float 5s ease-in-out infinite !important;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
    filter: drop-shadow(0 0 15px rgba(255, 74, 87, 0.4));
    z-index: 1;
}

.image_box:hover img {
    transform: scale(1.15) rotate(2deg) !important;
    filter: drop-shadow(0 0 35px rgba(255, 74, 87, 0.9)) brightness(1.1) !important;
}

.image_box::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 4px solid var(--red-color);
    border-radius: 15px;
    z-index: 0;
    top: 15px;
    left: 15px;
    opacity: 0.7;
    transition: all 0.6s ease;
    animation: borderPulse 3s ease-in-out infinite alternate !important;
}

.image_box:hover::after {
    border-width: 6px;
    opacity: 0.9;
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 30px rgba(255, 74, 87, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-25px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderPulse {
    0% {
        transform: scale(1);
        border-color: var(--red-color);
    }

    100% {
        transform: scale(1.08);
        border-color: rgba(255, 74, 87, 0.8);
    }
}

.content_box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content_box h1 {
    text-align: center;
    font-size: 60px;
    letter-spacing: 1px;
}

/* Enhanced Typewriter effect styling */
.typing-text {
    display: inline-block;
    position: relative;
    color: var(--red-color);
    font-size: 28px;
    font-weight: 600;
    min-height: 42px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Blinking cursor effect */
.typing-text::after {
    content: '|';
    position: relative;
    display: inline-block;
    margin-left: 1px;
    color: var(--white-text-color);
    font-weight: 700;
    font-size: 30px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Content box styling */
.content_box h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhance typing animation container */
.typing-container {
    display: block;
    width: 100%;
    overflow: hidden;
}

.content_box p {
    font-size: 18px;
    /* padding ka matlab hota hy chora kerna  */
    padding-bottom: 30px;
}

.content_box button {
    border: none;
    outline: none;
    cursor: pointer;
    /* Remember this by default dimensions for button styling */
    width: 150px;
    height: 45px;
    font-size: 20px;
    font-weight: 600;
    background-color: var(--red-color);
    color: var(--white-text-color);
    border-radius: 5px;
    transition: 0.1s;
}

.content_box button:hover {
    background-color: transparent;
    border: 3px solid white;

}

/* -----------------------------------------------------------Project Section----------------------------------------------------- */

.projects_section {
    background-color: var(--dark-body-color);
    padding: 100px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;


}

.section_title_component {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 50px;

}

.section_title_component span {
    color: var(--red-color);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;

}

.section_title_component h2 {

    font-size: 60px;
    letter-spacing: 1px;

}

.section_title_component p {
    font-size: 18px;
    width: 60%;
    text-align: center;

}

.services_box {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0px 20px;
    gap: 30px;

}


.services_item_card {
    background-color: var(--light-body-color);
    border-radius: 10px;
    padding: 50px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.services_item_card * {
    background-color: transparent;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.services_item_card i {
    color: var(--red-color);
    font-size: 45px;
    padding-bottom: 30px;
}

.services_item_card h3 {
    font-size: 22px;
    padding-bottom: 20px;
}

.services_item_card p {
    color: var(--white-text-color);
}

.services_item_card:hover {
    background-color: var(--red-color);
}

.services_item_card:hover i {
    color: var(--white-text-color);
    transform: rotate(30deg);
}

.services_item_card:hover h3,
.services_item_card:hover p {
    color: var(--white-text-color);
}


/* -----------------------------------------------------------About Section----------------------------------------------------- */


.about_section {
    background-color: var(--light-body-color);
    padding-top: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;

}

.about_main_box {
    max-width: 1200px;
    padding: 100px 20px 0px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}


.section_title_comment {
    color: var(--red-color);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.section_title_comment h2 {
    font-size: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.section_title_comment p {
    font-size: medium;
}

.information_box h3 {
    color: var(--red-color);
    font-size: 30px;
    letter-spacing: 1px;
}

.information_box p {
    font-size: 18px;
    padding-top: 20px;

}

.info_items_box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 25px;

}

.info_item {
    padding: 10px 0px;

}

.info_item span {
    color: var(--red-color);
    font-weight: 600;
    letter-spacing: 2px;

}

.info_item p {
    font-weight: 600;
    letter-spacing: 2px;
    padding-top: 5px;

}

.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(opx);
    opacity: 1;

}

/* -----------------------------------------------------------Conatct Section----------------------------------------------------- */

.contact_section {
    background-color: black;
    /* Black background */
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact_cards_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
}

.contact_card {
    background-color: var(--light-body-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
}

.contact_card:hover {
    transform: translateY(-10px);
}

.contact_card i {
    font-size: 45px;
    color: var(--red-color);
    margin-bottom: 20px;
}

.contact_card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.contact_card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.contact_card button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--red-color);
    color: var(--white-text-color);
    border-radius: 5px;
    transition: 0.3s;
}

.contact_card button:hover {
    background-color: transparent;
    border: 2px solid white;
}

.map_container {
    width: 100%;
    margin-top: 20px;
    display: none;
    overflow: hidden;
    border-radius: 8px;
}

.map_container iframe {
    border-radius: 8px;
}

/* ----------------------------------------- Contact Form Styles --------------------------------*/
.contact_form_container {
    width: 90%;
    max-width: 700px;
    margin: 50px auto 0;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact_form_container * {
    background-color: transparent;
}

.form_header {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form_header i {
    font-size: 55px;
    color: var(--red-color);
    margin-bottom: 15px;
    display: block;
}

.contact_form_container h3 {
    color: red;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.form_header p {
    font-size: 16px;
    opacity: 0.8;
    max-width: 90%;
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .contact_form_container {
        width: 95%;
        padding: 20px 15px;
    }

    .form_header i {
        font-size: 60px;
    }

    .form_header h3 {
        font-size: 24px;
    }
}

.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form_group {
    margin-bottom: 20px;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
}

.input_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input_wrapper:focus-within {
    border-color: var(--red-color);
    box-shadow: 0 0 10px rgba(255, 74, 87, 0.3);
}

.input_wrapper i {
    color: var(--red-color);
    font-size: 20px;
    padding: 0 15px;
    background-color: transparent;
}

.input_wrapper input,
.input_wrapper textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--white-text-color);
    font-size: 16px;
}

.input_wrapper input::placeholder,
.input_wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.textarea_wrapper {
    align-items: flex-start;
}

.textarea_wrapper i {
    padding-top: 15px;
}

.submit_btn {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    background-color: var(--red-color);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit_btn span {
    background-color: transparent;
}

.submit_btn i {
    font-size: 20px;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.submit_btn:hover {
    background-color: transparent;
    border: 2px solid var(--red-color);
}

.submit_btn:hover i {
    transform: translateX(5px);
}

/* Responsive styles for the form */
@media (max-width: 768px) {
    .contact_form_container {
        padding: 30px 20px;
    }

    .form_row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .contact_form_container {
        padding: 25px 15px;
    }

    .form_header h3 {
        font-size: 24px;
    }

    .input_wrapper input,
    .input_wrapper textarea {
        padding: 12px;
    }
}

/* -----------------------------------------------------------Footer Section----------------------------------------------------- */
footer {
    background-color: var(--light-body-color);
    padding: 70px 0 20px;
    color: var(--white-text-color);
}

.footer_container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.footer_column {
    display: flex;
    flex-direction: column;
}

.footer_column h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer_column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--red-color);
}

.footer_column p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social_icons {
    display: flex;
    gap: 15px;
}

.social_icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.social_icons * {
    background-color: transparent;
}

.social_icons a:hover {
    background-color: var(--red-color);
    transform: translateY(-5px);
}

.social_icons i {
    font-size: 20px;
    color: var(--white-text-color);
}

.footer_links li {
    margin-bottom: 12px;
}

.footer_links a {
    color: var(--white-text-color);
    font-size: 16px;
    transition: 0.3s;
    display: inline-block;
}

.footer_links a:hover {
    color: var(--red-color);
    transform: translateX(5px);
}

.newsletter_form {
    display: flex;
    margin-top: 15px;
}

.newsletter_form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-text-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter_form button {
    background-color: var(--red-color);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter_form button * {
    background-color: transparent;
}

.newsletter_form button:hover {
    background-color: #e6404b;
}

.newsletter_form button i {
    color: var(--white-text-color);
    font-size: 20px;
}

.footer_bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 16px;
}

.copyright span {
    color: var(--red-color);
    font-weight: 600;
}

.footer_tagline {
    font-size: 16px;
    font-style: italic;
}


/* -----------------------------------------------------------Scrol Wheel Section----------------------------------------------------- */
.to_top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--red-color);
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 22px;
    z-index: 99;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
}

.to_top * {
    background-color: transparent;
}

.to_top:hover {
    background-color: #e6404b;
    transform: translateY(0);
}

.to_top.top_active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adjust position for mobile devices */
@media (max-width: 767px) {
    .to_top {
        bottom: 30px;
        right: 30px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* -----------------------------------------------------------Responsives Section----------------------------------------------------- */

/* Large screens (desktops) */
@media (max-width: 1199px) {
    .section_title_component h2 {
        font-size: 48px;
    }

    .content_box h1 {
        font-size: 40px;
    }

    .services_box {
        gap: 20px;
    }

    .services_item_card {
        padding: 40px 30px;
    }

    .footer_container {
        gap: 20px;
    }
}

/* Medium screens (tablets and small laptops) */
@media (max-width: 991px) {
    .services_box {
        grid-template-columns: 1fr 1fr;
    }

    .section_title_component p {
        width: 80%;
    }

    .about_main_box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .information_box {
        order: 1;
    }

    .about_main_box .image_box {
        order: 2;
        margin: 0 auto;
    }

    .footer_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Small screens (mobile devices) */
@media (max-width: 884px) {

    /* Header and Navigation */
    header {
        padding: 10px;
        justify-content: space-between;
    }

    .web_logo {
        margin-left: 15px;
        font-size: 22px;
    }

    /* Hide regular menu and set up mobile menu */
    .desktop_menu {
        display: none;
    }

    .hamburger_icon {
        display: block;
    }

    .mobile_menu {
        display: block;
    }

    .menu_list {
        position: fixed;
        z-index: 100;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark-body-color);
        height: 100vh;
        width: 80%;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: 0.5s;
    }

    .menu_list.show {
        right: 0;
        opacity: 1;
    }

    /* Show hamburger icon */
    .nav_menu i {
        display: block;
        margin-right: 15px;
    }

    .nav_menu #close_icon {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav_item {
        padding: 20px 0;
    }

    /* Header main section */
    .header_container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .content_box {
        padding: 40px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .image_box {
        padding: 0;
        margin: 0 auto;
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Services/Projects section */
    .services_box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Make sure hover effect works on projects */
    .services_item_card:hover {
        background-color: var(--red-color);
    }

    .services_item_card:hover i {
        color: var(--white-text-color);
    }

    /* About section */
    .about_main_box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .info_items_box {
        grid-template-columns: 1fr;
    }

    /* Skills section */
    .skills_box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skills_box .content_box h2 {
        width: 100%;
        font-size: 40px;
    }

    /* Contact section */
    .contact_items {
        grid-template-columns: 1fr;
    }

    /* Footer responsive styles */
    .footer_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .footer_column {
        padding: 0 10px;
    }

    .footer_column h3 {
        font-size: 20px;
    }

    /* Keep the underline aligned left */
    .footer_column h3::after {
        left: 0;
        transform: none;
    }

    .footer_column p {
        font-size: 15px;
    }

    /* Adjust newsletter form */
    .newsletter_form {
        width: 100%;
    }

    /* Footer bottom section */
    .footer_bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px 10px;
    }
}

/* Extra small screens (small mobile devices) */
@media (max-width: 575px) {
    .content_box h1 {
        font-size: 32px;
    }

    .typing-text {
        font-size: 22px;
    }

    .section_title_component h2 {
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    /* Adjust font sizes for mobile view */
    .content_box h1 {
        font-size: 28px;
        /* Reduced from 32px */
        text-align: center;
    }

    .typing-text {
        font-size: 20px;
        /* Reduced from 22px */
        text-align: center;
    }

    .section_title_component h2 {
        font-size: 32px;
        /* Reduced from 36px */
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }

    .section_title_component p {
        width: 95%;
        font-size: 16px;
    }

    .services_item_card {
        padding: 30px 20px;
    }

    .info_item {
        padding: 8px 0;
    }

    /* Keep footer in 2 columns even on smallest screens */
    .footer_container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* First column (about) takes full width */
    .footer_container .footer_column:nth-child(1) {
        grid-column: 1 / span 2;
    }

    /* Last column (newsletter) takes full width */
    .footer_container .footer_column:nth-child(4) {
        grid-column: 1 / span 2;
    }

    /* Quick Links and Services remain side by side */
    .footer_container .footer_column:nth-child(2),
    .footer_container .footer_column:nth-child(3) {
        margin-bottom: 20px;
    }

    .social_icons {
        justify-content: center;
    }

    .contact_card {
        padding: 25px 15px;
    }

    .to_top {
        bottom: 20px;
        right: 20px;
        padding: 10px;
        font-size: 20px;
    }
}