/* Global Reset and Default Styles */
* {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Include padding and border in element's total size */
    text-decoration: none; /* Remove underline from links */
    font-family: "Poppins", sans-serif; /* Set default font */
}

a, button, input, textarea, select {
    border: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(0, 255, 238, 0.8);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 255, 238, 0.2);
}

/* CSS Variables */
:root {
    --bg-color: #080808; /* Primary background color */
    --second-bg-color: #131313; /* Secondary background color */
    --text-color: white; /* Default text color */
    --main-color: #00ffee; /* Accent color */
}

/* HTML and Body Styles */
html {
    font-size: 60%; /* Set base font size for rem units */
    overflow-x: hidden; /* Hide horizontal overflow */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color); /* Set body background */
    color: var(--text-color); /* Set default text color */
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 255, 238, 0.08), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 238, 0.05), transparent 30%),
        linear-gradient(180deg, rgba(19, 19, 19, 0.8) 0%, rgba(8, 8, 8, 0.95) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.header {
    position: fixed; /* Fix header at the top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem; /* Add padding */
    background: rgba(0, 0, 0, 0.45); /* Semi-transparent background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* Add blur effect */
    border-bottom: 1px solid rgba(0, 255, 238, 0.15);
    display: flex;
    justify-content: space-between; /* Space out logo and navbar */
    align-items: center;
    z-index: 5; /* Ensure header is above other content */
}

/* Logo Styles */
.logo {
    font-size: 3rem; /* Large font size */
    color: var(--text-color); /* White text */
    font-weight: 800; /* Bold font */
    cursor: pointer; /* Pointer cursor on hover */
    transition: 0.3s ease; /* Smooth hover effect */
}

.logo:hover {
    transform: scale(1.1); /* Scale up on hover */
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

/* Navbar Styles */
.navbar a {
    font-size: 1.8rem; /* Nav link font size */
    color: var(--text-color); /* White text */
    margin-left: 4rem; /* Space between links */
    font-weight: 500; /* Medium font weight */
    transition: 0.3s ease; /* Smooth hover effect */
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color); /* Accent color on hover/active */
    border-bottom: 3px solid var(--main-color); /* Underline effect */
}

/* Menu Icon (Mobile) */
#menu-icon {
    font-size: 3.6rem; /* Large icon size */
    color: var(--main-color); /* Accent color */
    display: none; /* Hidden by default */
    cursor: pointer; /* Pointer cursor */
}

/* Section and Home Styles */
section {
    min-height: 100vh; /* Full viewport height sections */
    padding: 12rem 12% 8rem; /* Add padding */
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem; /* Space between content and image */
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
.home-content h1 span,
.home-content h3 span,
.contact h2 span {
    color: var(--main-color);
}
.home-content h1 {
    font-size: clamp(4rem, 8vw, 7rem); /* Large heading */
    font-weight: 700; /* Bold font */
    margin-top: 1.5rem;
    line-height: 1; /* Tight line spacing */
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-img{
    border-radius:50%;
}
.home-content p {
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 760px;
    color: #d0d0d0;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 32vw; /* Responsive image width */
    border-radius: 50%; /* Circular image */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    cursor: pointer; /* Pointer cursor */
    transition: 0.4s ease-in-out; /* Smooth hover effect */
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color); /* Enhanced glow on hover */
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem; /* Fixed size */
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color); /* Accent border */
    font-size: 2.5rem;
    border-radius: 50%; /* Circular shape */
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out; /* Smooth hover effect */
}

.social-icons a i {
    transition: transform 0.35s ease;
}

.social-icons a:hover {
    color: var(--text-color); /* White text on hover */
    transform: scale(1.3) translateY(-5px); /* Scale and lift effect */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    background-color: var(--main-color); /* Accent background on hover */
}

.social-icons a:hover i {
    transform: rotate(10deg) scale(1.08);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem; /* Button padding */
    background: var(--main-color); /* Accent background */
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.45); /* Glow effect */
    border-radius: 4rem; /* Rounded corners */
    font-size: 1.6rem; /* Button text size */
    color: black; /* Dark text */
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out; /* Smooth hover effect */
    cursor: pointer; /* Pointer cursor */
}

