/* =================================== */
/* CSS Custom Properties (Variables)  */
/* =================================== */
:root {
    /* Color Palette */
    --bg-color: #fff8f4;
    --text-color: #6b4226;
    --accent-color: #ffcccb;
    --button-hover: #ffe5e2;
    --footer-bg: #6b4226;
    --footer-text: #fff;
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 42px;
    --font-size-4xl: 48px;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
    --spacing-4xl: 80px;
    --spacing-5xl: 100px;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0px 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0px 8px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0px 16px 40px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #fff;
    --accent-color: #ff69b4;
    --button-hover: #ff85c0;
    --footer-bg: #000;
    --footer-text: #aaa;
}


/* =================================== */
/* Global Styles                       */
/* =================================== */
html {
    scroll-padding-top: 70px; /* Adjust to the height of your navbar */
    scroll-behavior: smooth; /* For smooth scrolling effect */
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    background-color: #FFF8F0; /* Light cream */
    line-height: 1.6;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--text-color);
    padding: var(--spacing-sm);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    user-select: none; /* Prevents text selection */
    pointer-events: none; /* Disables pointer interaction */
    -webkit-user-drag: none; /* Prevents drag on WebKit browsers */
}

::selection {
    background-color: #FFC0CB; /* Light pink */
    color: #000; /* Text color inside the highlight */
}


h1, h2, h3 {
    margin: 0;
}

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

#cursor {
    display: inline-block;
    width: 15px; /* Thin vertical line for the cursor */
    height: 5px; /* Match the height of the text */
    background-color: currentColor; /* Matches text color */
    animation: blink 0.6s step-end infinite;
    vertical-align: bottom; /* Aligns with the text */
}

@keyframes blink {
    50% {
        opacity: 0; /* Blinking effect */
    }
}

/* =================================== */
/* Navigation Bar                      */
/* =================================== */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    padding-left: 15px;
    padding-right: 15px;
    z-index: 20;
    display: flex;
    justify-content: space-between; /* Space between brand and nav */
    align-items: center;
    box-shadow: 0px 4px 25px #FFB6C1;
    height: 70px;
}

nav {
    margin-left: auto; /* Push the navigation to the right */
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    padding: 12px var(--spacing-md); /* Increased padding to make links taller */
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    display: inline-block;
    line-height: 24px; /* Vertically centers the text */
}

.nav-list a:hover {
    background-color: var(--button-hover);
    color: var(--text-color);
}

.header-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    flex-shrink: 1;
}

.resume-button {
    background-color: #ffe5e2;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.resume-button:hover {
    background-color: var(--button-hover);
    color: var(--text-color);
}

/* =================================== */
/* Landing Section                     */
/* =================================== */
.landing {
    position: relative;
    height: 100vh;
    background-color: #f9c7c7;
    overflow: hidden;
    display: flex;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing h1 {
    font-size: 48px; /* Larger font size */
    font-weight: 700; /* Bold weight */
    background-clip: text; /* Clips the gradient to the text */
    -webkit-background-clip: text;
    animation: gradient-shift 3s infinite linear; /* Animated gradient */
    text-align: center;
}

  
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.portrait-container {
    z-index: 1;
    text-align: center;
}


.landing h1 {
    font-size: 42px;
    font-weight: 600;
}

.landing p {
    font-size: 18px;
    line-height: 1.6;
}

.frosty-text {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white background */
    backdrop-filter: blur(1px); /* Frosty glass blur effect */
    border-radius: 12px; /* Rounded corners */
    padding: 20px 30px; /* Spacing inside the frosty box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
    display: inline-block; /* To wrap around the text */
    margin-top: 10px; /* Adjust margin if needed */
}

.career-bubble {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    background-color: rgba(255, 145, 164, 0.2); /* Light pink background */
    backdrop-filter: blur(1px); /* Frosty glass blur effect */
    border-radius: 12px; /* Consistent with frosty-text */
    padding: 8px 16px 8px 32px; /* Added left padding for indicator spacing */
    box-shadow: 0 2px 8px rgba(255, 145, 164, 0.3); /* Subtle pink shadow */
    display: inline-block; /* To wrap around the text */
    margin-top: 20px; /* Increased margin for visibility */
    color: var(--text-color);
    border: 1px solid #ff69b4; /* Hot pink border */
    z-index: 10; /* Ensure it's visible above other elements */
    position: relative; /* For the indicator positioning */
}

.career-bubble::before {
    content: '';
    position: absolute;
    left: 12px; /* Position inside the bubble on the left */
    top: 50%;
    transform: translateY(-50%);
    width: 5px; /* Reduced size */
    height: 5px; /* Reduced size */
    background-color: #ff69b4; /* Hot pink indicator */
    border-radius: 50%;
    box-shadow: 
        0 0 6px #ff69b4, /* Reduced glow effect */
        0 0 12px #ff69b4,
        0 0 18px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% {
        box-shadow: 
            0 0 3px #ff69b4,
            0 0 6px #ff69b4,
            0 0 9px #ff69b4;
    }
    100% {
        box-shadow: 
            0 0 6px #ff69b4,
            0 0 12px #ff69b4,
            0 0 18px #ff69b4;
    }
}


/* Wrapper for the image and animation */
.photo-wrapper {
    position: relative;
    padding-bottom: 20px;
    width: 450px; /* Matches the image width */
    height: 450px; /* Matches the image height */
    display: flex;
    align-items: center; /* Centers the content vertically */
    justify-content: center; /* Centers the content horizontally */
    margin: 0 auto; /* Centers the entire container */
    overflow: visible; /* Allows the animation to expand beyond the container */
}

/* Circular animation for continuous rings */
.ring-animation {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    width: 130px; /* Bounding box width */
    height: 130px; /* Bounding box height */
    transform: translate(-50%, -50%); /* Aligns center of the rings */
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.8); /* Initial pink ring */
    animation: radiate 1.1s linear infinite; /* One ring per second */
    z-index: 0; /* Behind the image */
}

