/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root {
    --body-color: rgb(245, 245, 245);   /* Softer light gray background for sections */
    --color-white: rgb(255, 255, 255);  /* Pure white for main areas */
    --text-color-second: rgb(33, 37, 41);  /* Darker gray for main text */
    --text-color-third: rgb(0, 123, 255);  /* Vibrant blue for accents */
    --first-color: rgb(40, 40, 40);        /* Rich dark gray for primary buttons and accents */
    --first-color-hover: rgb(60, 60, 60);  /* Slightly lighter dark gray for hover effects */
    --second-color: rgb(0, 153, 153);      /* Muted teal for secondary buttons */
    --third-color: rgb(100, 100, 100);     /* Subtle medium gray for less prominent features */
    --first-shadow-color: rgba(0, 0, 0, 0.1);  /* Softer shadow for depth */
    --link-hover-color: rgb(255, 82, 82);  /* Vibrant red for hover on links or icons */
}

/* ----- BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar {
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn > i {
    margin-left: 10px;
}
.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i {
    font-size: 16px;
}

/* ------- BASE -------- */
body {
    /* Animated gradient background */
    background: linear-gradient(-45deg, rgb(238, 238, 238), rgb(245, 245, 245), rgb(240, 240, 240));
    background-size: 300% 300%;
    animation: animatedBackground 20s ease infinite;
    overflow-x: hidden; /* This was already here, ensure it's preserved */
}
.container {
    width: 100%;
    position: relative;
}

/* ----- Navigation Bar ----- */
nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}

.nav-logo {
    font-size: 30px;
    font-weight: 600;
    color: #333;
}

.nav-menu-btn {
    display: block;
}

.nav-menu-btn i {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.4s ease, color 0.4s ease;  /* Smooth rotation */
}

/* Card-like Pop-Up Menu */
.nav-menu-card {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);  /* Start with smaller size */
    opacity: 0;  /* Hidden by default */
    width: 300px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9); /* Dark background for the card */
    color: white;
    border-radius: 10px;  /* Rounded corners */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5); /* Shadow effect */
    z-index: 200;
    text-align: center;
    transition: all 0.4s ease;  /* Smooth transition for scaling and opacity */
}

/* Show the card with smooth transition when active */
.nav-menu-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(1);  /* Grow to full size */
    opacity: 1;  /* Make visible */
}

/* Tight Spacing for navigation links */
.nav_menu_list {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;  /* Reduce bottom margin */
}

.nav_list {
    margin: 8px 0;  /* Reduced margin for tighter spacing */
}

.nav-link {
    text-decoration: none;
    font-size: 20px;  /* Adjusted font size for pop-up */
    color: #fff;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--second-color);  /* Hover effect */
}

/* Social icons with larger size */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    font-size: 32px;  /* Larger icon size */
    color: #fff;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--second-color);  /* Hover effect */
}

/* Menu button (Burger turns into X with smooth transition) */
.nav-menu-btn i.open {
    transform: rotate(45deg);  /* Rotate the icon */
    color: red;  /* Change color when active (optional) */
}

.nav-menu-btn i {
    transition: all 0.4s ease;  /* Smooth icon transition */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-menu-btn {
        display: block; /* Show the burger button on smaller screens */
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 18px;  /* Adjust font size for smaller screens */
    }

    .social-icons a {
        font-size: 28px;  /* Adjust icon size for smaller screens */
    }
}

/* For large screens (above 768px) */
@media (min-width: 768px) {
    .nav-menu-btn {
        display: none; /* Hide burger menu */
    }

    .nav-menu-card {
        display: none !important; /* Ensure card-like menu is hidden */
    }

    .nav-bar-links {
        display: flex; /* Show standard navigation links */
        list-style: none;
        gap: 30px;
    }

    /* Navigation link base style */
    .nav-bar-links a {
        color: #333;
        text-decoration: none;
        font-size: 18px;
        position: relative; /* For underline positioning */
        padding: 5px 0; /* Space around the link text */
        transition: color 0.3s ease; /* Smooth color transition */
    }

    /* Hover effect with a sliding underline */
    .nav-bar-links a::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--second-color); /* Color of the underline */
        bottom: 0;
        left: 0;
        transform: scaleX(0); /* Start with no underline (scale 0) */
        transform-origin: bottom right; /* Start animation from right */
        transition: transform 0.4s ease; /* Smooth scaling transition */
    }

    /* Hover state */
    .nav-bar-links a:hover::after {
        transform: scaleX(1); /* Scale underline to full width on hover */
        transform-origin: bottom left; /* Expand the underline from left to right */
    }

    /* Active link style */
    .active-link {
        color: var(--second-color) !important;  /* Keep the color active */
    }

    /* Ensure active link has an underline */
    .active-link::after {
        transform: scaleX(1); /* Keep the underline on active link */
        transform-origin: bottom left;
    }
}

