/* =========================================
   GLOBAL RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #0d0d0d;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* =========================================
   REUSABLE
========================================= */

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 50px;
  color: #00e2ff;
  font-weight: 700;
}

section {
  padding: 90px 10%;
}

/* =========================================
   NAVBAR
========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  width: 100%;
  background: #0d0d0d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10%;
  border-bottom: 1px solid #1f1f1f;
}

.logo-img {
  height: 58px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00e2ff;
}

.resume-btn {
  background: #00e2ff;
  color: #000 !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-btn:hover {
  background: #00c7e0;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
  min-height: 100vh;
  background:
    linear-gradient(rgba(13,13,13,0.75), rgba(13,13,13,0.75)),
    url('https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?w=1200');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  padding: 0 10%;
}

.hero-content {
  max-width: 850px;
  margin: auto;
  text-align: center;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: #00e2ff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #d4f8ff;
  margin-bottom: 18px;
}

.hero-brand {
  color: #94a3b8;
  margin-bottom: 16px;
}

.hero-brand strong {
  color: #38bdf8;
}

.hero-description {
  max-width: 760px;
  margin: auto;
  font-size: 1.05rem;
  color: #d4f8ff;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 28px;
  border-radius: 10px;
  background: #00e2ff;
  color: #000;
  font-weight: 700;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #00c7e0;
  transform: translateY(-2px);
}

.secondary {
  background: transparent;
  border: 2px solid #00e2ff;
  color: #00e2ff;
}

.secondary:hover {
  background: #00e2ff;
  color: #000;
}

.hero-social {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-social a {
  color: #00e2ff;
  transition: 0.3s;
}

.hero-social a:hover {
  transform: translateY(-4px);
}

/* =========================================
   ABOUT
========================================= */

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-photo {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00e2ff;
}

.about-text {
  flex: 2 1 500px;
}

.about-text p {
  margin-bottom: 18px;
  color: #d4f8ff;
}

/* =========================================
   SKILLS
========================================= */

.skills-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 50px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.skills-group {
  background: #111;
  border: 1px solid #1f1f1f;
  padding: 24px;
  border-radius: 14px;
  transition: 0.3s;
}

.skills-group:hover {
  border-color: #00e2ff;
}

.group-title {
  color: #00e2ff;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 10px 0;
  border-bottom: 1px solid #222;
  color: #d4f8ff;
}

.skills-list li:last-child {
  border-bottom: none;
}

/* =========================================
   PROJECTS
========================================= */

.projects-slider {
  position: relative;
  overflow: hidden;
}

.projects-grid {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
}

.project-card {
  flex: 0 0 calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
  background: #111;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #1f1f1f;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #00e2ff;
}

.project-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 18px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.project-card p {
  color: #ccc;
  margin-bottom: 18px;
}

.tech-stack {
  display: inline-block;
  background: #1c1c1c;
  color: #00e2ff;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-code {
  background: #222;
  color: #fff;
}

