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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: "Montserrat";
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #000;
}

body::selection{
    background-color: #a2d2ff;
    color: black;
}

.cursor {
    pointer-events: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: absolute;
    background-color: #a2d2ff;
    z-index: 1000;
    mix-blend-mode: difference;
    background-position: center;
    background-size: cover;
    /* transition: all ease 0.3s; */
}

#purple {
    height: 100vh;
    width: 100vw;
    z-index: 100;
    top: 0;
    position: fixed;
    background-color: #a2d2ff;
    opacity: 0;
    display: none;
}

#nav {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
    position: fixed;
    mix-blend-mode: difference;
    z-index: 102;
}

#nav a {
    text-decoration: none;
    margin: 0 10px;
    transition: color ease 0.3s;
}

#nav a:hover {
    color: #a2d2ff;
}

.main {
    background-color: black;
    overflow: hidden;
}

.works-hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 10vw;
}

.works-hero h1 {
    font-size: 12vw;
    font-weight: 600;
    text-align: center;
    color: white;
    /* transition-duration: 0.5s; */
    margin-bottom: 2rem;
}
.works-hero h1:hover{
    color: #a2d2ff;
}
.works-hero p {
    font-size: 1.5rem;
    text-align: center;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.4;
}

.projects-section {
    min-height: 100vh;
    width: 100%;
    padding: 100px 5vw;
    background-color: #fff;
}

.projects-section h2 {
    font-size: 5vw;
    color: #000;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    /* transition: all ease 0.5s; */
    border: 2px solid #a2d2ff;
    height: 500px;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #a2d2ff, #4fc3f7);
    position: relative;
    overflow: hidden;
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}


.project-card:nth-child(6) .project-image::before {
    content: '⚡';
}

.project-content {
    padding: 2rem;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #a2d2ff;
}

.project-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #a2d2ff;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-link {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #a2d2ff;
    color: #a2d2ff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all ease 0.3s;
}

.project-link:hover {
    background: #a2d2ff;
    color: #000;
    transform: scale(1.05);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.stats-section {
    min-height: 80vh;
    width: 100%;
    background: #000;
    padding: 100px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid #a2d2ff;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(162, 210, 255, 0.1), rgba(162, 210, 255, 0.05));
    transition: all ease 0.5s;
}

.stat-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(162, 210, 255, 0.2), rgba(162, 210, 255, 0.1));
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: #a2d2ff;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

@media screen and (min-width: 1390px) {
    .project-card{
        height: 550px;
    }

}

@media (max-width: 768px) {
    .works-hero h1 {
        font-size: 15vw;
    }

    .projects-section h2 {
        font-size: 8vw;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        height: 600px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}