/* 
  Portfolio Style Sheet
  Theme: Dark, Modern, Professional
  Accent: Electric Blue / Cyan
*/

:root {
  /* Colors */
  --bg-color: #0a0a0a;
  --bg-alt: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --primary-color: #00d4ff;
  --primary-hover: #00a3cc;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --card-bg: #1a1a1a;
  --border-color: #333333;
  --nav-height: 80px;

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Loader --- */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* --- Dotted Surface Background --- */
.dotted-surface {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-color: var(--bg-color);
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background-color: #333;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary-color);
  animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(10, 10, 10, 0.85);
  /* Glassmorphism */
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

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

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

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

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

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-alt);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-150%);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.mobile-link:hover {
  color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  max-width: 600px;
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, #a5a5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.typing-text {
  color: var(--text-primary);
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 35px;
  max-width: 500px;
  text-align: justify;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.code-block-visual {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.code-block-visual::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
}

.code-header {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f56;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #27c93f;
}

.code-content pre {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #d4d4d4;
  overflow-x: auto;
}

.code-content .keyword {
  color: #569cd6;
}

.code-content .variable {
  color: #9cdcfe;
}

.code-content .string {
  color: #ce9178;
}

.code-content .property {
  color: #9cdcfe;
}

.code-content .boolean {
  color: #569cd6;
}

.code-content .function {
  color: #dcdcaa;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -10px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

.scroll-wheel {
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

/* --- Common Section Styles --- */
.section {
  padding: 100px 0;
}

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

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
  background: var(--card-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  color: var(--primary-color);
}

.sub-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.download-resume {
  margin-top: 10px;
}

/* --- Skills Section --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.category-title i {
  color: var(--primary-color);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  /* Animated via JS */
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.img-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.project-card:hover .img-placeholder {
  transform: scale(1.1);
}

.p1 {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
}

.p2 {
  background: linear-gradient(45deg, #FF416C, #FF4B2B);
}

.p3 {
  background: linear-gradient(45deg, #11998e, #38ef7d);
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: justify;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: var(--primary-color);
}

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

.btn-sm {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.btn-sm:hover {
  color: var(--primary-color);
}

.more-projects {
  text-align: center;
}

/* --- Education & Certifications --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.column-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.column-title i {
  color: var(--primary-color);
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 2px solid var(--border-color);
  padding-left: 30px;
  margin-left: 10px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -36px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 500;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.timeline-place {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Cert List */
.cert-list {
  margin-bottom: 40px;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background-color: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cert-list li:hover {
  border-color: var(--primary-color);
}

.cert-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 212, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.cert-info h4 {
  font-size: 1rem;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.objective-box {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.objective-box p {
  font-size: 1rem;
  font-style: italic;
  color: #ccc;
  text-align: justify;
}

/* --- Contact Section --- */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.contact-info {
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.contact-info .sub-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.info-item i {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.info-item div {
  text-align: left;
}

.info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 600;
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
}

.social-links-big {
  display: flex;
  gap: 25px;
  margin-top: 50px;
  justify-content: center;
}

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

.social-btn:hover {
  background-color: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

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

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.footer-logo span {
  color: var(--primary-color);
}

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

.footer-right {
  text-align: right;
}

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

.design-credit i {
  color: #ff5f56;
}

/* --- Animations --- */
.fade-up,
.fade-in,
.fade-right,
.fade-left {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  transform: translateY(0);
}

.fade-right {
  transform: translateX(-50px);
}

.fade-left {
  transform: translateX(50px);
}

.visible {
  opacity: 1;
  transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-name {
    font-size: 2.5rem;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 25px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-right {
    text-align: center;
  }
}