/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #0F0C29;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 20px;
    min-height: 100vh;
}

/* Navbar */
nav {
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    background: rgba(243, 97, 97, 0);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.4px);
    -webkit-backdrop-filter: blur(6.4px);
    padding: 10px 30px;
    position: relative;
    overflow: hidden;
}

nav ul::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: tubelight 2.5s linear infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.148);
    padding: 20px;
}

nav li {
    margin: 0 35px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ccc;
}

/* Home Section */
#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #080615, #302b6382);
}

#home h1 {
    font-size: 5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    margin-top: 50px;
    line-height: 1.1;
}

#home p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #ddd;
    margin-bottom: 20px;
}

#home .subtitle {
    font-size: 4rem;
    font-family: 'Bebas Neue', sans-serif;
    -webkit-text-stroke: 1px #ffffff3e;
    color: transparent;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: 2px;
}

#home button {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.468);
    color: #fff;
    padding: 15px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#home button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social {
    display: flex;
    margin-top: 20px;
}

.social a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social a:hover {
    color: #ccc;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--font); font-size: 0.7rem;
    color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
    animation: fadeInUp 0.7s 0.7s ease both;
    z-index: 5;
}
.mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 5px;
}
.wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease infinite;
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 2;
    pointer-events: none;
}

/* .glow {
            position: absolute;
            width: 40vw;
            height: 40vh;
            background: radial-gradient(circle, rgba(72, 0, 255, 0.093), transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            animation: pulse 8s infinite alternate;
            filter: blur(30px);
        } */


.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}


/* About Section */
#about h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 30px;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

.about-image img {
    max-width: 100%;
    height: 30rem;
    border-radius: 20px;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
}

#about .Download {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.468);
    color: #fff;
    padding: 15px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#about .Download:hover {
    background: rgba(255, 255, 255, 0.2);
}



/* Skills Section */
#skills {
    text-align: center;
}

#skills h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 30px;
}

.skills-container {
    overflow-x: hidden;
    width: 100%;
}

.skills-grid {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #fff;
    min-width: 150px;
    /* transition: all 0.3s ease; */
}

.skill:hover{
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

.skill i {
    font-size: 3rem;
}

.skill img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Colorful icons */
.fa-html5 {
    color: #e44d26;
}

.fa-css3-alt {
    color: #264de4;
}

.fa-js-square {
    color: #f7df1e;
}

.fa-figma {
    color: #f24e1e;
}

.fa-php {
    color: #777bb4;
}

.fa-react {
    color: #61dafb;
}

.fa-palette {
    color: #ff69b4;
}

.fa-git-alt {
    color: #f05032;
}

.fa-wind {
    color: #06b6d4;
}

.fa-bootstrap {
    color: #563d7c;
}

.fa-search {
    color: #4285f4;
}

.fa-microsoft {
    color: #0078d4;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-left: 100px;
    padding-right: 100px;
    margin-top: 55px;
}

.skills-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-category:hover {
    transform: translateX(-5px);
}

.skills-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.skills-category h3 i {
    color: #4a6cf7;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

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

.skill-progress {
    height: 8px;
    background: #5d7cf663;
    border-radius: 5px;
    width: 0;
    transition: width 0.8s ease;
}

/* Skills Cards Section */
.skills-cards {
    padding: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    color: #4a6cf7;
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: left;
}

.skill-card p {
    font-size: 14px;
    margin-bottom: 0;
    text-align: left;
}

/* Grid Layout */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px;
}


/* Education Section */
#education {
    text-align: center;
}

#education h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, #fff, #555);
}

.education-item {
    position: relative;
    margin-left: 80px;
    margin-bottom: 40px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(44, 44, 44, 0.303);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.education-item i {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ccc;
}

.education-item p {
    margin: 5px 0;
    color: #ddd;
}

.education-item a {
    color: #ddd;
    text-decoration: none;
}

.education-item a:hover {
    color: #fff;
    text-decoration: none;
}


/* Projects Section */
#projects {
    text-align: center;
    position: relative;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    padding-left: 100px;
    padding-right: 100px;
}

.project-card {
    text-align: left;
}

.project-card img {
    width: 100%;
    border-radius: 16px 16px 0 0;
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #fff;
    padding-left: 1.5rem;
}

.project-card p {
    color: #ddd;
    margin-bottom: 10px;
    padding-left: 1.5rem;
}

/* More realistic glass */
.glass-realistic {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.393);
    transition: ease-in-out 0.2s;
}