.btn-demo {
  background: #00e2ff;
  color: #000;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #00e2ff;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

/* =========================================
   EXPERIENCE + EDUCATION
========================================= */

.experience-container,
.education-container {
  display: grid;
  gap: 28px;
}

.education-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.experience-card,
.education-card {
  background: #111;
  border: 1px solid #1f1f1f;
  padding: 24px;
  border-radius: 14px;
}

.exp-company,
.institution {
  color: #00e2ff;
}

.exp-details,
.courses {
  margin-top: 18px;
  padding-left: 18px;
}

.exp-details li,
.courses li {
  margin-bottom: 10px;
  color: #d4f8ff;
}

/* =========================================
   CONTACT
========================================= */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.contact-info,
.contact-form {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 28px;
}

.contact-info h3 {
  color: #00e2ff;
  margin-bottom: 16px;
}

.contact-info p {
  color: #d4f8ff;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 12px;
}

.contact-info a {
  color: #00e2ff;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #222;
  background: #0d0d0d;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00e2ff;
}

.submit-btn {
  background: #00e2ff;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================
   FOOTER
========================================= */

.footer-section {
  padding: 40px 10%;
  border-top: 1px solid #1f1f1f;
  text-align: center;
}

.footer-tagline {
  color: #00e2ff;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social a {
  color: #00e2ff;
  font-size: 1.2rem;
}

/* =========================================
   LARGE TABLETS
========================================= */

@media (max-width: 992px) {

  section {
    padding: 80px 7%;
  }

  .navbar {
    padding: 14px 7%;
  }

  .project-card {
    flex: 0 0 calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 768px) {

  .navbar {
    padding: 14px 6%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 85px;
    right: -100%;
    width: 100%;
    background: #111;
    flex-direction: column;
    padding: 40px 0;
    transition: 0.4s ease;
    border-top: 1px solid #222;
  }

  .nav-links.active {
    right: 0;
  }

  .hero-overlay {
    padding: 0 6%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }

  .about-container {
    text-align: center;
  }

  .about-photo img {
    width: 220px;
    height: 220px;
  }

  .slider-btn {
    display: none;
  }

  .project-links {
    flex-direction: column;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  section {
    padding: 70px 5%;
  }

  .hero-section {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .project-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .project-img {
    height: 200px;
  }

  .contact-info,
  .contact-form,
  .experience-card,
  .education-card,
  .skills-group {
    padding: 20px;
  }

  .footer-section {
    padding: 35px 5%;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .logo-img {
    height: 46px;
  }

  .project-img {
    height: 180px;
  }
}






/* =========================================
   HOVER EFFECTS
========================================= */

.skills-group,
.project-card,
.experience-card,
.education-card,
.contact-info,
.contact-form {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.skills-group:hover,
.project-card:hover,
.experience-card:hover,
.education-card:hover,
.contact-info:hover,
.contact-form:hover {
  transform: translateY(-5px);
  border-color: #00e2ff;
  box-shadow: 0 0 18px rgba(0, 226, 255, 0.12);
}

/* =========================================
   BUTTON HOVER
========================================= */

.btn-code,
.btn-demo,
.submit-btn,
.resume-btn,
.cta-btn {
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-code:hover,
.btn-demo:hover,
.submit-btn:hover,
.resume-btn:hover,
.cta-btn:hover {
  transform: translateY(-2px);
}

.btn-demo:hover,
.submit-btn:hover,
.resume-btn:hover,
.cta-btn:hover {
  box-shadow: 0 0 15px rgba(0, 226, 255, 0.35);
}

/* =========================================
   INPUT STYLING
========================================= */

input,
textarea,
button {
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* =========================================
   CUSTOM SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #00e2ff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00c7e0;
}

/* =========================================
   LIST FIXES
========================================= */

.exp-details li,
.courses li {
  position: relative;
  padding-left: 18px;
}

.exp-details li::before,
.courses li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00e2ff;
}

/* =========================================
   FORM STATUS MESSAGE
========================================= */

#form-status {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========================================
   IMAGE HOVER ZOOM
========================================= */

.project-img img,
.about-photo img {
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img,
.about-photo:hover img {
  transform: scale(1.05);
}

/* =========================================
   BETTER TEXT WRAPPING
========================================= */

.hero-description,
.about-text p,
.project-card p,
.contact-info p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =========================================
   FIX LONG LINKS
========================================= */

a {
  word-break: break-word;
}

/* =========================================
   TOUCH DEVICE OPTIMIZATION
========================================= */

@media (hover: none) {

  .skills-group:hover,
  .project-card:hover,
  .experience-card:hover,
  .education-card:hover,
  .contact-info:hover,
  .contact-form:hover {
    transform: none;
    box-shadow: none;
  }

  .project-card:hover .project-img img,
  .about-photo:hover img {
    transform: none;
  }
}

/* =========================================
   EXTRA LARGE SCREENS
========================================= */

@media (min-width: 1400px) {

  .hero-content {
    max-width: 1000px;
  }

  .projects-grid {
    gap: 35px;
  }

  .project-card {
    flex: 0 0 calc((100% - 70px) / 3);
    max-width: calc((100% - 70px) / 3);
  }
}

/* =========================================
   LANDSCAPE MOBILE FIX
========================================= */

@media (max-height: 500px) and (orientation: landscape) {

  .hero-section {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .nav-links {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 340px) {

  .hero-name {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .project-card {
    padding: 16px;
  }

  .contact-info,
  .contact-form {
    padding: 16px;
  }

  .project-img {
    height: 160px;
  }
}

/* =========================================
   ACCESSIBILITY IMPROVEMENTS
========================================= */

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #00e2ff;
  outline-offset: 2px;
}

/* =========================================
   SMOOTH TRANSITIONS
========================================= */

.nav-links,
.project-card,
.skills-group,
.contact-form,
.contact-info,
.education-card,
.experience-card,
.hero-social a,
.footer-social a {
  transition: all 0.3s ease;
}

/* =========================================
   FOOTER ICON EFFECTS
========================================= */

.footer-social a:hover,
.hero-social a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* =========================================
   REMOVE BLUE TAP HIGHLIGHT MOBILE
========================================= */

* {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================
   SAFE FLEX WRAPPING
========================================= */

.project-links,
.hero-buttons,
.hero-social,
.footer-social {
  flex-wrap: wrap;
}

/* =========================================
   CONTAINER WIDTH CONTROL
========================================= */

.about-container,
.contact-container,
.skills-container,
.education-container,
.experience-container,
.projects-slider {
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

/* =========================================
   PREVENT IMAGE DISTORTION
========================================= */

.project-img,
.about-photo img {
  overflow: hidden;
}

/* =========================================
   PERFORMANCE OPTIMIZATION
========================================= */

.project-card,
.skills-group,
.education-card,
.experience-card {
  will-change: transform;
}