/* For smaller screens (below 768px) */
@media (max-width: 768px) {
    .nav-bar-links {
        display: none; /* Hide standard navigation links */
    }

    .nav-menu-btn {
        display: block; /* Show burger menu */
    }

    .nav-menu-card {
        display: none; /* Hide initially */
    }

    .nav-menu-card.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}






/* ----- WRAPPER DESIGN ----- */
.wrapper {
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 700px;
    
}

/* FEATURED TEXT AND IMAGE ON DESKTOP */
.featured-text, .featured-image {
    width: 50%;
}

.featured-text {
    text-align: left;
}

.featured-text-card span {
    color: black;
    font-size: 60px;
    font-weight: 700;
}

.featured-name {
    font-weight: 700;
    color: var(--second-color);
    font-size: 50px;
}

.featured-name .intro-text {
    color: #000;
    font-size: 35px;
    font-weight: 500;
}

.featured-title .small-a {
    font-size: 35px;
    font-weight: 600;
    color: black;
}

.typedText {
    font-weight: 600;
    color: black;
    font-size: 40px;
}

.featured-text-info {
    font-size: 23px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

.featured-contact-info {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

.featured-text-btn a {
    font-weight: 600;
    padding: 15px 30px;
    background: var(--second-color);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.featured-text-btn a:hover {
    background: var(--first-color-hover);
    color: var(--color-white);
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image {
    width: 380px;
    height: 380px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid black;
    border-radius: 50%;
    position: relative;
    animation: none; /* Remove the complex animation */
}

.image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 153, 153, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* RESPONSIVE STYLES */

/* For large screens */
@media (min-width: 1024px) {
    .image {
        width: 550px; /* Final larger size for big screens */
        height: 550px;
    }
}

/* For Tablets */
@media (max-width: 768px) {
    .featured-box {
        flex-direction: column;
        height: auto;
    }

    .featured-text, .featured-image {
        width: 90%;
        text-align: center;
    }

    .featured-image {
        order: -1;
        margin-bottom: 20px;
    }

    .typedText {
        font-size: 24px; /* Adjusted size for tablets */
    }

    .featured-title {
        font-size: 24px; /* Adjusted size for tablets */
    }

    .featured-name {
        font-size: 36px; /* Adjusted size for tablets */
    }

    .featured-text-card span {
        font-size: 40px; /* Adjusted size for tablets */
    }

    .small-a {
        font-size: 20px !important; /* Adjusted size for tablets */
    }
}

/* Mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .featured-box {
        flex-direction: column;
        height: auto;
        justify-content: center;
        align-items: center;
        padding-top: 100px;
    }

    .featured-text, .featured-image {
        width: 100%;
        text-align: center;
    }

    .typedText {
        font-size: 24px; /* Smaller size for mobile devices */
    }

    .featured-title {
        font-size: 18px; /* Adjusted size for mobile devices */
    }

    .featured-name {
        font-size: 30px; /* Adjusted size for mobile devices */
    }

    .featured-text-card span {
        font-size: 30px; /* Adjusted size for mobile devices */
    }

    .small-a {
        font-size: 1.5rem !important; /* Smaller size for mobile devices */
    }

    .image {
        width: 80vw; /* Use viewport width for responsiveness */
        height: 80vw;
        max-width: 320px; /* Cap the max size */
        max-height: 320px;
        margin: 0 auto; /* Center the image */
    }

    .featured-contact-info, .featured-text-info {
        font-size: 14px; /* Adjusted font size */
    }

    .featured-text-btn a {
        width: 100%;
        font-size: 14px; /* Adjusted font size */
    }

    .social_icons {
        justify-content: center;
        gap: 20px;
    }
}



/* ----- SOCIAL ICONS ----- */
.social_icons {
    display: flex;
    gap: 20px;
    margin-top: 2em;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.icon:hover {
    color: var(--link-hover-color);
}

/* ----- ANIMATIONS ----- */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- MAIN BOX ----- */
.section {
    padding-block: 5em;
    text-align: center; /* Center text for the whole section */
}

/* Remove border from the last section (contact) */
#contact.section {
    border-bottom: none;
}

/* Style for the 'Other Skills' subsection separator */
.other-skills {
    margin-top: 3em; /* Space above this subsection's separator */
    padding-top: 3em; /* Space between top border and its content */
}

.top-header {
    margin-bottom: 2em;
}

.top-header h1 {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.about-info {
    display: flex;
    align-items: center; /* Vertically align content */
    gap: 4em; /* Reduced gap for more text space */
    margin-bottom: 6em;
    max-width: 1500px; /* Increase container width to make image larger */
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    flex: 0 0 50%; /* Rebalanced image and text width */
}

.about-img {
    width: 100%;
    border-radius: 15px; /* Softer corners */
    border: 12px solid #fff; /* Clean white border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.about-text {
    flex: 1; /* Text takes up the rest of the space */
    text-align: justify; /* Justify paragraph text */
}

.about-text h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-second);
    letter-spacing: 1px;
    margin-bottom: 1em;
}

.about-info p {
    font-size: 20px; /* Slightly smaller font size */
    color: black;
    line-height: 1.7;
    margin-bottom: 1.5em; /* Add space between paragraphs */
}

.about-info p:last-of-type {
    margin-bottom: 0;
}

/* Responsive styles for About section */
@media (max-width: 768px) {
    .about-info {
        flex-direction: column;
    }


    .about-image {
        width: 100%;
        margin-top: 1.5em;
    }
}

/* ----- TECH STACK ----- */
.tech-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-stack h2 {
    font-size: 26px; /* Font size for the Tech Stack header */
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 2em; /* Space below the Tech Stack header */
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center icons horizontally */
    gap: 25px; /* Increased gap for better spacing */
    max-width: 700px; /* Adjust as needed to control overall width of the grid */
    margin: 0 auto; /* Center the list itself if it's narrower than its parent */
}

.skills-list .icon {
    width: 90px; /* Increased size for larger icons */
    height: 120px; /* Increased height for larger icons and labels */
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    justify-content: center;
    align-items: center;
    background: none; /* No background */
    border-radius: 0; /* No border radius */
    box-shadow: none; /* No shadow */
    transition: color 0.3s ease;
}

.skills-list .icon img {
    width: 70px; /* Increased size of SVGs */
    height: 70px; /* Increased size of SVGs */
    filter: grayscale(100%); /* Default black color effect */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.skills-list .icon:hover img {
    filter: none; /* Display original colors on hover */
    transform: scale(1.1); /* Slightly scale up all icons on hover */
}

/* Specific hover for Expo icon */
.skills-list .expo-icon-wrapper:hover img {
    filter: grayscale(0%) brightness(1.2) contrast(1.1); /* Ensure it's black, slightly brighter, and more contrast */
    transform: scale(1.15); /* Slightly more scale for emphasis */
}

.skills-list .icon .icon-label {
    margin-top: 15px; /* Increased space for larger icons */
    font-size: 14px; /* Increased font size for the label */
    color: var(--text-color-second); /* Text color */
    text-transform: uppercase; /* Optional: transform text to uppercase */
}

/* -------------- OTHER SKILLS ---------------- */
.other-skills {
    padding: 4em 0;
    text-align: center;
}

.other-skills h2 {
    font-size: 2.5rem;
    margin-bottom: 2em;
}

.skill-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column grid */
    gap: 2.5em;
    max-width: 900px; /* Adjusted for 2 columns */
    margin: 0 auto;
    padding: 0 2em;
}

/* Style each skill item as a card */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    gap: 1.5em;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.skill-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5em;
    color: #333;
}

