/* Global styles */
:root {
    --font-primary: 'Lato', sans-serif;
    --font-heading: 'Raleway', sans-serif;
    --text-color: #cccccc;
    --primary-color: #8a2be2;
    --border-color: rgba(138, 43, 226, 0.2);
}

*    {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: var(--font-primary);
background: #0a0a0a;
color: #ffffff;
overflow-x: hidden;
line-height: 1.6;
font-weight: 300;
}

/* Parallax background */
.parallax-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #000000, #1a0033, #000000, #000000);
background-size: 400% 400%;
animation: darkGradientShift 20s ease infinite;
z-index: -2;
}

@keyframes darkGradientShift {
0% {
    background-position: 0% 50%;
}
33% {
    background-position: 100% 50%;
}
66% {
    background-position: 0% 100%;
}
100% {
    background-position: 0% 50%;
}
}

/* Floating particles */
.particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}

.particle {
position: absolute;
width: 2px;
height: 2px;
background: #8a2be2;
border-radius: 50%;
animation: float 6s infinite linear;
opacity: 1;
}

@keyframes float {
0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
}
10% {
    opacity: 0.6;
}
90% {
    opacity: 0.6;
}
100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
}
}

/* Header Section */
.header {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
}

.logo {
width: 120px;
height: 120px;
background: linear-gradient(45deg, #8a2be2, #9932cc, #ba55d3);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 48px;
font-weight: bold;
margin-bottom: 30px;
animation: logoRotate 10s linear infinite,
    logoPulse 3s ease-in-out infinite;
box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}
.logo img {
  width: 150px;
  height: 150px;
  object-fit: cover; 
  border-radius: 50%; 
}


@keyframes logoRotate {
0% {
    transform: rotate(0deg);
}
100% {
    transform: rotate(360deg);
}
}

@keyframes logoPulse {
0%,
100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}
50% {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.8);
}
}

.name {
font-family: var(--font-heading);
font-size: 4rem;
font-weight: 600;
background: linear-gradient(
    45deg,
    #e6e6fa,
    #8a2be2,
    #9932cc,
    #ba55d3,
    #dda0dd,
    #e6e6fa
);
background-size: 300% 300%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: waveGradient 3s ease-in-out infinite;
margin-bottom: 20px;
text-transform: uppercase;
letter-spacing: 3px;
}

@keyframes waveGradient {
0%,
100% {
    background-position: 0% 50%;
}
50% {
    background-position: 100% 50%;
}
}

.subtitle {
font-size: 1.2rem;
color: #cccccc;
animation: fadeInUp 2s ease-out;
margin-bottom: 30px;
min-height: 1.5em;
}



@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


@keyframes blink-caret {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: #8a2be2;
  }
}
.typewriter.typing-complete {
border-right: none;
width: auto;
}

@keyframes typing {
from {
    width: 0;
}
to {
    width: 100%;
}
}

@keyframes blink-caret {
from,
to {
    border-color: transparent;
}
50% {
    border-color: #8a2be2;
}
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}


/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #8a2be2;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
}
40% {
    transform: translateX(-50%) translateY(-10px);
}
60% {
    transform: translateX(-50%) translateY(-5px);
}
}

