/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    /*body-color: rgb(16, 0, 34);*/
    --body-color: rgb(255,255, 255);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
    min-height: 100vh; /* Add this */
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
}
.container{
    width: 100%;
    position: relative;
    flex: 1; /* Add this */
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px !important;
    line-height: 90px !important;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Add blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding-inline: 9vw;
    transition: none;
    z-index: 100;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
}

/* Override any scroll-based changes */
nav.scrolled,
nav:hover,
nav.sticky {
    height: 90px !important;
    line-height: 90px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Dark mode navigation background fix */
body.dark-mode nav {
    background: rgba(17, 17, 17, 0.9) !important; /* Dark semi-transparent */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode nav.scrolled,
body.dark-mode nav:hover,
body.dark-mode nav.sticky {
    background: rgba(17, 17, 17, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
    padding-top: 90px; /* Move padding here instead of body */
    flex: 1;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span {
    background: transparent; 
    color: var(--first-color); 
    padding: 0; 
    font-size: 18px; 
    font-weight: 600; 
    border-radius: 0; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    position: relative; 
}
.featured-text-card span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, var(--first-color), var(--second-color));
    border-radius: 1px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 3em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    border: 2px solid #222; /* Add explicit border */
}
.icon:hover{
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: #00B5E7;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
    margin-top: auto !important;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}


/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}

/* Theme Toggle Button Styles - adjust positioning */
#theme-toggle {
  position: fixed;
  top: calc(45px - 22px); /* Center with navbar (90px/2 - button-height/2) */
  right:100px;
  z-index: 9999;
  background: #f5f5f5;
  color: #222;
  border: none;
  outline: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-size: 1.4rem;
}
#theme-toggle:hover {
  background: #e0e0e0;
}

/* Light Theme (default) */
body {
  background: #fff;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

/* Dark Theme */
body.dark-mode {
  background: #111;
  color: #f5f5f5;
}
body.dark-mode .container,
body.dark-mode nav,
body.dark-mode .section,
body.dark-mode footer {
  background: transparent;
  color: #f5f5f5;
}
body.dark-mode .btn {
  background: #222;
  color: #f5f5f5;
  border: 1px solid #444;
}
body.dark-mode .btn.blue-btn {
  background: #1976d2;
  color: #fff;
}
body.dark-mode .nav-menu,
body.dark-mode .nav-logo,
body.dark-mode .nav-button,
body.dark-mode .nav-menu-btn,
body.dark-mode .featured-box,
body.dark-mode .project-box,
body.dark-mode .skills-box,
body.dark-mode .about-info,
body.dark-mode .form-control,
body.dark-mode .footer-menu,
body.dark-mode .footer-social-icons {
  background: transparent;
  color: #f5f5f5;
}
body.dark-mode input,
body.dark-mode textarea {
  background: #222;
  color: #f5f5f5;
  border: 1px solid #444;
}
body.dark-mode .icon i {
  color: #f5f5f5;
}
body.dark-mode #theme-toggle {
  background: #222;
  color: #f5f5f5;
}

/* Add these dark mode rules for text and icon fixes */
/* Dark Theme text fixes */
body.dark-mode h1,
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode p,
body.dark-mode .nav-name,
body.dark-mode .footer_menu_list a,
body.dark-mode .featured-name,
body.dark-mode .featured-text-info,
body.dark-mode .top-header h1,
body.dark-mode .about-info p,
body.dark-mode .project-box label,
body.dark-mode .skills-header h3,
body.dark-mode .nav-link,
body.dark-mode span:not(.typedText) {
    color: #f5f5f5 !important;
}

/* Dark Theme icon fixes */
body.dark-mode .icon {
    border-color: #f5f5f5;
    box-shadow: 0px 2px 5px 0px rgba(255, 255, 255, 0.1);
}

/* Fix for project boxes background in dark mode */
body.dark-mode .project-box,
body.dark-mode .about-info {
    background: #1a1a1a;
}