.skill-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive styles for skill cards */
@media (max-width: 768px) {
    .skill-cards-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        padding: 0 1em;
    }
    .skill-item {
        padding: 2em;
    }
}

/* ----- PROJECTS SECTION ----- */
#projects {
    background: var(--body-color);
    padding: 4em 0;
}

/* ----- COMING SOON PROJECT CARDS ----- */
.project-coming-soon {
    opacity: 0.85;
    border: 2px dashed #ccc !important;
    background: #fafafa !important;
}

.project-coming-soon .project-image {
    flex: 0 0 auto;
}

.coming-soon-placeholder {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 220px;
    background: linear-gradient(135deg, #efefef, #e0e0e0);
    border-radius: 10px;
    border: 1px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}

/* Blurred screenshot version */
.coming-soon-placeholder.has-preview {
    width: 400px;
    background: none;
    border: 1px solid #ccc;
}

/* Portrait (mobile screenshot) variant */
.coming-soon-placeholder.portrait {
    width: 160px;
    height: 280px;
}

/* Currently in Development badge */
.coming-soon-badge.in-dev {
    background: #e67e22;
}

.coming-soon-placeholder.has-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px);
    transform: scale(1.1); /* prevents blur edge artifacts */
}

.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    gap: 10px;
    z-index: 1;
}

.blur-overlay i {
    font-size: 46px;
    color: rgba(255, 255, 255, 0.85);
}

