
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
 :root {
  --primary-color: #0b0c1a;
  --secondary-color: #13132f;
  --card-bg: #1a1a40cc;
  --text-color: #e0e0ff;
  --highlight-color: #8c54ff;
  --accent-color: #00d0ff;
  --border-color: #2e2e5e;
}
html {
  scroll-behavior: smooth;
}


        body {
            font-family: 'Segoe UI', Tahoma, Geneva, 'Poppins', Verdana, sans-serif;
            font-size: 18px;
            background-color: var(--primary-color);
            background: radial-gradient(circle at top left, #0b0c1a, #13132f 70%);
            color: var(--text-color);
            line-height: 1.8;
            overflow-x: hidden;
            transition: background-color 0.3s ease;
        }

        .certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    margin-top: 2rem;
}

.certificate-card {
    background: linear-gradient(135deg, var(--card-bg), var(--secondary-color));
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.2); */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.certificate-card img {
    border: 2px solid var(--highlight-color);
    padding: 5px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
     transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.certificate-card img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 20px rgba(140,84,255,0.4);
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(140, 84, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 990px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
    }
}

@media (max-width: 580px) {
    .certificates-grid {
        grid-template-columns: 1fr; /* 1 per row on small screens */
    }
}


        
        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
        }

        h2 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
        }

        h3 {
            font-size: 1.6rem;
            margin-bottom: 1rem;
        }

        p {
            margin-bottom: 0.95rem;
            font-size: 1.1rem;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        
        header {
              backdrop-filter: blur(10px);
  background: rgba(19, 19, 47, 0.4);
  border-bottom: 1px solid rgba(140, 84, 255, 0.5);
  box-shadow: 0 0 15px rgba(140, 84, 255, 0.1);
            background-color: var(--secondary-color);
            padding: 1.5rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            transition: background 0.4s ease;
        }
        header.scrolled {
  background: rgba(19, 19, 47, 0.8);
  box-shadow: 0 4px 20px rgba(140, 84, 255, 0.2);
}
        nav {
            
            display: flex;
            justify-content: space-between;
            align-items: center;
           
            font-size: 1rem;
            font-weight: 500;

        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-color);
            text-decoration: none;
        }

        .logo span {
            color: var(--highlight-color);
        }

        .nav-links {
            display: flex;
            list-style: none;
            justify-content: space-between;
         
        }

        .nav-links a {
             margin-left: 2rem;
            color: var(--text-color);
            text-decoration: none;
            font-size: 1.1rem;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--highlight-color);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--highlight-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 90px;
            background: radial-gradient(circle at center, #04043f, #030307 80%);
  animation: bgmove 12s infinite alternate ease-in-out;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            position: relative;
            overflow: hidden;
        }

       /* .hero::before { content: ''; 
        position: absolute; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="none"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="rgba(233,69,96,0.1)" stroke-width="1"/></svg>');
         opacity: 0.3; 
         z-index: 0; 
        }  */
          .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased stroke opacity and size for visibility */
    background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="none"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="rgba(140,84,255,0.25)"  stroke-width="1.2"/> </svg>');
    opacity: 0.3; /* increased for better visibility */
    z-index: 0;
    /* mix-blend-mode: overlay; helps it blend nicely with background */
}

         


        .highlight {
    color: rgb(140, 84, 255);
}
        .hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
           
        }
        .button-container{
            display: flex;
            justify-content: center;
            margin: 40px;
           
        }
        #project-button{
            margin: 40px;
            display: flex;
           justify-content: center;
            align-items: center;
             border-radius: 40px 40px;
        }
        #touch-button{
            margin: 40px;
            display: flex;
           justify-content: center;
            align-items: center;
             border-radius: 40px 40px;
        }

        .highlight {
            font-size: 2.2rem;
            color: var(--highlight-color);
    text-shadow: 0 0 20px rgba(140,84,255,0.4);
    animation: glow 3s infinite alternate;
            margin-bottom: 1.5rem;
            animation: fadeInUp 1s ease;
        }
       @keyframes glow {
  0% { text-shadow: 0 0 15px rgba(140,84,255,0.3); }
  100% { text-shadow: 0 0 30px rgba(140,84,255,0.8); }
}

        .hero p {
            font-size: 1.4rem;
            margin-top: 1rem;
            margin-bottom: 2rem;
            max-width: 600px;
            animation: fadeInUp 1s ease 0.2s both;
             color: var(--text-color);
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            margin-top: 2rem;
            background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
            background-color: var(--highlight-color);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid var(--highlight-color);
            margin-right: 1rem;
            animation: fadeInUp 1s ease 0.4s both;
        }

        .btn:hover {
            background-color: transparent;
            color: var(--highlight-color);
            color:var(--primary-color);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 20px rgba(140, 84, 255, 0.5);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--highlight-color);
            border: 2px solid var(--highlight-color);
        }

        .btn-outline:hover {
            background-color: var(--highlight-color);
            color: white;
        }

     
        section {
            padding: 5rem 0;
            transition: background 0.6s ease;
        }
        section:nth-of-type(odd) {
    background: linear-gradient(160deg, var(--primary-color), #10102a 80%);
}

        section:nth-child(even) {
              background: linear-gradient(160deg, var(--secondary-color), #1c1c3a 90%);
  box-shadow: inset 0 0 30px rgba(140, 84, 255, 0.1);
            background-color: var(--secondary-color);
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 3rem;
            position: relative;
             color: var(--highlight-color);
            letter-spacing: 1px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
             background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
            background-color: var(--highlight-color);
            border-radius: 2px;
        }

       
        .about-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 3rem;
        }

        .about-img {
            flex: 1;
            min-width: 300px;
            position: relative;
        }

        .about-img img {
            width: 100%;
            max-width: 400px;
            border-radius: 10px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 5px solid var(--border-color);
        }

        .about-text {
            flex: 1;
            min-width: 300px;
            font-size: 1.2rem;
        }

        .skill-bars {
            margin-top: 2rem;
        }

        .skill {
            margin-bottom: 1.5rem;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .skill-bar {
            height: 10px;
            background-color: var(--card-bg);
            border-radius: 5px;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            background-color: var(--highlight-color);
            border-radius: 5px;
            width: 10;
            transition: width 2s linear;
        }

       
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            gap: 1.5rem;
        }

        .project-card {
            background: linear-gradient(135deg, var(--card-bg), var(--secondary-color));
            background-color: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
             box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); */
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
             box-shadow: 0 12px 35px rgba(140, 84, 255, 0.3);
        }

        .project-img {
            height: 200px;
            width: full;
            overflow: hidden;
        }

        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-card:hover .project-img img {
            transform: scale(1.1);
        }

        .project-content {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            font-size: 1.3rem;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            margin: 0.5rem 0 1rem;
            gap: 0.5rem;
            font-size: 1.3rem;
        }

        .tag {
            font-size: 1.025rem;
            padding: 0.2rem 0.6rem;
            background-color: rgba(233, 69, 96, 0.2);
            color: var(--highlight-color);
            border-radius: 20px;
            border: 1px solid var(--highlight-color);
        }

        .project-links {
            margin-top: auto;
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .project-links a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .project-links a:hover {
            color: var(--highlight-color);
        }

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

        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: var(--border-color);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            width: 50%;
            margin-bottom: 2rem;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: var(--highlight-color);
            border: 4px solid var(--card-bg);
            top: 15px;
            border-radius: 50%;
            z-index: 1;
        }

        .timeline-item:nth-child(odd) {
            left: 0;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline-item:nth-child(odd)::after {
            right: -10px;
        }

        .timeline-item:nth-child(even)::after {
            left: -10px;
        }

        .timeline-content {
            background: linear-gradient(135deg, var(--card-bg), var(--secondary-color));
            padding: 20px;
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            position: relative;
            font-size: 1.2rem;
        }

        .timeline-content h3 {
            margin-top: 0;
            color: var(--highlight-color);
        }
        .timeline-content:hover {
     transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(140, 84, 255, 0.3);
}

        .timeline-date {
            font-weight: 600;
            color: var(--highlight-color);
            margin-bottom: 0.5rem;
        }

        
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 3rem;
            align-items: stretch;
        }

        .contact-info {
            flex: 1;
            min-width: 300px;
            font-size: 1.1rem;
        }

        .contact-info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 2rem;
        }

        .contact-icon {
            font-size: 1.8rem;
            color: var(--highlight-color);
            margin-right: 1rem;
            min-width: 30px;
        }

        .contact-form {
            flex: 1;
            min-width: 300px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-control {
            width: 100%;
            padding: 1rem;
            background-color: var(--secondary-color);
            border: 1px solid var(--border-color);
            border-radius: 5px;
            color: var(--text-color);
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--highlight-color);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

       
        footer {
           background: linear-gradient(160deg, var(--secondary-color), #0b0c1a 90%);
  padding: 3rem 0;
  text-align: center;
  color: #aaa;
  border-top: 1px solid rgba(140, 84, 255, 0.2);
        }

        .social-links {
            display: inline-flex;
            justify-content: center;
            list-style: none;
            margin: 2rem 0;
            gap: 1.5rem;
        }
        footer .social-links a {
  color: var(--highlight-color);
  border: 2px solid var(--highlight-color);
  border-radius: 50%;
  padding: 0.5rem;
  margin: 0 0.5rem;
  display: inline-flex;
  transition: 0.3s ease;
}

footer .social-links a:hover {
  color: var(--text-color);
  background: var(--highlight-color);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(141, 84, 255, 0.334);
}
        
        .footer-text {
            color: #aaa;
            font-size: 0.9rem;
        }

        
    @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease, transform 1s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

       
 @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            h2 {
                font-size: 2rem;
            }
            .hero {
                text-align: center;
            }
            .hero-content {
                margin: 150px auto 0 auto;
            }
            .about-content {
                flex-direction: column;
            }
            .timeline::after {
                left: 31px;
            }
            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }
            .timeline-item:nth-child(even) {
                left: 0;
            }
            .timeline-item::after {
                left: 15px;
            }
            .timeline-item:nth-child(odd)::after,
            .timeline-item:nth-child(even)::after {
                right: auto;
            }
        }

 @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background-color: var(--secondary-color);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: left 0.4s ease;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            }
            .nav-links.active {
                left: 0;
            }
            .nav-links li {
                margin: 1.5rem 0;
            }
            .hamburger {
                display: block;
            }
            .btn {
                display: block;
                width: 80%;
                margin: 1rem auto;
                text-align: center;
            }
        }

