/* Paste this at the very top of your style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@700;800&display=swap');

/* Apply to the whole site */
body {
    font-family: 'Inter', sans-serif;
}

/* Apply to your big titles */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px; /* Makes titles look more "designed" */
}

.hero {
    height: 90vh; /* Takes up 90% of the screen height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers your text vertically */
    align-items: center;     /* Centers your text horizontally */
}
  body {
  margin: 0;
  min-height: 100vh;
  background-color: #1a1a1a; 
  /* Added commas after each gradient below */
  background-image: 
    radial-gradient(at 0% 0%, rgba(50, 50, 50, 0.8) 0, transparent 50%), 
    radial-gradient(at 50% 10%, rgba(70, 70, 80, 0.5) 0, transparent 40%), 
    radial-gradient(at 100% 0%, rgba(40, 40, 40, 0.8) 0, transparent 50%), 
    radial-gradient(at 80% 80%, rgba(60, 60, 75, 0.4) 0, transparent 50%), 
    radial-gradient(at 20% 90%, rgba(45, 45, 45, 0.7) 0, transparent 50%);
  background-attachment: fixed;
  color: white;
}
a {
  color: white;
  text-decoration: underline;
}
#skills {
    padding: 40px 20px;
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap; /* This stops them from going off-screen */
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.2); /* Glass effect */
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
}
#work h2 {
  text-align: center;
}
footer {
    background-color: #1a002a; /* A much darker purple for contrast */
    padding: 50px 20px;
    text-align: center;
    color: white;
}

.email-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: white;
    color: #1a002a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}
#certifications {
    padding: 60px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2); /* Darker purple area */
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cert-card {
    background: white;
    color: purple;
    padding: 20px;
    border-radius: 15px;
    width: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-10px); /* Lifts up when you look at it */
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.view-link {
    display: inline-block;
    margin-top: 15px;
    color: purple;
    font-weight: bold;
    text-decoration: underline;
}
#about {
    padding: 60px 25px; /* Gives the text room to breathe */
    background-color: rgba(0, 0, 0, 0.1); /* Subtle dark tint to separate it */
}

#about h2 {
    margin-bottom: 25px;
    font-size: 2rem;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8; /* This is the secret to making text look 'lengthy' and elegant */
    margin-bottom: 20px;
    text-align: justify; /* Makes the edges of the paragraphs straight */
    opacity: 0.9;
}
.cert-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:active {
    transform: scale(0.98); /* Shrinks slightly when tapped */
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
header {
    background-color: transparent; /* Makes it see-through */
    position: absolute; /* Sits on top of the hero section */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it stays above the hero text */
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
body {
    background: linear-gradient(135deg, #4b0082 0%, #800080 100%);
    background-attachment: fixed; /* This keeps the background still while you scroll */
    color: white;
}
#backToTop {
    display: none; /* Hidden until scroll */
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    
    /* Border & Glow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 22px;
    border-radius: 50%;
    
    /* Center the arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Shadow & Animation */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px); /* Gentle float up */
}

#backToTop:active {
    transform: scale(0.9); /* Squishes slightly when tapped */
}
.tech-stack-container {
    margin-bottom: 50px;
}
.contact-links {
    display: flex;
    flex-direction: column; /* Stacks them vertically */
    gap: 15px; /* Adds space between each link */
    margin-top: 20px;
    align-items: center;
}

.contact-item {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1); /* Subtle glass box */
    padding: 10px 20px;
    border-radius: 8px;
    width: fit-content; /* Only as wide as the text */
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:active {
    background: rgba(255, 255, 255, 0.3);
}
.profile-pic {
    width: 180px;        /* Sets a fixed professional size */
    height: 180px;       /* Keeps it a perfect square */
    border-radius: 50%;  /* Makes the image a circle */
    object-fit: cover;   /* Prevents the face from looking "squished" */
    border: 3px solid white; /* Adds a nice frame */
    margin-bottom: 20px; /* Space between photo and "About Me" text */
    display: block;      /* Helps with centering */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#about {
    padding-bottom: 60px; /* Gives space so the button doesn't cover your story */
}

footer {
    padding: 50px 20px 100px 20px; /* Extra bottom padding for the floating button */
}
.cert-button {
    display: inline-block;
    background-color: #800080; /* This is the purple background */
    color: white !important;   /* This makes the text white */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;      /* Removes the underline */
    font-weight: bold;
    margin-top: 10px;
}
/* This controls the size of the certificate image on the page */
.cert-preview-img {
    width: 100%;
    max-width: 200px; /* Adjust this number to make it smaller or bigger */
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

/* This fixes your button color */
.cert-button {
    display: inline-block;
    background-color: #800080 !important; /* Forces the purple background */
    color: white !important;              /* Forces the white text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}
/* Base style for all tags (Mastered) */
.tech-tag {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border: 1.5px solid white; /* Solid border for mastered skills */
    border-radius: 25px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
}

/* Specific style for Learning tags */
.tech-tag.learning {
    border: 2px dashed rgba(255, 255, 255, 0.6); /* Dashed border */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle fill */
    color: rgba(255, 255, 255, 0.8); /* Slightly faded text */
}

/* Header for the learning section */
.learning-header {
    margin-top: 30px;
    font-size: 1.4rem;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}
.project-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

  .project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
}

.project-item {
    flex: 0 1 300px; /* This makes items flexible but max 300px wide */
    text-align: center;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
}
.project-item figcaption {
    margin-top: 15px;
    color: white;
}

.project-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-item p {
    font-size: 0.9rem;
    color: #ddd;
}
/* Project Container - Responsive Grid */
.project-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2 columns on tablets and larger screens */
@media (min-width: 768px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    }
}

/* Individual Project Item */
.project-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05); /* Subtle background */
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

/* Hover effect for desktop */
.project-item:hover {
    transform: translateY(-5px);
}

/* Project Images */
.project-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Project Title */
.project-item h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: white;
}

/* Project Description */
.project-item p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
}