/* Profile picture styling */
.profile-picture {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio and crops to fit */
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
    z-index: 1; /* Place above the ring */
}

/* Keyframes for the radiating effect */
@keyframes radiate {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(5); /* Rings grow outward */
        opacity: 0; /* Rings fade out as they grow */
    }
}


/* =================================== */
/* About Me Section                    */
/* =================================== */
.about {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: left;
    min-height: 600px; /* Set a consistent height */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.about-header {
    text-align: center;
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.about-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allows items to stack when necessary */
    padding: 20px; /* Adds some padding to prevent overlap */
    box-sizing: border-box;
}

.text-section {
    padding-top: 50px;
    flex: 1; /* Ensures it takes available space */
    min-width: 300px; /* Prevent shrinking too much */
   
    margin-top: 0; /* Reset negative margin */
    text-align: left; /* Aligns text to the left */
    position: relative;
    z-index: 1002;
}

.info-section {
    flex: 1; /* Ensures equal space with text section */
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1002;
}

.about-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items horizontally */
    }

    .text-section, .info-section {
        max-width: 100%; /* Use full width */
        text-align: center; /* Center-align content */
        margin-bottom: 20px; /* Add spacing between sections */
    }

    .about-buttons {
        justify-content: center;
    }
}

/* GIF Section */
.about-gif {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    flex-shrink: 0; /* Prevent shrinking */
    height: 100%; /* Ensure it fills the container height */
    width: 100%; /* Ensure full width for centering */
    text-align: center; /* Additional centering */
    position: relative;
    z-index: 1002;
}

.about-gif-image {
    max-width: 80%; /* Ensure the GIF fits within its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 12px; /* Optional: Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Optional shadow */
    position: relative;
    z-index: 1002;
}


.about-buttons {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 10px; /* Space between buttons */
    z-index: 20; /* Ensure buttons are above the particle system */
    position: relative; /* Needed to respect z-index */
}


/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    gap: 20px;
    max-width: 400px;
    width: 100%;
}

.info-btn {
    width: 140px; /* Set a fixed width for all buttons */
    padding: 12px 24px;
    background-color: #ffb6c1;
    color: #6b4226;
    border: none;
    position: relative;
    z-index: 20;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}


.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
    background-color: #ffc0cb;
}

.info-btn.active {
    background-color: #ffb6c1;
    color: #6b4226;
    transform: scale(1.05);
    box-shadow: 0px 8px 15px rgba(255, 182, 193, 0.3);
}


.info-display {
    margin-top: 20px;
    text-align: left; /* Align content to the left */
    font-size: 18px;
    font-weight: 500;
    color: #6b4226;
    background-color: #fff8f4; /* Light background */
    padding-left: 20px;
    padding-left: 20px;
    padding-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Adjust the width as needed */
    min-height: 150px; /* Ensure consistent height for the info display */
    box-sizing: border-box;
}

