
/* General Styles & Variables */
:root {
    --primary: #4f6df5;
    --primary-light: rgba(79, 109, 245, 0.1);
    --primary-dark: #3955c8;
    --secondary: #e9ecef;
    --dark: #1a1f2c;
    --gray: #6c757d;
    --light-gray: #adb5bd;
    --white: #ffffff;
    --black: #000000;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;
    --container-width: 1200px;
  }
  
  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-alt {
    background-color: var(--secondary);
  }
  
  .section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
  }
  
  .section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--light-gray);
  }
  
  .btn-outline:hover {
    background-color: var(--secondary);
  }
  
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Header & Navigation */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent;
  }
  
  #header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
  }
  
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
  }
  .logo1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Dancing Script', cursive; /* Unique, elegant font */
    position: relative;
    display: inline-block;
}

.logo1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%; /* Halfway underline */
    height: 4px;
    background: var(--primary);
    border-radius: 50% 0 0 50%; /* Creates curvy effect */
    transform: scaleX(1.1); /* Slightly extends the curve */
    transform-origin: left;
}
  
.fancy-title {
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6b93ff 0%, #4ecdc4 100%);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.title-text {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.title-highlight {
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-bottom: 5px;
}

.title-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background:var(--gray);
  transform: skew(-20deg);
  border-radius: 2px;
}


  .logo span {
    color: var(--dark);
  }
  
  #navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    font-weight: 500;
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icons a {
    color: var(--gray);
  }
  
  .social-icons a:hover {
    color: var(--primary);
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
  }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 72px; /* Height of header */
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 0;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  
  .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }
  
  .mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--secondary);
  }
  
  .mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--secondary);
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(to bottom right, var(--secondary) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-text h4 {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.75rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  .hero-text p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .profile-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
  }
  
  .github-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  
  /* About Section */
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
  }
  
  .about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .skill-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
  }
  
  .service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
    color: var(--gray);
  }
  
  .projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Project Card Styling */
.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Project Image */
.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Project Info */
.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.project-info p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

/* Technology Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #555;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sm {
    background: #007bff;
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn:hover {
    opacity: 0.9;
}

  
  /* Experience Section */
  .experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .experience-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .timeline {
    position: relative;
    border-left: 2px solid var(--light-gray);
    padding-left: 1.5rem;
  }
  
  .timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
  }
  
  .timeline-item:last-child {
    margin-bottom: 0;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-color: var(--white);
  }
  
  .timeline-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
  }
  
  .timeline-place {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--primary-light);
    border-radius: 0.25rem;
  }
  
  .timeline-desc {
    font-size: 0.9rem;
    color: var(--gray);
  }
  
  /* Contact Section */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
  
  .contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
  }
  
  .contact-details p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .contact-details a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .contact-details a:hover {
    text-decoration: underline;
  }
  
  .contact-social {
    margin-top: 1rem;
  }
  
  .contact-social h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.25rem;
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }
  
  .contact-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
  }
  
  /* Footer */
  .footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
  }
  
  .footer-logo h3 {
    font-size: 1.75rem;
    font-weight: 700;
  }
  
  .footer-logo span {
    color: var(--primary);
  }
  
  .footer-logo p {
    color: var(--light-gray);
    margin-top: 0.5rem;
  }
  
  .footer-social {
    display: flex;
    gap: 1rem;
  }
  
  .footer-social a {
    color: var(--light-gray);
    font-size: 1.25rem;
  }
  
  .footer-social a:hover {
    color: var(--primary);
  }
  
  #scroll-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }
  
  #scroll-to-top:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
  }
  
  .footer-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-links a:hover {
    color: var(--primary);
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .hero-text h1 {
      font-size: 3rem;
    }
    
    .profile-container {
      width: 280px;
      height: 280px;
    }
    
    .section-heading {
      font-size: 2.25rem;
    }
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 14px;
    }
    
    .nav-links,
    .social-icons {
      display: none;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .hero-text {
      order: 2;
    }
    
    .hero-text p {
      margin-left: auto;
      margin-right: auto;
    }
    
    .hero-buttons {
      justify-content: center;
    }
    
    .hero-image {
      order: 1;
      margin-bottom: 2rem;
    }
    
    .profile-container {
      width: 220px;
      height: 220px;
    }
    
    .about-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .contact-grid {
      grid-template-columns: 1fr;
    }
    
    .footer-content {
      flex-direction: column;
      gap: 2rem;
      text-align: center;
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    
    .footer-links {
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .section {
      padding: 3rem 0;
    }
    
    .hero-section {
      padding: 4rem 0;
    }
    
    .hero-text h1 {
      font-size: 2.5rem;
    }
    
    .hero-text h2 {
      font-size: 1.5rem;
    }
    
    .service-card {
      padding: 1rem;
    }
    
    .project-img {
      height: 160px;
    }
  }
  /* Animation keyframes */
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.02);
  }
  100% {
      transform: scale(1);
  }
}

/* Media query for responsiveness */
@media (max-width: 768px) {
  .fancy-title {
      font-size: 1.8rem;
      flex-direction: column;
      text-align: center;
  }
}