:root {
  /* Colors */
  --primary: #00eaff;
  --primary-glow: rgba(0, 234, 255, 0.3);
  --secondary: #0A66C2;
  --bg-dark: #0f172a;
  --bg-darker: #0a192f;
  --bg-card: #1e293b;
  --bg-card-gradient: linear-gradient(120deg, transparent, rgba(0, 234, 255, 0.15), transparent);
  --glass-bg: rgba(15, 23, 42, 0.95);
  --glass-border: rgba(0, 234, 255, 0.15);

  --text-main: #ffffff;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --text-alt: #d1d5db;

  /* Spacing */
  --header-height: 65px;
  --section-padding: 80px 10%;
  --section-padding-mobile: 90px 20px;

  /* Effects */
  --card-radius: 25px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 234, 255, 0.05);
  --hover-shadow: 0 30px 80px var(--primary-glow), inset 0 0 60px rgba(0, 234, 255, 0.1);
}

/* ===== GLOBAL RESET ===== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif !important;
  list-style: none;
  text-decoration: none;
  scroll-margin-top: var(--header-height);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

section {
  padding: var(--section-padding);
}

section.home {
  min-height: 100vh;
}

/* ===== COMMON COMPONENTS ===== */
.heading {
  text-align: center;
  margin-bottom: 60px;
}

.heading h2 {
  font-size: 36px;
  color: var(--primary);
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-right: 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s ease;
  text-decoration: none;
  justify-content: center;

  i {
    font-size: 18px;
  }
}

.social-btn,
.btn {
  width: 100%;
  max-width: 350px;
  text-align: center;
  margin-right: auto;
  height: 46px;
}

.linkedin {
  background: #0077b5;
  color: #fff;
}

.linkedin:hover {
  background: #005582;
  transform: translateY(-3px);
}

.github {
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
}

.github:hover {
  background: #374151;
  transform: translateY(-3px);
}

.home-img {
  display: flex;
  justify-content: center;
}

/* Card Base Style (Consolidated) */
.card-base,
.experience-card,
.skill-card,
.col {
  background: var(--bg-card-gradient);
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-slow);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

/* Glow Border Effect */
.experience-card::before,
.skill-card::before,
.col::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  padding: 1px;
  background: linear-gradient(120deg, var(--primary), transparent, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

/* Light Sweep Effect */
.experience-card::after,
.skill-card::after,
.col::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(0, 234, 255, 0.15), transparent);
  transform: rotate(25deg);
  transition: 0.7s ease;
  opacity: 0;
  pointer-events: none;
}

.card-base:hover,
.experience-card:hover,
.skill-card:hover,
.col:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: var(--hover-shadow);
}

.experience-card:hover::before,
.skill-card:hover::before,
.col:hover::before {
  opacity: 1;
}

.experience-card:hover::after,
.skill-card:hover::after,
.col:hover::after {
  top: 100%;
  left: 100%;
  opacity: 1;
}

/* Button Base Style */
.btn-base,
.btn,
.top-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-base:hover,
.btn:hover,
.top-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}

header.sticky {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#loader {
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader img {
  width: 65px;
  animation: rotate 8s linear infinite;
}

.navlist {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.navlist a {
  font-weight: 500;
  color: var(--text-main);
  font-size: 16px;
  transition: var(--transition);
}

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

#menu-icon {
  font-size: 32px;
  cursor: pointer;
  display: none;
  color: var(--text-main);
}

/* ===== HERO / HOME SECTION ===== */
.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: calc(var(--header-height) + 10px);
  padding-bottom: 60px;
  /* background: linear-gradient(135deg, var(--bg-dark) 0%, #111827 40%, var(--bg-darker) 100%); */
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 234, 255, 0.2) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  z-index: 0;
}

.home-text h3 {
  font-size: 22px;
  color: var(--primary);
}

.home-text h1 {
  font-size: 48px;
  font-weight: 700;
}

.home-text h5 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-dim);
}

.home-text h5 span {
  color: var(--primary);
}

.home-text p {
  font-size: 16px;
  color: var(--text-alt);
  max-width: 550px;
  margin-bottom: 24px;
}

.image-3d {
  perspective: 1000px;
}

.image-3d img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 25px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.image-3d:hover img {
  transform: rotateY(3deg) rotateX(6deg) scale(1.03);
  box-shadow: 0 35px 80px rgba(0, 234, 255, 0.35);
}