.info-content {
    margin: 0; /* Reset margin for list items */
    margin-top: 20px;
}

.info-content ul {
    margin-top: 5px;
    padding-left: 20px; /* Add padding for the list */
    list-style-type: disc; /* Use bullets */
}
/* =================================== */
/* Education Section                   */
/* =================================== */
.education {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.education h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensures 3 items per row */
    gap: 20px;
    max-width: 1000px; /* Adjust width as needed to fit all items */
    margin: 0 auto;
}
/* Education Section Hover Fix */
.education-item {
    background-color: var(--accent-color);
    border: 1px solid var(--text-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative; /* Ensure hover effects like shadows or animations stay in place */
    z-index: 1002;
}

.education-item:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    background-color: #ffd5d5; /* Optional: Slightly lighter background color */
}

/* Image Styling Inside the Education Item */
.education-item img {
    width: 100%; /* Ensure the image spans the container width */
    height: 200px; /* Fixed height for consistency */
    border-radius: 12px; /* Keeps the rounded corners */
    margin-bottom: 15px; /* Space below the image */
    object-fit: cover; /* Ensures the image fills the container without distortion */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

.education-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.education-item p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.achievements {
    margin-top: var(--spacing-lg);
}

.achievements h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.achievements ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.achievements li {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.achievement-count {
    font-weight: 400;
    color: var(--text-color);
    display: inline-block;
    margin-right: 8px;
}

.achievement-icon {
    width: 24px !important;
    height: 30px !important;
    max-width: 24px !important;
    max-height: 30px !important;
    vertical-align: top;
    margin: 0 !important;
    margin-top: -12px !important;
    margin-right: 1px !important;
    margin-left: -11px !important;
    padding: 0 !important;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.achievement-icon[alt*="Trophy"], .achievement-icon[alt*="trophy"] {
    margin-top: -6px !important;
    margin-left: -2px !important;
}


.flash {
    background-image: linear-gradient(90deg, #6b4226, #FFD700, #6b4226);
    background-size: 200%;
    color: transparent;
    -webkit-background-clip: text;
    animation: horizontal-flash 2s infinite linear;
}

@keyframes horizontal-flash {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}


/* =================================== */
/* Work Experience Section */
.experience {
    padding: 60px 20px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.experience h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px;
}

/* Timeline line removed */

.timeline-item {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.timeline-marker {
    display: none;
}

.timeline-marker.special {
    display: none;
}

.timeline-item.highlight .timeline-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #888 !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 105, 180, 1.0) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 650px !important;
    margin-top: 0 !important;
    padding: 20px 20px 30px 20px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1002 !important;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #888;
    border-radius: 12px;
    padding: 15px 15px 30px 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 0;
    text-align: center;
    height: 650px;
    position: relative;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.role-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #888;
    font-style: italic;
}

.timeline-content .company {
    font-weight: 500;
    color: #6b4226;
    margin-bottom: 8px;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.timeline-content .duration {
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

/* Duration styling inside timeline cards */
.timeline-content .duration {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-content .duration.special-duration {
    color: #ff69b4;
    font-weight: 700;
    animation: datePulse 2s infinite;
}

@keyframes datePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 105, 180, 0.4);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
    }
}

.timeline-content p:not(.company):not(.duration) {
    font-size: var(--font-size-base);
    margin-bottom: 20px;
    color: var(--text-color);
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Experience Image Styling */
.experience-image {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Telus image specific cropping */
.telus-image {
    object-position: 20% 50%; /* Crops from the left, centers vertically */
}

/* NOUN image specific cropping */
.noun-image {
    object-position: 20% 50%; /* Crops from the left, centers vertically */
}

/* Availability bubble styling */
.availability-bubble {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    background-color: rgba(255, 145, 164, 0.2); /* Light pink background */
    backdrop-filter: blur(1px); /* Frosty glass blur effect */
    border-radius: 12px; /* Consistent with career bubble */
    padding: 12px 20px; /* Spacing inside the bubble */
    box-shadow: 0 2px 8px rgba(255, 145, 164, 0.3); /* Subtle pink shadow */
    color: var(--text-color);
    border: 1px solid #ff69b4; /* Hot pink border */
    margin-bottom: 15px; /* Space below the bubble */
    position: relative;
}


.timeline-item.highlight .timeline-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center !important;
    margin: 0 auto !important;
}

.timeline-item.highlight .timeline-content .availability-bubble {
    max-width: 100%;
    word-wrap: break-word;
    text-align: center !important;
    margin: 0 auto 15px auto !important;
}

.timeline-item.highlight .timeline-content .duration {
    text-align: center !important;
    margin: 0 auto !important;
}

.timeline-item.highlight .timeline-content .hire-me-btn {
    text-align: center !important;
    margin: 20px auto 0 auto !important;
}

.hire-me-btn {
    display: inline-block;
    margin-top: auto;
    padding: 12px 24px;
    background: #ffb6c1;
    color: #6b4226;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    align-self: center;
}

.hire-me-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
    background: #ffc0cb;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px #ffb6c1, 0 0 20px rgba(255, 182, 193, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px #ffb6c1, 0 0 30px rgba(255, 182, 193, 0.7);
    }
}

/* Skills Section                      */
/* =================================== */
.skills {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.skills h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-lg);
    max-width: 1600px;
    margin: 0 auto;
    grid-auto-flow: dense;
    padding: 0 80px;
}

/* Enhanced staggered layout for better visual appeal */
.skill-category:nth-child(1) { /* Web Development */
    grid-column: 1 / 5;
    grid-row: 1;
}

.skill-category:nth-child(2) { /* Programming Languages */
    grid-column: 5 / 9;
    grid-row: 1;
}

.skill-category:nth-child(3) { /* Mobile Development */
    grid-column: 9 / 13;
    grid-row: 1;
}

.skill-category:nth-child(4) { /* Databases & Backend */
    grid-column: 1 / 7;
    grid-row: 2;
}

.skill-category:nth-child(5) { /* Data Science & Analytics */
    grid-column: 7 / 13;
    grid-row: 2;
}

.skill-category:nth-child(6) { /* Development Tools */
    grid-column: 1 / 5;
    grid-row: 3;
}

.skill-category:nth-child(7) { /* Design */
    grid-column: 5 / 9;
    grid-row: 3;
}

.skill-category:nth-child(8) { /* Audio & Video Editing */
    grid-column: 9 / 13;
    grid-row: 3;
}

.skill-category {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid #e9ecef;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-lg);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    position: relative;
    z-index: 1002;
}

.skill-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
}

.skill-item img {
    width: 60px;
    height: 60px;
    transition: transform var(--transition-normal);
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-item span {
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
}

/* Make Balsamiq image bigger */
.skill-item img[alt="Balsamiq logo"] {
    width: 100px;
    height: 80px;
    object-fit: contain;
}
     


/* =================================== */
/* projects Section                    */
/* =================================== */
.projects {
    background-color: var(--accent-color); /* Pink background */
    padding: 60px 20px; /* Standardized padding */
    text-align: center;
    position: relative;
    z-index: 10;
}

.projects h2 {
    font-size: 48px; /* Bigger title */
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
}

.projects-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 20px; /* Space between cards */
    width: 70%; /* Occupies most of the space */
    position: relative;
}

/* Project Card Styling */
.project-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px;
    z-index: 20;
    text-align: center;
    transition: transform 0.5s ease-in-out;
    animation: dance 0.55s infinite ease-in-out alternate; /* Dancing effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-height: 180px; /* Ensures a minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible; /* Allows content to expand */
    word-wrap: break-word; /* Breaks long words */
    white-space: normal; /* Ensures text wraps to new lines */
}

