html {
    scroll-behavior: smooth;
     overflow-x: hidden;
}

body{
 margin: 0px;
    background:( linear-gradient(135deg, #fffffe, #530606fa));
    color:  #000000;
 font-family: sans-serif;

}

section {
    min-height: 80vh;
    padding: 30px 20px;
}

section {
     scroll-margin-top: 88px; 
}

section:first-child {
    background: linear-gradient(180deg,#fffffe, #910303fa);

}

section:nth-child(2) {
    background: linear-gradient(0,rgb(243, 237, 237) , #910303fa);
    color: #000;
    margin: (0, 0, 0, 100);

}

section:nth-child(3) {
    background: linear-gradient(180deg,rgb(243, 237, 237)  , #910303fa);
    color: #000;
    margin: (0, 0, 0, 200);
}

section:nth-child(4) {
    background: linear-gradient(0,rgb(243, 237, 237) , #910303fa);
    color: #000;
    margin: (0, 0, 0, 100);
}

@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(2px);
    }
}

nav{
    position:sticky;
}

.navbar{
    z-index:1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 10px;
    border-width: auto;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    animation: appear 0.5s linear;
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(135deg, #fffffe, #910303fa);
   
}

.theme-row {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 24px;
}

.theme-toggle {
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.4);
}




.navportfolio {
      font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
   
      color: #c20b0b;
          text-shadow:
        0 0 8px rgba(255, 0, 0, 0.9),
        0 0 16px rgba(255, 0, 0, 0.75),
        0 0 24px rgba(255, 0, 0, 0.55),
        0 0 40px rgba(255, 80, 80, 0.35);
      font-size: 1.5rem;
      font-weight: bold;
      text-decoration: none;
      padding-left: 40px;
    transition: transform 260ms ease,  220ms ease;
    }

.navportfolio:hover{
    cursor: pointer;
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-3px);
}

.navlist{
    display: flex;
    list-style: none;
    gap: 19px;
    padding: 0;
    margin: 0;
    
    
}

.navlist li {
    list-style: none;
}


.navlist li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: black;
    font-weight: 800;
}


.navlist a{
    text-decoration: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800;
    color: black;
    transition: 0.9s ease;
    
}


.navlist a{
    position: relative;
    padding-bottom: 6px;
}

.navlist a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #5e0404, #f50000);
    border-radius: 3px;
    transition: width 260ms cubic-bezier(.2,.9,.2,1);
}

.navlist a:hover::after,
.navlist a:focus::after{
    width: 100%;
}


body.dark .navlist a::after{
    background: linear-gradient(90deg, #e9e0e2, #f50505);
}
.navlist li img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.navlist a:hover{
    color: #f8f8f8;
    transition: color 180ms ease, transform 180ms ease;
    transform: translateY(-2px) scale(1.03);
}

.introduction {
    min-height: calc(50vh - 0px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0px;
    animation: appear 0.5s linear;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.introduction p{
    color:rgb(0, 0, 0);
    gap: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.introduction p:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);
}

.introduction h1 {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    margin: 0;
    font-size: 4.5rem;
    color: rgb(104, 5, 5);
    
    
}

.introduction   h2{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    color: rgb(255, 0, 0);
    font-size: 2rem;
}

.introduction h2:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);
}

.introduction h1:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);
}

.introduction p{
    font-weight: 500;
    
}

.introduction:hover{
    cursor: pointer;
}

.buttons {

    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.buttons button {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #7a3023, #e60404fa);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
}

.buttons button:hover {
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(4px);
    box-shadow: 0 14px 30px rgba(248, 3, 3, 0.589);
    background: linear-gradient(135deg, #cc0808cb, #280229);
    box-shadow: 0 16px 32px rgba(  1, 1, 1, 0.18);
  
   
}

.buttons button:active {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(226, 4, 4, 0.14);
}

.buttons a{
    text-decoration: none;
    color: #ffffff;
}

/* .carousel{
 margin:100px auto;
 width: 90%;
 display: flex;
 overflow-x: auto;
 scrollbar-width: none;
 gap: 1em;
} */

carousel ::-webkit-scrollbar {
   display: none;
}

@keyframes spin{
    from{
        translate: 0;
    }
    to{
        translate: -100%;
    }
}

/* .group{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 6s infinite linear;
    padding-right: 1em;
}

.card{
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    background: linear-gradient(135deg, #7a3023, #e6040452);
    font-size: 1.5em;
    text-align: center;
    justify-content: center;
    gap: 1em;
    align-items: center;
} */

.About_section{
    display: flex;
    gap: 40px;
    align-items: center; 
    flex-wrap: wrap ;
    padding: 28px;
    border: 0.6px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(122,48,35,0.18), rgba(255, 3, 3, 0.14));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    -webkit-backdrop-filter: blur(14px);

}

.About_section:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);
}

