/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
    width: 100px ;
    border-radius: 10px;
    object-fit: cover;
   background-color:transparent;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(42, 132, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle i::before {
    content: "\f185"; /* Sun icon */
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--light-bg) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--white);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 132, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(72, 161, 17, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    flex-shrink: 0;
}

.about-img:hover img {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

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

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills {
    background-color: var(--light-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skill-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-category i {
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #F0F4FF;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.skills-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.skills-grid {
  flex: 2;
}

.skill-details {
  flex: 1;
}

.skill-details {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex: 1;
  position: sticky;
  top: 100px;
}

.skill-details h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.skill-details p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.skill-details ul {
  margin-top: 10px;
  padding-left: 20px;
}

.skill-details li {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.skill-tag.active {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(42, 132, 255, .25);
}

.confidence-bar {

  width: 100%;
  height: 10px;

  background: #e5e7eb;

  border-radius: 999px;

  overflow: hidden;

  margin: 12px 0 20px;

}

.confidence-fill {

  height: 100%;

  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));

  transition: width .6s ease;

}

.skill-details {

  animation: fadeIn .35s ease;

}

@keyframes fadeIn {

  from {

    opacity: 0;
    transform: translateY(15px);

  }

  to {

    opacity: 1;
    transform: translateY(0);

  }

}

.skill-details ul {

  margin-top: 15px;

  padding-left: 20px;

}

.skill-details li {

  margin-bottom: 8px;

  color: var(--text-secondary);

}

@media(max-width:768px) {

  .skills-layout {
    flex-direction: column;
  }

  .skills-grid,
  .skill-details {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .skill-details {
    position: static;
    width: 100%;
  }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    background-color: var(--white);
}

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

.project-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(42, 132, 255, 0.15);
    transform: translateY(-8px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.project-header h3 {
    margin-top:30px;
    font-size: 1.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-features {
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-features h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-features li i {
    color: var(--secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #F0F4FF;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.95rem;
    padding: 10px 16px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-info > p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration:none;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.2rem;
} 

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 132, 255, 0.1);
}

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


/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

   .testimonials{
    padding:80px 0;
   }

   .testimonials-grid{
    display:flex;
    flex-wrap: wrap;
    gap:30px;
    margin-top:40px;
    justify-content: center;
   }

   .testimonial-card{
    flex:0 1 320px;
    max-width: 320px;
    background:#fff;
    border-radius: 12px;
    padding:30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s,box-shadow 0.3s;
    position:relative;
   }

 .testimonial-card:hover{
    transform: translateY(-5px);
    box-shadow:0 8px 25px rgba(0, 0, 0, 0.12);
 } 
 
 .testimonial-card::before{
    content:\201C;
    font-size: 60px;
    color:#2A84FF;
    position: absolute;
    top: 15px;
    opacity:0.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

 }

 .testimonial-text p{
    font-size:15px;
    line-height:1.7;
    color:#555;
    margin-bottom:20px;
    padding-top:20px;
 }

 .testimomial-author{
    display:flex;
    align-items:center;
    gap:12px;
    border-top:1px solid #eee;
    padding-top:15px;
 }

 .author-info h4{
    font-size:16px;
    margin:0;
    color:#333;
 }

  .author-info span{
    font-size:13px;
    color:#888;

  }


   /* DARKMODE*/

 body.dark-mode .testimonial-card p{
   background:#1e1e1e;
   box-shadow:0 4px 15px rgba(0,0,0,0.3);
   }

body.dark-mode .testimonial-text p{
    color:#ccc;
}

 body.dark-mode .author-info h4{
    color:#fff;
 }

 body.dark-mode .author-info span{
    color:#333;
 }

 body.dark-mode .testimomial-author{
    border-top-color: #333;
 }







/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    color: #AAAAAA;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #AAAAAA;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
   text-decoration:none;
    background-color: var(--text-primary);
    border-radius: 50% !important;
    color: var(--white) ;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #AAAAAA;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom i {
    color: var(--accent-color);
}