.project-card:hover {
    transform: scale(1.1); /* Slight hover zoom */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    min-height: 100px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.project-card.selected {
    border: 2px solid transparent; /* Transparent border to avoid border displacement */
    box-shadow: 0 0 15px 5px #ff6db6cc; /* Glowing effect */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    filter: brightness(1.1); /* Slightly brighter tint for the item */
}

/* Animation Keyframes */
@keyframes dance {
    0% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(10px);
    }
}

/* Video Display Section */
.video-display {
    width: 80%; /* Bigger video section */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent background */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slant-dance 1.1s infinite ease-in-out; /* Add slanting animation */
}

iframe {
    border-radius: 10px;
}

#project-video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Slanting Animation Keyframes */
@keyframes slant-dance {
    0% {
        transform: rotate(-2deg); /* Slightly rotate left */
    }
    50% {
        transform: rotate(2deg); /* Slightly rotate right */
    }
    100% {
        transform: rotate(-2deg); /* Back to the initial slant */
    }
}

/* Description and Video Section */
.video-and-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}


/* Project Description */
.project-description {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-description h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #6b4226;
}

.project-description p {
    margin-top: 10px;
    font-size: 16px;
    color: #6b4226;
}

.technology-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between tiles */
    margin-top: 20px;
    justify-content: center;
}

