* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
/* Customize the scrollbar */
::-webkit-scrollbar {
    width: 10px; 
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}

/* Handle (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color); 
}

/* Colors */
:root {
    --bg-color: #0A0F1F;
    --second-bg-color: #11192E;
    --text-color: #E5EAF5;
    --accent-color: #00F6FF;
    --main-color: #FF00A6;
    --accent-green: #39FF14;
    --accent-purple: #9D4EDD;
}


/* Base Styles */
html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.6rem;
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: none; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: var(--accent-color);
}

.back-to-top.show {
    display: flex; 
}

/* Header */
.header {
    padding: 2rem 10%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
}

.logo span {
    background: linear-gradient(270deg, var(--main-color) 10%, var(--accent-color) 100%);
    background-clip: text;
    color: transparent;
}

/* Navigation */
.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3rem;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;    
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    display: none;
}

/* Buttons */
.gradient-btn {
    background: linear-gradient(270deg, var(--main-color) 10%, var(--accent-color) 100%);
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-left: 1rem;
}

.gradient-btn:hover {
    transform: scale(1.05);
}

.gradient-btn:focus {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* Heading */
section {
    min-height: 100vh;
    padding: 10rem 15%;
}

.home {
     display: flex;
    align-items: center;
    justify-content: flex-end; 
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.home-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.gradient-name {
    background: linear-gradient(270deg, var(--main-color) 10%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content h3 {
    font-size: 1.8rem;  
    font-weight: normal; 
    margin: 1rem 0;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.35);
}

.overlay {
 position: relative;
    z-index: 1;
    color: white;
    text-align: right; 
    max-width: 500px; 
    margin-right: 5rem;
    top: 0; 
    transform: none; 
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.overlay h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Rotating job titles */
.flashing-text span {
    display: none;
    font-size: 2rem;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
    animation-delay: calc(var(--i) * 1s);
    color: var(--accent-color);
}

.flashing-text span.active {
    display: inline-block;
}

.country-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 5px;
}

/* Flag styling */
.flag {
    width: 20px;
    height: auto;
    border-radius: 3px;
    animation: wave 2s infinite ease-in-out;
    transform-origin: left center; 
}
/* Local Time Styling */
#local-time {
    margin: 0;            
    padding: 0;           
    font-size: 1.4rem;    
    font-weight: bold; 
    color: #00e1ff; 
    background: rgba(0, 0, 0, 0.4);      
    text-align: center; 
    padding: 10px 20px;
    border-radius: 5px;
}


/* Waving effect */
@keyframes wave {
    0%   { transform: rotate(0deg) skewY(0deg); }
    25%  { transform: rotate(2deg) skewY(2deg); }
    50%  { transform: rotate(0deg) skewY(0deg); }
    75%  { transform: rotate(-2deg) skewY(-2deg); }
    100% { transform: rotate(0deg) skewY(0deg); }
}


@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* Responsive stacking */
@media (max-width: 900px) {
    .home-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .home-video video {
        width: 100%;
        max-width: 400px;
    }
}



/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.2) translateY(-5px) rotate(5deg);    
}

/* Button Group */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-group .btn {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 3rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border: 2px solid transparent;
}

.btn-group .btn:nth-of-type(1) {
    background: linear-gradient(270deg, var(--main-color) 10%, var(--accent-color) 100%);
    color: white;
}

.btn-group .btn:nth-of-type(1):hover {
    transform: scale(1.05);
}

.btn-group .btn:nth-of-type(2) {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-group .btn:nth-of-type(2):hover {
    transform: scale(1.05);
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
}

/* =======================
   TECH STACK SLIDER
======================= */
/* Slider */
.tech-stack {
    background-color: var(--second-bg-color); 
    padding: 30px 0; 
    margin: 0;
}

.slider {
    position: relative;
    width: 80%; 
    height: 120px; 
    margin: 0 auto; 
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode: difference;
    opacity: 0.8;
    z-index: 1;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
    border-radius: 15px;
    padding: 10px; 
}

/* List Container */
.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

/* Individual Slider Items */
.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s);
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Font Awesome Icons */
.slider .list .item i {
    font-size: 48px;
    color: var(--main-color);
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.slider .list .item i:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

/* Images Inside Items */
.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-controls {
    text-align: center;
    margin-top: 10px;
}

.slider-controls button {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.slider-controls button:hover {
    background-color: var(--accent-color);
}

/* Animation Keyframes */
@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

/* Pause Animation on Hover */
.slider:hover .item {
    animation-play-state: paused;
    filter: grayscale(1); 
}

.slider .item:hover {
    filter: grayscale(0);
}
@media only screen and (max-width: 768px) {
    .slider {
        width: 90%;
        height: 80px;
    }

    .slider .list .item i {
        font-size: 36px; 
    }
}

/* Services */
.heading {
    text-align: center;
    font-size: 5rem;
    margin: 3rem 0;
    color: var(--text-color);
}

.services {
    background-color: white;
    color: black;
    padding: 0;
    margin-top: -10rem;
}

.services h2 {
    color: var(--second-bg-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 2.5rem;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 500px;
    width: 300px;
    min-height: 400px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}

.service-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.service-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}

.service-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}

.service-info i {
    font-size: 8rem;
}
/* About Section */
.about {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 5rem 2rem;
    overflow: hidden;
    min-height: 100vh;
}

/* Background Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind everything */
}

