* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
:root{
      /* --background: rgb(24, 24, 24); */
  --background: #121212;
  --text-color1: #4CAF50;
  --text-color2: white;
  --second-background: rgb(21, 21, 21);
  --grad-color: linear-gradient(to right, #4CAF50,#3ec5ff);
}
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

section {
    min-height: 100vh;
    padding: 40px 0; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease; /* Add transition for hover effect */
}

.logo img:hover {
    transform: scale(1.1); /* Slightly enlarge the logo on hover */
}

  /* Scroll indicator */
  .scroll-indicator {
    position: fixed;
    /* right: 100px; */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    right: 8px;
    background: rgba(147, 150, 147, 0.3);
    box-shadow: 0 4px 40px -8px rgba(181, 180, 180, 0.341);
    padding: 24px 6px;
    border-radius: 20px;
    transform: translate(40px, -50%);
    transition: all 400ms ease;
    gap: 40px;
    z-index: 2;
  }
  
  .scroll-indicator a {
    padding: 10px;
    position: relative;
  }
  
  .scroll-indicator a::after {
      content: "";
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #000;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .scroll-indicator.active {
      transform: translate(-50%, -50%);
    }
    
  .scroll-indicator a.active::after {
    background: var(--text-color1);
    transform: translate(-50%, -50%) scale(1.3);
  }
  
  .scroll-indicator a::before {
    content: attr(data-section);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translate(4px, -50%);
    background: #4caf4fea;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    border-radius: 8px;
    margin-right: 3px;
    padding: 4px 8px;
    text-transform: uppercase;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 7px 14px -6px rgba(110, 110, 110, 0.8);
    opacity: 0;
    transition: all 400ms ease;
  }
  .scroll-indicator a:hover::before {
    opacity: 1;
    transform: translate(0, -50%);
  }
  .scroll-indicator .arrow {
    width: 20px;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: #222;
    color: #fff;
    padding: 4px 0;
    display: flex;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
  }
span{
    color: #4CAF50;
}

.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 0.5em 1em;
    color: var(--text-color1);
    background-color: transparent;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 1.563em;
    font-size: 1.1em;
    border: 2px solid var(--text-color1);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-decoration: none; /* Remove underline from link */
}

.btn:hover {
    background-color: var(--text-color1);
    color: var(--text-color2);
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.hero-content h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1; /* Ensure it's below the scroll indicator */

}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
}



.section-title {
    font-size: 30px;
    margin-bottom: 10px;
    text-align: center;
    color: #f2f2f2;
    padding-bottom: 40px; /* Adjust the value as needed */
}


