body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  

/* General Styles */
html, body {
    background-color: #EDE4FF; /* Light Lavender Gray */
    color: #F8F9FA; /* Off-White Text */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background: black !important;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #E6E6FA;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Brand (Left Side) */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF !important;
    text-decoration: none;
}

/* Center Navbar Links */
.navbar-nav {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-grow: 1;
    padding: 0;
}

.navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 50px;
    transition: 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #E6E6FA !important;
    text-decoration: underline;
}

/* Social Icons (Right Side) */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons .nav-link i {
    font-size: 2rem;
    color: #FFFFFF !important;
    transition: 0.3s ease-in-out;
}

.social-icons .nav-link i:hover {
    color: #E6E6FA !important;
    transform: scale(1.2);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: black !important; /* Ensure navbar remains black on scroll */
    height: 60px;
    box-shadow: 0px 4px 16px rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid #E6E6FA;
}

/* Buttons */
.btn-primary {
    background-color: #957DAD; /* Muted Purple */
    border: none;
}

.btn-primary:hover {
    background-color: #BFA2DB; /* Soft Lavender */
}

.btn-secondary {
    background: transparent;
    border: 2px solid #E6E6FA;
    color: #E6E6FA;
}

/* Links */
a {
    color: #957DAD;
    text-decoration: none;
}

a:hover {
    color: #BFA2DB;
}


/* Home Section */
#home {
    text-align: center;
    background: #0B0B0D; /* Black background */
    color: #E6E6FA; /* Lavender text */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h3 {
    color: #C7A3F2; /* Light Lavender */
    font-size: 25px;
    letter-spacing: 1px;
}

h1 {
    font-size: 60px;
    font-weight: bold;
}

h1 .highlight {
    color: #C7A3F2; /* Lavender highlight */
}

h2 {
    font-size: 38px;
    font-weight: bold;
    margin-top: 10px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #0B0B0D; /* Black background */
    color: #E6E6FA; /* Lavender text */
    flex-wrap: wrap; /* Allows responsive behavior on smaller screens */
    animation: fadeIn 1s ease-in-out; /* Fade-in animation for the section */
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Image Styling */
.about-image {
    width: 35%; /* Image takes 35% of the width */
    height: 550px; /* Increased vertical height */
    border-radius: 15px; /* Rounded corners for the image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInLeft 1s ease-in-out; /* Slide-in animation for the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Animation for slide-in effect */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the area without stretching */
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Text Section */
.about-details {
    width: 55%; /* Text section takes 55% of the width */
    padding-left: 20px;
    text-align: left;
    animation: fadeInText 1s ease-in-out; /* Fade-in effect for text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Dark background behind text for contrast */
}

/* Fade-in animation for the text */
@keyframes fadeInText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.about-details h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700; /* Bold header */
    color: #C7A3F2; /* Lavender header */
}

.about-details p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-details a {
    color: #957DAD;
    text-decoration: none;
}

.about-details a:hover {
    color: #BFA2DB; /* Soft Lavender */
}

/* Button Styling */
.buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.buttons .btn {
    display: inline-block;
    background-color: #957DAD; /* Muted purple button */
    color: white;
    padding: 12px 25px;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.3s ease;
}

.buttons .btn:hover {
    background-color: #BFA2DB; /* Soft lavender on hover */
    transform: translateY(-3px); /* Hover effect to lift button */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        width: 70%;
        height: 400px;
    }

    .about-details {
        width: 100%;
        padding-left: 0;
        padding-top: 20px;
    }
}


/* resume section */

/* General Body Styling */
body {
    background-color: #EDE4FF; /* Light Lavender Gray */
    color: #333; /* Default text color */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Section styling */
#resume {
    background-color: #1B1B1B; /* Deep Black */
    color: #fff; /* White text color */
    padding: 60px 0;
}

/* Title Section */
#resume .heading-section {
    margin-bottom: 40px;
}

#resume .heading-section h1 {
    font-size: 70px;
    color: #BFA2DB; /* Soft Lavender */
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#resume .heading-section h2 {
    font-size: 32px;
    color: #F8F9FA; /* Off-White */
    margin-bottom: 20px;
}