.technology-tile {
    background-color: #fff8f4; /* Light pink background */
    color: #6b4226; /* Text color */
    border: 1px solid #ffcccb; /* Subtle border */
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.technology-tile:hover {
    background-color: #ffcccb; /* Slightly darker pink */
    transform: scale(1.05);
}

.github-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #6b4226; /* Default color for the SVG */
    text-decoration: none;
}

.github-btn svg {
    width: 30px;
    height: 30px;
}

.github-btn:hover {
    color: #ff6db6cc;  /* Change the SVG color on hover */
    transform: scale(1.3); /* Slight zoom effect */
}



/* =================================== */
/* SelfLearning Section                */
/* =================================== */
.certificates {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-color);
    position: relative;
    z-index: 10;
}

.certificates h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for wider cards */
    gap: 30px 50px; /* Increased gaps for better spacing */
    max-width: 1200px; /* Wider grid width for horizontal space */
    margin: 0 auto; /* Center the grid horizontally */
    justify-items: stretch; /* Stretch items to fill their grid cell */
}


.certificate-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    background-color: #ffe5e2;
    border: 1px solid #ffcccb;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1002;
    overflow: hidden;
    gap: 20px;
    position: relative;
}

.certificate-image {
    flex-shrink: 0; /* Prevent the image from shrinking */
    width: 80px; /* Set the width of the image */
    height: 80px; /* Set the height of the image */
    object-fit: cover; /* Ensure the image covers its container */
    border-radius: 8px; /* Optional rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Media query for small screens */
@media (max-width: 768px) {
    .certificate-item {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align items to the left */
        gap: 15px;
    }

    .certificate-button {
        position: static; /* Remove absolute positioning */
        align-self: flex-start; /* Align button to the left */
        margin-top: 10px; /* Add space above the button */
    }
}

.certificate-details {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between text lines */
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.certificate-item .details {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.certificate-item img {
    width: 140px; /* Slightly wider to make it more rectangular */
    height: 100px; /* Set height to maintain a rectangular aspect ratio */
    object-fit: cover; /* Ensure the image fills the container proportionally */
    border-radius: 8px; /* Rounded corners for all edges */
}

.certificate-item div {
    text-align: left; /* Aligns text to the left */
    flex: 1; /* Allows the text to take up the remaining space */
}

.certificate-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #ffb6c1;
    color: #6b4226;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.certificate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
    background-color: #ffc0cb;
}

/* =================================== */
/* ContactMe Section                   */
/* =================================== */
.contact {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 20;
}

.contact h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-gif {
    position: relative;
    z-index: 10;
}

/* Contact Container */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    min-height: 400px;
    margin: 0 auto;
}

.contact-container > * {
    flex: 1 1 350px;
}

/* Contact Cards */
.contact-form,
.contact-card {
    background-color: #ffe5e2;
    border: 1px solid #ffcccb;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    min-width: 350px;
    min-height: 370px;
    position: relative;
    z-index: 10;
}

/* Contact Info Card */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    padding-top: 0px;
}

.contact-card h3 {
    margin: 0 !important;
    margin-bottom: 10px !important;
}

.contact-card p {
    margin: 5px;
}

.contact-card address {
    text-align: center;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.contact-card a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    padding: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: inherit;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-form button {
    margin-bottom: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 2px solid #ffcccb;
    box-shadow: 0 0 8px rgba(255, 192, 203, 0.5);
}

.contact-form button {
    background-color: #ffb6c1;
    color: #6b4226;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
    background-color: #ffc0cb;
}


/* =================================== */
/* Socials Links Section               */
/* =================================== */
.sticky-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between icons */
    z-index: 30;
}

/* Icon Styling */
.sticky-icons .icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color); /* Use your theme accent color */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sticky-icons .icon img {
    width: 60%;
    height: auto;
}

.sticky-icons .icon:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.sticky-icons .github {
    background-color: #ffffff; /* White background */
    border: 2px solid #6e5494; /* GitHub purple border */
}

.sticky-icons .linkedin {
    background-color: #0077b5; /* LinkedIn blue */
}

