/* --------- CSS RESET --------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

img,
svg {
  display: block;
  max-width: 100%
}

button,
input,
select,
textarea {
  font: inherit
}

/* --------- THEME --------- */
:root {
  --bg: #0b0c10;
  --panel: #13151a;
  --text: #e6e8ec;
  --muted: #9aa3af;
  --brand: #7c5cff;
  --brand-2: #22c55e;
  --ring: rgba(124, 92, 255, .45);
  --shadow: 0 10px 25px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #576074;
  --ring: rgba(124, 92, 255, .3);
  --shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: auto;
  padding: 0 24px;
}

/* --------- NAVBAR --------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0));
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.navlinks {
  display: flex;
  gap: 12px;
}

.navlinks a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.navlinks a:hover,
.navlinks a.active {
  background: rgba(124, 92, 255, .15);
  color: var(--text);
}

.btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px var(--ring);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(124, 92, 255, .45);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--brand);
}

.hero {
  padding: 72px 0 32px;
}

.title {
  font-size: 48px;
  font-weight: 900;
}

.subtitle {
  color: var(--muted);
  max-width: 600px;
}

/* Sections */
section {
  padding: 56px 0;
}

.card {
  background: var(--panel);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.light .card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--brand);
}

.light .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #60a5fa, var(--brand-2));
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Footer */
footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
}

/* SECTION WRAPPER */

.contact-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:40px;
}

/* CARD STYLE */

.card{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(12px);
  border-radius:16px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
}

/* TITLE */

.card h3{
  text-align:center;
  margin-bottom:20px;
  color:#fff;
  font-size:22px;
}

/* FORM */

.contact-form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-form input,
.contact-form textarea{
  padding:14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  color:#fff;
  font-size:15px;
  outline:none;
  transition:0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#ccc;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:#4f46e5;
  box-shadow:0 0 0 3px rgba(79,70,229,0.2);
}

/* BUTTON */

.btn{
  padding:14px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  color:white;
  font-size:16px;
  cursor:pointer;
  transition:0.3s;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

/* SOCIAL LINKS */

.social-links{
  list-style:none;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.social-links li{
  background:rgba(255,255,255,0.05);
  padding:12px 15px;
  border-radius:10px;
  transition:0.3s;
}

.social-links li:hover{
  background:rgba(79,70,229,0.25);
  transform:translateX(5px);
}

.social-links a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}

/* RESPONSIVE */

@media(max-width:768px){
  .contact-wrapper{
    grid-template-columns:1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }
}


@media (max-width: 768px) {
  .contact-form button {
    width: 100%;
  }
}

/* --------- ANIMATIONS --------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero .title {
  animation: slideRight 1s ease-out forwards;
}

.hero .subtitle {
  animation: slideRight 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  animation: slideRight 1s ease-out 0.4s forwards;
  opacity: 0;
}

.brand img {
  animation: float 3s ease-in-out infinite;
}

.bar span {
  width: 0 !important;
  transition: width 1.5s cubic-bezier(1, 0, 0, 1);
}

.reveal.active .bar span {
  width: var(--percent) !important;
}