/*{
    background-color: #000000;
    color:#ffffff;
}*/
:root {
    --primary-color: #ffffff;
    --secondary-color: #9b9a9a;
    overflow-x: hidden;
}

body{
    background-color: black;
    color: var(--primary-color);
    padding: 20px;
}
/* Media Queries */
@media screen and (max-width: 600px) {
    body {
        background-color: #e0f7fa; /* Light cyan */
        color: #004d40; /* Dark teal */
        padding: 2%;
    }

    .container, nav, #about, #part1, #skills, #education, #project, #contact {
        width: 100%;
        padding: 5%;
        margin: 0;
        box-sizing: border-box;
    }
    .container ul, #contact ul{
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        gap: 10px;
    }
    nav ul {
        display: flex;
        flex-wrap: wrap;
        margin-left: 0;
    }
    #part1{
        display:  block!important;
    }
    nav ul li {
        margin: 5px 0;
    }

    #skills, #education, #project, #contact, #experience {
        flex-direction: column;
        padding: 15%;
        :hover{
            color: white;
        }
    }
    .logo{
        font-size: 1.5em;
        top: 0;
        left: 0;
    }
    #skills ul, #education ul {
        flex-direction: column;
        gap: 5px;
        margin-right: 20%;
        left: 0;
        text-align: center;
    }
    
    #project ul {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        :hover{
            color: white;
        }
    }
    
    #project ul li {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 10px;
        box-sizing: border-box;
    }

    #skills ul li, #education ul li, #contact ul li {
        width: 100%;
        padding: 20%;
    }

    #skills:hover, #education:hover, #project:hover {
        width: 100%;
        height: 100%;
        position: relative;
        background: none;
        transition: none;
    }
    .firstp{
        font-size:3em !important;
    }
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    left:10%;
}
nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}
nav ul{
    display:flex;
    flex-wrap: wrap;
   /*grid-template-columns:repeat(5,auto)minmax(auto,1fr);*/
    justify-content: end;
    align-items: center;
    list-style: none;
    right: 10px;
    padding: 5px;
    margin-left: 55%;
}
nav ul li{
    margin: 0 10px;
}
nav ul li a{
    font: 1.2em sans-serif;
    text-decoration: none;
    color: #ffffff;
}
nav ul li a:hover{
    text-decoration: none;
    font-size: larger;
    transition: 0.1s;
    lighting-color: aqua;
    cursor: pointer;
    border: solid;
    border-color: transparent;
    border-bottom-color: aqua !important;
}

#about{
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100%;
    width: 100%;
    margin-bottom: 10%;
    z-index: 2;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight {
    color: #32a2af;
    font-weight: bold;
}

.intro {
    font-size: 1.2em;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cta-button {
    display: inline-block;
    background-color: #3e57bc;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #32a2af;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .highlight {
    color: #3e57bc;
}

.dark-mode .cta-button {
    background-color: #32a2af;
}

.dark-mode .cta-button:hover {
    background-color: #3e57bc;
}

/* Media query for mobile */
@media screen and (max-width: 600px) {
    .about-content p {
        font-size: 1em;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-button {
        text-align: center;
    }
}

#part1{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100%;
    gap: 10px;
    width:auto;
}
#skills{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100%;
    width: 100%;
    border-color: rgb(0, 229, 255);
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    animation: 3s infinite ease-in alternate;
}
#skills:hover{
    background:linear-gradient(90deg, rgb(8, 86, 95), #ffffff);
    transition: 3s ease-in-out;
}
#skills ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 10px;
}
#skills ul li{
    padding: 10px;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
}
#education{
    display:flex;
    flex-wrap:wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    height: 100%;
    width: auto;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
}
#education:hover{
    background:linear-gradient(90deg, #000000, #ffffff);
    transition: 3s ease-in-out;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
}
#education ul{
    display:block;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 14px;
    margin-right: 20px;
}
/*#education:hover ul{
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 15%;
    font-size: 1.5em;
    margin-right: 50%;
}*/
#education ul li{
    padding: 10px;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
}
#project{
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100%;
    width: 100%;
}
#project ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    gap: 20px;
}
#project ul li{
    padding: 20px;
    border-color: #9b9a9a;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
