/* Add these styles to your existing style.css file */

/* Contact Form Steps */
.form-step {
    display: none;
    /* Hide steps by default */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Smooth transition */
    position: absolute;
    /* Position steps on top of each other */
    width: 100%;
    /* Take full width of the form container */
    left: 0;
}

.form-step.active {
    display: block;
    /* Show active step */
    opacity: 1;
    position: relative;
    /* Take up space in the flow */
}

/* Add a minimum height to the form container to prevent collapsing */
#contact-form {
    min-height: 150px;
    /* Adjust as needed based on input/textarea height */
    position: relative;
    /* Needed for absolute positioned steps */
}

/* Style for error messages */
.form-error {
    min-height: 1.25rem;
    /* Tailwind's h-5, prevents layout shifts */
    /* text-red-400 text-sm mt-2 */
    /* Styles applied via Tailwind in HTML */
}


/* Optional: Style for the WhatsApp icon if you used a specific class */
/* .whatsapp-icon { ... } */


/* --- Keep all your existing CSS rules below --- */

:root {
    --grid-color: rgba(255, 255, 255, 0.05);
    --grid-size: 50px;
    --cursor-color: white;
    --cursor-x: 50vw;
    --cursor-y: 50vh;
    --spotlight-size: 300px;
    --spotlight-color: rgba(255, 255, 255, 0.04);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    body::after {
        display: none !important;
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle var(--spotlight-size) at var(--cursor-x) var(--cursor-y), var(--spotlight-color) 0%, transparent 80%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.15s ease-out;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    z-index: 1;
    width: 100%;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero.visible {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
    opacity: 1;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.loader-text {
    position: absolute;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.loader-top-left {
    top: 5%;
    left: 5%;
}

.loader-top-right {
    top: 5%;
    right: 5%;
    text-align: right;
}

.loader-bottom {
    bottom: 5%;
    font-size: 0.7rem;
    max-width: 200px;
    text-align: center;
    line-height: 1.5;
}

.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    background-color: var(--cursor-color);
    width: 10px;
    height: 10px;
    z-index: 9999;
    transition: transform 0.1s ease-out, width 0.2s ease-out, height 0.2s ease-out;
    mix-blend-mode: difference;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 8px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.bottom-nav a {
    display: inline-block;
    color: #ccc;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.container {
    position: relative;
    z-index: 1;
}

.minimal-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 9999px;
    font-size: 1rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.minimal-input::placeholder {
    color: #666;
}

.minimal-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

textarea.minimal-input {
    border-radius: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    min-height: 120px;
    resize: vertical;
}

.minimal-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eee;
    padding: 10px 25px;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.minimal-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.minimal-button:active {
    transform: translateY(0px);
}

.primary-button {
    background-color: #fff;
    color: #000;
    padding: 12px 30px;
    border: none;
}

.primary-button:hover {
    background-color: #ccc;
    color: #000;
    transform: translateY(-2px);
}

.skill-logo {
    filter: brightness(0) invert(1) grayscale(80%) opacity(0.6);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.skill-logo:hover {
    filter: brightness(0) invert(1) grayscale(0%) opacity(1);
    transform: scale(1.2);
}

.project-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: left;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.project-card img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project-card:hover img {
    opacity: 1;
}

.project-card .p-5 {
    padding: 1.25rem;
}

.project-card .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.project-card .font-semibold {
    font-weight: 600;
}

.project-card .mb-2 {
    margin-bottom: 0.5rem;
}

.project-card .text-white {
    color: #fff;
}

.project-card .text-gray-400 {
    color: #9ca3af;
}

.project-card .mb-4 {
    margin-bottom: 1rem;
}

.project-card .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.project-card .leading-relaxed {
    line-height: 1.625;
}

.project-card .tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    white-space: nowrap;
}

.project-card a {
    color: #bbb;
    transition: color 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.project-card a:hover {
    color: #fff;
}

.project-card a.demo-link {
    color: #ddd;
}

.project-card a.demo-link:hover {
    color: #fff;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: #4b5563;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    body::after {
        display: none;
    }

    .bottom-nav {
        width: 90%;
        bottom: 15px;
        padding: 6px 10px;
        gap: 2px;
    }

    .bottom-nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .section {
        padding: 60px 15px;
        min-height: auto;
    }

    #contact {
        padding-bottom: 100px;
    }

    h1.text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    p.text-xl {
        font-size: 1.1rem;
    }

    h2.text-4xl {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    section h2.mb-16 {
        margin-bottom: 4rem;
    }

    #skills .skill-logo {
        width: 3rem;
        height: 3rem;
    }

    #skils-grid {
        gap: 1.5rem;
    }

    #projects .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .project-card img {
        height: 10rem;
    }

    .loader-text {
        font-size: 0.6rem;
    }

    .loader-logo {
        font-size: 2.5rem;
    }

    .minimal-input {
        font-size: 0.9rem;
        padding: 12px 20px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    textarea.minimal-input {
        min-height: 100px;
    }

    .minimal-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .primary-button {
        padding: 10px 25px;
    }

    #contact .max-w-xl {
        max-width: 100%;
    }

    #contact form {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        font-size: 0.7rem;
        margin-top: 1.5rem;
        padding-bottom: 80px;
    }

    #contact-form {
        min-height: 180px;
    }

    /* Adjust mobile height */
}