.btn:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
    box-shadow: 0 0 30px rgba(0, 255, 238, 0.6); /* Enhanced glow effect */
}

.btn:active {
    transform: translateY(1px) scale(1.02);
}

.cta-emphasis {
    animation: ctaPulse 3.2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(0, 255, 238, 0.45);
    }
    50% {
        box-shadow: 0 0 22px rgba(0, 255, 238, 0.72);
    }
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between buttons */
}

.btn-group a:nth-of-type(2) {
    background-color: black; /* Dark background */
    color: var(--main-color); /* Accent text */
    border: 2px solid var(--main-color); /* Accent border */
    box-shadow: 0 0 25px transparent; /* No shadow */
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
    background-color: var(--main-color); /* Accent background */
    color: black; /* Dark text */
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: #000;
}


/* Responsive Design */
@media (max-width: 768px) {
    #menu-icon {
        display: block; /* Show menu icon on small screens */
    }

    .navbar {
        display: none; /* Hide navbar by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9); /* Dark background */
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        padding: 2rem 0;
    }

    .navbar.active {
        display: flex; /* Show navbar when active */
    }

    .home {
        flex-direction: column; /* Stack content vertically */
        gap: 5rem; /* Reduce gap */
        text-align: center; /* Center text */
    }

    .home-content {
        align-items: center; /* Center content */
    }

    .home-img img {
        width: 50vw; /* Adjust image size */
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 1rem; /* Reduce gap */
    }
    .header {
        padding: 2.2rem 5%;
    }
    section {
        padding: 10rem 5% 2.5rem;
    }
}

/* Text Animation */
.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 24ch;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.25;
    overflow: hidden;
}

.text-animation span {
    display: inline;
    white-space: nowrap;
    color: var(--main-color); /* Accent color */
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(0, 255, 238, 0.35);
}

.text-animation span::after {
    content: "|";
    display: inline-block;
    margin-left: 0.15rem;
    color: var(--main-color);
    animation: cursorBlink 0.8s step-end infinite;
    text-shadow: 0 0 10px rgba(0, 255, 238, 0.55);
}

/* Cursor blinking effect */
@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 238, 0.35);
    }
    50% {
        text-shadow: 0 0 18px rgba(0, 255, 238, 0.6);
    }
}

/* Heading Styles */
.heading {
    font-size: clamp(3.4rem, 7vw, 6rem);
    text-align: center;
    margin: 3rem 0 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 15px; /* Scrollbar width */
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color); /* Accent color thumb */
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color); /* Dark track */
    width: 50px;
}

/* Services Section */
.services {
    background: var(--second-bg-color);
    padding: 10rem 0 8rem;
}

.services h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.services-intro {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: center;
    color: #d8d8d8;
    box-sizing: border-box;
}

.services-container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.service-card {
    background: linear-gradient(180deg, rgba(8,8,8,0.95), rgba(19,19,19,0.98));
    border: 1px solid rgba(0, 255, 238, 0.25);
    border-radius: 3rem;
    padding: 3rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card:hover {
    border-color: var(--main-color);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 238, 0.15);
}

.service-card *,
.service-card *::before,
.service-card *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.service-icon {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--main-color);
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.2);
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.service-tag {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.4);
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.service-info p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-list li {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #d7d7d7;
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.service-list li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--main-color);
    font-weight: 700;
    line-height: 1.6;
}

.service-badges {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

.services-cta {
    text-align: center;
    margin-top: 6rem;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.services-cta p {
    font-size: 2rem;
    color: #d0d0d0;
    margin-bottom: 2rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.32);
    background: rgba(0, 255, 238, 0.08);
    color: #dffefd;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.25s ease;
}

.skill-badge i {
    color: var(--main-color);
    font-size: 1.45rem;
}

/* Projects Section */
.projects {
    background: var(--second-bg-color); /* Secondary background */
    padding: 10rem 0 8rem; /* Add padding */
}

.projects h2 {
    margin-bottom: 5rem;
    text-align: center; /* Center heading */
}

.projects-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: center;
    color: #d8d8d8;
}

.featured-project {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 255, 238, 0.25);
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.98), rgba(16, 16, 16, 0.95));
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
}