.glass-realistic:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Tags styling */
.tags {
    margin-bottom: 10px;
    padding-left: 1.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.tags span {
    display: inline-block;
    background: rgba(74, 108, 247, 0.2);
    border: 1px solid rgba(74, 108, 247, 0.5);
    border-radius: 50px;
    padding: 5px 15px;
    margin-right: 8px;
    margin-bottom: 5px;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.2;
}

.project-card .buttons {
    display: flex;
    padding-left: 1.5rem;
}

.project-card .buttons a {
    color: #fff;
    margin-right: 20px;
    font-size: 1.5rem;
}


/* Contact Section */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 30px;
    text-align: center;
}

.section-title span {
    display: block;
    font-size: 20px;
    margin: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    padding: 30px;
    margin-left: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.393);
    transition: ease-in-out 0.3s;
}

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

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-info p {
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 108, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.info-item:hover i {
    transform: scale(1.1);
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
}

.social-contact {
    display: flex;
    margin-top: 20px;
}

.social-contact a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: ease-in-out 0.2s;
}

.social-contact a:hover {
    color: #ccc;
    transform: translateY(-3px);

}

.contact-form {
    flex: 1;
    padding: 30px;
    margin-right: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.393);
    transition: ease-in-out 0.2s;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.468);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.submit:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer .container {
    padding-left: 100px;
    padding-right: 100px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    padding-bottom: 20px;
}





/* Responsive Design */
@media (max-width: 1200px) {
  .about-content {
    padding-left: 50px;
    padding-right: 50px;
  }
  
  .skills-container,
  .project-grid {
    padding-left: 50px;
    padding-right: 50px;
  }
  
  .contact-info {
    margin-left: 50px;
  }
  
  .contact-form {
    margin-right: 50px;
  }
  
  footer .container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 992px) {
  #home h1 {
    font-size: 4rem;
  }
  
  #home .subtitle {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 40px;
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .about-image img {
    height: auto;
    max-height: 25rem;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-info {
    margin-left: 30px;
    margin-right: 30px;
  }
  
  .contact-form {
    margin-left: 30px;
    margin-right: 30px;
  }
}

@media (max-width: 768px) {
  /* Hide navbar on mobile */
  nav {
    display: none;
  }
  
  #home h1 {
    font-size: 4rem;
  }
  
  #home .subtitle {
    font-size: 2.5rem;
  }
  
  #home p {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .about-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .skills-container,
  .project-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .skills-grid {
    gap: 15px;
  }
  
  .skill {
    min-width: 120px;
    padding: 15px;
  }
  
  .skill i {
    font-size: 2.5rem;
  }
  
  .skill img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .education-item {
    margin-left: 60px;
    padding: 20px;
  }
  
  .education-item i {
    left: -35px;
  }
  
  .contact-info,
  .contact-form {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  /* Keep contact form looking the same */
  .contact-form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.393);
  }
  
  footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  #home h1 {
    font-size: 2.5rem;
  }
  
  #home .subtitle {
    font-size: 2rem;
  }
  
  .about-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .skills-container,
  .project-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .skills-category {
    padding: 20px;
  }
  
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .education-item {
    margin-left: 50px;
    padding: 15px;
  }
  
  .education-item i {
    left: -30px;
    font-size: 1.2rem;
  }
  
  .contact-info,
  .contact-form {
    margin-left: 15px;
    margin-right: 15px;
    padding: 20px;
  }
  
  .info-item {
    flex-direction: row !important;
    text-align: left !important;
    justify-content: flex-start !important;
}
  
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title span {
    font-size: 1rem;
  }
}

/* Mobile landscape and small devices */
@media (max-width: 480px) {
  #home h1 {
    font-size: 3rem;
  }
  
  #home .subtitle {
    font-size: 2.5rem;
  }
  
  .skill {
    min-width: 100px;
    padding: 20px;
    font-size: 1rem;
    border-radius: 20px;
  }
  
  .skill i {
    font-size: 2rem;
  }
  
  .skill img {
    width: 2rem;
    height: 2rem;
  }
  
  .skills-grid {
    animation: scroll 15s linear infinite;
    
  }

  
  .project-card h3 {
    font-size: 1.3rem;
  }
  
  .tags span {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .info-item {
    flex-direction: row !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

}

/* Very small devices */
@media (max-width: 360px) {
  #home h1 {
    font-size: 1.8rem;
  }
  
  #home .subtitle {
    font-size: 1.5rem;
  }
  
  .skill {
    min-width: 80px;
    font-size: 0.9rem;
  }
  
  .skill i {
    font-size: 1.8rem;
  }
  
  .skill img {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
  .grid-overlay {
    background-size: 50px 50px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .skill-card:hover,
  .glass-realistic:hover,
  .contact-info:hover,
  .contact-form:hover {
    transform: none;
  }
  
  #home button:hover,
  #about .Download:hover,
  .submit:hover {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* Print styles */
@media print {
  .gradient-background,
  .grid-overlay,
  .particles-container,
  nav,
  .social,
  .social-contact,
  .buttons {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
}