/* Start Global Rules */
:root {
  --color-primary: #4F46E5;
  --color-secondary: #06B6D4;

  --color-bg: #F9FAFB;
  --color-surface: #FFFFFF;

  --color-text-primary: #111827;
  --color-text-secondary: #6B7280;

  --color-border: #E5E7EB;
  --color-accent: #4338CA;

  --white: #fff;
  --black: #000;
}

.dark {
  --color-primary: #6366F1;
  --color-secondary: #22D3EE;

  --color-bg: #0F172A;
  --color-surface: #1E293B;

  --color-text-primary: #F1F5F9;
  --color-text-secondary: #94A3B8;

  --color-border: #334155;

  --color-accent: #4F46E5;
}

html {
  scroll-behavior: smooth;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

i {
  cursor: pointer;
}

h1,h2,h3,h4,h5,h6 {
  color: var(--color-primary) !important;
}

/* End Global Rules */

/* Start Navbar */
.navbar {
  background-color: var(--color-primary);
}
/* End Navbar */


/* Start Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--color-text-primary);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h3 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.hero h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.hero p {
  color: var(--color-text-secondary);
  max-width: 600px;
}

.hero .img-thumbnail {
  border: 3px solid var(--color-surface);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 500px;
  height: 500px;
  object-fit: cover;
}

.hero .img-thumbnail:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 50px -15px var(--color-primary);
}

/* End Home */

/* Start About */
.about {
  background-color: var(--color-surface);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.about h1 {
  color: var(--color-text-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.about h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.about p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about img {
  border: 3px solid var(--color-surface);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
  width: 500px;
  height: 500px;
  object-fit: cover;
}

.about .img-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 45px -15px var(--color-primary);
}

/* End About */

/* Start Skills */
.skills {
  background: var(--color-bg);
}

.skills h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 10px auto 0;
}

.skills .col-6 > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 16px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.skills .col-6 > div::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.2s;
}

.skills .col-6 > div:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.skills .col-6 > div:hover::before {
  opacity: 1;
}

.skills img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 8px;
}

.skills p.fs-2 {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}
.skill-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
  background: #EEF2FF;
  color: var(--color-accent);
  border: 1px solid #C7D2FE;
}
/* End Skills */

/* Start Projects */
.projects {
  background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
}

.projects h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 10px auto 0;
}

.project {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -8px rgba(79, 70, 229, 0.18),
              0 0 0 1px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.25);
}

.project::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover::before {
  opacity: 1;
}

.project .img {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0F7FA 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.project .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
}

.project .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.1);
}

.project:hover .img img {
  transform: scale(1.06);
}

.project-body {
  padding: 1.4rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.project-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.project-body p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tool-badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: #EEF2FF;
  color: var(--color-primary);
  border: 1px solid rgba(79,70,229,0.15);
  transition: background 0.2s, color 0.2s;
}

.tool-badge:hover {
  background: var(--color-primary);
  color: #fff;
}

.project-footer {
  padding: 0.9rem 1.4rem 1.2rem;
  border-top: 1px solid var(--color-border);
}

.project-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s;
}

.project-footer a:hover {
  gap: 0.7rem;
  color: var(--color-accent);
}

.project-footer a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.project-footer a:hover .arrow {
  transform: translateX(4px);
}

.arrow {
  transition: transform 0.25s ease;
}

.contact-btn a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  background-color: var(--color-primary);
  padding: 10px 25px;
  border-radius: 30px;
  transition: 0.3s ease-in-out all;
}

.contact-btn a::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.contact-btn a:hover::before {
  left: 140%;
}

.contact-btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(79, 70, 229, 0.45),
              0 0 0 1px rgba(79, 70, 229, 0.2);
}
/* End Projects */

/* Start Education Section */
.education {
  background: var(--color-bg);
}

.education h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 10px auto 0;
}

.education .img-thumbnail {
  border: 3px solid var(--color-surface);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.education .img-thumbnail:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 50px -15px var(--color-primary);
}


.education-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

.education-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -8px rgba(79, 70, 229, 0.18),
              0 0 0 1px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.25);
}

.education-item:hover::before {
  opacity: 1;
}

.education-item::after {
  content: '🎓';
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 1.6rem;
  opacity: 0.15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.education-item:hover::after {
  opacity: 0.35;
  transform: rotate(-8deg) scale(1.15);
}

.degree {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding-right: 2.5rem;
}

.school {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

.school strong {
  font-weight: 600;
}

.years {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.years::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-weight: 300;
  border-left: 2px solid var(--color-border);
  padding-left: 0.9rem;
  margin-top: 0.25rem;
}

.subjects-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.subjects-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.subjects-list li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: #EEF2FF;
  color: var(--color-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: default;
}

.subjects-list li:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.d-cv {
  margin-top: 3rem;
}

.d-cv a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 0.85rem 2rem;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.3s ease;
}

.d-cv a::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.d-cv a:hover::before {
  left: 140%;
}

.d-cv a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(79, 70, 229, 0.45),
              0 0 0 1px rgba(79, 70, 229, 0.2);
}

.d-cv a:active {
  transform: translateY(0px);
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.35);
}

.d-cv a::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #fff;
  flex-shrink: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2);
}

.d-cv a:hover::after {
  transform: translateY(3px);
}
/* End Education Section */

/* Start Contact Section */
.contact {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  pointer-events: none;
}

.contact h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.contact > .container > .row > .col-md-6:first-child p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}

.number {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s, background 0.3s;
}

.number:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

.number i {
  font-size: 0.8rem;
  color: var(--color-secondary);
}

.number span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.social-icons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s,
              color 0.25s, transform 0.3s cubic-bezier(.22,.68,0,1.2);
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-4px);
}

.contact form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact form:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 24px 48px -8px rgba(79, 70, 229, 0.1);
}

.contact form label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

.contact form input,
.contact form textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  resize: none;
}

.contact form input::placeholder,
.contact form textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.contact form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2rem;
  margin-top: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.3s ease;
}

.contact form button::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.contact form button:hover::before {
  left: 140%;
}

.contact form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(79, 70, 229, 0.4),
              0 0 0 1px rgba(79, 70, 229, 0.2);
}

.contact form button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.3);
}
/* End Contact Section */

/* Start Footer */
footer {
  background-color: #111827;
  color: var(--white);
}
/* End Footer */

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h3 {
    font-size: 1.5rem;
  }
  
  .about h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h3 {
    font-size: 1.25rem;
  }
  
  .hero p,
  .about p {
    font-size: 1rem;
  }
  
  .about h1 {
    font-size: 2rem;
  }
  .education .edu-img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero .img-thumbnail,
  .about img  {
    width: 300px;
    height: 300px;
  }
}
