html{
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

div{
    margin-top: -1px; 
    padding-top: 1px;
}
body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Introduction section */
.intro {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #681191 , #000000 );
    color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

.intro-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-container {
    width: 80%;
    padding-left: 5%;
    z-index: 2;
}

.intro h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.intro h2 {
    font-size: 5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.intro h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 4rem;
    line-height: 1.1;
}

.intro p {
    font-size: 1.5rem;
    max-width: 600px;
}


/* Horizontal scrolling section */
.horizontal-section {
    position: relative;
    height: 300vh; /* This height determines how long we scroll */
    background-color: #000000;
}

.horizontal-container {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    background-image: url(./assests/N.svg);
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.horizontal-content {
    position: absolute;
    height: 100%;
    width: 400%; /* Width of the horizontal content */
    display: flex;
    align-items: center;
    will-change: transform;
}

/* Line that shows scroll progress */
.scroll-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background-color: #9834db;
    transform: translateY(-50%);
    z-index: 0;
}

/* Main Circles Container */
.circle-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
}

/* Main Category Circles */
.main-circle {
    width: 28vmin; /* Viewport-relative size */
    height: 28vmin; /* Same value for perfect circle */
    border-radius: 50%;
    background-color: #521166;
    border: 3px solid #9758c2;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.main-circle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 1;
}

.main-circle:hover::before {
    border-color: #c970db; /* Purple outline */
}

.circle-text {
    text-align: center;
    padding: 1rem;
    font-weight: bold;
    color: #ffffff;
    max-width: 120%; /* Keep text inside circle */
    font-size: calc(1vmin + 0.7rem); /* Responsive font size */
    z-index: 2;
}

/* Glow effect for circles */
.main-circle.active {
    transform: scale(1.1);
    box-shadow: 0 0 30px #9834db;
}

/* Branches and Subcircles */
.branches-container {
    position: absolute;
    width: 40vmin;
    height: 40vmin;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.main-circle.expanded .branches-container {
    opacity: 1;
    pointer-events: all;
}

.branch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    transform: rotate(0deg);
    width: 25vmin; /* Length of the branch */
    height: 2px;
    background-color: #521166;
    z-index: 8;
}

.subcircle {
    position: absolute;
    top: 50%;
    right: -6vmin; /* Position the subcircle at the end of the branch */
    transform: translate(50%, -50%);
    width: 20vmin; /* Smaller than main circles */
    height: 20vmin;
    border-radius: 50%;
    background-color: #3a0d4a;
    border: 2px solid #7e4892;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.subcircle-text {
    text-align: center;
    padding: 0.7rem;
    font-weight: bold;
    color: #ffffff;
    max-width: 90%;
    font-size: calc(0.8vmin + 0.5rem); /* Smaller text */
}

.subcircle:hover {
    transform: translate(50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.8);
    z-index: 1;
}

.subcircle.active {
    transform: translate(50%, -50%) scale(1.2);
    box-shadow: 0 0 30px rgba(201, 112, 219, 0.9);
    z-index: 1;
}

.subcircle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.subcircle:hover::before {
    border-color: #e08ce9; /* Lighter purple outline */
}

/* Modal card that appears when clicking on a subcircle */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 2, 26, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-card {
    background-color: #0a0a0a; /* Dark background for theme */
    width: 65vmin; /* Relative to viewport for responsiveness */
    height: 65vmin; /* Equal height for circle shape */
    padding: 2rem;
    border-radius: 50%; /* Full circle */
    position: relative;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible
    ; /* Keep content within circle */
    color: #e0e0e0; /* Light text for dark background */
}

.modal-card.open {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10%;
    right: 25%;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #de5aff;
}

.modal-title {
    margin-bottom: 1rem;
    color: #db34bf;
    font-size: 1.5rem
}

.modal-content{
    line-height: 1.6;
    max-width: 80%;
    max-height: 55%; /* Adjust to make room for time period */
    overflow-y: auto;
    /* Style the scrollbar for better aesthetic */
    scrollbar-width: thin;
    scrollbar-color: #9370DB #0a0a0a;
    margin-bottom: 1.5rem;
    overflow: auto;
}

.modal-scroll-container {
    width: 100%;
}

.period-text {
    color: #9370DB;
    font-style: italic;
    margin-top: 1rem;
    position: relative;
    margin-bottom: 10px;
}

.final-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #000000, #681191 );
    color: #e0e0e0;
    padding: 2rem;
    text-align: center;
}
  
.final-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #cd8ef7;
}
  
.final-section p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 3rem;
}
  