/* Image Styling */
.about-img {
    flex: 0 0 auto;
    z-index: 2;
}
.about-img img {
    width: 250px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
}

/* Text Styling */
.about-content {
    flex: 1;
    max-width: 600px;
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 10px;
    z-index: 2; /* Above canvas */
    color: #fff;
}

.about-content h2 {
    font-size: 2.5rem;
}

.about-content span {
    color: var(--main-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    .about-img img {
        width: 200px;
    }
}




/* Projects */
.projects {
  text-align: center;
  padding: 5rem 2rem;
  background: #0a0a0a;
}

.projects .heading {
  font-size: 3rem;
  color: #ff00aa;
  margin-bottom: 3rem;
}

/* Spiderweb Container */
.spiderweb-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 2rem;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Main Card in the center */
.main-card {
  grid-column: 2;
  grid-row: 2;
}

/* Project Card */
.project-card {
  width: 180px;
  height: 180px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-front {
  background: linear-gradient(135deg, #ff00aa, #7700ff);
}

.card-back {
  background: #111;
  transform: rotateY(180deg);
  flex-direction: column;
}

.btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #ff00aa;
  border-radius: 20px;
  color: white;
  text-decoration: none;
}

.btn:hover {
  background: #7700ff;
}



/* Certificates Section */
.certificates {
    background-color: var(--second-bg-color);
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.certificates .heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
}

.swiper-container {
    width: 100%;
    height: 400px; 
    position: relative;
    overflow: hidden;
}

.certificate-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.certificate-card img {
    width: 100%;
    max-width: 200px; 
    border-radius: 10px;
    margin-bottom: 15px;
}

.certificate-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.certificate-card p {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.certificate-card .btn {
    background-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.certificate-card .btn:hover {
    background-color: var(--accent-color);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent-color);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background-color: var(--main-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

/* Contact + Quiz Section Layout */
.contact-quiz-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 0;
}

/* Card Styles */
.card {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    color: white;
    width: 350px;
    transition: 0.3s ease;
}

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

/* Headings */
.card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 8px #ff00ff, 0 0 15px #00f0ff;
}

/* Contact Email */
.contact-email a {
    color: #00f0ff;
    font-weight: bold;
    text-decoration: none;
    text-align: right;
    margin: 15px 0;
    font-size: 1.3rem;
}

.contact-email a:hover {
    text-shadow: 0 0 10px #ff00ff, 0 0 15px #00f0ff;
} 

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: left;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    font-size: 2rem;
    transition: 0.3s;
}

.linkedin {
    color: #0e76a8;
}

.github {
    color: #fff;
}

.social-link:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px #ff00ff;
}

/* Quiz Form */
.quiz-card form p {
    font-weight: bold;
    margin-top: 15px;
}

.quiz-card button {
    background: linear-gradient(90deg, #ff00ff, #00f0ff);
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
}

.quiz-card button:hover {
    box-shadow: 0 0 15px #00f0ff;
}

/* Quiz Result */
#quizResult {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 1.3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-quiz-section {
        flex-direction: column;
        align-items: center;
    }
}
/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.footer .list {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer .list li a {
    color: #00f0ff;
    text-decoration: none;
    transition: 0.3s;
}

.footer .list li a:hover {
    text-shadow: 0 0 10px #ff00ff;
}

.futuristic-quote {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    color: #00f0ff;
    margin-top: 10px;
    padding: 10px;
    text-shadow: 0 0 5px #00f0ff, 0 0 10px #ff00ff;
}

.footer-clock {
    margin-top: 5px;
    font-size: 1rem;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

/* Glitch Effect */
.glitch {
    font-size: 1.2rem;
    color: #fff;
    position: relative;
    display: inline-block;
    margin-top: 10px;
    animation: glitch 1s infinite;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    background: transparent;
    clip: rect(0, 0, 0, 0);
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitchTop 1s infinite;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    animation: glitchBottom 1s infinite;
}

@keyframes glitchTop {
    0% { clip: rect(0, 900px, 0, 0); }
    25% { clip: rect(0, 900px, 30px, 0); }
    50% { clip: rect(0, 900px, 0, 0); }
    75% { clip: rect(0, 900px, 40px, 0); }
    100% { clip: rect(0, 900px, 0, 0); }
}
@keyframes glitchBottom {
    0% { clip: rect(50px, 900px, 90px, 0); }
    25% { clip: rect(20px, 900px, 80px, 0); }
    50% { clip: rect(50px, 900px, 90px, 0); }
    75% { clip: rect(20px, 900px, 80px, 0); }
    100% { clip: rect(50px, 900px, 90px, 0); }
}


/* Responsive Styles */
@media only screen and (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--second-bg-color);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--main-color);
    }

    .home {
        flex-direction: column;
        gap: 5rem;
    }

    .home-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 1.6rem;
    }

    .home-content p {
        font-size: 1.4rem;
    }

    .home-img {
        width: 80vw;
        height: 80vw;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-box {
        width: 80%;
    }

    .projects-box {
        grid-template-columns: 1fr;
    }

    .project-card img {
        max-width: 100%;
    }

    .about {
        flex-direction: column;
        gap: 5rem;
    }

    .about-img img {
        width: 80vw;
    }

    .about-content h2 {
        font-size: 4rem;
    }

    .contact form {
        flex-direction: column;
        gap: 1rem;
    }
}