:root {
    --text-color: #ffffff;
    --background-color: #0c1912;
    --main-color: #00b894;
    --button-color: #00d2a8;
    --box-color: #132920;
    --accent-color: #1cffc4;
    --secondary-bg: #0f2318;
    --gold-accent: #d4af37;
    --highlight: #b3ffe6;
    --dark-shadow: #08100c;
}

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

body{
    font-family: 'Poppins',sans-serif;
    background-color: var(--background-color);
    align-items: center;
}

a{
    text-decoration: none;
}

/* Header */
.navbar{
    background-color: var(--secondary-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 15px 50px;
}
li{
    list-style: none;
}
.left {
    display: flex;
    align-items: center;
    font-family: 'Dancing Script', cursive;
    font-size: 30px;
    font-weight: bold;
}
.left a{
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease-in-out;
}
.left a:hover{
    color: #b7bbbe;
}

.right{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 0;
}
.right li a {
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 10px;
    color: #ffff;
    transition: color 0.3s ease-in-out;
}

.right li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--button-color);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.right li a:hover {
    color: var(--text-color);
}

.right li a:hover::after {
    width: 100%;
    left: 0;
}

.hamburger{
    display: none;
    cursor: pointer;
}
.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    background-color: #ffff;
}

/* Hero */
.hero-section {

    margin: 10px 0;
    padding: 0 50px;
}

.hero-container {
    min-height: 100vh;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 400px;
    height: auto;
    border-radius: 1rem;
    padding: 5% 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-container .text {
    flex: 5;
    color: var(--text-color);
}

.hero-container .text h2 {
    font-size: 45px;
    color: var(--main-color);
}

.hero-container .text .links {
    margin-top: 25px;
}

.hero-container .text .links a {
    font-size: 20px;
    display: inline-block;
    position: relative;
    padding: 10px 10px;
    color: var(--text-color);
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.4s ease-in-out;
}

.hero-container .text .links a::before,
.hero-container .text .links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease-in-out;
}

.hero-container .text .links a::before {
    top: 0;
}

.hero-container .text .links a::after {
    bottom: 0;
}

.hero-container .text .links a:hover::before,
.hero-container .text .links a:hover::after {
    width: 100%;
}

.hero-container .headshot {
    flex: 2;
    display: flex;
    justify-content: center;
}

.hero-container .headshot img {
    border-radius: 10%;
    width: 350px;
}

