/**
* Modern Portfolio Template
* Author: Devesh Jaiswal
* Optimized for Recruiters - 6 Second Rule
*/

/*--------------------------------------------------------------
# Global Variables
--------------------------------------------------------------*/
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #151932;
  --bg-card: #1a1f3a;
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-glow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/*--------------------------------------------------------------
# General Reset & Base Styles
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

/*--------------------------------------------------------------
# Animated Background
--------------------------------------------------------------*/
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
  background: var(--accent-primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-animation::after {
  background: var(--accent-secondary);
  bottom: -200px;
  right: -200px;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 100px) scale(1.1); }
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# Section Title
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  min-height: 45px;
}

.typing-text {
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-text .description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.description{
  text-align: justify;
}

/*--------------------------------------------------------------
# Quick Stats
--------------------------------------------------------------*/
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.stat-box .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-box .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# CTA Buttons
--------------------------------------------------------------*/
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/*--------------------------------------------------------------
# Social Links
--------------------------------------------------------------*/
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent-primary);
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/*--------------------------------------------------------------
# Hero Image
--------------------------------------------------------------*/
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
  animation: profileFloat 6s ease-in-out infinite;
}

@keyframes profileFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
  padding: 8rem 0 5rem 0;
  background: var(--bg-secondary);
  margin-top: 2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
}
/* Education Timeline Section */
.education-timeline {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(100, 255, 218, 0.2);
}

.education-title {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
 
}

/* Education Block */
.education-block {
  display: flex;
  gap: 1.5rem;
  background: rgba(30, 30, 60, 0.6);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.education-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
  border-color: var(--accent-primary);
}

/* Education Icon */
.edu-icon {
  min-width: 80px;
  height: 80px;
  background: rgba(100, 255, 218, 0.1);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent-primary);
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
}

.edu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Education Content */
.edu-content {
  flex: 1;
}

/* Reset all paragraph margins first */
.edu-content p {
  margin: 0;
  padding: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-header h4 {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin: 0;
}

.edu-duration {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  white-space: nowrap;
}

.edu-degree {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.edu-grade {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.edu-activities {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.edu-achievement {
  font-size: 0.85rem;
  color: rgba(100, 255, 218, 0.8);
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .education-block {
    flex-direction: column;
    gap: 1rem;
  }

  .edu-icon {
    align-self: flex-start;
    min-width: 70px;
    height: 70px;
  }

  .edu-header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .edu-duration {
    white-space: normal;
  }
}
/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills-section {
  padding: 5rem 0;
}

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

.skill-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-card .level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Experience Timeline
--------------------------------------------------------------*/
.experience-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 2rem);
  top: 0;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
   box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.company-header {
  margin-bottom: 1.5rem;
}

.company-logo {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
}

.timeline-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.timeline-content .duration {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content ul li {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}





/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects-section {
  padding: 5rem 0;
}

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

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.project-icon {
  background: var(--gradient);
  padding: 3rem;
  text-align: center;
}

.project-icon i {
  font-size: 4rem;
  color: white;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}





/* Links container */


.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

/* Styled buttons */
.project-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--accent-primary);
  border-radius: 30px;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Hover effect with background */
.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width:0 ;
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.project-link:hover::before {
  width: 100%;
}

.project-link:hover {
  color: #1a1a2e;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3);
}

.project-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* GitHub link specific styling */
.project-link:last-child {
  border-color: rgba(100, 255, 218, 0.5);
}

.project-link:last-child:hover {
  border-color: var(--accent-primary);
}

.project-icon {
  background: var(--gradient);
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
}

.project-icon i {
  font-size: 4rem;
  color: white;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-top: 0.2rem;
}

.contact-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

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

/*--------------------------------------------------------------
# Contact Form
--------------------------------------------------------------*/
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

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

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgb(16, 185, 129);
  color: rgb(16, 185, 129);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgb(239, 68, 68);
  color: rgb(239, 68, 68);
  display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--bg-primary);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#footer p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

#footer .social-links {
  justify-content: center;
  margin-bottom: 2rem;
}

#footer .social-links a {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

#footer .social-links a:hover {
  background: var(--accent-secondary);
}

.copyright {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.credits {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.credits a {
  color: var(--accent-primary);
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .hero-content,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .profile-img {
    width: 300px;
    height: 300px;
    margin: 2rem auto 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column !important;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certifications {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .skill-card {
    padding: 1.5rem 1rem;
  }

  .project-icon {
    padding: 2rem;
    
  }

  .project-icon i {
    font-size: 3rem;
  }
}