/* Main content */
.content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* Sections */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(45deg, #8a2be2, #ba55d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About section */
.about-content {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.about-content p {
    margin-bottom: 20px;
    opacity: 0;
}

.about-content p.typewriter-paragraph {
    opacity: 1;
    overflow: hidden;
    border-right: 2px solid #8a2be2;
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
}

.about-content p.typing-complete {
    border-right: none;
    white-space: normal;
}

/* Projects section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    position: relative;
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    height: 400px;
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.15),
                0 0 20px rgba(138, 43, 226, 0.1);
}

.project-banner {
    flex: 1;
    min-width: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.project-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3)
    );
    transition: all 0.3s ease;
}

.project-card:nth-child(even) .project-banner::after {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3)
    );
}

.project-card:hover .project-banner::after {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.2)
    );
}

.project-card:nth-child(even):hover .project-banner::after {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.2)
    );
}

.project-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ba55d3;
    margin: 0 0 1rem 0;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.project-card p {
    color: #cccccc;
    margin: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(153, 50, 204, 0.1));
    color: #ba55d3;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
}

.project-link:hover::before {
    opacity: 1;
}

.project-link i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.project-link span {
    position: relative;
    z-index: 1;
}

.project-link:hover i {
    transform: scale(1.1);
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.5);
}

/* Contact section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    color: #ba55d3;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
.name {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.logo {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.section h2 {
    font-size: 2rem;
}

.social-links {
    gap: 20px;
}

.project-tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.6rem;
}

.tech-item {
    padding: 0.6rem;
}

.tech-icon {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
}

.tech-name {
    font-size: 0.75rem;
}

.tech-description {
    font-size: 0.75rem;
    padding: 0.6rem;
}

.project-links {
    flex-direction: column;
    gap: 0.8rem;
}

.project-link {
    padding: 0.8rem 1.2rem;
}
}

/* Section Skills */
  .skills-blocks {
      display: flex;
      flex-direction: column;
      gap: 3.2rem;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
  }

  .skills-container {
      display: flex;
      gap: 2rem;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 1100px;
      width: 100%;
      margin: 0 auto;
      align-items: stretch;
  }

  .skills-block {
      background: rgba(25,24,31,0.18);
      border-radius: 18px;
      box-shadow: 0 2px 16px rgba(0,0,0,0.12);
      padding: 2.2rem 2rem 1.7rem 2rem;
      max-width: 540px;
      min-width: 340px;
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      border: 1.5px solid var(--border-color);
      backdrop-filter: blur(2px);
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(30px);
  }

  .skills-block.animate-in {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
  }

  .skills-block:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 20px #9932cc;
  }

  .skills-block.animate-in:hover {
      transform: translateY(-2px);
  }

  .skills-block.other-skills {
      max-width: 1100px;
      width: 100%;
      margin-top: 2.5rem;
  }

  .skills-block h2 {
      font-family: var(--font-heading);
      font-weight: 600;
      font-size: 2rem;
      margin-bottom: 0.5rem;
      color: var(--primary-color);
      letter-spacing: 0.01em;
  }

  .skills-block p {
      font-size: 1.1rem;
      color: var(--text-color);
      margin-bottom: 2.5rem;
      font-weight: 300;
      letter-spacing: 0.01em;
  }

  .tech-carousel-row {
      display: flex;
      align-items: flex-end;
      gap: 1rem;
      overflow: hidden;
      position: relative;
      width: 100%;
      min-height: 64px;
  }

  /* Chips Style */
  .tech-chip {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.7em;
      border-radius: 16px;
      min-width: 150px;
      max-width: 180px;
      width: auto;
      height: 56px;
      font-size: 1.05rem;
      font-family: var(--font-primary);
      font-weight: 500;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.13);
      background: rgba(138, 43, 226, 0.1);
      color: #f3f3f7;
      border: 1.5px solid rgba(138, 43, 226, 0.3);
      margin-right: 1.1rem;
      margin-left: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0 1em 0 1.2em;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.01em;
  }

  .tech-chip:last-child { 
      margin-right: 0; 
  }

  .tech-chip i {
      font-size: 1.5em;
      min-width: 1.5em;
      width: 1.5em;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
  }

  .tech-chip span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
  }

  .tech-chip:hover {
      transform: translateY(-2px);
      background: linear-gradient(45deg, #8a2be2, #9932cc);
      border-color: transparent;
      box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
      color: #fff;
      z-index: 10;
  }


  .carousel-inner {
      display: flex;
      width: max-content;
      gap: 1.1rem;
  }

  /* Animated Carousel */
  .tech-carousel-row.animated {
      overflow: hidden;
      position: relative;
      mask: linear-gradient(90deg, 
          transparent 0%,
          rgba(255, 255, 255, 0.1) 5%,
          rgba(255, 255, 255, 1) 15%,
          rgba(255, 255, 255, 1) 85%,
          rgba(255, 255, 255, 0.1) 95%,
          transparent 100%
      );
      -webkit-mask: linear-gradient(90deg, 
          transparent 0%,
          rgba(255, 255, 255, 0.1) 5%,
          rgba(255, 255, 255, 1) 15%,
          rgba(255, 255, 255, 1) 85%,
          rgba(255, 255, 255, 0.1) 95%,
          transparent 100%
      );
  }

  .tech-carousel-row.animated .carousel-inner {
      display: flex;
      gap: 16px;
      will-change: transform;
      backface-visibility: hidden;
      transform: translateZ(0);
      -webkit-font-smoothing: antialiased;
  }

  .tech-carousel-row.animated .tech-chip {
      flex-shrink: 0;
      transition: all 0.3s ease;
  }

  .tech-carousel-row.animated .tech-chip:hover {
      transform: translateY(-2px);
      z-index: 10;
  }

  /* Carousel Speed */
  #frontend-carousel { --carousel-speed: 0.5; }
  #backend-carousel { --carousel-speed: 0.4; }
  #other-carousel { --carousel-speed: 0.3; }

  .tech-carousel-row.static {
      justify-content: center;
  }

  .tech-carousel-row.static .carousel-inner {
      animation: none !important;
  }

  /* More Responsive Styles */
  @media (max-width: 768px) {
      body {
          padding: 1rem;
      }
      
      .skills-blocks {
          gap: 2rem;
      }
      
      .skills-container {
          flex-direction: column;
          gap: 2rem;
          width: 100%;
      }
      
      .skills-block {
          max-width: 100%;
          min-width: 0;
          width: 100%;
          padding: 1.5rem 1rem;
          flex: none;
      }
      
      .skills-block.other-skills {
          margin-top: 0;
      }
      
      .skills-block h2 {
          font-size: 1.7rem;
      }
      
      .skills-block p {
          font-size: 1rem;
      }
      
      .tech-chip {
          width: auto;
          min-width: 115px;
          max-width: 140px;
          height: 42px;
          font-size: 0.95rem;
          margin-right: 0.8rem;
          gap: 0.5em;
          padding: 0 0.8em 0 1em;
      }
      
      .tech-chip i {
          font-size: 1.3em;
          min-width: 1.3em;
          width: 1.3em;
      }
      
      .carousel-inner {
          gap: 0.8rem;
      }
  }

  @media (max-width: 480px) {
      body {
          padding: 0.5rem;
      }
      
      .skills-blocks {
          gap: 1.5rem;
      }
      
      .skills-block {
          padding: 1.2rem 0.8rem;
          border-radius: 12px;
      }
      
      .skills-block h2 {
          font-size: 1.5rem;
      }
      
      .skills-block p {
          font-size: 0.95rem;
          margin-bottom: 1rem;
      }
      
      .tech-chip {
          width: auto;
          min-width: 95px;
          max-width: 120px;
          height: 38px;
          font-size: 0.85rem;
          margin-right: 0.6rem;
          border-radius: 12px;
          gap: 0.4em;
          padding: 0 0.6em 0 0.8em;
      }
      
      .tech-chip i {
          font-size: 1.2em;
          min-width: 1.2em;
          width: 1.2em;
      }
      
      .carousel-inner {
          gap: 0.6rem;
      }
  }

  .chip-next i {
      background: #ffffff;
      color: #000000;
      border-radius: 4px;
      padding: 2px;
  }

  a.tech-chip {
      text-decoration: none;
      color: white;
  }

  .tech-chip img {
      width: 24px;
      height: auto;
      border-radius: 4px;
  }

  @media (max-width: 1200px) {
      .project-card {
          height: 350px;
      }

      .project-content {
          padding: 2rem;
      }

      .project-card h3 {
          font-size: 1.8rem;
      }

      .project-card p {
          font-size: 1rem;
      }
  }

  @media (max-width: 992px) {
      .project-card {
          flex-direction: column !important;
          height: auto;
      }

      .project-banner {
          height: 250px;
          min-width: 100%;
          min-height: 250px;
          background-size: cover;
          background-position: center;
      }

      .project-banner::after {
          background: linear-gradient(
              to bottom,
              rgba(0, 0, 0, 0.7),
              rgba(0, 0, 0, 0.3)
          ) !important;
      }

      .project-content {
          padding: 1.5rem;
      }

      .project-card h3 {
          font-size: 1.6rem;
          margin-bottom: 0.8rem;
      }

      .project-card p {
          font-size: 0.95rem;
          margin-bottom: 1.5rem;
      }

      .project-links {
          flex-direction: column;
          gap: 0.8rem;
      }

      .project-link {
          width: 100%;
          justify-content: center;
      }
  }

  @media (max-width: 480px) {
      .projects-grid {
          gap: 1.5rem;
      }

      .project-banner {
          height: 200px;
          min-height: 200px;
          background-size: cover;
          background-position: center;
      }

      .project-content {
          padding: 1.2rem;
      }

      .project-card h3 {
          font-size: 1.4rem;
      }

      .project-card p {
          font-size: 0.9rem;
      }

      .project-link {
          padding: 0.8rem 1.5rem;
      }
  }