/* =================================== */
/* Footer Section                      */
/* =================================== */
footer {
    background-color: #ffcccb;
    text-align: center;
    padding: 20px;
}

#backgroundGame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind other elements */
}


/* Styling for the audio controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 30;
}

/* Music Indicator Arrow */
#music-indicator {
    font-family: var(--font-family);
}

.indicator-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff91a4;
    margin-top: 5px;
    margin-left: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.indicator-text {
    background-color: rgba(255, 145, 164, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Music Indicator Animation */
@keyframes musicIndicatorPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.audio-button {
    background-color: var(--accent-color); /* Pink */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.audio-button:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.audio-button img {
    width: 30px;
    height: 30px;
}

/* Mobile css */

/* =================================== */
/* Responsive Design                  */
/* =================================== */

/* Medium screens - reduce name size but show full name */
@media (max-width: 900px) {
    .header-name {
        font-size: 20px;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .skills {
        padding: 60px 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    /* Adjust grid positioning for tablet */
    .skill-category:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
    .skill-category:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
    .skill-category:nth-child(3) { grid-column: 1 / 3; grid-row: 3; }
    .skill-category:nth-child(4) { grid-column: 1 / 3; grid-row: 4; }
    .skill-category:nth-child(5) { grid-column: 1 / 3; grid-row: 5; }
    .skill-category:nth-child(6) { grid-column: 1 / 3; grid-row: 6; }
    .skill-category:nth-child(7) { grid-column: 1 / 3; grid-row: 7; }
    .skill-category:nth-child(8) { grid-column: 1 / 3; grid-row: 8; }
}

/* Small screens - further reduce name size but show full name */
@media (max-width: 768px) {
    .header-name {
        font-size: 18px;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    header {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-sm);
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .nav-list a {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .landing h1 {
        font-size: 32px;
    }

    .landing p {
        font-size: 16px;
    }

    .photo-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .education-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for smaller screens */
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr; /* Single column layout */
        width: 100%;
    }

    .projects-wrapper {
        flex-direction: column;
    }

    .skills {
        padding: 60px 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 20px;
    }

    /* Reset all grid positioning for mobile */
    .skill-category:nth-child(1),
    .skill-category:nth-child(2),
    .skill-category:nth-child(3),
    .skill-category:nth-child(4),
    .skill-category:nth-child(5),
    .skill-category:nth-child(6),
    .skill-category:nth-child(7),
    .skill-category:nth-child(8) {
        grid-column: 1;
        grid-row: auto;
    }

    /* Mobile timeline - stack vertically */
    .timeline {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        padding: 40px 20px;
    }

    /* Mobile timeline line removed */

    .timeline-item {
        max-width: 100%;
        margin: 0;
        padding-left: 0;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-content {
        margin-top: 0;
        text-align: left;
        height: auto;
        min-height: 200px;
        padding: 15px 15px 30px 15px;
    }

    .timeline-content h3 {
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .timeline-content .company {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .timeline-content p:not(.company):not(.duration) {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }


    .skill-items {
        grid-template-columns: repeat(2, 1fr); /* Two columns for skill items */
        gap: var(--spacing-md);
    }

    .contact-container {
        flex-direction: column;
    }

    /* Responsive styling for the third timeline item */
    .timeline-item.highlight .timeline-content {
        padding: 15px 15px 30px 15px !important;
        height: 400px !important;
        min-height: 400px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    .timeline-item.highlight .timeline-content h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .timeline-item.highlight .timeline-content .availability-bubble {
        font-size: 12px;
        padding: 8px 12px;
        margin-bottom: 10px;
    }

    .timeline-item.highlight .timeline-content .duration {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .timeline-item.highlight .timeline-content .hire-me-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .contact-form,
    .contact-card {
        width: 100%;
        min-width: 300px; /* Ensure proper sizing */
    }

    .certificate-grid {
        grid-template-columns: 1fr; /* One certificate per row */
        gap: 20px;
    }

    footer {
        font-size: 12px;
        padding: 10px;
    }

    .sticky-icons {
        bottom: 10px;
        right: 10px;
    }

    iframe {
        height: 250px; /* Reduce height for smaller screens */
    }
}

/* Extra small screens - minimal name size but show full name */
@media (max-width: 480px) {
    .header-name {
        font-size: 16px;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

        

       




  
      

        
       

  
        

        

       

   

      








        