/* ================== Root Variables ================== */
:root {
  --black: #0b0b0b;
  --blue: #1a73e8;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 14px;
  --max-width: 1120px;
  --transition: 0.3s ease-in-out;
}

/* ================== Reset & Base ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #111010 url("body_background.jpg") no-repeat center/cover;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================== Header ================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 60px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}
header .log {
  color: var(--white);
  font-size: 30px;
  font-weight: bold;
}

/* ================== Navbar ================== */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.navbar ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.navbar ul li a:hover { color: var(--blue); }

.loginbutton{
  background:linear-gradient(90deg, blue, black, blue);
  border-radius: 3px;
  border:solid white 2px;
  width: 100px;
}
.loginbutton a{
  color: white;
  text-decoration: none;
}

/* ================== Hamburger ================== */
.menu-toggle {
  font-size: 40px;
  color: var(--white);
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

/* ================== Sidebar ================== */
.sidebar {
  position: fixed;
  top: 0; left: -500px;
  width: 500px; height: 100%;
  background: linear-gradient(180deg, black, blue, black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 60px 20px;
  gap: 20px;
  transition: left var(--transition);
  z-index: 2000;
}
.sidebar.active { left: 0; }
.sidebar a {
  color: var(--white);
  text-decoration: none;
  font-size: 3rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color var(--transition);
}
.sidebar a:hover { color: orange; }
.sidebar-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 38px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* ================== Hero Section ================== */
.hero {
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.tag {
  margin: -350px 0 0 300px;
  background: linear-gradient(90deg, black, blue, black);
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--white);
  padding: 6px 14px;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
  background-size: 300% 300%;
  animation: gradientMove 5s ease infinite, glowPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.tag:hover { transform: scale(1.1); }
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 15px rgba(0,0,255,0.5); }
  50% { box-shadow: 0 0 30px rgba(0,0,255,0.9); }
}

/* Buttons */
.btn-group { margin-top: 40px; display: flex; gap: 20px; }
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-btn {
  background: linear-gradient(90deg, #0004ff, #3f51b5);
  box-shadow: 0 0 15px rgba(26,115,232,0.5);
}
.cv-btn {
  background: linear-gradient(90deg, #ff4081, #f50057);
  box-shadow: 0 0 15px rgba(255,64,129,0.5);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
  z-index: -1;
}
.btn:hover::before { left: 120%; }
.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 25px rgba(0,26,255,0.7);
}

/* Hero Content */
.herocontent {
  display: flex;
  align-items: center;
  gap: 100px;
  margin: 100px 0 0 -500px;
}
.text h1 {
  font-size: 40px;
  background: linear-gradient(90deg, #1a73e8, #ff4081);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  border-right: 3px solid #1a73e8;
  width: 0;
  overflow: hidden;
  animation: typing 3s steps(20,end) forwards, blink 0.7s step-end infinite;
}
.text p {
  font-size: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s forwards;
  animation-delay: 3.2s;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Hero Pic */
.pic {
  height: 350px; width: 300px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: url("profile_pic.png");
  background-size: cover;
  transition: all 0.5s ease;
  box-shadow: 0 0 20px rgba(26,115,232,0.5);
  animation: floatPic 4s ease-in-out infinite;
}
.pic:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(0,38,255,0.9);
}
@keyframes floatPic {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* ================== Profile Section ================== */
.profile-container {
  color: var(--white);
  display:block;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}
.profile-card {
  width: 500px;
 margin-left: -380px;
 margin-top: 20px;
  background: rgba(255,255,255,0.02);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.profile-card:hover { transform: translateY(-10px) scale(1.03); }
.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border: 2px solid transparent;
}
.profile-card::before {
  top: 0; left: 0;
  border-top-color: var(--blue);
  border-left-color: var(--blue);
  transition: width 0.3s, height 0.3s 0.3s;
}
.profile-card::after {
  bottom: 0; right: 0;
  border-bottom-color: var(--blue);
  border-right-color: var(--blue);
  transition: width 0.3s 0.6s, height 0.3s 0.9s;
}
.profile-card:hover::before,
.profile-card:hover::after { width: 100%; height: 100%; }
.profile-card .shine {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(0,102,255,0.3), transparent);
  transform: rotate(25deg);
  opacity: 0;
}
.profile-card:hover .shine {
  opacity: 1;
  animation: shine 1.2s forwards;
}
@keyframes shine {
  from { transform: translateX(-100%) rotate(25deg); }
  to { transform: translateX(100%) rotate(25deg); }
}
.profile-card h2 {
  color: var(--white);
  border-bottom: 2px solid var(--white);
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.profile-card1 {
  margin-top: 20px;
  width: 500px;
  margin-right:-380px;
  background: rgba(255,255,255,0.02);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.profile-card1:hover { transform: translateY(-10px) scale(1.03); }
.profile-card1::before,
.profile-card1::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border: 2px solid transparent;
}
.profile-card1::before {
  top: 0; left: 0;
  border-top-color: var(--blue);
  border-left-color: var(--blue);
  transition: width 0.3s, height 0.3s 0.3s;
}
.profile-card1::after {
  bottom: 0; right: 0;
  border-bottom-color: var(--blue);
  border-right-color: var(--blue);
  transition: width 0.3s 0.6s, height 0.3s 0.9s;
}
.profile-card1:hover::before,
.profile-card1:hover::after { width: 100%; height: 100%; }
.profile-card1 .shine {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(0,102,255,0.3), transparent);
  transform: rotate(25deg);
  opacity: 0;
}
.profile-card1:hover .shine {
  opacity: 1;
  animation: shine 1.2s forwards;
}
@keyframes shine {
  from { transform: translateX(-100%) rotate(25deg); }
  to { transform: translateX(100%) rotate(25deg); }
}
.profile-card1 h2 {
  color: var(--white);
  border-bottom: 2px solid var(--white);
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.profile-info { list-style: none; color: var(--white); }
.profile-info li { margin: 12px 0; }
.cv-link { color: orangered; }
.skill { margin-bottom: 18px; }
.skill-bar {
  height: 10px;
  border: 1px solid var(--white);
  border-radius: 6px;
}
.skill-level {
  height: 100%;
  background: var(--white);
  border-radius: 6px;
  width: 0;
  transition: width 1s ease-in-out;
}
.profile-card:hover .skill-level { width: var(--level); }

/* Social Links */
.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}
.social-links li a:hover { transform: translateX(8px); color: var(--white); }
.social-links li a i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center; align-items: center;
  transition: transform 0.3s;
}
.social-links li a:hover i { transform: rotate(15deg) scale(1.1); }
.fa-facebook { color: #1877F2; }
.fa-instagram { color: #E4405F; }
.fa-linkedin { color: #0A66C2; }
.fa-tiktok { color: #010101; }

/* ================== Footer ================== */
footer {
  width: 100%;
  background: linear-gradient(90deg, black, blue, black);
  color: #fff;
  padding: 40px 20px 20px;
}
.footer-container {
  margin-left: 50px;
  display: flex;
  gap: 250px;
  margin-bottom: 20px;
}
.footer-box h3 { margin-bottom: 15px; }
.footer-box ul { list-style: none; }
.footer-box ul li { margin: 8px 0; }
.footer-box ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.footer-box ul li a:hover { color: #ffae00; transform: translateY(-5px); }
.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #fff;
  padding-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}
.footer-box ul li i {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: black;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.footer-box ul li a:hover i {
  transform: scale(1.2);
  background: #ffae00;
  color: var(--white);
}

/* ================== Extra Effects ================== */
.switch-button { transition: all 0.3s ease; }
.switch-button:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}
.hr-dash {
  border: 0; height: 2px; margin: 28px 0;
  background-image: linear-gradient(90deg, currentColor 33%, transparent 0%);
  background-size: 12px 2px;
  color: rgba(255,255,255,0.6);
  animation: dash-move 1.2s linear infinite;
}
@keyframes dash-move {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}

/* ================== Responsive ================== */
@media (max-width: 990px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }
  .navbar { display: none; }
  header { height: 80px; }
  .loginbutton{
    background:linear-gradient(90deg, blue, black);
    width: 200px;
  }
  .log { font-size: 28px; line-height: 80px; }
.hero{
  height: 40vh;
}
.tag{
  margin-bottom: 50px;
  width: 400px;
  font-size: 20px;
}
.herocontent{
  gap: 10px;
  margin-left:-700px;
}
.btn-group{
  display: block;
}
p{
  font-size: 25px;
}
.cv-btn{
  margin-bottom: 20px;
  width: 400px;
  font-size: 35px;
}
.contact-btn {
  margin-bottom: 20px;
  width: 400px;
  font-size: 35px;
}
.profile-card{
  width: 900px;
  margin-left: 0px;
}
.profile-card1{
  width: 900px;
  margin-left: 0px;
}
.social-links li a{
font-size: 35px;
}
.footer-container{
  display: block;
  font-size: 24px;
  text-align:center;
}
.footer-box{
  margin-top: 40px;
  border-top: solid white 4px;
  margin-left: 0px;
}
.footerul{
  display: flex;
  gap: 100px;
}
.footer-bottom{
  font-size: 35px;
}
li a{
  text-decoration: none;
}
}
