body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.universal-container {
  position: relative;
  width: 100vw;
  height: 200vh;
  max-width: 100%;
  box-sizing: border-box;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.canvas-holder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.content-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 2rem;
  height: auto;
  box-sizing: border-box;
}

.overlay-text {
  width: 100%;
  color: white;
  pointer-events: none;
  text-align: left;
  position: relative;
  margin-left: 0;
  padding: 2rem;
  box-sizing: border-box;
}
.button {
    margin-top: 25px;
}
.button1 {
  pointer-events: auto;
  cursor: pointer;
  color: white;
  text-decoration: none;
  border: 2px white solid;
  border-radius: 20vh;
  padding: 10px;
}
.title {
  font-size: clamp(2rem, 5vw, 3.7rem);
  margin: 0;
  margin-top: 20%;
  width: 100%;
  text-align: left;
  max-width: 1200px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .universal-container {
    height: auto;
    min-height: 100vh;
  }

  #threejs-canvas {
    touch-action: none;
  }
  .content-section {
    padding: 0 1rem;
  }
  
  .overlay-text {
    padding: 1rem;
  }
  
  .title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .conteiner-1 {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    padding: 0 1rem;
  }
}
@media
(prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.scroll-section {
  padding: 4rem 2rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.conteiner-1 {
    margin-top: 23%;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    height: 125vh;
    background-color: rgb(11, 11, 11);
    color: white;
    position: relative;
    padding: 0 2rem; 
    box-sizing: border-box;
}
.conteiner-1-aboutme{
    padding-top: 5%;
    padding-left: 2%;
    font-size: 44px;
}
.conteiner-2 {

    width: calc(100% + 4rem); 
    margin-left: -2rem;
    background-color: rgb(7, 7, 7);
    position: relative;
    padding: 0 2rem;
    box-sizing: border-box;
    pointer-events: auto;
}
.about-flex {
    display: flex;
    padding: 2%;
    padding-top: 0.5%   ;
    flex-direction: row;
}
.about1 {
    width: 50%;
}
.about1 > img {
    border-radius: 50%;
    margin-bottom: 10px;
}
.abouttext {
    font-size: larger;
}
.about2 {
    width: 50%;
}

.skills-section h3 {
    color: #ffffff;
    font-size: 1.7rem;
    margin-left: 12px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    position: relative;
    padding: 1rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

.skill-item i {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-name {
    color: white;
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--proficiency);
    background: #70ffa0;
    transition: width 0.8s ease;
}

/* Font Awesome Import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
}

.project-title {
    color: #ffffff;
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 60px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(0, 255, 255, 0.1);
}

.view-all {
    grid-column: 1 / -1;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid;
    border-radius: 4px;
    margin-top: 1.4rem;
}

.section-title {
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
    font-size: 2rem;
}
.footer {
    background-color: #0a0a0a;
    padding: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    width: calc(100% + 4rem); 
    margin-left: -2rem;

}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;

}

.social-icon:hover {
    color: #00ffff;
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
}
.social-links {
    display: flex;
    margin-right: 5%;
    gap: 1.5rem;
    pointer-events: auto;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}


/* Mobile Styles */
@media (max-width: 800px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Mobile First Adjustments */
@media (max-width: 800px) {
  .universal-container {
    height: auto;
    min-height: 100vh;
  }

  .title {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    margin-top: 10% !important;
    line-height: 1.2;
  }

  .conteiner-1 {
    margin-top: 25%;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    height: 225vh;
    padding: 0 1rem;
  }

  .conteiner-1-aboutme {
    font-size: 24px !important;
    padding-top: 10% !important;
    padding-left: 4% !important;
  }

  .about-flex {
    flex-direction: column !important;
    padding: 5% !important;
  }

  .about1, .about2 {
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .section-title {
    padding: 3rem 0 !important;
    font-size: 1.8rem !important;
  }

  .footer {
    padding: 1.5rem !important;
    width: calc(100% + 2rem) !important;
    margin-left: -1rem !important;
  }

  .button1 {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
  }
  
  .conteiner-1-aboutme {
    font-size: 36px !important;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Component-specific Mobile Styles */
.about-flex {
  display: flex;
  padding: 2%;
  flex-direction: row;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-right: 5%;
}

/* Touch Target Optimization */
button, .button1, .social-icon {
  min-width: 44px;
  min-height: 44px;
}


/* Hide non-essential animations on mobile */
@media (max-width: 768px) {
  .skill-bar::after {
    transition: none;
  }
  
  .project-card:hover {
    transform: none;
  }
}

.snake-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snake-trail {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #70ffa0);
    filter: blur(15px);
    animation: snakePath 20s linear infinite;
    opacity: 0.3;
}

.snake-trail:nth-child(2) {
    animation-delay: -5s;
    background: linear-gradient(45deg, #ff00ff, #a070ff);
}

.snake-trail:nth-child(3) {
    animation-delay: -10s;
    background: linear-gradient(45deg, #ffff00, #ffa070);
}

@keyframes snakePath {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(150%, 80%) scale(1.2);
    }
    50% {
        transform: translate(80%, 150%) scale(0.8);
    }
    75% {
        transform: translate(-30%, 120%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}
.cyber-divider {
    height: 4px;
    background: linear-gradient(45deg,
        #ff0000 0%,
        #ff8000 15%,
        #ffff00 30%,
        #00ff00 45%,
        #00ffff 60%,
        #0000ff 75%,
        #8000ff 90%,
        #ff0080 100%
    );
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    animation: hue-rotate 3s linear infinite;
}

.cyber-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,0,0,0.8) 0%,
        rgba(255,128,0,0.8) 20%,
        rgba(255,255,0,0.8) 40%,
        rgba(0,255,0,0.8) 60%,
        rgba(0,255,255,0.8) 80%,
        rgba(0,0,255,0.8) 100%
    );
    animation: 
        scan 3s infinite linear,
        hue-rotate 6s linear infinite;
}

.scan-line {
    position: absolute;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg,
        #ff0000 0%,
        #00ff00 50%,
        #0000ff 100%
    );
    animation: 
        scan 2.5s infinite linear,
        hue-rotate 4s linear infinite;
    box-shadow: 0 0 10px #fff;
    filter: brightness(150%);
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes hue-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
.education-history {
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
}

.education-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    position: relative;
}

.education-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
}

.timeline-content h4 {
    color: white;
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.institution {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.timeline-item.future .timeline-marker {
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-item:hover .timeline-marker {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .education-title {
        font-size: 1.2rem;
        padding-left: 0.8rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
}