.cta-button {
    background-color: #915fb9;
    color: white;
    border: 2px solid#915fb9;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}
  
.cta-button:hover {
    background-color: #000000;
    border: 2px solid#000000;;
    transform: scale(1.05);
    box-shadow: 0 0 30px #000000;
    color: #ffffff;
}

.social-section {
    padding: 5rem 2rem;
    background-color: #0a0a0a;
    text-align: center;
}
  
.social-section h3 {
    color: #9370DB;
    font-size: 2rem;
    margin-bottom: 2rem;
}
  
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
  
.social-icon {
    font-size: 2rem;
    color: #9370DB;
    transition: all 0.3s ease;
}
  
.social-icon:hover {
    color: #8a2be2;
    transform: scale(1.2) rotate(5deg);
}
  
footer {
    background-color: #0a0a0a;
    color: #6c6c6c;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #2d1f3d;
}
  
.footer-content p {
    margin: 0.5rem 0;
}
  
.footer-content a {
    color: #9370DB;
    text-decoration: none;
    font-weight: bold;
}
  
.footer-content a:hover {
    color: #8a2be2;
}

.showcase-circle {
    position: absolute;
    width: 25vmin;
    height: 25vmin;
    border-radius: 50%;
    background-color: #1a0920;
    border: 3px solid #9834db;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.showcase-circle:hover {
    transform: scale(1.1);
}

.showcase-circle:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-circle-1 {
    top: -15%;
    left: -15%;
}

.showcase-circle-2 {
    bottom: -15%;
    right: -15%;
}

.showcase-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(45deg, #521166, #9834db);
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-error {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #521166;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
}

.showcase-loading {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #521166, #9834db);
    color: #ffffff;
}

span.txt-rotate {
    display: inline-block;
    text-align: left;
    color: #d400ff;
    font-weight: bold;
    font-size: 4rem;
}


.profile-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    max-width: 100vw;
}

.circle-bg {
    position: absolute;
    right: -20%;
    width: 90%;
    height: 140%;
    border-radius: 50%;
    background: rgba(116, 7, 206, 0.4);
    overflow: hidden;
}

.circle-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
}

.circle-bg::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 30%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: rgba(217, 164, 255, 0.8);
}

.profile-image {
    position: absolute;
    height: 120%;
    z-index: 1;
    /* object-fit: cover;
    clip-path: circle(30% at 60% 50%); */
}

.results-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.results-table th, .results-table td {
    padding: 6.5px;
    text-align: left;
    border-bottom: 1px solid #9370DB;
}

.results-table th {
    background-color: #9370DB;
}

.results-table tr:hover {
    background-color: #9370DB;
}

.github-projects a:hover {
    text-decoration: none;
    color: #ffffff;
}

.github-projects a {
    color: #d400ff;  /* GitHub link blue */
    text-decoration: none;
}

