/* Reset + base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
}
:root {
    --background: #ffffff;
    --text: #111111;
    --accent: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}
.dark-mode {
    --background: #111111;
    --text: #ffffff;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.7);
    z-index: 100;
}
nav.dark-mode {
    background: rgba(0,0,0,0.7);
}
nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin: 0 1rem;
}
nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #6a11cb;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
h1, h2 {
    background: var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}
p, li {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Images and cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(15px);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}
img.logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

/* Button */
button.toggle-darkmode {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
button.toggle-darkmode:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: gray;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Animation */
body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

.logo-container {
    margin-right: 20px; /* Add some space between the logo and text */
}

.company-logo {
    width: 100px; /* Ensure the width is consistent for all logos */
    height: 100px; /* Force the height to match the width, maintaining a square aspect */
    object-fit: contain; /* Ensure the logo maintains its aspect ratio inside the given box */
}


.job-card {
    margin-bottom: 40px;
  }
  
  .job-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
  }
  
  .company-logo {
    width: 100px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
  }
  
  .job-title {
    flex-grow: 1;
  }
  
  .job-title h3 {
    margin: 0;
    font-size: 1.2rem;
  }
  
  .job-title p {
    margin: 4px 0 0;
    font-style: italic;
  }
  
  .job-card ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
  }
  

.qualification-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 20px; /* Space between cards */
    margin-top: 20px; /* Space from top */
}

.qualification-card {
    position: relative; /* Allows the <a> tag to be positioned absolutely */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd; /* Optional: border around each card */
    border-radius: 8px; /* Optional: rounded corners */
    background-color: #f9f9f9; /* Optional: background color */
    height: 180px; /* Set a consistent height for each card */
}

.qualification-card a {
    position: absolute; /* Absolutely position the link to cover the entire card */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none; /* Remove default underline from links */
    color: inherit; /* Ensure the text color is inherited from the parent */
    display: flex; /* Ensure the link content is centered */
    flex-direction: column;
    justify-content: center; /* Center the content vertically */
    align-items: center; /* Center the content horizontally */
}

.qualification-card img {
    width: 100px; /* Adjust width as needed */
    height: 100px; /* Ensure height is consistent */
    object-fit: contain; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between the image and text */
}

.qualification-card p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between each skill category */
    margin-top: 30px;
}

.skills-category {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between category title and skill cards */
}

.skills-category h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #333;
}

.skills-row {
    display: flex;
    flex-wrap: wrap; /* Allow the items to wrap to the next line */
    gap: 10px; /* Small gap between the skill cards */
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the icon and text horizontally */
    justify-content: center; /* Center the icon and text vertically */
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd; /* Border around each skill card */
    border-radius: 8px; /* Rounded corners */
    background-color: #f9f9f9; /* Background color */
    width: 250px; /* Set a consistent width for each skill card */
    height: 200px; /* Set a consistent height for each skill card */
    box-sizing: border-box; /* Include padding in the width/height calculation */
}

.skill-icon {
    width: 100px; /* Icon size */
    height: 100px; /* Ensure height is consistent */
    object-fit: contain; /* Keep aspect ratio intact */
    margin-bottom: 10px; /* Space between icon and text */
}

.skill-card p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Bullet Points */
.bullet-points {
    list-style-type: disc; /* Adds bullet points */
    padding-left: 20px; /* Adds space to the left for bullets */
    margin: 0; /* Removes default margin */
}

.bullet-points li {
    margin-bottom: 10px; /* Adds space between each bullet point */
}

/* Section Layout */
.content-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Space between text and image */
}

.text-section {
    flex: 1; /* Text section takes up available space */
}

.image-section {
    width: 300px; /* Fixed width for the image section */
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: rounded corners for the image */
}

/* General Styling for Section */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav h1 a {
    text-decoration: none;
    color: inherit;
}

/* Media Queries for Small Screens */
@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column; /* Stack the text and image vertically on small screens */
        gap: 20px; /* Reduce the space between the text and image */
    }

    .text-section {
        text-align: center; /* Center the text */
    }

    .image-section {
        width: 100%; /* Make the image section take up full width */
    }

    .qualification-cards-container {
        grid-template-columns: 1fr 1fr; /* 2 items per row on small screens */
    }

    .skill-card {
        width: 100%; /* Full width on small screens */
        height: auto; /* Adjust height based on content */
    }
}

/* Experience Page Specific Adjustments */
.experience-page .content-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.experience-page .text-section {
    flex: 1;
    padding: 1rem;
}

.experience-page .image-section {
    width: 300px;
    flex-shrink: 0; /* Prevent shrinking on small screens */
}

.experience-page .image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: rounded corners for the image */
}

/* Media Queries for Small Screens (only on Experience Page) */
@media screen and (max-width: 768px) {
    .experience-page .content-container {
        flex-direction: column; /* Stack the text and image vertically */
        gap: 20px; /* Reduce space between text and image */
    }

    .experience-page .text-section {
        text-align: center; /* Center the text */
    }

    .experience-page .image-section {
        width: 100%; /* Ensure the image takes full width */
    }

    .experience-page .qualification-cards-container {
        grid-template-columns: 1fr 1fr; /* 2 items per row */
    }

    .experience-page .skill-card {
        width: 100%; /* Full width on small screens */
        height: auto; /* Adjust height based on content */
    }
}