@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap');

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the video is behind other content */
    pointer-events: none; /* Make the video non-interactive */
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Allow scrolling if needed */
    user-select: none;
    cursor: none; /* Remove default cursor */
}

.container1 {
    text-align: left;
    max-width: 500px;
    width: 100%; /* Ensure container takes full width on smaller screens */
    padding: 40px;
    background: rgba(69, 69, 69, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); */
}

.profile {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure space between text and image */
}

.profile-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    border-radius: 50%; /* Make it circular */
    margin-right: 15px; /* Space between image and text */
    object-fit: cover; /* Ensure the image covers the container without squishing */
}

.social-links {
    margin-bottom: 40px;
}

.social-links a {
    margin: 0 15px;
    color: black;
    cursor: none;
    text-decoration: none;
    display: inline-flex; /* Changed to inline-flex for better alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 0.6em 0.8em;
    position: relative; /* Changed to relative for positioning */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Smooth transitions */
    z-index: 1;
    --scale: 1;
    --translateX: 0;
    --translateY: 0;
}

.social-links a i {
    font-size: 2em; /* Adjusted size for icons */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transitions */
}

.social-links a:hover i {
    opacity: 0.7;
    transform: scale(1.1); /* Apply glow effect on hover */
}

.about-me {
    margin-bottom: 40px;
}

.about-me p {
    font-size: 1.1em;
    line-height: 1.6em;
    user-select: text;
}

.projects {
    margin-bottom: 40px;
}

.projects a {
    margin: 0 15px;
    color: black;
    cursor: none;
    text-decoration: none;
    display: inline-flex; /* Changed to inline-flex for better alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 0.6em 0.8em;
    position: relative; /* Changed to relative for positioning */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Smooth transitions */
    z-index: 1;
    --scale: 1;
    --translateX: 0;
    --translateY: 0;
}

.projects a i {
    font-size: 2em; /* Adjusted size for icons */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transitions */
}

.projects a:hover i {
    opacity: 0.7;
    transform: scale(1.1); /* Apply glow effect on hover */
}

.projects a span {
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transitions */
}

.projects a:hover span {
    opacity: 0.7;
    transform: scale(1.1); /* Apply glow effect on hover */
}

/* Custom cursor styling */
.cursor {
    height: var(--height);
    left: var(--left);
    pointer-events: none;
    top: var(--top);
    transform: translate(-50%, -50%) scale(var(--scale));
    transition-property: width, height;
    width: var(--width);
    --top: -1em;
    --left: -1em;
    --width: 1em;
    --height: 1em;
    --scale: 1;
    --translateX: 0;
    --translateY: 0;
}

.cursor.is-locked {
    transition-property: width, height, left, top;
}

.cursor.is-locked .cursor__content {
    opacity: 0.06;
}

.cursor,
.cursor__content {
    position: absolute;
    transition-duration: 0.1s;
    transition-timing-function: ease-out;
}

.cursor__content {
    background-color: #000;
    border-radius: 0.6em;
    bottom: 0;
    left: 0;
    opacity: 0.3;
    right: 0;
    top: 0;
    transform: translate(var(--translateX), var(--translateY));
    transition-property: opacity;
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
    body, html {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: auto; /* Allow scrolling on smaller screens */
    }

    .container1 {
        max-width: 100%; /* Full width for smaller screens */
        padding: 20px; /* Less padding for smaller screens */
        margin: 10px; /* Add margin for spacing */
    }

    .profile {
        flex-direction: row; /* Keep the flex direction as row */
        align-items: center; /* Center items vertically */
        justify-content: space-between; /* Ensure space between text and image */
    }

    .profile-photo {
        width: 100px; /* Adjust size as needed */
        height: 100px; /* Adjust size as needed */
        margin-left: 15px; /* Space between text and image */
        margin-bottom: 0;
    }

    .social-links a {
        margin: 10px 5px;
    }

    .about-me p {
        font-size: 1em; /* Adjust font size for smaller screens */
    }

    .projects a {
        margin: 10px 5px;
    }
}

/* Add these to your styles.css */

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Add animation classes to existing elements */
.personal > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.profile {
    animation-delay: 0.5s;
}

.social-links {
    animation-delay: 0.7s;
}

.about-me {
    animation-delay: 0.9s;
}

.projects {
    animation-delay: 1.1s;
}

/* Update video background styles */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Mobile optimization updates */
@media (max-width: 600px) {
    .container1 {
        margin: 20px;
        padding: 20px;
        width: calc(100% - 40px);
    }

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

    .profile-photo {
        margin: 20px 0;
        width: 120px;
        height: 120px;
    }

    .social-links {
        text-align: center;
    }

    .projects {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .projects a {
        margin: 5px 0;
    }
}

/* Disable video selection */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}