:root {
    --primary-color: orangered;
    --secondary-color: #0000;
    --text-color:rgb(1, 1, 27);
    --bg-color: #fff;
    --card-bg: #f5f5f5;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: orangered;
    --secondary-color: #bcaaa4;
    --text-color: #f5f5f5;
    --bg-color:rgb(1, 1, 27);
    --card-bg: #1e1e1e;
    --nav-bg: rgba(1, 1, 27, 0.616);
    --shadow: 0 4px 6px rgba(3, 2, 2, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 20px;
}

#theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}


.first{
  height:70vh; 
  margin-top: 0; 
}
.intro{
    display: flex;
      flex-wrap:wrap;
    justify-content:center;
    gap:80px;
    height: 50vh;
    /* align-items: center; */
     margin-top: 90px;
   
}
.img img{
  height: 300px;
}

.text{
    color:var(--text-color);
    font-size:;
    animation: fadeslidedown 1s ease-in forwards;
   
}
.text h3{
  font-size: 40px;
  line-height: 50px;
}
.text span{
    color:var(--primary-color);
    /* font-size:40px; */
   
}
@keyframes fadeslidedown {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .button{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
   

  }
  .button button{
        a{
    /* font-size:30px; */
    display:flex;
    gap:10px;
     justify-content: center;
}
  }
  .button a{
    color:var(--text-color);
  }
    .down-arrow{
    text-align: center;
    padding-bottom: 30px;
    }

.but{
    display:flex;
    width:1500px;
    flex-direction: row;
    flex-wrap:wrap
}
button{
    background-color:var(--primary-color);
    border:none;
    border-radius: 5px;
    width:10vw;
    height: 05vh;
    color:white;
    font-size: 15px;
  a{
    text-decoration:none;
    color:var(--)
  } 
}
.but2{

 button{
    background-color: transparent;
    border:2px solid orangered;
}
}
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.about{
    margin-top:100px;
}
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.about-image {
    /* flex: 1; */
}
.image-placeholder img{
    height: 300px;
}
.about-text {
    /* flex: 1; */
    width:300px

}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    width: 500px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.skills{
    display: flex;
    flex-wrap:wrap;
    justify-content:center;
    gap: 70px;
    padding: 5vh;
    /* background-color:rgba(124, 124, 235, 0.301); */
    height:fit-content;
    width: 100%;
}
.note{
    width: 30vw;
    color:var(--text-color--);
    display: flex;
    flex-wrap:wrap;
    flex-direction: column;
    gap:3vh;
    line-height:30px;
}
.comp{
    display: flex;
      flex-wrap:wrap;
    flex-direction: column;
    gap: 2vh;
}
.real{
    display: flex;
      flex-wrap:wrap;
    justify-content: space-between;
    color:white;
}
.line{
    display: flex;
    color:white
}
.red{
 height:13px;
width: 500px;
background-color:orangered;
}
.gray{
   height:13px;
    width:100px;
    background-color:gray;   
}
#cssred{
    height:13px;
    width: 400px;;   
}
#cssgray{
    height:13px;
    width:200px;   
}
#jsred{
   height:13px;
    width:350px;   
}
#jsgray{
   height:13px;
    width:250px;   
}
#fred{
   height:13px;
    width: 500px;
}
#gfrey{
 height:13px;
    width:100px;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 20px;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-content form {
    flex: 1;
}

.contact-info {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--card-bg);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 20px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--nav-bg);
        transition: var(--transition);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .text{
       
        h3{
    font-size: 25px;
     line-height: 30px;
        }
    
    }
      .img{
        img{
            height:200px;
     } 
    }
    
        button{
            width: 140px;
        }
            .about-text{
        justify-content: center;
          p{
        text-align:center;
        font-size: 12px;
        width: 300px;
        justify-content: center;
        align-items: center;
       
       } 
       .social-links{
        justify-content: center;
       }
    }
        
    }
@media screen and (max-width:425px){
    .intro{
        margin-top: 0px;
        height: 450px; 
        gap:10px;
    }
    .about{
        margin-top: 100px                                                                                                                                                                                                                                                                        00px;
    }
    .about-text{
        justify-content: center;
          p{
        text-align:center;
        font-size: 12px;
        width: 300px;
        justify-content: center;
        align-items: center;
       
       } 
    }
    .social-links{
        justify-content: center;
    }
}
    @media screen and (max-width: 320px){
        .about{
        margin-top: 100px                                                                                                                                                                                                                                                                        00px;
    }
    .about-text{
        justify-content: center;
          p{
        text-align:center;
        font-size: 12px;
        width: 300px;
        justify-content: center;
        align-items: center;
       
       } 
    }   
    }