#project ul li h3 {
    margin-top: 0;
    color: #3e57bc;
}
#project ul li p {
    flex-grow: 1;
    margin-bottom: 15px;
}
#project ul li a {
    display: inline-block;
    background-color: #3e57bc;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}
#project ul li a:hover {
    background-color: #32a2af;
}
#project:hover{
    background:linear-gradient(90deg, #000000, #ffffff);
    transition: 3s ease-in-out;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    z-index: 1;
    border-radius: 10px;
}
#project ul li:hover{
    border-color: #ffffff;
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.dark-mode #project:hover{
    border-color: #000000;
    background:linear-gradient(90deg, #000000, #ffffff);
    color: white;
}
.dark-mode #project ul li h3 {
    color: #32a2af;
}
.dark-mode #project ul li a {
    background-color: #32a2af;
    color: white;
}
.dark-mode #project ul li a:hover {
    background-color: #3e57bc;
}
#contact{
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100%;
    width: 100%;
}
#contact ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 10px;
}
#contact ul li{
    padding: 10px;
}
#contact ul li a{
    color: #ffffff;
}
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 26px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    bottom: 4px;
    background-color: aliceblue;
    background-image: url(https://wallpapercave.com/wp/oWfnrb6.jpg);
    background-size: cover;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 20px;
    left: 1px;
    bottom: 0;
    color: rgb(18, 39, 58);
    background-image: url(https://thumbs.dreamstime.com/b/cartoon-sun-holding-cloud-17925535.jpg);
    background-size: contain;
    -webkit-transition: .4s;
    transition: .4s;
  }
  input:checked + .slider {
    /*background-color: #2e2f2f;*/
    background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_WPNyy5r8pCAOfOi7t2KwtCCzthSpOMqWCQ&s);
    background-size: cover;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #616364;
  }
  
  input:checked + .slider:before {
    background-image: url(https://t4.ftcdn.net/jpg/05/42/22/09/360_F_542220991_aVvzGnU8cw3gFH6Ya3VSiF2oT07YEJrX.jpg);
    background-size: contain;
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  .slider.round {
    border-radius: 30px;
  }
  
.slider.round:before {
    border-radius: 50%;
}
.dark-mode {
    background-color: white;
    color: black;
  }
  .dark-mode body{
    background-color: white;
    color: black;
  }
  .dark-mode ul li{
    padding: 10px;
    border-color: #353434;
    border-style: none;
    border-width: 2px;
    border-radius: 10px;
  }
  .dark-mode ul li a{
    background-color: #ffffff;
    color: black;
  }
  .dark-mode #skills,#education,#project,#contact{
    border-color: #010101;
  }
  .dark-mode #contact ul li a{
    color: #030303;
}
.dark-mode #project ul li{
    border-color: #010101;
}
.dark-mode #education:hover{
    border-color: #010101;
    background:linear-gradient(90deg, #000000, #ffffff);
    color: white;
}
.dark-mode #skills:hover{
    border-color: #000000;
    background:linear-gradient(90deg, #000000, #ffffff);
    color: white;
}
.dark-mode #skills{
    border-color: #000000 !important;
}
.logo{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.5em;
    animation: ali 5s ease-in-out alternate-reverse;
}
@keyframes ali{
    0%,10%{
        color: #ffffff;
        display: flex;
    }
    11%,30%{
        color: #939599;
        float: left;
        margin-top: 0%;
    }
    31%,50%{
        color: #32a2af;
        margin-top: 1%;
        display: block;
        font-style: oblique;
    }
    51%,70%{
        color: #a8a2a2;
        margin-left: 10%;
        font-style: italic;
        display: flex;
    }
    71%,100%{
        color: #292a29;
        display: block;
    }
}
#cookies{
    width: 40vw;
    height: auto;
    background-color: #ffffff3b;
    position: fixed;
    left: 70%;
    bottom: 2%;
    transform: translateX(-50%);
    font: 1em sans-serif;
    border-radius: 5px;
    padding: 2%;
    color: #000;
    z-index: 1;
}
.dark-mode #cookies{
    background-color: #07070749;
    color: #060606;
}
#acceptbutton{
    background-color: #3cb65bbe;
    color: #ffffff;
    border-radius: 5px;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}