/* ===== ABOUT SECTION ===== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 25px;
  color: var(--primary);
}

.about-text p {
  font-size: 16px;
  color: var(--text-alt);
  margin-bottom: 20px;
  max-width: 600px;
}

.about-img img {
  width: 100%;
  max-width: 550px;
  height: 500px;
  object-fit: cover;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  transform-style: preserve-3d;
}

.about-img img:hover {
  transform: translateY(-15px) rotateY(6deg) rotateX(4deg);
  box-shadow: var(--hover-shadow);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.experience-card {
  padding: 40px;
}

.experience-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px var(--primary-glow);
}

.experience-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
}

.experience-card span {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 18px;
}

.experience-card ul {
  padding-left: 25px;
}

.experience-card li {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  transition: var(--transition);
}

.experience-card li:hover {
  transform: translateX(8px);
  color: var(--text-main);
}

.experience-card li::marker {
  color: var(--primary);
  font-size: 18px;
}

.company-link {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.company-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 12px var(--primary);
}

/* ===== PROJECTS SECTION ===== */
.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 60px;
}

.col {
  padding: 40px;
}

.col h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-main);
  text-shadow: 0 0 10px var(--primary-glow);
}

.col p {
  font-size: 15px;
  color: var(--text-dim);
}

/* ===== SKILLS SECTION ===== */
.skills-row-2,
.skills-row-3 {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.skills-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.skills-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card {
  padding: 35px;
  text-align: center;
}

.skill-card i {
  font-size: 42px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.skill-card:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 15px currentColor;
}

.cloud-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.gcp-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: var(--transition);
}

/* Brand Colors for Icons */
.aws {
  color: #FF9900;
}

.infra {
  color: var(--primary);
}

.security {
  color: #ff4d6d;
}

.storage {
  color: #00c853;
}

.leadership {
  color: #ffc107;
}

/* ===== CONTACT SECTION ===== */
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card-gradient);
  padding: 60px 50px;
  border-radius: var(--card-radius);
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.contact-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--hover-shadow);
}

.contact-box h2 {
  font-size: 34px;
  margin-bottom: 35px;
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 17px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item.linkedin {
  background: transparent;

  i {
    color: #0A66C2;
  }
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.contact-item i {
  font-size: 24px;
}

.contact-item.email i {
  color: #EA4335;
}

.contact-item.phone i {
  color: #00c853;
}

.contact-item.whatsapp i {
  color: #25D366;
}

.contact-item a {
  color: var(--text-main);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.ends {
  text-align: center;
  padding: 25px;
  background: #111827;
  margin-top: 60px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCyber {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatCloud {
  from {
    transform: translate(-50%, -52%);
  }

  to {
    transform: translate(-50%, -48%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
  }

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

/* ===== BACKGROUND ELEMENTS ===== */
.cyber-bg {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cyber-rings {
  width: 1000px;
  height: 1000px;
  animation: rotateCyber 80s linear infinite;
  opacity: 0.6;
}

.cloud-outline {
  position: absolute;
  width: 500px;
  animation: floatCloud 12s ease-in-out infinite alternate;
  top: 50%;
  left: 50%;
}

.network span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 3s infinite ease-in-out;
}

.network span:nth-child(1) {
  top: 20%;
  left: 30%;
}

.network span:nth-child(2) {
  top: 40%;
  left: 70%;
}

.network span:nth-child(3) {
  top: 65%;
  left: 25%;
}

.network span:nth-child(4) {
  top: 75%;
  left: 60%;
}

.network span:nth-child(5) {
  top: 35%;
  left: 50%;
}

/* Small Cursor Magic (Star Effect Fallback) */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ===== MEDIA QUERIES (CONSOLIDATED) ===== */

/* Tablets (1024px) */
@media (max-width: 1024px) {
  section {
    padding: 100px 6%;
  }

  section.home {
    min-height: auto;
  }

  .home,
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    align-items: center;
  }

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

  .about-img img {
    width: 100%;
  }

  .skills-row-2,
  .skills-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .home-text p {
    margin: auto;
    margin-bottom: 24px;
  }

  .social-btn {
    margin: auto;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height);
  }

  header {
    justify-content: unset;

    .top-btn {
      margin-left: auto;
    }
  }

  section {
    padding: var(--section-padding-mobile);
  }

  #menu-icon {
    display: block;
  }

  .navlist {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #111827;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .navlist.active {
    left: 0;
  }

  .navlist a {
    margin: 15px 0;
    font-size: 18px;
  }

  .home {
    padding: 30px 20px 60px 20px;
    text-align: center;
  }

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

  .home-text h5 {
    font-size: 14px;
  }

  .home-text p {
    font-size: 14px;
  }

  .skills-row-2,
  .skills-row-3 {
    grid-template-columns: 1fr;
  }

  .experience-card {
    padding: 25px;
  }

  .contact-box {
    padding: 40px 25px;
  }

  .contact-item {
    flex-direction: column;
    gap: 8px;
  }
}

/* Small Phones (480px) */
@media (max-width: 480px) {
  .home-text h1 {
    font-size: 22px;
  }

  .home-text p {
    font-size: 13px;
  }

  .heading h2 {
    font-size: 24px;
  }

  .contact-box h2 {
    font-size: 24px;
  }
}