#resume .heading-section p {
    font-size: 18px;
    color: #dcdcdc;
    max-width: 600px;
    margin: 0 auto;
}

/* Underline styling for section headers */
.underline {
    width: 60px;
    height: 3px;
    background-color: #BFA2DB; /* Soft Lavender */
    margin: 0 auto 20px;
}

/* Achievements and Education Section Styling */
.row h1 {
    font-size: 30px;
    color: #BFA2DB; /* Soft Lavender */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Flexbox layout for responsive images and cards */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Add some space between certificates */
}


/* Individual column styling for certificates */
.col-md-6, .col-md-2, .col-sm-4 {
    padding: 15px;
    box-sizing: border-box;
    flex: 0 0 45%; /* First 4 cards, 2 items per row */
    max-width: 45%; /* Certificate width adjusted */
    display: flex;
    justify-content: center;
}

/* Make 3 items per row for items after the 4th card */
.row .col-md-6:nth-child(n+5), 
.row .col-md-2:nth-child(n+5), 
.row .col-sm-4:nth-child(n+5) {
    flex: 0 0 30%; /* Make these elements 3 per row */
    max-width: 30%;
}


/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%; /* Full-width on smaller screens */
        max-width: 100%;
    }

    .col-md-2, .col-sm-4 {
        flex: 0 0 45%; /* 2 images per row on small screens */
        max-width: 45%;
    }

    /* For smaller screens, display 3 items per row starting from the 5th item */
    .row .col-md-6:nth-child(n+5), 
    .row .col-md-2:nth-child(n+5), 
    .row .col-sm-4:nth-child(n+5) {
        flex: 0 0 32%; /* Adjust to 3 items per row on smaller screens */
        max-width: 32%;
    }
}

/* Certificates styling */
.certificate-img {
    max-height: 200px; /* Increase height for better visibility */
    object-fit: contain;
    width: 100%;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Rounded corners for certificates */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Soft shadow effect */
}

.certificate-img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow effect */
}

/* For smaller screen sizes, allow 3 per row in achievements */
@media (max-width: 768px) {
    .row .col-md-6:nth-child(n+5) {
        flex: 0 0 32%; /* Adjust to 3 items per row on smaller screens */
        max-width: 32%;
    }
}
/* Styling for the resume wrap (certificates with card design) */
.resume-wrap {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1B1B1B, #000); /* Gradient background */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 25px;
    transition: background-color 0.3s ease;
}

.resume-wrap h2 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-wrap .date, .resume-wrap .position {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

/* Hover effect on resume wrap */
.resume-wrap:hover {
    background: linear-gradient(135deg, #5f6d91, #333); /* Slightly lighter gradient on hover */
}


/* Education Section Styling */
.row h1.big-4 {
    font-size: 45px;
    color: #BFA2DB; /* Soft Lavender */
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.underline {
    width: 60px;
    height: 3px;
    background-color: #BFA2DB; /* Soft Lavender */
    margin: 0 auto 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Add space between the cards */
    justify-content: center;
}

/* Individual Education Cards */
.resume-wrap {
    background: #1B1B1B; /* Deep Black background for cards */
    color: #fff; /* White text */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resume-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    color: #C7A3F2; /* Light Lavender */
    margin-bottom: 15px;
}

.resume-wrap .date {
    font-size: 18px;
    color: #A3A3A3; /* Light gray for the date */
    margin-bottom: 10px;
}

.resume-wrap .position {
    font-size: 16px;
    color: #BFA2DB; /* Soft Lavender */
    margin-bottom: 20px;
}

.resume-wrap p {
    font-size: 18px;
    color: #F8F9FA; /* Off-White text for description */
}

.resume-wrap:hover {
    background: linear-gradient(135deg, #5f6d91, #333); /* Slightly lighter gradient on hover */
    transform: translateY(-5px); /* Lift effect */
}

.resume-wrap .mt-4 {
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .resume-wrap {
        padding: 20px;
    }

    .resume-wrap h2 {
        font-size: 20px;
    }

    .resume-wrap .date {
        font-size: 16px;
    }

    .resume-wrap .position {
        font-size: 14px;
    }

    .resume-wrap p {
        font-size: 16px;
    }
}





/* Styling for the buttons */
.cv-button {
    background-color: #BFA2DB; /* Soft Lavender */
    color: #fff;
    border: none;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cv-button:hover {
    background-color: #957DAD; /* Muted Purple */
    text-decoration: none;
}

/* Styling for CV viewer modal */
#cvViewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

#cvViewer div {
    position: relative;
    width: 80%;
    height: 80%;
    margin: 5% auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#cvViewer button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
}

#cvViewer button:hover {
    color: #BFA2DB; /* Soft Lavender for close button */
}

/* Styling for CV iframe */
#cvViewer iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Extra styles for hover and active states */
.resume-wrap .date,
.resume-wrap .position {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.resume-wrap .position {
    font-style: italic;
}

@media (max-width: 768px) {
    .resume-wrap {
        margin-bottom: 20px;
    }
}



/* Skills Section */
#resume .row h1.big-4 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out;
}

#resume .underline {
    width: 100px;
    height: 4px;
    background-color: #ff6f61;
    margin: 10px auto;
    animation: slideIn 1s ease-out;
}

/* Skill Card */
.skill-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background-color: #f7f7f7;
}

.skill-card h4 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out;
}