h3 {
    font-size: 28px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 24px;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn{
    display: inline-block;
    padding: 0.5em 1em;
    color: var(--text-color1);
    background-color:transparent;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 1.563em;
    font-size: 1.1em;
    border: 2px solid var(--text-color1);
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
  .btn:hover{
    background-color: var(--text-color1);
    color: var(--text-color2);
  }

/* About section */
.About {
    padding: 80px 0;
    background-color: #111;
}

/* About Me Section */
/* About Me & Certifications Section */
.about-certifications-section {
    padding: 80px 0;
    background-color: #121212;
}

.about-certifications-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #f2f2f2;
}

.about-certifications-section .subheading {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.about-cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Me Text Container */
.about-text-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Intro Text */
.about-intro {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* Points List */
.about-points {
    text-align: left;
    display: inline-block; /* For proper indentation */
    list-style: none;
    padding-left: 0;
}

.about-points p {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

/* Custom Bullet Points */
.about-points p::before {
    content: "•";
    color: #4CAF50;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Highlight Text */
.highlight {
    color: #4CAF50;
    font-weight: bold;
}

/* Strong Text */
strong {
    color: #4CAF50;
}



.certifications-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cert-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cert-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cert-item i,
.cert-item img {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #4CAF50;
}

.cert-item img {
    object-fit: contain;
}

.cert-item p {
    font-size: 0.9em;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .about-cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text-container {
        text-align: center;
    }
}




/* Experience Section */
.experience-section {
    padding: 80px 0;
    background-color: #121212;
}

.experience-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #f2f2f2;
}

.experience-section .subheading {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.journey {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkpoint {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.checkpoint:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #2a2a2a; /* Darker background on hover */
    color: #ffffff; /* Change text color on hover */
}

.checkpoint-icon {
    width: 50px;
    height: 50px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease; /* Smooth transition for icon */
    color: #121212;
}

.checkpoint:hover .checkpoint-icon {
    background-color: #45a049; /* Change icon color on hover */
}

.checkpoint-content {
    flex: 1;
}

.checkpoint-content h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.company-date {
    font-style: italic;
    color: #888;
    margin-bottom: 10px;
}

.short-description {
    font-size: 0.95em;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.expanded-content.active {
    max-height: 500px; /* Adjust based on content */
    padding-top: 10px;
}

.expanded-content p {
    font-size: 0.95em;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.expanded-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.expanded-content ul li {
    font-size: 0.9em;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkpoint {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .checkpoint-icon {
        margin-bottom: 10px;
    }
}



/*                  Projects            */

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #000;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #f2f2f2;
}

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

.project-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.project-image-container:hover .project-image {
    transform: scale(1.1);
}

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

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

.project-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    background-color: #4CAF50;
    color: #121212;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
    }

    .project-image-container {
        height: 150px;
    }
}



/* Footer Styles */
/* Footer Styles */
.footer {
    padding: 80px 0 20px;
    background-color: #121212;
    color: #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
}

.social-info,
.quick-links,
.contact-form {
    flex: 1;
    min-width: 250px;
}

.social-info h3,
.quick-links h3,
.contact-form h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: #e0e0e0;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.contact-info i {
    font-size: 1.2em;
    color: #4CAF50;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links ul li a:hover {
    color: #4CAF50;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 0.95em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #4CAF50;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #45a049;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
    font-size: 0.9em;
    color: #888;
}

.copyright i {
    color: #ff4d4d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .quick-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        width: 100%;
    }
}

/*                  SKILLS            */


/* Skills section */
.Skills {
    padding: 80px 0;
    background-color: #000;
}

.skills-grid {
    display: grid;
    gap: 20px;
    height: auto;
    min-height: 80vh;
}

.item {
    background-color: #1f231eaf;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border-radius: 10px;
    position: relative;
    padding: 20px;
    text-align: center;
}

.item1, .item2, .item3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item1 canvas, .item2 canvas, .item3 canvas {
    max-width: 90%;
    max-height: 90%;
}

.item h4 {
    position: absolute;
    top: 10px;
    left: 10px;
    padding-bottom: 10px;
    font-size: 16px;
}

.item4 {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

.chart-container {
    flex: 0 0 60%;
    margin-right: 20px;
}

.chart-container canvas {
    max-width: 100%;
    max-height: calc(100% - 26px);
}

.chart-text {
    flex: 1;
    text-align: left;
}

.chart-text p {
    font-size: 18px;
    font-weight: 300;
}

/* Mobile Layout (below 768px) */
@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .item {
        /* aspect-ratio: 1 / 1; */
        aspect-ratio: auto;
        min-height: 200px;
    }

    .item4 {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .chart-container {
        flex: 1;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .chart-text p {
        display: none;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
    }
    .footer-content {
        flex-direction: column;
    }

    .social-info,
    .contact-form {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .contact-form {
        margin-top: 20px;
    }

    .roadmap-item {
        margin-bottom: 30px;
    }

    .project-card {
        margin-bottom: 20px;
    }
}

/* Tablet Layout (768px - 900px) */
@media (min-width: 768px) and (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .item {
        aspect-ratio: auto;
        min-height: 250px;
    }

    .item4 {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .chart-container {
        flex: 1;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .chart-text p {
        display: none;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Desktop/PC Layout (above 900px) */
@media (min-width: 901px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 80vh;
    }

    .item1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .item2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .item3 {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
    }

    .item4 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
}








@media (max-width: 768px) {
    section {
        min-height: 100vh; /* Ensures each section takes at least the full viewport height */
        padding: 40px 0; /* Adds some padding to separate sections */
    }
    section:last-of-type {
        min-height: calc(100vh - 80px); /* Adjust based on your footer height */
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
    }
    .hero-image {
        margin-top: 40px;
    }
    .hero-image-container {
        max-width: 100%;
        height: auto
        /* aspect-ratio: 1 / 1; */
    }
    .buttons {
        justify-content: center;
    }


    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .about-image-container {
        margin-bottom: 20px;
    }
    .projects {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
    }

    .social-info,
    .contact-form {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
}


@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}
