/*----- GLOBAL & TYPOGRAPHY -----*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

.css-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  animation: fadeOutLoader 0.4s ease-in-out 1.8s forwards;
}

.gradient-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Changed green to Electric Blue */
  background: conic-gradient(from 0deg, transparent 30%, #116aa5, #00A3FF);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes fadeOutLoader {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}


/*----- FLOATING NAV -----*/
.nav-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(14px);
  padding: 12px 24px;
  border-radius: 90px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  opacity: 0.55;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/*----- MAIN GRID LAYOUT -----*/
.container {
  max-width: 1200px;
  margin: auto;
  padding: 130px 32px 90px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
}

/*----- LEFT PROFILE CARD (STICKY) -----*/
.profile {
  background: #1e1e1e;
  padding: 22px;
  border-radius: 20px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 120px;
  align-self: start;
}

.profile img {
  width: 100%;
  border-radius: 12px;
}

.profile h3 {
  font-size: 20px;
  font-weight: 800;
}

.profile p {
  font-size: 14px;
  color: #737272;
  line-height: 1.4;
  margin-bottom: 15px;
}

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

.social a {
  display: inline-block;
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}

.social a img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.social a:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

/*----- MAIN CONTENT -----*/
.main {
  display: grid;
  gap: 95px;
}

/*--- HERO ---*/
.hero h1 {
  font-size: clamp(55px, 8vw, 80px);
  font-weight: 800;
  line-height: 0.9em;
}

.hero p {
  margin-top: 22px;
  max-width: 580px;
  font-size: 15px;
  color: #737272;
}

/*--- STATS ---*/
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat h2 {
  font-size: 45px;
  font-weight: 800;
}

.stat p {
  font-size: 14px;
  color: #737272;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--- PROJECTS ---*/
.projects h2 {
  font-size: clamp(50px, 7vw, 70px);
  line-height: 0.9em;
}

.projects h2 span {
  color: #737272;
}

.project-list {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.project-list a.project {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 20px;
  background: #1e1e1e;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.project-list a.project img {
  width: 75px;
  border-radius: 12px;
}

.project-list a.project div h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.project-list a.project div p {
  font-size: 14px;
  color: #737272;
}

.project-list a.project span {
  font-size: 22px;
  /* Changed green to Electric Blue */
  color: #00A3FF;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-list a.project:hover {
  transform: translateY(-3px);
  /* Changed green hover tint to Blue tint */
  background: rgba(0, 163, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.project-list a.project:hover span {
  transform: translateX(4px);
  /* Changed green to Electric Blue */
  color: #00A3FF;
}

/*--- EXPERIENCE ---*/
.exp-title {
  font-size: clamp(50px, 7vw, 70px);
  line-height: 0.9;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.exp-title span {
  color: #737272;
}

.exp-list {
  display: grid;
  gap: 48px;
}

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px;
  border-radius: 12px;
  background: #1e1e1e;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.exp-item:hover {
  transform: translateY(-3px);
  background: #4ab7ff28;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.exp-item:hover .exp-arrow {
  transform: translateX(4px);
  color: #00A3FF;
}

.exp-content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.exp-content p {
  font-size: 15px;
  color: #737272;
  max-width: 500px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.exp-content .date {
  font-size: 14px;
  color: #5f5f5f;
}

.exp-arrow {
  font-size: 24px;
  color: #00A3FF;
  font-weight: 300;
  transition: transform 0.2s ease, color 0.2s ease;
}

/*--- PREMIUM TOOLS ---*/
.tools-title {
  font-size: clamp(50px, 7vw, 70px);
  line-height: 0.9;
  margin-bottom: 55px;
  text-transform: uppercase;
}

.tools-title span {
  color: #737272;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-icon {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.tool-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.tool-info p {
  font-size: 14px;
  color: #737272;
}

/*--- FORM & CONTACT ---*/
.contact h2 {
  font-size: 54px;
  line-height: 0.9;
}

.contact h2 span {
  color: #737272;
}

.form {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input, select, textarea {
  padding: 16px;
  background: #2b2b2b;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  /* Changed green to Electric Blue */
  border-color: #00A3FF;
  outline: none;
}

textarea {
  resize: none;
  min-height: 130px;
}

button {
  padding: 16px;
  /* Changed green to Electric Blue */
  background: #00A3FF;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/*--- FOOTER ---*/
footer {
  text-align: center;
  margin-top: 80px;
  font-size: 12px;
  color: #737272;
}

footer span a{
  /* Changed green to Electric Blue */
  color: #00A3FF;
  text-decoration: none;
}

footer span a:hover {
  font-size: 1.2em;
  transition: font-size 0.4s ease;
}

/*----- RESPONSIVE -----*/

/*--- Small Phones (<=576px) ---*/
@media (max-width: 576px) {

  .container {
    grid-template-columns: 1fr;
    padding: 96px 16px 60px;
    gap: 48px;
  }

  .profile {
    position: relative;
    top: 0;
  }

  .nav {
    padding: 10px 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero h1, .projects h2, .exp-title, .tools-title, .profile h3 {
    font-size: clamp(42px, 10vw, 56px);
    line-height: 1;
    text-align: center;
    word-break: break-word;
  }

   .profile h3 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1;
    text-align: center;
    word-break: break-word;
  }

  .profile p {
    text-align: center;
    font-size: 16px;
  }

  .social {
    display: flex;
    gap: 12px;
    justify-content: center;
  }


  .hero p {
    text-align: center;
    font-size: 15px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .stat h2 {
    font-size: 36px;
  }

  .project-list a.project {
    grid-template-columns: 56px 1fr;
    padding: 14px;
  }

  .project-list a.project span {
    display: none;
  }

  .exp-item {
    flex-direction: column;
    gap: 16px;
  }

  .exp-arrow {
    align-self: flex-end;
  }

  .tools-grid {
    grid-template-columns: repeat(2, css1fr);
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-list a.project img {
    width: 65px;
  }
}


/*---- Large Phones (577px - 768px) ----*/
@media (min-width: 577px) and (max-width: 768px) {

  .container {
    grid-template-columns: 1fr;
    padding: 110px 24px 70px;
    gap: 60px;
  }

  .profile {
    position: relative;
    top: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

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


/*----- Tab (769px - 1024px) -----*/
@media (min-width: 769px) and (max-width: 1024px) {

  .container {
    grid-template-columns: 240px 1fr;
    gap: 50px;
    padding: 120px 28px 80px;
  }

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

/*---  Big Screen (>=1440px) --- */
@media (min-width: 1440px) {

  .container {
    max-width: 1300px;
  }
}