.featured-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.4);
    color: var(--main-color);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.featured-content h3 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
}

.featured-content p {
    color: #d6d6d6;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured-stats {
    border: 1px solid rgba(0, 255, 238, 0.2);
    border-radius: 1.6rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.35);
}

.featured-stats p {
    font-size: 1.5rem;
    color: #d6d6d6;
    margin-bottom: 1.2rem;
}

.featured-stats p:last-child {
    margin-bottom: 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    position: -webkit-sticky;
    position: sticky;
    top: 9.5rem;
    z-index: 4;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.92), rgba(19, 19, 19, 0.72));
    border-radius: 1.6rem;
    width: max-content;
    max-width: 100%;
}

.filter-btn {
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-color);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.25);
}

.filter-btn.active {
    background: var(--main-color);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.45);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two-column layout */
    gap: 3rem; /* Space between items */
    max-width: 1200px; /* Limit container width */
    margin: 0 auto; /* Center container */
    padding: 0 2rem; /* Add padding */
    min-width: 0;
}

.project-box {
    overflow: hidden;
    border-radius: 2rem; /* Rounded corners */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Shadow effect */
    border: 1px solid rgba(0, 255, 238, 0.25);
    background: #101010;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.4s ease;
    min-width: 0;
}

.project-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 255, 238, 0.2);
    will-change: opacity, transform;
}

.project-box img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Cover the container */
    transition: 0.4s ease-in-out; /* Smooth hover effect */
}

.project-box:hover img {
    transform: scale(1.1); /* Scale up on hover */
}

.project-info {
    padding: 2rem;
    background: #101010;
    color: white;
}

.project-tag {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 238, 0.35);
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-info h4 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #d8d8d8;
}

.project-info .btn {
    background: var(--main-color); /* Accent background */
    color: black; /* Dark text */
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2rem; /* Rounded corners */
    transition: 0.3s ease-in-out; /* Smooth hover effect */
}

.project-info .btn:hover {
    background: white; /* White background on hover */
    color: var(--main-color); /* Accent text */
    box-shadow: 0 0 25px var(--main-color); /* Glow effect */
}

.project-box.hidden {
    display: none;
}

.project-box.is-filtering-out {
    opacity: 0;
    transform: scale(0.96);
    will-change: opacity, transform;
}

.project-box.is-filtering-in {
    animation: projectFadeIn 0.45s ease both;
    animation-delay: var(--stagger-delay, 0ms);
    will-change: opacity, transform;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

section.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .project-box {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.js-enabled .project-box.project-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.45s ease var(--stagger-delay, 0ms),
        transform 0.45s ease var(--stagger-delay, 0ms),
        box-shadow 0.4s ease;
}

.contact{
    background-color: var(--bg-color);
    min-height: auto;
    }
    .contact h2{
    margin-bottom: 3rem;
    color: white;
    }
    .contact form{
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
    }
    .contact form.input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }
    .contact form .input-box input,
.contact form textarea{
width: 100%;
padding: 2.5rem;
font-size: 1.8rem;
color: var(--text-color);
background: var(--second-bg-color);
border-radius: 2rem;
border: 1px solid rgba(0, 255, 238, 0.35);
margin: 1.5rem 0;
resize: none;

}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-top: 1.2rem;
    font-size: 1.5rem;
    color: #d8d8d8;
    min-height: 2.2rem;
}

.form-status.success {
    color: var(--main-color);
}

.form-status.error {
    color: #ff6b6b;
}
.contact form .btn
{
margin-top: 2rem;
}
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
    text-align: center;
    }
    .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 10px;
        transition: 0.3s ease-in-out;
        }

        .footer .social a i {
            transition: transform 0.3s ease;
        }

        .footer .social a:hover
        {
        transform: scale(1.12) translateY(-6px);
        background-color: var(--main-color);
        color: black;
        box-shadow: 0 0 25px var(--main-color);
        }

        .footer .social a:hover i {
            transform: rotate(-8deg);
        }/* Contact Info Styles */