@media (max-width: 576px) {
            h1 {
                font-size: 2rem;
            }
            h2 {
                font-size: 1.5rem;
            }
            .container {
                width: 95%;
            }
            section {
                padding: 3rem 0;
            }
            .hero { padding: 2rem 1rem; }
}
.container .social-links a{
    display: inline flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    border: 0.2rem solid var(--highlight-color);
    border-radius: 50%;
    color: var(--highlight-color);
    /* margin: 5px 10px; */
    font-size: 1.1rem;
    transition: 0.2s linear;
}
.container .social-links a:hover{
    scale: 1.2;
    color: var(--text-color);
    background-color: var(--border-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}
.skill-image{
    height: 20px;
    width: 20px;
}
@media (max-width: 992px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    p  { font-size: 0.85rem; }
    .certificates-grid { grid-template-columns: 1fr; }
}
 section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    transition: background-color 0.6s ease;
}

/*alternate background for every 2nd section */
section:nth-of-type(even) {
    background-color: var(--secondary-color);
} 

/* --- Alternate Section Backgrounds --- */
 section:nth-child(odd) {
    background: linear-gradient(135deg, #161d31, #1f2a44);
} 

 section:nth-child(even) {
    background: linear-gradient(135deg, #0d1323, #141b33);
} 


/* --- Smooth transitions between sections --- */
section {
    scroll-margin-top: 80px;
}
section:nth-child(odd), section:nth-child(even) {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
section h2:hover {
    text-shadow: 0 0 20px rgba(140,84,255,0.7);
}
