/* Base Styles */
:root {
    --primary-color: #72a1de;
    --primary-color-light: #72a1de94;
    --primary-color-lighter: #72a1de81;
    --dark-bg: #001f7c38;
    --card-bg: #080020b7;
    --text-color: lightgray;
    --text-secondary: gray;
    --accent-color: #72a1dea2;
    --box-shadow: 0 0 15px rgba(114, 161, 222, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    position: relative;
}

.back-vid {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.accent-color {
    color: var(--accent-color);
}

/* Gradient Animation */
.gradient {
    background: linear-gradient(to right, #00aaa7, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

/* Header Styles */
header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.left img {
    width: 40px;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px var(--primary-color-light);
}

.desktop-nav li a {
    font-weight: 700;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.desktop-nav li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.desktop-icons {
    display: flex;
    gap: 1.5rem;
}

.desktop-icons a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.desktop-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    color: var(--text-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1001;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 100%;
}

.sidebar.open-sidebar {
    width: 80%;
    border-bottom-left-radius: 0;
}

.close-icon {
    align-self: flex-end;
    font-size: 2.5rem;
    color: var(--text-color);
    padding: 1rem;
    cursor: pointer;
}

.mobile-nav {
    padding: 2rem;
}

.mobile-nav li {
    margin-bottom: 2rem;
}

.mobile-nav li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-nav li a:hover {
    color: var(--primary-color);
}

.social-sidebar {
    padding: 0 2rem;
    margin-top: auto;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-sidebar a {
    font-size: 1.8rem;
    color: var(--text-color);
}

.social-sidebar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 2rem;
    padding-top: 8rem;
    position: relative;
}

.hero-info {
    max-width: 600px;
    z-index: 1;
}

.hero-info-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--primary-color-light);
    background-color: rgba(34, 0, 73, 0.24);
    box-shadow: 0 0 5px var(--primary-color-light);
    margin-bottom: 1rem;
}

.hero-info h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.hero-info p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 550px;
}

.contact-button button {
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color-lighter);
    background-color: rgba(34, 0, 73, 0.24);
    box-shadow: 0 0 5px var(--primary-color-lighter);
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-button button:hover {
    box-shadow: 0 0 15px var(--primary-color-lighter);
    transform: translateY(-3px);
}

/* .skills-video-box {
    position: relative;
    z-index: 0;
}

.skills-video {
    max-height: 700px;
    mix-blend-mode: lighten;
} */
.skills-video-box{
    position: absolute;
    right: 3%;
}

.skills-video{
   max-height: 700px;
    mix-blend-mode: lighten;
}
.blackhole-box {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1;
    mix-blend-mode: lighten;
}

.blackhole-box video {
    width: 100%;
    margin-top: -10%;
}

/* Scroll Down Animation */
.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid var(--text-color);
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid var(--text-color);
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        top: 90%;
        opacity: 0;
    }
}

/* Info Section */
.info-section {
    width: 90%;
    max-width: 1200px;
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    position: relative;
    border: 1px solid var(--text-secondary);
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
    transform: translateY(-5px);
}

.card h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    z-index: 2;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    z-index: 2;
}

.card img, .card video {
    margin-top: auto;
    border-radius: 10px;
    object-fit: cover;
    z-index: 1;
}

.card button {
    align-self: flex-start;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--text-secondary);
    background-color: #0f1217;
    color: var(--text-secondary);
    border-radius: 20px;
    box-shadow: 0 0 5px var(--text-color);
    transition: var(--transition);
    z-index: 2;
}

.card button:hover {
    box-shadow: 0 0 15px var(--text-color);
    opacity: 0.8;
}

/* Projects Section */
.my-project {
    width: 90%;
    max-width: 1200px;
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card {
    display: flex;
    width: 100%;
    margin: 3rem 0;
    align-items: center;
    gap: 2rem;
}

.project-vidbox {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.project-vidbox video, .project-vidbox img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--text-color);
}

.project-vidbox:hover video, .project-vidbox:hover img {
    box-shadow: 0 0 25px white;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
}

.project-info h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-info p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.project-info button {
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color-lighter);
    background-color: rgba(34, 0, 73, 0.24);
    box-shadow: 0 0 5px var(--primary-color-lighter);
    transition: var(--transition);
}

.project-info button:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px var(--primary-color-lighter);
}

.hover-sign {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    transition: var(--transition);
}

.project-vidbox:hover .hover-sign {
    opacity: 1;
    animation: hover-animation 2s ease-in-out infinite;
}

@keyframes hover-animation {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(10deg) scale(1.1);
    }
}

/* Skills Section */
.skills-section {
    width: 90%;
    max-width: 1200px;
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-box {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    mix-blend-mode: lighten;
    opacity: 0.8;
    margin: 3rem 0;
}

.skills-image {
    width: 70%;
    mix-blend-mode: difference;
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 3rem 0;
    z-index: 2;
}

.skill-category {
    background-color: rgba(8, 0, 32, 0.7);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(114, 161, 222, 0.3);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-category li {
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1.2rem;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Slider Styles */
.slider {
    position: relative;
    width: 80%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode: difference;
    opacity: 0.8;
    margin: 2rem 0;
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

/* Contact Section */
.contact-section {
    width: 90%;
    max-width: 1200px;
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: rgba(8, 0, 32, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(114, 161, 222, 0.3);
}

.social-box a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-box a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--text-color);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.contact-box {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background-color: rgba(8, 0, 32, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(114, 161, 222, 0.3);
}

.contact-box p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-light);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-box button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: rgba(34, 0, 73, 0.5);
    color: white;
    font-size: 1rem;
    border: 1px solid var(--primary-color-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-box button:hover {
    background-color: rgba(34, 0, 73, 0.8);
    box-shadow: 0 0 15px var(--primary-color-light);
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.footer p {
    font-size: 0.9rem;
}

.footer-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-icons a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.footer-icons a:hover {
    color: var(--primary-color);
}

/* Animation Classes */
.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation {
    0% {
        filter: blur(40px);
    }
    35%, 65% {
        filter: blur(0);
        opacity: 1;
    }
    100% {
        filter: blur(40px);
        opacity: 0;
    }
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation {
    from {
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    }
    50% {
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}

.fadein-left {
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation {
    0% {
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    }
    35%, 65% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }
    100% {
        filter: blur(10px);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-info {
        text-align: center;
        align-items: center;
        margin-bottom: 3rem;
    }

    .skills-video-box {
        margin-top: 2rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-info {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        width: 40%;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav, .desktop-icons {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .hero-info {
        padding: 0 1rem;
    }

    .hero-info h1 {
        font-size: 2.2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .project-vidbox {
        min-width: 100%;
    }

    .skill-categories {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0 1rem;
    }

    .left h2 {
        font-size: 1.2rem;
    }

    .hero-info h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card h1 {
        font-size: 1.3rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Aspect Ratio Adjustments */
@media (max-aspect-ratio: 16/9) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }
}