/* =========================================================================
   1. VARIABLES & RESET
   ========================================================================= */
:root {
  --bg-color: #0a0b12;
  --bg-secondary: #11121e;
  --text-color: #e0e0e0;
  --text-muted: #a0a0a0;
  --primary: #00f2ff;
  --secondary: #bd00ff;
  --accent: #ff0055;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);

  --container-width: 1200px;
  --nav-height: 80px;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   2. UTILITIES & LAYOUT
   ========================================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.bg-darker {
  background-color: var(--bg-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(0, 242, 255, 0.1);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  margin-top: 2rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================================
   3. NAVIGATION
   ========================================================================= */
.header {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.highlight {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-featured {
  border: 1px solid var(--primary);
  padding: 8px 20px;
  border-radius: 4px;
  color: var(--primary);
}

.btn-featured::after {
  display: none;
}

.btn-featured:hover {
  background: var(--primary);
  color: #000;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px auto;
  transition: var(--transition-fast);
}

/* =========================================================================
   4. HERO SECTION
   ========================================================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  background: url("assets/hero-bg.png") no-repeat center center/cover;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 18, 0.7) 0%,
    rgba(10, 11, 18, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 650px;
}

.greeting {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 25px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.hero-image {
  width: 45%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-image .img-wrapper {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.hero-image .img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* =========================================================================
   5. SECTIONS GENERAL
   ========================================================================= */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* =========================================================================
   6. ABOUT SECTION
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.code-window {
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid #333;
  font-family: "Fira Code", monospace;
}

.window-header {
  background: #252526;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.window-body {
  padding: 20px;
  color: #d4d4d4;
  font-size: 0.9rem;
  line-height: 1.6;
}

.language-javascript {
  color: #9cdcfe;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.stats-grid {
  display: flex;
  gap: 30px;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================================
   7. SKILLS SECTION
   ========================================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition-fast);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(0, 242, 255, 0.15);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 15px;
}

.category-header i {
  font-size: 1.8rem;
  color: var(--primary);
}

.skill-list li {
  margin-bottom: 1.2rem;
}

.skill-list span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* =========================================================================
   8. PROJECTS SECTION
   ========================================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.placeholder-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img-bg i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.project-card:hover .overlay {
  opacity: 1;
}

.overlay-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--bg-color);
  border-radius: 50%;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.overlay-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
}

.tags {
  margin-bottom: 1rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  background: rgba(0, 242, 255, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  color: var(--primary);
  gap: 12px;
}

/* =========================================================================
   9. EDUCATION SECTION
   ========================================================================= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 15px;
  right: -10px;
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-date {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content {
  background: var(--glass-bg);
  padding: 20px 25px;
  border-radius: 10px;
  border: var(--glass-border);
  transition: var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--primary);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #bbb;
}

/* =========================================================================
   10. CONTACT SECTION
   ========================================================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info .info-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.social-links-large {
  margin-top: 2rem;
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  color: #fff;
  font-size: 1.2rem;
}

.social-btn:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--text-muted);
  transition: var(--transition-fast);
  pointer-events: none;
}

.contact-form input:focus,
.contact-form input:valid,
.contact-form textarea:focus,
.contact-form textarea:valid {
  border-color: var(--primary);
}

.contact-form input:focus ~ label,
.contact-form input:valid ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:valid ~ label {
  top: -20px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* =========================================================================
   11. FOOTER
   ========================================================================= */
.footer {
  padding: 40px 0;
  background: #050508;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: #fff;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================================================
   12. MEDIA QUERIES
   ========================================================================= */
@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 22px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    justify-content: center;
    z-index: 1000;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .hero {
    padding-top: 100px;
    /* Ensure content is below fixed header */
    height: auto;
    min-height: 100vh;
    padding-bottom: 50px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    gap: 30px;
  }

  .hero-image {
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-image .img-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-image .img-wrapper {
    width: 280px;
    height: 280px;
    max-width: 70vw;
    max-height: 70vw;
  }

  .hero-text {
    margin: 0 auto;
    padding: 0 15px;
    /* Add padding to prevent edge touching */
  }

  .hero h1 {
    font-size: 2.5rem;
    /* Slightly smaller for better fit */
    word-wrap: break-word;
  }

  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
    /* efficient on very small screens */
  }

  .social-links {
    justify-content: center;
  }

  .window-body {
    overflow-x: auto;
    /* Allow code scrolling */
  }
}

/* =========================================================================
   13. ANIMATIONS
   ========================================================================= */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: 0.8s ease-out;
}

.fade-up {
  transform: translateY(30px);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}