/* Ensure scroll button is visible in dark mode */
body.dark-mode .scroll-btn {
    background: #222;
    color: #f5f5f5;
}

/* Fix footer in dark mode */
body.dark-mode footer {
    background: #1a1a1a;
}

/* Add these styles to your CSS file */
#theme-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Theme toggle button positioning */
#theme-toggle {
    margin-right: 60px; /* Adds space between theme toggle and menu button */
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
    #theme-toggle {
        margin-right: 50px; /* Slightly reduced margin on smaller screens */
    }
    
    .nav-menu-btn {
        position: relative;
        z-index: 100; /* Ensures menu button stays above other elements */
    }
}

@media screen and (max-width: 480px) {
    #theme-toggle {
        margin-right: 45px; /* Further reduced margin on very small screens */
    }
}




/* ----- VARIABLES ----- */
:root {
    --body-color: rgb(255, 255, 255);
    --color-white: rgb(255, 255, 255);
    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);
    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);
    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
}

/* ----- BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--body-color);
    color: var(--text-color-second);
    transition: background 0.3s, color 0.3s;
    padding: 2rem 0;
    min-height: 100vh;
}

/* ----- ABOUT SECTION ----- */
.about-section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ----- ABOUT HEADER ----- */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.about-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color-second);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--first-color), var(--second-color));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.header-line::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--third-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--body-color);
}

/* ----- ABOUT CONTENT ----- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ----- ABOUT TEXT SECTION ----- */
.about-text-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--first-shadow-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(110, 87, 224, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--first-color), var(--second-color));
    border-radius: 20px 20px 0 0;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(110, 87, 224, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--first-color), var(--second-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 5px 15px rgba(110, 87, 224, 0.3);
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--color-white);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #777;
    margin-bottom: 1.2rem;
}

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

/* ----- SKILLS SECTION ----- */
.skills-section {
    display: flex;
    flex-direction: column;
}

.skills-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.skills-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 0.5rem;
}

.skills-header p {
    font-size: 1rem;
    color: #777;
}

/* ----- SKILLS GRID ----- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.skill-item {
    background: var(--color-white);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--first-shadow-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 87, 224, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--first-color), var(--second-color));
    opacity: 0.05;
    transition: left 0.3s ease;
}

.skill-item:hover::before {
    left: 0;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 87, 224, 0.2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: transparent; /* Changed from gradient to transparent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}

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

.skill-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color-second);
    position: relative;
    z-index: 1;
}

/* ----- THEME TOGGLE ----- */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #f5f5f5;
    color: #222;
    border: none;
    outline: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    font-size: 1.4rem;
}

#theme-toggle:hover {
    background: #e0e0e0;
}

/* ----- DARK MODE ----- */
body.dark-mode {
    --body-color: #111;
    --color-white: #1a1a1a;
    --text-color-second: #f5f5f5;
    --first-shadow-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .about-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-card p,
body.dark-mode .skills-header p {
    color: #ccc;
}

body.dark-mode .header-line::after {
    box-shadow: 0 0 0 4px #111;
}

body.dark-mode #theme-toggle {
    background: #222;
    color: #f5f5f5;
}

body.dark-mode #theme-toggle:hover {
    background: #333;
}

/* ----- RESPONSIVE DESIGN ----- */
@media screen and (max-width: 768px) {
    .about-header h1 {
        font-size: 2.5rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1.2rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .about-container {
        padding: 0 1rem;
    }
    
    .about-header h1 {
        font-size: 2rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-icon i {
        font-size: 1.2rem;
    }
}
/* ADD THIS NEW CSS RULE for skill logos */
.skill-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* MODIFY the existing .skill-icon rule - remove the gradient background */
.skill-icon {
    width: 50px;
    height: 50px;
    background: transparent; /* Changed from gradient to transparent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}

/* Add this after your existing footer rule */
html, body {
    height: 100%;
}

footer {
    /* ...existing footer styles... */
    margin-top: auto !important;
}