/* Fonts loaded in HTML */

/* --- VARIABLES --- */
:root {
  /* COLORS */
  --bg-color: #0f0f10;
  --text-main: #e0e0e0;
  --text-white: #ffffff;
  --text-muted: #b0b0b0;

  /* THEME */
  --primary-color: #06b6d4;
  --secondary-color: #3b82f6;

  --accent-gradient: linear-gradient(135deg, #22d3ee, #3b82f6);
  --text-gradient: linear-gradient(to right, #fff, #22d3ee);

  /* GLASSMORPHISM */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-blur: blur(12px);
  --nav-bg: rgba(20, 25, 30, 0.7);

  /* FONTS */
  --font-main: "Open Sans", sans-serif;
  --font-heading: "Raleway", sans-serif;
  --font-alt: "Montserrat", sans-serif;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* --- BACKGROUND BLOBS --- */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: floatBG 15s infinite alternate;
  will-change: transform;
}

body::before {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

body::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--secondary-color), transparent 70%);
  animation-delay: -5s;
}

@keyframes floatBG {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 5px;
  border: 2px solid #111;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

/* Float Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

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

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* --- UTILITIES --- */
.hidden {
  display: none !important;
}

/* --- THANK YOU MODAL --- */
.thank-you-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.thank-you-card {
  /* Completely Minimal - No Box, No Padding */
  padding: 0;
  max-width: 450px;
  width: 100%;

  /* Mobile Default (CENTER) */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

  /* Force transparency */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  /* Default vertical position (Mobile: Push down slightly) */
  transform: none;
  margin-top: 40px;
}

/* Desktop-Specific Alignment for Thank You Message */
@media (min-width: 1024px) {
  .thank-you-card {
    text-align: center;
    align-items: center;
    padding-left: 0;

    /* Clean Alignment using Flexbox */
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
  }
}

.success-icon {
  font-size: 70px;
  color: var(--primary-color);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  color: var(--text-white);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.success-text {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.action-btn {
  margin-top: 15px;
  width: auto;
  min-width: 200px;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f10;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(6, 182, 212, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Cursor Blink Animation*/
.typing-cursor::after {
  content: '|';
  display: inline-block;
  font-weight: 100;
  animation: blink 1s infinite;
  margin-left: 2px;
  color: var(--primary-color);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Staggered Reveal for Skills */
.skill-card:nth-child(1) {
  transition-delay: 0.1s;
}

.skill-card:nth-child(2) {
  transition-delay: 0.15s;
}

.skill-card:nth-child(3) {
  transition-delay: 0.2s;
}

.skill-card:nth-child(4) {
  transition-delay: 0.25s;
}

.skill-card:nth-child(5) {
  transition-delay: 0.3s;
}

.skill-card:nth-child(6) {
  transition-delay: 0.35s;
}

.skill-card:nth-child(7) {
  transition-delay: 0.4s;
}

.skill-card:nth-child(8) {
  transition-delay: 0.45s;
}

.skill-card:nth-child(9) {
  transition-delay: 0.5s;
}

.skill-card:nth-child(10) {
  transition-delay: 0.55s;
}

.skill-card:nth-child(11) {
  transition-delay: 0.6s;
}

.skill-card:nth-child(12) {
  transition-delay: 0.65s;
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 99999;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  border-radius: 0 4px 4px 0;
  transition: width 0.1s;
}

.header-list {
  margin: 15px 20px;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-logo,
.hamburger {
  display: none;
}

/* Logo */
.text-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 10px 25px 10px 15px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.text-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
}

.text-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.text-logo::after {
  content: "";
  position: absolute;
  left: 24%;
  bottom: 0;
  width: 80%;
  height: 4px;
  background-color: #22d3ee;
  border-radius: 2px;
  transform: scaleX(0.8);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* Navigation */
.ul-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 50px;
  border: var(--glass-border);
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  transition: all 0.3s ease;
  padding: 10px 20px;
  cursor: pointer;
}

.ul-list li a {
  font-family: var(--font-alt);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: 0.3s;
}

.ul-list li i {
  color: var(--text-main);
  transition: 0.3s;
}

.ul-list li:hover {
  background: rgba(34, 211, 238, 0.15);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
  transform: translateY(-2px);
}

.ul-list li:hover a,
.ul-list li:hover i {
  color: #fff;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.ul-list li.active {
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.ul-list li.active a,
.ul-list li.active i {
  color: #000000 !important;
  font-weight: 700;
}

/* Footer */
.footer {
  background-color: #000;
  color: var(--text-white);
  padding: 40px 20px;
  text-align: center;
  overflow-x: hidden;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: var(--font-alt);
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: var(--text-white);
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-copy {
  font-size: 12px;
  color: #b0b0b0;
}

/* Buttons */
.btn-home1 {
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-home2 {
  background-color: transparent;
  border: 2px solid var(--text-white);
  color: var(--text-white);
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-home2:hover {
  background-color: var(--text-white);
  color: #000;
}

.btn {
  background: var(--accent-gradient);
  color: #000;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.btn:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.btn-send {
  background: var(--accent-gradient);
  color: #000;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
  font-weight: bold;
}

.btn-send:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

/* Dividers */
hr {
  width: 90%;
  font-weight: bold;
  color: #444;
  border-color: #444;
}

/* --- HOME SECTION --- */
.home {
  margin: 150px 200px 160px 200px;
}

.home-container {
  display: flex;
  gap: 6rem;
}

.home img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(3, 42, 58, 0.5);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
  animation: float 6s ease-in-out infinite;
}

.info-home h1 {
  font-size: 55px;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  color: var(--text-white);
  white-space: nowrap;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.info-home h3 {
  font-size: 30px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.info-p {
  color: #e0e0e0;
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: #b0b0b0;
  font-size: 14px;
  padding-bottom: 20px;
}

.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.hhr {
  padding-bottom: 30px;
}

/* Social Follow */
.follow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 10px;
}

.followw {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b0b0b0;
  margin: 0;
}

.follow ul {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.follow ul li a {
  font-size: 22px;
  color: var(--text-white);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.follow ul li a:hover {
  transform: translateY(-5px);
}

.follow ul li:nth-child(1) a:hover {
  color: #fff;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.follow ul li:nth-child(2) a:hover {
  color: #0077b5;
  text-shadow: 0px 0px 10px rgba(0, 119, 181, 0.5);
}

.follow ul li:nth-child(3) a:hover {
  color: #5865F2;
  text-shadow: 0px 0px 10px rgba(88, 101, 242, 0.5);
}

.follow ul li:nth-child(4) a:hover {
  color: #229ED9;
  text-shadow: 0px 0px 10px rgba(34, 158, 217, 0.5);
}

.follow ul li:nth-child(5) a:hover {
  color: #ffffff;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}


/* --- ABOUT SECTION --- */
.about {
  margin: 160px auto;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about p {
  padding-bottom: 30px;
  font-size: 15px;
  color: #e0e0e0;
}

.about h1 {
  font-family: var(--font-main);
  color: var(--text-white);
}

.title {
  padding-bottom: 20px;
  text-align: center;
}

.about .hrrr {
  width: 30%;
  padding-bottom: 40px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.about .hrrr hr {
  width: 100%;
  margin: 0;
}

.info-about {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.about h2 {
  padding-bottom: 30px;
  color: var(--text-white);
}

.card {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.c1 {
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  width: 280px;
  padding: 5px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.c1 h3 {
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--text-white);
}

.c1 p {
  color: #aaa;
}

/* --- SKILLS SECTION --- */
.skills-section {
  margin: 100px auto;
  max-width: 1200px;
  padding: 0 25px;
  text-align: center;
}

.skills-section p {
  margin-bottom: 30px !important;
}

.skills-section hr {
  margin: 10px auto 30px auto;
  width: 50%;
}

.skills-desc {
  max-width: 700px;
  margin: 15px auto 40px auto !important;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  width: 140px;
  height: 140px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-card i {
  font-size: 45px;
  margin-bottom: 15px;
  color: #ccc;
  transition: 0.3s;
}

.skill-card h3 {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  margin: 0;
}

/* Skill Icon Colors on Hover */
.skill-card:hover i {
  color: #fff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.skill-card:hover .fa-python {
  color: #3776AB;
  filter: drop-shadow(0 0 8px #3776AB);
}

.skill-card:hover .devicon-c-plain {
  color: #A8B9CC;
  filter: drop-shadow(0 0 8px #A8B9CC);
}

.skill-card:hover .devicon-cplusplus-plain {
  color: #00599C;
  filter: drop-shadow(0 0 8px #00599C);
}

.skill-card:hover .devicon-flask-original {
  color: #ffffff;
  filter: drop-shadow(0 0 8px #ffffff);
}

.skill-card:hover .fa-html5 {
  color: #E34F26;
  filter: drop-shadow(0 0 8px #E34F26);
}

.skill-card:hover .fa-css3-alt {
  color: #1572B6;
  filter: drop-shadow(0 0 8px #1572B6);
}

.skill-card:hover .fa-js {
  color: #F7DF1E;
  filter: drop-shadow(0 0 8px #F7DF1E);
}

.skill-card:hover .fa-docker {
  color: #2496ED;
  filter: drop-shadow(0 0 8px #2496ED);
}

.skill-card:hover .fa-network-wired {
  color: #4db8ff;
  filter: drop-shadow(0 0 8px #4db8ff);
}

.skill-card:hover .fa-database {
  color: #00758F;
  filter: drop-shadow(0 0 8px #00758F);
}

.skill-card:hover .fa-git-alt {
  color: #F05032;
  filter: drop-shadow(0 0 8px #F05032);
}

.skill-card:hover .fa-linux {
  color: #FCC624;
  filter: drop-shadow(0 0 8px #FCC624);
}

/* --- PROJECTS SECTION --- */
.project {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project p {
  padding-bottom: 20px;
  font-size: 13px;
  color: #ccc;
}

.project h1 {
  font-family: var(--font-main);
  padding-bottom: 10px;
  color: var(--text-white);
}

.project hr {
  width: 50%;
}

.info-pro {
  padding-top: 20px;
  padding-bottom: 50px;
}

.info-pro p {
  padding-bottom: 10px;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 0.5fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  min-height: 450px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: 0.4s ease;
  border: var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 340;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.project-card p {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.skills {
  margin-bottom: 15px;
  margin-top: auto;
  text-align: center;
}

.skills a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 3px;
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills a:hover {
  background: #333;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}


/* --- CONTACT SECTION --- */
.contact {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact p {
  padding-bottom: 20px;
  font-size: 13px;
  color: #ccc;
}

.contact h1 {
  font-family: var(--font-main);
  padding-bottom: 10px;
  color: var(--text-white);
}

.contact hr {
  width: 30%;
}

.contact-content {
  padding-top: 50px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  /* Ensure items align to top */
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #ccc;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}

.contact-item i {
  font-size: 20px;
  color: var(--primary-color);
}

.location-link {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.location-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

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

.social-link {
  width: 50px;
  height: 50px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 20px;
  transition: all 0.3s ease;
  border: 1px solid #333;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px);
  color: var(--text-white);
}

.social-link[href*="github"]:hover {
  background: #000;
  border-color: white;
}

.social-link[href*="linkedin"]:hover {
  background: #0A66C2;
  border-color: #0A66C2;
}

.social-link[href*="wa.me"]:hover {
  background: #25D366;
  border-color: #25D366;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- OVERRIDES & UTILITIES --- */
.project-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: all 0.3s ease, transform 0s;
  /* Fix: Smooth border/shadow, Instant Tilt */
}

.project-card:hover h3 {
  color: var(--primary-color);
}

/* --- ABOUT CARDS HOVER --- */
.card .c1:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease, transform 0s;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  z-index: 2;
  transition-delay: 0s !important;
  transition: all 0.3s ease, transform 0s;
}

.c1:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

/* Project Navigation */
.project-nav {
  display: none;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.nav-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 60px;

  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Apply hover effect only on devices that support hover (Desktop) */
@media (hover: hover) {
  .nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
  }
}

.nav-btn:active {
  transform: scale(0.95);
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {

  /* Mobile Layout Adjustments */
  .home {
    margin: 220px 50px 100px 50px;
  }

  .about,
  .project,
  .contact {
    margin: 100px 20px;
  }

  .home-container,
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }

  .home img,
  .about img {
    width: 100%;
    height: auto;
  }

  .about img {
    max-width: 220px;
    margin-bottom: 20px;
    z-index: 1;
  }

  .home img,
  .project-card img {
    max-width: 300px;
    display: block;
    margin: 0 auto 15px auto;
  }

  .ul-list {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 8px 15px;
  }

  .home,
  .about,
  .project,
  .contact {
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-container,
  .about-container,
  .contact-content,
  .card {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .card .c1 {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about .hrrr,
  .skills-section hr,
  .project hr,
  .contact hr,
  .home hr {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .info-home h1 {
    font-size: 26px;
  }

  .info-home h3 {
    font-size: 18px;
  }

  .project-card h3 {
    font-size: 16px;
  }

  .info-p,
  .info-p2,
  .about p,
  .project p,
  .contact p {
    font-size: 14px;
  }

  .contact-content {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 400px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* Mobile Project Carousel */
  .projects-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 5px;
    gap: 20px;
    width: 100%;
    max-width: 100vw;
  }

  .project-card {
    flex: 0 0 85%;
    /* Show 85% of card to hint at scroll */
    max-width: 350px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin: 0 auto;
    /* Static Theme Shadow for Mobile */
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.2);
  }

  .project-nav {
    display: flex;
  }

  /* Mobile Interactions (Touch Feedback) */
  .skill-card,
  .card .c1,
  .project-card {
    transition: all 0.1s ease !important;
  }

  .skill-card:active,
  .card .c1:active {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  }
}

@media (max-width: 768px) {
  header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .header-hidden {
    transform: translateY(-100%);
    opacity: 0;
  }

  .div-list {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: 5px !important;
    padding-right: 35px !important;
  }

  .text-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    z-index: 1001;
  }

  .mobile-logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .ul-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .ul-list.active {
    transform: translateX(0);
  }

  .ul-list li a {
    font-size: 24px;
    font-weight: 500;
  }

  .info-p2 {
    justify-content: center !important;
    width: 100%;
  }

  .home {
    margin: 100px 20px;
  }

  .about,
  .project,
  .contact {
    margin: 80px 20px;
  }

  .projects-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .project-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 450px;
    margin: 0;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);

    transition: all 0.4s ease;
    opacity: 0.5;
    transform: scale(0.9);
  }

  .project-card.mobile-highlight {
    opacity: 1;
    transform: scale(1);
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  }

  /* Hide scrollbar for cleaner look */
  .projects-container::-webkit-scrollbar {
    display: none;
  }

  .projects-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .project-nav {
    display: flex;
    /* Show buttons on mobile */
  }

  .home img,
  .about img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .btn-home1,
  .btn-home2 {
    width: auto;
    padding: 12px 20px;
  }

  .btn,
  .btn-send {
    width: 100%;
    text-align: center;
  }

  .contact h1 {
    white-space: nowrap;
    font-size: 30px;
    width: 100%;
  }

  .contact-info p {
    font-size: 14px;
    padding: 0 10px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .follow {
    flex-direction: column;
    gap: 15px;
  }

  .follow .followw {
    font-size: 12px;
    margin-bottom: 5px;
  }

  /* Disable hover effects on mobile/tablet for projects */
  .project-card:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: var(--glass-blur) !important;
  }

  .info-home h1 {
    font-size: 28px;
    white-space: normal;
  }

  .info-home h3 {
    font-size: 20px;
  }

  .info-p p {
    font-size: 14px;
    padding: 0 10px;
  }

  .btnn {
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 10px;
  }

  .btn-home1,
  .btn-home2 {
    width: auto;
    padding: 10px 15px;
    font-size: 13px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
  }

  .about img {
    bottom: 0;
  }

  .contact-content {
    flex-direction: column;
    padding-top: 20px;
    gap: 30px;
  }
}