/* Mobile-first breakpoints */
@media screen and (max-width: 876px) {
    /* Introduction section adjustments */
    html{
        scroll-behavior: smooth;
    }
    body{
        background-color: #000000;
    }
    .intro {
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    .showcase-image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    transition: transform 0.3s ease;
    }

    .text-container {
        padding: 2rem 1rem;
        text-align: left;
        position: relative;
        z-index: 100;
        top: 35%;
        /* background-color: #000000a1;
        border-radius: 50%; */
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .intro h2 {
        font-size: 3.7rem;
    }

    .intro h3 {
        font-size: 1.8rem;
    }

    span.txt-rotate {
        font-size: 3.2rem;
    }

    .intro p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .profile-container {
        position: absolute;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: flex-end; /* Keep this */
        overflow: hidden;
        margin: 0;
        padding: 0;
        right: 0; /* Add this instead of right: auto */
    }
    .circle-bg {
        position: absolute; /* Add this */
        right: 0; /* Add this */
        width: 120vw;
        height: 100vh;
        z-index: 0;
        margin: 0;
        padding: 0;
    }

    .profile-image {
        position: relative;
        height: 100vh;
        width: auto; /* Change from 100% to auto */
        z-index: 0;
        /* Remove float: right as it won't work with flex positioning */
    }

    /* Horizontal section adjustments */
    .horizontal-section {
        height: 400vh;
    }

    .horizontal-container {
        background-size: 80%;
        overflow-x: hidden;
    }

    .horizontal-content {
        width: 500%;
    }

    /* Keep main circles circular */
    .main-circle {
        width: 28vmin;
        height: 28vmin;
    }

    /* Keep subcircles circular */
    .subcircle {
        width: 21vmin;
        height: 21vmin;
    }

    /* Modal card adjustments - make oval */
    .modal-card {
        width: 98vmin;
        height: 120vmin; /* Increased height significantly */
        border-radius: 45vmin / 60vmin; /* Oval shape */
        padding: 3rem 2rem;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .modal-content {
        max-height: 60%; /* Increased content area */
        font-size: 1rem;
        padding: 0 2rem;
        margin-top: 1rem;
        justify-content: center;
        overflow-x: hidden;
    }

    /* Showcase circles positioning */
    .showcase-circle {
        width: 37vmin;
        height: 37vmin; /* Keep circular */
        border-radius: 50%;
    }

    .showcase-circle-1 {
        top: -23%;
        left: -3%;
    }

    .showcase-circle-2 {
        bottom: -20%;
        right: -1%;
    }

    .close-btn {
        top: 8%;
        right: 20%;
        font-size: 2rem;
    }

    .subcircle-text {
        text-align: center;
        padding: 0.1rem;
        font-weight: bold;
        color: #ffffff;
        max-width: 90%;
        font-size: calc(0.8vmin + 0.5rem); /* Smaller text */
    }
}

/* Tablet breakpoint */
@media screen and (min-width: 540px) and (max-width: 1024px) {
    .intro {
        height: auto;
        min-height: 100vh;
    }
    .circle-bg {
        align-self: right;
        right: auto;
        left: -1%; 
        width: 80vw;
        height: 100vh;
        z-index: 0;
        margin: 0;
        padding: 0 0 0 0;
    }
    .text-container {
        padding: 3rem 2rem;
        max-width: 80%;
    }

    span.txt-rotate {
        font-size: 4.5rem;
    }

    .profile-container {
        height: 100vh;
    }

    .modal-card {
        width: 80vmin;
        height: 100vmin;
        border-radius: 40vmin / 50vmin;
    }

    .showcase-circle {
        width: 31vmin;
        height: 31vmin;
    }

    .showcase-circle-1 {
        top: -15%;
        left: -5%;
    }

    .showcase-circle-2 {
        bottom: -15%;
        right: -5%;
    }
    .horizontal-container {
        overflow: visible;
    }
    .horizontal-content{
        max-width: 300%;
    }
    .profile-container {
        overflow: hidden;
        max-width: 100%;
    }
    
    .circle-bg {
        right: -10%;  /* Adjust from -1% */
        width: 100%;  /* Adjust from 80vw */
        overflow: hidden;
    }
    .horizontal-container {
        overflow: visible;
    }
    
    .profile-container {
        overflow: hidden;
        max-width: 100%;
    }
    
    .circle-bg {
        right: -10%;  /* Adjust from -1% */
        width: 100%;  /* Adjust from 80vw */
        overflow: hidden;
    }

}

/* Larger screens */
@media screen and (min-width: 10245px) {
    .modal-card {
        width: 90vmin;
        height: 90vmin;
        border-radius: 50%;
    }

    .showcase-circle {
        width: 35vmin;
        height: 35vmin;
    }

    .showcase-circle-1 {
        top: -3%;
        left: -20%;
    }

    .showcase-circle-2 {
        bottom: -3%;
        right: -20%;
    }

    .close-btn{
        font-size: 1.8rem;
    }
    .circle-container{
        overflow: auto;
    }
}

/* Landscape orientation fixes */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .intro {
        flex-direction: row;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }
    .circle-bg {
        position: absolute;
        right: -50%; /* Adjust this value as needed */
        width: 150vh; /* Use vh units to maintain circle aspect */
        height: 150vh;
        z-index: 0;
        transform: translateX(25%); /* Help center the circle */
    }
    .text-container {
        width: 80%;
        padding: 1rem;
    }

    .profile-container {
        width: 50%;
        height: 100vh;
    }

    .modal-card {
        width:90vmin;
        height: 80vmin;
        border-radius: 42.5vmin / 40vmin;
    }

    .modal-content {
        max-height: 50%;
        overflow-x: hidden;
    }

    .showcase-circle {
        width: 40vmin;
        height: 40vmin;
    }
     .showcase-circle-1 {
        top: 30%;
        left: -50%;
    }

    .showcase-circle-2 {
        bottom: 20%;
        right: -50%;
    }
}
@media screen and (max-width: 876px) {
    .profile-container {

        overflow: hidden;
        z-index: 0;
    }

    .profile-image {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
       
    }

    .circle-bg {
        right: -50%;
        width: 150%;
        height: 150%;
    }
}

@media screen and (max-width: 876px) {
    .text-container {
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 0 50% 50% 0;;
        backdrop-filter: blur(5px);
        width: 100%;
        right: 5%;
    }
}
@media screen and (max-width: 876px) {
    .horizontal-section {
        height: 500vh; /* Increase scroll area for mobile */
    }

    .horizontal-container {
        overflow: hidden;
        background-size: 100%;
    }

    .main-circle {
        width: 35vmin;
        height: 35vmin;
    }

    .subcircle {
        width: 25vmin;
        height: 25vmin;
    }
    .intro h1{
        padding-top: 1rem;
    }
}
@media screen and (max-width: 876px) {
    .modal-card {
        width: 90vw;
        min-height: 60vh;
        border-radius: 20px;
        padding: 2rem 1rem;
    }

    .modal-content {
        max-height: 55vh;
        padding: 0.5rem;
        font-size: 1rem;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
    }

    .showcase-circle {
        border-radius: 0%; 
    }
    .modal-overlay{
        width: 100vw;
        height: 100vh;
    }
    .text-container {
      z-index:1;}  
}@media screen and (min-width: 877px) and (max-width: 876px) {
    .intro {
        height: 100vh;
    }

    .profile-container {
        width: 60%;
    }

    .text-container {
        width: 50%;
        padding: 2rem;
        z-index: 1;
    }

    .horizontal-section {
        height: 400vh;
    }

    .main-circle {
        width: 30vmin;
        height: 30vmin;
    }

    .modal-card {
        width: 80vw;
        height: 80vh;
        border-radius: 30px;
    }
}
