@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #050810;
    --second-bg-color: rgba(255, 255, 255, 0.03);
    --text-color: #f0f0f0;
    --main-color: #00f2ff;
    --accent-color: #00ff91;
    --gradient: linear-gradient(135deg, var(--main-color), var(--accent-color));

    --glass-bg: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
.logo,
.nav-links a,
.btn {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor Styling */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--main-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--main-color);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width var(--transition-fast), height var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(157, 78, 221, 0.1);
    border-color: var(--accent-color);
}

/* Hide custom cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* Ensure default cursor is hidden on all interactive elements */
a,
button,
.skill-box,
.project-card,
#menu-icon,
.logo {
    cursor: none !important;
}

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    filter: blur(150px);
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 242, 255, 0.15);
}

.shape-2 {
    top: 40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(0, 255, 145, 0.1);
    animation-delay: -5s;
}

.shape-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: rgba(0, 80, 255, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Global Styles */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* REVEAL CLASSES FOR ANIMATION */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-up {
    transform: translateY(100px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}


/* Layout Sections */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    font-weight: 700;
}

.heading span {
    color: transparent;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-fast);
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
}

.logo span {
    color: var(--main-color);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--main-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
    color: transparent;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
    font-size: 3.2rem;
}

.typing-text {
    color: var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 500px;
}

.social-icons {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.4);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient);
    border-radius: 3rem;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.secondary-btn:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* Home Buttons Container */
.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    border: 1px solid transparent;
    color: #fff;
}

.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

/* Home Image/Shape */
.home-img .img-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(255, 0, 127, 0.2));
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.3);
    position: relative;
    animation: morph 8s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

@keyframes morph {
    0% {
        border-radius: 50%;
    }

    25% {
        border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    }

    50% {
        border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
    }

    75% {
        border-radius: 70% 30% 50% 50% / 30% 70% 60% 40%;
    }

    100% {
        border-radius: 50%;
    }
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-img .abstract-shape {
    width: 350px;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15rem;
    color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-5deg);
    transition: var(--transition-fast);
}

.about-profile-img {
    width: 350px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: var(--transition-fast);
}

.about-profile-img:hover {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--main-color);
    box-shadow: 0 20px 50px rgba(157, 78, 221, 0.3);
}

.about-content h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.about-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
}

.detail-item i {
    font-size: 2.4rem;
    color: var(--main-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.skill-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    cursor: pointer;
}

.skill-box i {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.skill-box h3 {
    font-size: 2rem;
    font-weight: 600;
}

.skill-box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.2);
}

.skill-box:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Experience Flow / Timeline */
/* Need to ensure vertical timeline styling */
.experience .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.experience .timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--gradient);
    border: 4px solid var(--bg-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.15);
}

.timeline-date {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: #fff;
}

.timeline-content h4 {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.timeline-content p,
.timeline-content ul {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

.activities-section {
    margin-top: 8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.activities-section h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.activities-section p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Projects */
.projects-banner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.2);
}

.project-img {
    height: 220px;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 21, 31, 0.8), rgba(157, 78, 221, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition-slow);
}

.project-card:hover .project-card-img {
    transform: scale(1.1);
}

.project-card-img.img-contain {
    object-fit: contain;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 3rem;
}

.project-content h3 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.project-content h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

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

.project-tech span {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    color: var(--text-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 2.4rem;
    color: var(--main-color);
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-item a,
.info-item span {
    font-size: 1.6rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.info-item a:hover {
    color: var(--main-color);
}

.contact-form {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-form .input-box input,
.contact-form textarea {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.contact-form .input-box input {
    width: 48%;
}

.contact-form .input-box input.full-width {
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.contact-form .submit-btn {
    width: 100%;
    border-radius: 10px;
}

/* Remove extra blank space below contact section */
.contact {
    min-height: auto;
    padding-bottom: 5rem;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 9%;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.footer-text p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--gradient);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.footer-iconTop a:hover {
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
    transform: translateY(-3px);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 2rem 5%;
    }

    section {
        padding: 10rem 5% 2rem;
    }

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

    .home-content p {
        margin: 0 auto 3rem;
    }

    .social-icons {
        justify-content: center;
    }

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

    .about-details {
        align-items: center;
    }

    .experience .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 5%;
        background: var(--glass-bg);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .contact-form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-img .img-wrapper {
        width: 300px;
        height: 300px;
    }

    .about-img .abstract-shape {
        width: 280px;
        height: 320px;
    }
}

/* Success Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: scaleUp 0.5s ease;
}

.modal-content h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.modal-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}