.footer .contact-info {
    margin: 20px 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

.footer .contact-info p {
    margin: 10px 0;
}

.footer .contact-info a {
    color: var(--main-color);
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.footer .contact-info a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.footer .contact-info i {
    margin-right: 10px;
    color: var(--main-color);
} 
        .footer ul{
            margin-top: 0;
            padding: 0;
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 0;
            text-align: center;
            }
            .footer ul li a{
                color: white;
                border-bottom: 3px solid transparent;
                transition: 0.3s ease-in-out;
                }
                .footer ul li a:hover{
                
                border-bottom: 3px solid var(--main-color);
                }
                .footer ul li {
                display: inline-block;
                padding: 15px;
                }
                .footer .copyright{
                margin-top: 50px;
                text-align: center;
                font-size: 16px;
                color: white;
                }
             
                @media (max-width: 1285px) {
                    html {
                        font-size: 55%;
                    }
                }
                
                @media (max-width: 991px) {
                    header {
                        padding: 2rem 3%; 
                    }
                    section {
                        padding: 10rem 3% 2rem;
                    }
                    .testimonials .wrapper {
                        grid-template-columns: repeat(1, 1fr); 
                    }
                    .contact form {
                        flex-direction: column;
                    }
                    .footer {
                        padding: 2rem 3%;
                    }
                    .featured-project {
                        grid-template-columns: 1fr;
                    }
                }
                
                @media (max-width: 895px) {
                    #menu-icon {
                        display: block;
                    }
                    .navbar {
                        position: absolute;
                        top: 100%; /* Position below the header */
                        right: 0; /* Align to the right edge */
                        width: 95%; /* Adjust width as needed */
                        padding: 1rem 3%;
                        background: rgba(0, 0, 0, 0.9); /* Dark background */
                        -webkit-backdrop-filter: blur(20px);
                        backdrop-filter: blur(20px); /* Blur effect */
                        border-bottom-left-radius: 2rem; /* Rounded corners */
                        border-left: 2px solid var(--main-color); /* Accent border */
                        border-bottom: 2px solid var(--main-color); /* Accent border */
                        display: none; /* Hidden by default */
                    }
                    .navbar.active {
                        display: block;
                    }
                    .navbar a {
                        display: block;
                        font-size: 2rem;
                        margin: 2rem 0; 
                        color: white;
                    }
                    .home {
                        flex-direction: column-reverse; /* Stack content vertically */
                       margin:5rem 4rem;
                    }
                    .home-content h3 {
                        font-size: 2.6rem;
                        min-height: 3.8rem;
                        width: 100%;
                        display: flex;
                        justify-content: center;
                    }
                    .home-content h1 {
                        font-size: 8rem;
                        margin-top: 3rem;
                    }
                    .home-content p {
                        max-width: 600px;
                        margin: 0 auto;
                    }
                    .home-img img {
                        width: 56vw;
                    }
                    .services-container {
                        grid-template-columns: 1fr;
                        padding: 0 1.5rem;
                        gap: 2rem;
                    }

                    .service-card {
                        padding: 2rem;
                        border-radius: 2rem;
                    }

                    .service-icon {
                        width: 5rem;
                        height: 5rem;
                        min-width: 5rem;
                        font-size: 2.4rem;
                    }
                    .projects-container {
                        grid-template-columns: 1fr;
                    }
                    .project-filters {
                        justify-content: center;
                        width: max-content;
                        max-width: 100%;
                        top: 8.6rem;
                    }
                    .text-animation {
                        font-size: 2.6rem;
                        min-width: 22ch;
                    }
                }

@media (max-width: 640px) {
    .text-animation {
        font-size: 2.3rem;
        min-width: 21ch;
    }
    .home-content h3 {
        min-height: 3.4rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.8rem;
        border-radius: 1.8rem;
        gap: 1.5rem;
    }

    .service-info h3 {
        font-size: 1.9rem;
    }

    .service-info p {
        font-size: 1.4rem;
    }

    .service-list li {
        font-size: 1.3rem;
    }

    .services-cta p {
        font-size: 1.7rem;
    }
}

@media (max-width: 420px) {
    .text-animation {
        font-size: 2rem;
        min-width: 20ch;
    }
    .home-content h3 {
        min-height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    section.scroll-reveal,
    section.scroll-reveal.in-view {
        opacity: 1;
        transform: none;
    }
}
