
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding/borders don't affect width */
    text-decoration: none;  /* Clean links */
    border: none;           /* Remove default borders */
    outline: none;          /* Remove outline for most elements */
    scroll-behavior: smooth; /* Enable smooth scrolling */
    font-family: 'Poppins', sans-serif; /* Default font */
}




:root {
    --bg-color: #18092a;         /* Deep dark purple - Background */
    --second-bg-color: #2A1A3F;  /* Slightly lighter purple - Secondary Background */
    --text-color: #eeeeee;       /* Light grey - Main text */
    --main-color: #9f86c0;       /* Soft purple accent - Main elements */
    --highlight-color: #b78eea;  /* Brighter purple for highlights */
    --button-color: #6a5acd;     /* Elegant lavender - Button */
    --link-hover: #d1b3ff;       /* Soft lilac - Hover effects */
}

html, body {
    font-size: 62.5%;
    height: 100%;  
    overflow-x: hidden; 
}

body {
    background-color: var(--bg-color); /* Dark purple background */
    color: var(--text-color);            /* Light text color */
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}



/* ===================
   Navigation Bar
   =================== */
header {
    background-color:var(--bg-color); /* Slightly lighter purple for the header */
    padding: 2rem 9%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}


/* Logo */
.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color); /* Subtle purple accent for the logo text */
    cursor: default;
}

/* Navbar Container */
.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}


.navbar a:hover {
    color: var(--main-color);

}

.navbar a.active {
    color: var(--main-color);
  }


/* ===================
   Hero Section
   =================== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero Content */
.hero-content {
    font-size: 3.2rem;
    font-weight: 700;
}

/* Title & Subtitle */
.hero h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}



.hero h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

span{
    color: var(--main-color);
}

.hero h3:nth-of-type(2) {
    margin-bottom: 2rem
}

.hero p {
    font-size: 1.6rem;
    margin-right: 50px;
    
}

/* Highlight Text */
.highlight {
    color:var(--highlight-color);
}

/* Social Links */
.social-links {
    margin-top: 100px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%; /* Circular icons */
    font-size: 2rem;
    color: var(--main-color); /* Icon color */
    margin: 3rem 1.5rem 3rem 0;
    transition: all 0.5s ease; /* Smooth animation */
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}


/* ===================
   Hero Image + Animation
   =================== */
.hero-image {
    position: relative;
    width: 390px;
    height: 390px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Ensures the image stays above border animation */
    border: 4px solid var(--main-color); /* Adds subtle border */
    box-sizing: border-box; /* Avoids size expansion due to border */
}

/* Animated Circular Gradient Border */
.animated-border {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: conic-gradient(
      transparent,
      var(--main-color),
      transparent 30%
    );
    animation: rotateRing 4s linear infinite;
    z-index: 1; /* Behind the image */
}

/* Rotation Animation */
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================
   About Me Section
   =================== */
   .about {
    background: var(--second-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0; /* ensure enough vertical padding */
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    gap: 50px;
}

.about-image {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: visible; /* VERY IMPORTANT CHANGE: must be visible for pseudo-elements */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before,
.about-image::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    z-index: 1;
}

.about-image::before {
    border-top-color: var(--main-color);
    border-bottom-color: var(--main-color);
    animation: rotate 5s linear infinite;
}

.about-image::after {
    border-left-color: var(--main-color);
    border-right-color: var(--main-color);
    animation: rotateReverse 5s linear infinite;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2; /* image always on top */
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}



/* Right Side - About Content */
.about-content {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
}

.about-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
}

.about-content p {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 10px;
    line-height: 1.6;
}

/* Experience Section Styles */
.experience {
    background: var(--bg-color);
    padding: 6rem 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    color: var(--main-color);
    text-align: center;
}

/* Timeline Container */
.timeline {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 14px;
    width: 2px;
    height: 99%;
    background: var(--main-color);
}

/* Timeline Item */


.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    padding-left: 100px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid var(--main-color); /* Clear border */
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.4s ease, border-color 0.5s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--second-bg-color);
    transition: width 0.7s ease;
    z-index: -1;
}

.timeline-item:hover::after {
    width: 100%;
}

.timeline-item:hover {
    transform: translateY(-8px);
    background-color: var(--second-bg-color);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 40px rgba(162, 141, 189, 0.4);
}



.timeline-item:last-child {
    margin-bottom: 0;
    
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
    top: 5px;
}