/* Hero Animations */
.hero-container .text {
    opacity: 0;
    transform: rotate(-2deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-container .text.animate {
    opacity: 1;
    transform: rotate(0);
}

.hero-container .headshot {
    opacity: 0;
    transform: rotate(2deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.hero-container .headshot.animate {
    opacity: 1;
    transform: rotate(0);
}

/* About */

.about-container{
    min-width: auto;
    width: 90%;
    max-width: 1300px;
    margin: 20px auto;
    height: auto;
    border-radius: 1rem;
    padding: 10px 4%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-title{
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 0px;
    align-items: center;
}

.about-image{
    max-width: 350px;
 
    margin-right: 20px;
}

.about-image img {
   width: 100%;
   border-radius: 0.5rem;
   
}

.about-text {
    flex: 1;
    line-height: 1.6;
    font-size: 18px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* About section animations */
.about-title, .about-image, .about-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.about-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-image.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.about-text.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Skills */
.skill-container{
    min-height: auto;
    width: 90%;
    max-width: 1300px;
    margin: 10px auto; 
    height: auto;
    border-radius: 1rem;
    padding: 10px 4%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    overflow: hidden; 
}

.skill-title{
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-para {
    font-size: 20px;
    color: var(--text-color);
    padding: 5px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.skill-para.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-box {
    background-color: var(--box-color);
    border-radius: 10px;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.skill-box.animate {
    opacity: 1;
}

.skill-box:nth-child(odd).animate {
    animation: fadeInLeft 0.6s ease forwards;
}

.skill-box:nth-child(even).animate {
    animation: fadeInRight 0.6s ease forwards;
}

.skill-box:hover {
    transform: translateY(-10px);
}

.skill-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.skill-name {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease; 
}

.skill-box:hover .skill-icon {
    transform: scale(1.1) rotate(5deg); 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .skill-container {
        overflow: hidden;
    }
    
    .skill-box {
        animation-play-state: paused;
    }
    
    .skill-container:hover .skill-box,
    .skill-container:focus-within .skill-box,
    .skill-container.in-view .skill-box {
        animation-play-state: running;
    }
}
/* Projects */

.project-container{
    min-height: auto;
    width: 90%;
    max-width: 1300px;
    margin: 10px auto; 
    height: auto;
    border-radius: 1rem;
    padding: 15px 4%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.project-title{
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

.project-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
}

.project-box{
    
    display: flex;
    background-color: var(--box-color);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.project-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--dark-shadow);
    border: 1px solid var(--accent-color);
}

.project-box:nth-child(1),
.project-box:nth-child(3) {
    flex-direction: row; 
}

.project-box:nth-child(2) {
    flex-direction: row-reverse; 
}

.project-name{
    color: var(--main-color);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    transition: text-shadow 0.3s ease;
    text-decoration: none; 
    border-bottom: none;
    width: fit-content;
}

.project-box:hover .project-name {
    text-shadow: 0 0 1px rgba(28, 255, 196, 0.6);
}

.project-name:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    opacity: 0; 
}

.project-box:hover .project-name:after {
    width: 100%;
    opacity: 1; 
}

.project-content{
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.project-content p{
    color: var(--text-color);
}

.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; 
}

.project-image img {
    max-width: 250px;  
    max-height: 250px; 
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.project-box:hover .project-image img {
    transform: scale(1.05);
    transform: rotate(1deg);
}

/* Project Animation */
.project-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-box {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.project-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-box:nth-child(2) {
    transition-delay: 0.2s;
}

.project-box:nth-child(3) {
    transition-delay: 0.4s;
}

.project-box:not(.animate) {
    transition-delay: 0s !important;
}

/* Contact */
.contact-container {
    min-height: auto;
    width: 60%;
    max-width: 800px;
    margin: 10px auto;
    height: auto;
    border-radius: 1rem;
    padding: 40px 4%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.contact-title {
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

.contact-content {
    color: var(--text-color);
    font-size: 17px;
    text-align: center;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--box-color);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: var(--background-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(28, 255, 196, 0.3);
}

/* Platform-specific hover colors */
.social-link.linkedin:hover {
    border-color: #0077b5;
}

.social-link.linkedin:hover::before {
    background: #0077b5;
}

.social-link.github:hover {
    border-color: #333;
}

.social-link.github:hover::before {
    background: #333;
}

.social-link.twitter:hover {
    border-color: #1da1f2;
}

.social-link.twitter:hover::before {
    background: #1da1f2;
}

.social-link.instagram:hover {
    border-color: #e4405f;
}

.social-link.instagram:hover::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.email:hover {
    border-color: #ea4335;
}

.social-link.email:hover::before {
    background: #ea4335;
}

.social-link.discord:hover {
    border-color: #5865f2;
}

.social-link.discord:hover::before {
    background: #5865f2;
}

/* Contact Animation */
.contact-title,
.contact-content,
.social-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.contact-title.animate,
.contact-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.social-link.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 0.1s);
}
/* Footer */
.footer{
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid var(--box-color);
}


.footer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 12px;
    color: var(--main-color);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid var(--main-color);
    border-radius: 50%;
}

.footer a:hover{
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.2);
}

.footer-logo {
    font-family: 'Dancing Script', cursive;
    margin: 15px 0;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 13px;
    color: var(--main-color);
    margin-top: 10px;
}

.theme-switcher-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    
}

::-webkit-scrollbar {
    width: 4px; 
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color); 
}

@media screen and (max-width: 1300px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin-bottom: 25px;
    }
    
    .about-text {
        width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 0 30px;
    }

    .hero-container {
        padding: 4% 3%;
    }

    .hero-container .text h2 {
        font-size: 38px;
    }

    .hero-container .headshot img {
        width: 280px;
    }
    .about-image {
        flex: 0 0 400px;
    }
    
    .about-content {
        gap: 25px; 
    }
    
    .about-text {
        font-size: 17px;
        line-height: 1.5; 
    }
    
    .about-container {
        padding: 10px 3%; 
    }

    .project-title {
        font-size: 35px;
    }

    .project-container {
        padding: 4% 3%;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-image img {
        max-width: 200px;
        max-height: 200px;
    }
}

@media(max-width:768px){
    .hamburger{
        display: block;
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .right {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        background: var(--secondary-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .right li {
        margin: 16px 0;
    }

    .right.active {
        left: 0;
        background: rgba(15, 35, 24, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hero-section {
        padding: 0 20px;
        margin: 30px 0;
    }

    .hero-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }

    .hero-container .text {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero-container .text h2 {
        font-size: 32px;
    }

    .hero-container .text p {
        font-size: 16px;
    }

    .hero-container .headshot {
        flex: none;
        width: 100%;
    }

    .hero-container .headshot img {
        width: 220px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }
    
    .about-title {
        font-size: 30px;
    }
    
    .about-text {
        font-size: 16px;
    }

    .project-title {
        font-size: 32px;
        text-align: center;
    }
    
    .project-box,
    .project-box:nth-child(1),
    .project-box:nth-child(2),
    .project-box:nth-child(3) {
        flex-direction: column;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 15px 10px;
    }
    
    .project-image {
        width: 100%;
        padding: 15px 10px;
    }
    
    .project-image img {
        max-width: 100%;
        height: auto;
    }
    .contact-container {
        width: 95%;
        padding: 4% 3%;
    }




}