.blur-overlay span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Grey placeholder (no screenshot) */
.coming-soon-placeholder i {
    font-size: 48px;
    color: #bbb;
}

.coming-soon-placeholder > span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--second-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-coming-soon h2 {
    color: #999 !important;
}

.project-coming-soon p {
    color: #aaa !important;
}

/* Mobile responsive fix for coming-soon cards */
@media (max-width: 768px) {
    .coming-soon-placeholder.has-preview {
        width: 100%;
        max-width: 100%;
    }

    .coming-soon-placeholder.portrait {
        width: 120px;
        height: 200px;
        margin: 0 auto;
    }

    .project-coming-soon .project-image {
        width: 100%;
    }

    .project-coming-soon .project-details {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }
}

.top-header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color-second);
}

/* Main project card layout */
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top for better text alignment */
    background: var(--color-white);
    border-radius: 20px;
    border: 1px solid black;
    padding: 30px;
    margin-bottom: 3rem;
    gap: 20px; /* Add some space between the image and text */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.project-image img {
    width: 100%; /* Responsive image size */
    max-width: 400px; /* Max size for larger screens */
    border-radius: 10px;
    border: 1px solid black;
}

.project-details {
    flex: 1;
    padding-left: 30px;
    text-align: left; /* Align text to the left */
}

.project-details h2 {
    font-size: 1.8rem;
    color: var(--first-color);
    margin-bottom: 15px;
}

.project-details h3 {
    font-size: 1rem;
    color: var(--second-color);
    margin-bottom: 15px;
}

.project-details p {
    font-size: 1rem;
    color: var(--text-color-second);
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--first-color);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--first-color-hover);
}

/* ----- CONTACT SECTION ----- */
.top-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333; /* Darker heading color for better contrast */
    font-weight: 700; /* Make the heading bold */
}

.top-header span {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px; /* Add space below the subtext */
}

.contact-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 50px 0;
}

/* ----- MAP CONTAINER ----- */
.map-container {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Increased shadow for better depth */
}

/* ----- FORM CONTAINER ----- */
.form-container {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Increased shadow for better depth */
    text-align: left;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600; /* Make the form heading bold */
}

.form-inputs {
    display: flex;
    flex-direction: column; /* Stack inputs vertically */
    gap: 15px; /* Increase spacing between inputs */
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #333; /* Darker border on focus */
    outline: none; /* Remove default outline */
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #333;
    outline: none;
}

button.btn {
    padding: 12px 25px;
    background-color: var(--first-color); /* Use your theme's primary color */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600; /* Make the button text bold */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

button.btn:hover {
    background-color: var(--second-color); /* Slightly different hover color */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow on hover */
}

/* ----- Success/Error Message Styling ----- */
.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    position: relative; /* For positioning the close button */
    transition: all 0.3s ease; /* Smooth appearance transition */
}

.form-message.success {
    background-color: #4CAF50;  /* Green background for success */
    color: white;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

.form-message.error {
    background-color: #f44336;  /* Red background for error */
    color: white;
    border: 2px solid #f44336;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

/* Close Button Styling */
.close-btn {
    float: right;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-left: 15px;
}

.close-btn:hover {
    color: #000; /* Darken the close button on hover */
}

/* ----- FOOTER BOX ----- */
footer {
    padding-block: 40px 60px;
    display: flex;  /* Use Flexbox for centering */
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    text-align: center;  /* Center text within its container */
    background-color: #f8f8f8;  /* Optional: Add a background color for better visibility */
}

.bottom-footer {
    font-size: 14px;
    margin-top: 10px;  /* Optional: Remove or adjust as needed */
}

/* ----- RESPONSIVE STYLES ----- */

/* General tablet responsiveness */
@media (max-width: 1024px) {
    .wrapper {
        padding-inline: 5vw;
    }

    .featured-text, .featured-image {
        width: 70%;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-details {
        padding-left: 0; /* Remove padding on smaller screens */
        text-align: center; /* Center-align text */
    }

    .project-image img {
        width: 100%;
    }
}

/* Smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        padding-inline: 2%;
    }

    .wrapper {
        padding-inline: 2%;
    }

    .featured-text, .featured-image {
        width: 90%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 90px;
        background: var(--body-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-button {
        display: block;
        padding: 15px;
    }

    .nav-menu-btn {
        display: block;
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .map-container, .form-container {
        width: 100%;
    }

    .form-inputs {
        flex-direction: column;
    }

    .about-info {
        width: 90%;
    }
}

/* Mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .btn, .featured-text-btn a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .skill-item {
        flex-direction: column;
        align-items: center;
    }

    .skill-item img {
        width: 40px;
        height: 40px;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-social-icons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animated Background */
@keyframes animatedBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}