.skills-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInIcons 1.5s ease-in forwards;
}

.skills-icons .skill-icon {
    font-size: 70px;
    color: #ff6f61;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: bounce 1.5s ease-out infinite;
}

.skills-icons .skill-icon:hover {
    color: #e74c3c;
    transform: translateY(-5px);
}

/* Icon Hover Bounce Effect */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade-in Animation for Text */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in for Icons */
@keyframes fadeInIcons {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide-in Animation for Underline */
@keyframes slideIn {
    0% {
        width: 0;
    }
    100% {
        width: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skill-card {
        padding: 20px;
    }

    .skills-icons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .skills-icons .skill-icon {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    #resume .row h1.big-4 {
        font-size: 2.3rem;
    }

    .skills-icons .skill-icon {
        font-size: 45px;
    }
}



/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #EDE4FF; /* Light Lavender Gray */
    color: #F8F9FA; /* Off-White */
    margin: 0;
    padding: 0;
}

/* Section Styling */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1B1B1B; /* Deep Black */
}



/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Wider Cards */
    gap: 30px;
    justify-content: center;
}

/* Project Card */
.project-card {
    background: #1B1B1B;
    border: 2px solid #957DAD;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 500px; /* Increased Width */
    height: 600px; /* Increased Height */
}

.project-card:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 5px 20px rgba(191, 162, 219, 0.4);
}

/* Image Styling */
.project-img {
    width: 100%;
    height: 320px; /* Increased Image Size */
    object-fit: cover;
}

/* Project Info */
.project-info {
    padding: 20px;
    text-align: center;
}

/* Project Title */
.project-title {
    font-size: 24px;
    color: #D8BFD8; /* Light Lavender */
    margin-bottom: 10px;
}

/* Project Description */
.project-description {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Project Tech */
.project-tech {
    font-size: 16px;
    color: #b39ddb;
    margin-bottom: 15px;
}

/* Project Button */
.project-link {
    display: inline-block;
    padding: 12px 24px;
    background: #957DAD;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #b39ddb;
}


/* Lavender & Black Color Palette */
:root {
    --primary-color: #1B1B1B;
    --secondary-color: #BFA2DB;
    --background-color: #EDE4FF;
    --text-color: #F8F9FA;
    --accent-color: #957DAD;
}

.contact-section {
    padding: 50px 20px;
    background-color: var(--primary-color);
    border-radius: 10px;
    margin: 50px auto;
    width: 80%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

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

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    transition: 0.3s;
}

.contact-box:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

p {
    font-size: 1rem;
    color: var(--text-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Have a Question Section */
.contact-footer {
    margin-top: 30px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

/* LinkedIn Section */
.linkedin-text {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.linkedin-icon {
    display: inline-block;
    margin-left: 5px;
}

.linkedin-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    padding: 5px;
    transition: 0.3s;
}

.linkedin-logo:hover {
    background: var(--secondary-color);
}