.timeline-date {
    font-size: 1.6rem;
    color: var(--highlight-color);
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-item h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-item .company {
    color: var(--main-color);
}

.timeline-item ul {
    font-size: 1.6rem;
    line-height: 1.8;
    list-style: disc;
    padding-left: 20px;
}

.timeline-item ul li {
    margin-bottom: 8px;
}

/* Education */

.education {
    background: var(--bg-color);
    padding: 6rem 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education .section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    color: var(--main-color);
    text-align: center;
}

.education .timeline {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.education .timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -2rem;
    width: 2px;
    height: 88%;
    background: var(--main-color);
}

.education .timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    padding-left: 100px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid var(--main-color);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    
}

.education .timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--second-bg-color);
    transition: width 0.7s ease;
    z-index: -1;
}

.education .timeline-item:hover::after {
    width: 100%;
}

.education .timeline-item:hover {
    transform: translateY(-8px);
    background-color: var(--second-bg-color);
    box-shadow: 0 10px 20px rgba(159, 134, 192, 0.4);
}

.education .timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
    top: 5px;
}

.education .timeline-date {
    font-size: 1.6rem;
    color: var(--highlight-color);
    margin-bottom: 8px;
    display: inline-block;
}

.education .timeline-item h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.education .timeline-item ul {
    font-size: 1.6rem;
    line-height: 1.8;
    list-style: disc;
    padding-left: 20px;
}

.education .timeline-item ul li {
    margin-bottom: 8px;
}


/* Skills Section */
.skills {
    background: var(--bg-color);
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills .section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    color: var(--main-color);
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.skill-card {
    background-color: var(--second-bg-color);
    width: 300px;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(159, 134, 192, 0.6);
    border-color: var(--highlight-color);
}

.skill-icon {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.skill-card p {
    font-size: 1.4rem;
    color: var(--text-color);
    line-height: 1.6;
}

/*  Projects Section */

.projects {
  background: var(--bg-color);
  padding: 6rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 330px));;
  gap: 3rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(159, 134, 192, 0.6);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px 15px; 
    background: linear-gradient(
      rgba(41, 22, 66, 0.7), 
      rgba(159, 134, 192, 0.7) 
    );
    color: var(--text-color);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-radius: inherit; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    text-align: center;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.section-title {
color: var(--text-color);
}

.project-info h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.project-info p {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.project-info a {
  color:var(--text-color);
  font-size: 3rem;
  transition: color 0.3s;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  padding: 5px;
  border: 0.2rem solid var(--text-color);
  margin-top: 10px;
}

.project-info a:hover {
  color: var(--second-bg-color);
}

/* Certifications Section Styles */
.certifications {
    background: var(--bg-color);
    padding: 6rem 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .certifications-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
  }
  
  .certification-card {
    position: relative;
    top: 50px;
    width: 250px;
    height: 300px;
    border-radius: 10%;
    box-shadow: 0 4px 12px rgba(159, 134, 192, 0.6);
    transition: transform 0.4s ease;
    cursor: pointer;
  }
  
  .certification-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .certification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(41, 22, 66, 0.7), 
        rgba(159, 134, 192, 0.7) 
      );
    border-radius: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .certification-card:hover {
    transform: translateY(-10px);
  }
  
  .certification-card:hover .certification-overlay {
    opacity: 1;
  }
  
  .certification-overlay a {
    font-size: 2.5rem;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .certification-overlay a:hover {
    background: var(--link-hover);
    color: var(--second-bg-color);
    transform: scale(1.1);
  }
  
  /* Add these CSS animations */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-up {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add to your existing CSS */
section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate], [data-animate-child] {
    animation-fill-mode: forwards !important;
    will-change: transform, opacity;
}

/* Mobile Menu Icon */
#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header */
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--bg-color);
        padding: 1rem 4%;
        transition: .3s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        margin: 3rem 0;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        margin-top: 3rem;
    }

    .hero p {
        margin-right: 0;
    }

    .hero-image {
        width: 280px;
        height: 280px;
    }

    /* About Section */
    .about-image {
        order: -1;
        margin-bottom: 3rem;
    }

    /* Projects Section */
    .projects-container {
        grid-template-columns: 1fr;
    }

    /* Timeline Adjustments */
    .timeline {
        width: 90%;
    }

    .timeline-item {
        padding-left: 6rem;
    }

    .timeline::before {
        left: -1.5rem;
    }

    .timeline-item::before {
        left: -2.2rem;
    }

    /* Certifications */
    .certification-card {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }

    .hero h1 {
        font-size: 4.5rem;
    }
}