/* Base Styles */
:root {
    --primary-color: #ff00ff;
    --primary-hover: #e100e1;
    --secondary-color: #00c3ff;
    --secondary-hover: #00a8e0;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --bg-color: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #2a2a2a;
    --border-color: #333333;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --font-family: "Poppins", sans-serif;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1200px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
  }
  
  a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
  }
  
  a:hover {
    color: var(--secondary-hover);
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  ul,
  ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }
  
  /* Container */
  .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Page Wrapper */
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .logo a {
    color: var(--text-color);
    display: flex;
    align-items: center;
  }
  
  .logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .main-nav li {
    margin-left: 2rem;
  }
  
  .main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
  }
  
  .main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) ease;
  }
  
  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all var(--transition-speed) ease;
  }
  
  .mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform var(--transition-speed) ease;
  }
  
  .mobile-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
  }
  
  .mobile-menu li {
    margin-bottom: 1rem;
  }
  
  .mobile-menu a {
    color: var(--text-color);
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
  }
  
  /* Main Content */
  .main-content {
    flex: 1;
    margin-top: 80px;
    margin-bottom: 100px;
    padding-bottom: 10rem;
  }
  
  /* Footer */
  .site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
  }
  
  .footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-info h3 {
    margin-bottom: 0.5rem;
  }
  
  .footer-links h4,
  .footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a {
    color: var(--text-color);
  }
  
  .footer-links a:hover {
    color: var(--secondary-color);
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
  }
  
  .social-icons a:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    outline: none;
  }
  
  .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
  }
  
  .btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-hover), var(--secondary-hover));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
  }
  
  .btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
    color: var(--text-color);
  }
  
  .btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
  }
  
  .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-block {
    display: block;
    width: 100%;
  }
  
  /* Hero Section */
  .hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .greeting {
    color: var(--text-muted);
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 1 !important;
    position: relative;
    z-index: 3;
  }
  
  .name {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 700;
    display: block;
  }
  
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(0, 195, 255, 0.1));
    animation: gradientShift 10s ease-in-out infinite;
  }
  
  /* Sections */
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
  }
  
  .about-preview,
  .featured-projects,
  .latest-posts {
    padding: 5rem 0;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
  }
  
  .about-image {
    text-align: center;
  }
  
  .image-frame {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 300px;
    height: 300px;
    border: 3px solid var(--secondary-color);
  }
  
  .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .skills {
    margin-top: 2rem;
  }
  
  .skill-item {
    margin-bottom: 1.5rem;
  }
  
  .skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .skill-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 2s ease-in-out;
  }
  
  /* Projects Grid */
  .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2 rem;
      margin-top: 2rem 0;
  }
  
  .project-card {
      grid-column: span 1;
      background: var(--bg-card);
      border-radius: var(--border-radius);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: var(--box-shadow);
  }
  
  .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 768px) {
      .projects-grid {
          grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      }
  }
  

  /* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--secondary-color);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--border-color);
}

.btn-icon:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
}

.no-projects {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  .project-footer {
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-start;
  }
  
  .project-links {
      align-self: flex-end;
  }
}


  .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .project-info h3 {
    margin-bottom: 0.5rem;
  }
  
  .project-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .tag {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
  }
  
  /* Posts Grid */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
  }
  
  .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
  }
  
  .post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
  }
  
  .post-card:hover .post-image img {
    transform: scale(1.05);
  }
  
  .post-info {
    padding: 1.5rem;
  }
  
  .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .post-info h3 {
    margin-bottom: 0.5rem;
  }
  
  .post-info h3 a {
    color: var(--text-color);
  }
  
  .post-info h3 a:hover {
    color: var(--secondary-color);
  }
  
  .post-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  
  .read-more {
    color: var(--secondary-color);
    font-weight: 500;
  }
  
  .read-more:hover {
    color: var(--secondary-hover);
  }
  
  /* Contact CTA */
  .contact-cta {
    background-color: var(--bg-card);
    padding: 4rem 0;
    text-align: center;
  }
  
  .cta-content h2 {
    margin-bottom: 1rem;
  }
  
  .cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
  }
  
  /* View All */
  .view-all {
    text-align: center;
  }
  
  .no-projects,
  .no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
  }
  
  /* Page Header */
  .page-header {
    background-color: var(--bg-card);
    padding: 6rem 0 4rem;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .main-nav {
      display: none;
    }
  
    .mobile-menu-toggle {
      display: flex;
    }
  
    .mobile-menu {
      display: block;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .name {
      font-size: 3rem;
    }
  
    .hero-content h2 {
      font-size: 1.5rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .about-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .projects-grid,
    .posts-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
  
    .page-header h1 {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 0.5rem;
    }
  
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .name {
      font-size: 2.5rem;
    }
  
    .hero-content h2 {
      font-size: 1.2rem;
    }
  
    .hero-content p {
      font-size: 1rem;
    }
  
    .image-frame {
      width: 250px;
      height: 250px;
    }
  
    .projects-grid,
    .posts-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .project-card,
    .post-card {
      margin: 0 0.5rem;
    }
  }

/* Portfolio Filter Buttons */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background-color: var(--bg-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation for active state */
.filter-btn.active {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 195, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 195, 255, 0);
    }
}

.project-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-github {
    background-color: #333;
    color: white;
}

.btn-github:hover {
    background-color: #444;
}

.project-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Centered hero for sub-pages */
.hero-content-wrapper {
    justify-content: center;
    text-align: center;
}

/* Education & Certifications Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.education-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.education-card .institution {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.education-card ul {
    text-align: left;
    list-style-type: '✓  ';
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.education-card ul li {
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.2);
}

.contact-form .form-actions {
    text-align: right;
}
  