#rejectbutton{
    background-color: #504e4e6c;
    color: #ffffff;
    border-radius: 5px;
    border: none;
    padding: 15px;
    margin: 5px;
    cursor: pointer;
}
#project iframe{
    height: 100%;
    width: 100%;
    background-size: contain;
    cursor: pointer;
}
@keyframes appear{
    from{
        opacity: 0;
        scale: 0.4;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
#portid{
    width: 100vw;
    height:100vh;
    position: absolute;
}
.block{
    animation: appear 5s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}
.firstp{
    height: 100vh;
    text-shadow: #939599;
    font-size: 5em;
    padding:2px;
    left:20%;
    margin-top: 60px;
    margin-left: 20%;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: left;
}
#card{
    max-width: 30%;
    width:250px;
    height: 40%;
    border-radius: 5px;
    border: #9b9a9a solid;
    position: absolute;
    z-index: 1;
    top:80px;
    left:50%;
    background-color: white;
}
#card:hover{
    animation:alli 4s ease;
    background-color: #000000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    transform-origin: 50% 50%;
}
#logo{
    margin-left: 5px;
    text-align: center;
}
#logo img{
    width: 150%;
    left: 1%;
    top:1;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}
#card:hover .middle {
    opacity: 1;
}
.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%)
}
.text {
    background-color: #75777500;
    color: white;
    font-size: 20px;
    padding: 16px 32px;
}
@keyframes alli {
    0%,100%{
        background-color: white;
    }
    0%,1%{
        background-color: white;
    }
    0%,9%{
        transform:rotateY(45deg);
        opacity: 0.3;
        filter: grayscale(10);
    }
    10%,20%{
        transform:rotateY(90deg);
        opacity: 0.5;
    }
    20%,100%{
        transform: rotateY(0);
        opacity: 1;
    }
    0%,100%{
        background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQcrHFS4lXsc9FBRpcNeK9g-zIEvgwZVe5CrQ&s);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    60%{
        transform: translateY(180px);
    }
    90%{
        transform:translateX(240px);
    }
}
canvas{
    display: block;
    background-color: #292a29;
    margin: 0;
    width: 100%;
    height: 95vh;
}

/* Experience Section */
#experience {
    margin: 40px 0;
    padding: 20px;
    border-color: #3e57bc;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    transition: all 0.5s ease;
}

#experience:hover {
    background: linear-gradient(90deg, #000000, #ffffff);
    transition: 3s ease-in-out;
}

.experience-item {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 4px solid #32a2af;
    background-color: rgba(62, 87, 188, 0.1);
    border-radius: 0 10px 10px 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.experience-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.company {
    color: #32a2af;
    font-weight: normal;
}

.duration {
    color: var(--secondary-color);
    font-style: italic;
    margin: 5px 0;
}

.responsibilities {
    margin-left: 20px;
    padding-left: 0;
}

.responsibilities li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}

.responsibilities li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #32a2af;
}

/* Dark Mode */
.dark-mode #experience {
    border-color: #000000;
}

.dark-mode .experience-item {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: #3e57bc;
}

.dark-mode .experience-header h3 {
    color: #000000;
}

.dark-mode .company {
    color: #3e57bc;
}

.dark-mode .responsibilities li:before {
    color: #3e57bc;
}

.dark-mode #experience:hover {
    border-color: #000000;
    background: linear-gradient(90deg, #000000, #ffffff);
    color: white;
}

/* Media query for mobile experience section */
@media screen and (max-width: 600px) {
    #experience {
        padding: 10px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-item {
        padding: 10px;
    }
}