.about_text {
    flex: 1;
    min-width: 300px;
}

.about_text p{
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
.about_image{
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 70px;
    box-shadow: 0 15px 35px rgba(248, 2, 2, 0.582);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; 
}

.About_section h1{
    font-size:  30px;
    color: rgb(233, 10, 10);
    font-weight: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    
}
.about_text h1:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);

}

.about_text p:hover{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(-8px);;

}

.sidebar{
    position: fixed;
    margin-top: 24vh;
    right: 0;
    height: 30vh;
    width: 250px;
    z-index: 999;
    background: linear-gradient(135deg, #fffffe, #861010fa);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    transform: translateX(110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 280ms ease, opacity 280ms ease, visibility 280ms ease;
    will-change: transform, opacity;
}

.sidebar.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar li{
    list-style: none;
    text-decoration: none;
    transition:0.2s ease;

}

.sidebar li:hover{
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.sidebar a{
    text-decoration: none;
    color:black;
    font-weight: 1000;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    
}

.sidebar a:hover{
    color: rgb(199, 3, 3);
    transition: color 0.2s ease;
}

.About_section p{
    font-size:  24px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color:white
}

.about_image:hover{
    cursor: pointer;
    transform: translateY(-6px);
    box-shadow: 0 0 0 3px rgba(255, 1, 1, 0.842), 0 10px 20px rgba(90, 1, 1, 0.3);
    filter: saturate(1.1) brightness(1.05);
}

.portfolio_section p{
    text-align: center;
    font-weight: 600;
    color: #000000;
    margin-bottom: 24px;
}

.portfolio_section h2{
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
    color: #f10101e0;
}

.portfolio_section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.portfolio_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin:20px;
    align-items: stretch;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.portfolio_card {
    background: linear-gradient(180deg, #fffdfd3b, #ff01012a);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, zscale(1.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.portfolio_card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.22), 0 0 30px rgba(229, 20, 20, 0.06);
    border-color: rgba(192, 3, 3, 0.9);
    
}

.portfolio_card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;

    transition: transform 600ms cubic-bezier(.2,.9,.2,1);
}




.portfolio_card:hover img {
     transform: scale(1.06);
}


.portfolio_btn{
    transition: transform 260ms ease,  220ms ease;
    transform: translateY(8px);
   opacity : 0;
}
.portfolio_card:hover .portfolio_btn{
    transform: translateY(0) scale(1.02);
   opacity : 1;
}

.theme-toggle:hover{ 
    transform: translateY(-2px)
     scale(1.04); 
    }



.mobile-navlist a:hover{ 
    transform: 
    scale(1.02);
 }

.portfolio_card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #fff;
}

.portfolio_card p {
    color: rgba(3, 0, 0, 0.8);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.portfolio_btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #740101, #6b1c1c);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.portfolio_btn:hover {
    background: linear-gradient(135deg, #ff5656, #c40000);
    transform: translateY(-2px);
}

.namecarousel{
    font-size: 15px;
    padding-block: 10px;
    border-block: 1px solid white;
    display: flex;
    padding: 1rem;
    gap: 1rem;
    overflow:hidden;
    user-select:none;
    
}


.namecarousel ul{
    flex-shrink: 0;
    list-style: none;
    text-align: center;
    font-weight: 600;
    display:flex;
    min-width: 100%;
    justify-content: space-between;
    align-items: center;
    gap:5rem;
    bottom: 10px;
    animation: spin 8s infinite linear;
}

.namecarousel span{ 
        margin: 5px;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
       color: #f5f5f54f;
          /* text-shadow:
        0 0 8px rgba(236, 8, 8, 0.466),
        0 0 16px rgba(255, 8, 8, 0.342),
        0 0 24px rgba(255, 0, 0, 0.55),
        0 0 40px rgba(230, 13, 13, 0.35); */
        font-size: 2.3rem;
     
}

.contact_section{
    max-width: 900px;
    margin: 40px auto;
    padding: 36px 20px;
    text-align: center;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.contact_section h2{
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #fff;
    font-weight: 1000;
    font-size: 60px;
}

.contact_section p{
    color: rgba(255, 255, 255, 0.76);
    font-weight: 1000;
}

.contact_links{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact_link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #7a302350, #e6040450);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(248, 3, 3, 0.589);
    text-decoration: none;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact_link img{
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

.contact_link:hover{
    transform: translateY(-4px);
    box-shadow: none;
    border-color: rgba(192, 3, 3, 0.9);
    cursor: pointer;
}


body.dark {
    background: linear-gradient(135deg, #0b1120, #f8faff);
    color: #e5e7eb;
}

body.dark section:first-child {
    background: linear-gradient(180deg, #ff0000, #000000);
}

body.dark section:nth-child(2){
background:linear-gradient(360deg, #ff0000, #000000);
}

body.dark section:nth-child(3){
  background:linear-gradient(180deg, #ff0000, #000000);  
}

body.dark section:nth-child(4) {
    background:linear-gradient(360deg, #ff0000, #000000);
    color: #e5e7eb;
}

 body.dark .navbar {
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

body.dark .navportfolio {
    color: #c0011d;
    text-shadow: 0 0 8px rgba(82, 2, 21, 0.9), 0 0 16px rgba(255, 0, 0, 0.65);
}

body.dark .navlist a {
    color: #e5e7eb;
}

body.dark .navlist a:hover {
    color: #f70e0e9f;
}

body.dark .introduction h1 {
    color: #f5f5f5e1;
}

body.dark .introduction p{
    color: #ffffff9f;
}

body.dark .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

body.dark .buttons button {
    background: linear-gradient(135deg, #ee0505, #eb10106e);
}

body.dark .buttons button:hover {
    background: linear-gradient(135deg,  #eb10106e,#ee0505);
}

body.dark .About_section {
    background: rgba(15, 23, 42, 0.72);
    border: 0.6px solid rgba(148, 163, 184, 0.18);
}

body.dark .About_section h1 {
    color: #ff0a0ae1;
}

body.dark .About_section p {
    color: #d1d5db;
}

body.dark .portfolio_section p,
body.dark .contact_section p {
    color: #cbd5e1;
}

body.dark .portfolio_section h2,
body.dark .contact_section h2 {
    color: #f8fafc;
} 
  

body.dark .portfolio_card {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

body.dark .portfolio_card h3,
body.dark .portfolio_card p,
body.dark .portfolio_btn,
body.dark .contact_link {
    color: #f8fafc;
}

body.dark .portfolio_card p {
    color: rgba(248, 250, 252, 0.8);
}

body.dark .portfolio_btn {
    background: linear-gradient(135deg, #ce0404, #680000);
}


body.dark .contact_link {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #f8fafc;
}

@media (max-width: 600px) {
    .contact_links{ gap: 12px; }
    .contact_link{ padding: 10px 14px; }
}




.portfolio_card {
    opacity: 1;
    transform: none;
    transition: opacity 520ms ease, transform 520ms ease, box-shadow 320ms ease;
}

.portfolio_card.reveal {
    opacity: 1;
    transform: none;
}

.buttons button {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms ease, transform 420ms ease;
}

.buttons.reveal button {
    opacity: 1;
    transform: translateY(0);
}

.about_image.intro-float { will-change: transform; }


.navlist a { transition: color 240ms ease, transform 200ms ease; }
.navlist a:hover { transform: translateY(-2px); }


 
@media (max-width: 900px) {
    .navlist { gap: 12px; }
    .navportfolio { font-size: 1.25rem; padding-left: 20px; }
    .theme-row { justify-content: flex-end; padding: 12px 16px 20px; }
    .About_section { flex-direction: column; align-items: center; padding: 20px; }
    .about_image { width: 90%; height: auto; border-radius: 28px; }
    .buttons { flex-direction: column; gap: 12px; }
    .portfolio_grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .contact_section h2 { font-size: 40px; }
}

.menu{
    display:none;
}

@media (max-width: 800px){
    .hidenavlist{ display:none }
    .menu { display:block }
}


@media (max-width: 600px) {
    
    .navbar { padding: 12px; }
    .navportfolio { font-size: 1.1rem; padding-left: 12px; }
    .navlist { flex-direction: column; gap: 8px; align-items: center; }
    .theme-row { justify-content: center; padding: 12px; }
    .introduction h1 { font-size: 1.4rem; padding: 0 12px; }
    .introduction h2 { font-size: 1rem; }
    .About_section { padding: 16px; }
    .about_text { min-width: unset; padding: 0 8px; }
    .about_image { width: 100%; height: auto; border-radius: 18px; }
    .buttons { gap: 10px; }
    .portfolio_section { padding: 20px 12px; }
    .contact_section { padding: 20px 12px; }
    .contact_section h2 { font-size: 36px; }
}


@media (max-width: 900px) {
    .navlist a { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .navlist a { font-size: 0.88rem; }
    .mobile-navlist a { font-size: 0.95rem; }
}



