/* ==========================================================================
   Global Styles
   ========================================================================== */

/* Universal box-sizing and reset for all elements */
*,
*::before,
*::after {
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
    scroll-behavior: smooth;
}

/* Smooth scrolling and default font for the entire document */
html{
    padding: 0;
    font-size: 16px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif; /* Sets a modern, clean font */
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
    overflow-x: hidden;
}

/* Body styles for color, layout, and overflow handling */
body{
    color: #ffffff; /* Default text color */
    margin: 0 auto;
    padding: 0;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: scroll; /* Allows vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    min-width: 220px; /* prevents content from squezzing*/
    scroll-behavior: smooth;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

/* Pseudo-element for header background overlay */
header::before{
    content: '';
    position: absolute;
    width: 1528px;
    height: 100%;
}

/* Main header container */
.site-header {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 100; /* Ensures header is above other content */
    background-color: #0a1828;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Flex container for header content */
.header-container {
    display: flex;
    align-items: center; /* Vertically aligns items */
    justify-content: space-between; /* Distributes items evenly */
    margin: 0 auto; /* Centers the container */
    padding: 0.75rem 1.5rem;
    width: 100vw;
    position: relative;
}

/* Logo image styling */
.header-logo {
    height: 50px;
    width: 100px;
    object-fit: contain; /* Scales the image to fit within the container */
    margin-right: 6px;
    margin-left: 6px;
    vertical-align: middle;
    transition: .3s ease-in-out; /* Smooth transition for hover effects */
    cursor: pointer;
}

/* Logo text styling */
.logo {
    font-family: 'Libre Bodoni', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #00ff51; /* Bright green for emphasis */
    margin-right: 12px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    transition: .3s ease-in-out; /* Smooth transition for hover effects */
    cursor: pointer;
}

/* Styling for the span within the logo */
.logo span {
    color: #00ff51; /* Bright green for emphasis */
}

/* Hover effect for the logo */
.logo:hover{
    transform: scale(1.1); /* Slightly enlarges the logo on hover */
}

/* Navigation container */
.main-nav {
    display: flex;
    gap: 1.5rem; /* Space between navigation links */
    align-items: center;
}

/* Navigation links styling */
.nav-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

/* Hover effect for navigation links */
.nav-link:hover,
.nav-download:hover {
    color: #00ff51;
    border-bottom: 2px solid #00ff51; /* Adds an underline effect on hover */
    transition: color 0.3s ease;
}

/* Icon for mobile menu (hamburger icon) */
.icon {
    display: none; /* Hidden on larger screens */
    cursor: pointer;
    margin-left: 1rem;
}

/* Menu and close icons for mobile navigation */
.menu-icon,
.close-icon {
    display: none;
    width: 28px;
    height: 28px;
}

/* Header button styling */
.header-btn {
    background: #00ff51;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    margin-left: 8px;
    margin-right: 8px;
    cursor: pointer;
    transition: 0.2s;
}

/* Link inside the header button */
.header-btn a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Hover effect for the header button */
.header-btn:hover {
    background: slateblue;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff51,
                0 0 20px #00ff51,
                0 0 60px #00ff51,
                0 0 150px #00ff51; /* Glowing effect */
}

/* Text color change on button hover */
.header-btn:hover a {
    color: #fff;
}

/* Checkbox for toggling mobile navigation */
.nav-toggle {
    display: none; /* The checkbox itself is hidden */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Main container for the hero section */
.hero-section {
    display: flex;
    width: 100vw;
    height: 100vh;
    padding-top: 30px;
    padding-bottom: 30px;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden; /* Prevents content from spilling out */
    background-color: #0a1828;
}

/* Styling for the span within the hero section's h1 */
.hero-section h1 span{
    color: #00ff51;
}

/* Subheading in the hero section */
.hero-section h3{
    font-size: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 20px;
}

/* Span for the animated typing effect */
.hero-section h3 span{
    position: relative;
    font-family: 'Courier Prime', sans-serif;
}

/* The text that gets animated in the typing effect */
.hero-section h3 span::before{
    content: 'Junior Frontend Developer';
    color: #00ff51;
    animation: words 20s infinite; /* 'words' animation for changing text */
}

/* The blinking cursor for the typing effect */
.hero-section h3 span::after{
    content: '';
    background-color: #0a1828;
    position: absolute;
    width: calc(100% + 8px);
    height: 150%;
    border-left: 2px solid #00ff51;
    right: 0px;
    animation: cursor .6s infinite, typing 20s steps(14) infinite; /* 'cursor' for blinking and 'typing' for the effect */
}

/* Keyframes for the blinking cursor */
@keyframes cursor{
    to{
        border-left: 2px solid #00ff51;
    }
}

/* Keyframes for changing the words in the typing animation */
@keyframes words{
    0%, 20%{ 
        content: 'Junior Data Scientist'; 
    }
    21%, 40%{ 
        content: 'Junior Web Developer'; 
    }
    41%, 60%{ 
        content: 'Junior UI/UX Designer'; 
    }
    61%, 80%{ 
        content: 'Blogger'; 
    }
    81%, 100%{ 
        content: 'Student'; 
    }
}

/* Keyframes for the typing and deleting effect */
@keyframes typing{
    /* Pauses at the end of each word */
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95%{
        width: 0; /* Simulates deleting the word */
    }

    /* Types out the word */
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85%{
        width: calc(100% + 3px);
    }
}

/* Main heading in the hero section */
.hero-section h1{
    margin-top: 7rem;
    margin-bottom: 10px;
    margin-right: 70px;
    font-size: 40px;
    color: #f7f4e9;
}

/* Paragraph text in the hero section */
.hero-section p{
    margin-top: 8px;
    margin-right: 2rem;
    margin-left: 2rem;
    font-size: 25px;
    color: #f7f4e9;
}

/* Button in the hero section */
.hero-section button{
    background-color: #00ff51;
    border-radius: 20px;
    border: none;
    width: 150px;
    padding: 8px 20px;
    color: #000000;
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 15px;
    transition: .5s ease;
    margin-left: 30rem;
    margin-right: 2rem;
}

/* Container for the text content in the hero section */
.hero-text {
    flex: 1 1 0; /* Allows the text container to grow and shrink */
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    box-sizing: border-box;
    text-align: right;
    height: 100%;
    overflow: hidden;
    align-self: center;
}

/* Image in the hero section */
.hero-section img{
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 25px #00ff51;
    border: 3px solid #00ff51;
    transition: .4s ease-in-out;
    margin: 10px;
    max-width: 100%;
    height: 5rem;
    animation: heroSection 2s ease-in forwards; /* 'heroSection' animation */
    opacity: 0;
    animation-delay: .2s;
}

/* Hover effect for the hero image */
.hero-section img:hover{
    cursor: pointer;
    box-shadow: 0 0 5px #00ff51,
                0 0 20px #00ff51,
                0 0 60px #00ff51,
                0 0 150px #00ff51; /* Glowing effect */
}

/* Container for social media icons */
.social-icons {
    margin-right: 2.7rem;
    margin-left: 20px;
}

/* Individual social media icon links */
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #00ff51;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 10px 2px;
    text-align: center;
    margin-left: 10px;
}

/* Hover effect for social media icons */
.social-icons a:hover{
    background-color: #00ff51;
    transform: scale(1.0) translateY(-5px); /* Moves the icon up slightly */
    box-shadow: 0 0 5px #00ff51,
                0 0 20px #00ff51,
                0 0 60px #00ff51,
                0 0 150px #00ff51; /* Glowing effect */
}


/* ==========================================================================
   Fade-in Animations
   ========================================================================== */

/* Applying the fadeIn animation to various elements with different delays */
h1{ 
    animation: fadeIn 1.2s ease-out forwards; opacity: 0; animation-delay: .2s; 
}

h3{ 
    animation: fadeIn 1.4s ease-out forwards; 
    opacity: 0; 
    animation-delay: .4s; 
    color: #f7f4e9; 
}

p{ 
    animation: fadeIn 1.6s ease-out forwards; 
    opacity: 0; 
    animation-delay: .6s; 
}

.hero-section button{ 
    animation: fadeIn 1.8s ease-out forwards; 
    opacity: 0; 
    animation-delay: .8s; 
}

.social-icons{ 
    animation: fadeIn 2s ease-out forwards; 
    opacity: 0; 
    animation-delay: 1s; 
}

/* Keyframes for the fadeIn animation */
@keyframes fadeIn{
    from{
        transform: translateY(40px); /* Starts below its final position */
        opacity: 0; /* Starts invisible */
    }
    to{
        transform: translateY(0); /* Moves to its final position */
        opacity: 1; /* Fades in */
    }
}

/* Keyframes for a fadeIn from the top animation */
@keyframes fadeInTop{
    from{
        transform: translateY(-100%); /* Starts above the viewport */
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}

/* Keyframes for a zoom-in effect */
@keyframes heroSection{
    from{
        transform: translateZ(100%); /* Starts further away */
        opacity: 0;
    }
    to{
        transform: translateZ(0); /* Zooms in to its final position */
        opacity: 1;
    }
}

/* ==========================================================================
   Profile Card
   ========================================================================== */

/* Container for the profile card */
.profile-card {
    background: #23232b;
    color: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 400px;
    height: auto;
    box-shadow: 0 0 25px #FFD600; /* Yellow glowing shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px;
    position: relative;
    align-self: center;
    animation: aboutSection 1s ease-in forwards; /* 'aboutSection' animation */
}

/* Name in the profile card */
.profile-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
    animation: fadeIn 2s ease-out forwards;
}

/* Role in the profile card */
.profile-role {
    font-size: 0.3rem;
    color: #bdbdbd;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 2s ease-out forwards;
}

/* Container for skills in the profile card */
.profile-skills {
    width: 100%;
    margin-top: 0.5rem;
}

/* Individual skill item */
.profile-skills div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 2s ease-out forwards;
}

/* Skill label */
.profile-skills span {
    width: 80px;
    font-size: 0.95rem;
    color: #FFD600;
}

/* Skill progress bar background */
.profile-skills .bar {
    flex: 1;
    height: 10px;
    background: #333;
    border-radius: 4px;
    margin: 0 8px;
    overflow: hidden;
}

/* Skill progress bar fill */
.profile-skills .fill {
    height: 100%;
    background: #FFD600;
    border-radius: 4px;
    display: block;
    width: 100%; /* This will be set dynamically with JS or inline styles */
    margin: 0;
}

/* Percentage text for the skill */
.profile-skills .percent {
    font-size: 0.85rem;
    color: #fff;
    width: 40px;
    text-align: right;
}

/* ==========================================================================
   About Section
   ========================================================================== */

/* Main container for the about section */
.about-main-section {
    background: #0a1828;
    color: rgb(255, 255, 255);
    font-family: Inter, Arial, sans-serif;
    min-height: 94vh;
    max-width: 1550px;
    position: relative;
    align-items: stretch;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 94.5vh;
}

/* Header for the about section */
.about-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Icon in the about section */
.about-icon {
    font-size: 2.5rem;
    color: #a78bfa;
    margin: 10px;
    animation: aboutSection 1s ease-in forwards, fadeIn 2s ease-out forwards;
}

/* Title in the about section */
.about-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 50px 20px;
    line-height: 1.5;
    font-style: oblique;
    color:  #bdbdbd;
}

/* Row for content in the about section */
.about-content-row {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: center;
}

/* Illustration in the about section with a floating effect */
.about-illustration {
    flex: 0 0 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: floatY 3s ease-in-out infinite; /* 'floatY' animation */
}

/* Image in the about section */
.about-img {
    width: 500px;
    height: 300px;
    border-radius: 18px;
    background: #23232b;
    box-shadow: 0 4px 32px #bdbdbd;
    margin: 0 70px;
}

/* Information container in the about section */
.about-info {
    flex: 1 1 0;
    background: none;
    padding: 0 20px;
    margin: 0 20px;
}

/* Heading in the about-info container */
.about-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 12px 0;
    color:  #bdbdbd;
    animation: fadeIn 2s ease-out forwards;
}

/* Description text in the about section */
.about-desc {
    color: #bdbdbd;
    font-size: 1rem;
    margin: 24px 0;
}

/* Keyframes for the floating animation */
@keyframes floatY {
    0% { 
        transform: translateY(0px); 
    } /* Starts at original position */
    50% { 
        transform: translateY(-5px) scale(1.03); 
    } /* Moves up and slightly enlarges */
    100% { 
        transform: translateY(0px); 
    }
}

/* Grid for displaying information */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 18px;
}

/* Box for each piece of information */
.info-box {
    background: #4a5fc1;
    border-radius: 12px;
    padding: 18px 20px;
    display: grid;
    min-height: 70px;
    animation: aboutSection 3s ease-in forwards;
}

/* Label for the information */
.info-label {
    color: #bdbdbd;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Value of the information */
.info-value {
    color: black;
    font-size: 1.08rem;
    font-weight: 500;
    word-break: break-all; /* Prevents long words from overflowing */
    justify-content: center;
}

/* Styling for email links */
.info-value-email, .info-value-tel {
    color: black;
    text-decoration: none;
}

/* Hover effect for links in the info box */
.info-value a:hover {
    color: #a78bfa;
}

/* Social media link styling */
.social-link {
    color: black;
    margin-right: 12px;
}

/* SVG icon styling within social links */
.social-link svg {
    fill: black;
    transition: fill 0.2s;
}

/* Hover effect for social links */
.social-link:hover, .social-link:hover svg {
    color: #a78bfa;
    fill: #a78bfa;
}

/* Keyframes for the 'aboutSection' zoom-in animation */
@keyframes aboutSection{
    from{ 
        transform: translateZ(100%); 
        opacity: 0; 
    }
    to{ 
        transform: translateZ(0); 
        opacity: 1; 
    }
}

/* ==========================================================================
   Marquee Section
   ========================================================================== */

/* Container for the marquee (scrolling text) section */
.marquee-section {
    width: 100vw;
    overflow: hidden;
    background: #4a5fc1;
    margin: 0;
    padding: 0.5rem 0;
    animation: aboutSection 1s ease-in forwards;
}

/* The marquee element itself */
.marquee {
    width: 100%;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden;
    position: relative;
    animation: fadeIn 2s ease-out forwards;
}

/* The text that scrolls within the marquee */
.marquee span {
    display: inline-block;
    padding-left: 100vw; /* Pushes the start of the text off-screen */
    font-size: 1.2rem;
    color: black;
    letter-spacing: 0.1em;
    animation: marquee-left 50s linear infinite; /* 'marquee-left' animation */
}

/* Keyframes for the marquee scrolling animation */
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Moves the text from right to left */
}

/* ==========================================================================
   Journey Section
   ========================================================================== */

/* Main container for the journey/timeline section */
.journey-section {
    color: #fff;
    padding: 30px 0;
    width: 100vw;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* Pseudo-element for the background image with blur and brightness effects */
.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
    filter: blur(5px) brightness(0.5);
    opacity: 0.9;
    z-index: 0; /* Places the pseudo-element behind the content */
}

/* Title of the journey section */
.journey-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-out forwards;
}

/* Span within the journey title for color */
.journey-title span {
    color: #00bfff;
}

/* Row for the title and download button */
.journey-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Download CV button */
.journey-download-btn {
    display: inline-block;
    background: #00ff51;
    color: #18181b;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    padding: 0.6em 1.5em;
    border-radius: 2em;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px #00ff5130;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
    animation: aboutSection 1s ease-in forwards;
}

/* Hover effect for the download button */
.journey-download-btn:hover {
    background: slateblue;
    color: white;
    box-shadow: 0 0 10px #00ff51, 0 0 40px #00ff51; /* Glowing effect */
}

/* Container for the two columns (Education and Experience) */
.journey-columns {
    display: flex;
    justify-content: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual column */
.journey-column {
    flex: 1 1 0;
    min-width: 320px;
}

/* Heading for each column */
.journey-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
}

/* Timeline container */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card for each item in the timeline */
.journey-card {
    background: #23232b;
    border-radius: 12px;
    padding: 22px 28px 18px 32px;
    position: relative;
    box-shadow: 0 2px 16px #00000030;
    border-left: 4px solid #00bfff; /* Vertical line for the timeline */
    animation: aboutSection 3s ease-in forwards;
}

/* Dot on the timeline */
.journey-dot {
    position: absolute;
    left: -10px; /* Positions the dot on the border */
    top: 32px;
    width: 16px;
    height: 16px;
    background: #18181b;
    border: 4px solid #00bfff;
    border-radius: 50%;
    z-index: 2;
}

/* Date for the timeline item */
.journey-date {
    font-size: 0.98rem;
    color: #00bfff;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Title of the timeline item */
.journey-title-main {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

/* Description of the timeline item */
.journey-desc {
    font-size: 0.98rem;
    color: #bdbdbd;
    line-height: 1.5;
}

/* ==========================================================================
   Interests Section
   ========================================================================== */

/* Main container for the interests section */
.interests-section {
    background: slategray;
    background-image: url(patterns.png); /* A subtle pattern for the background */
    padding: 50px 0;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title of the interests section */
.interests-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 36px 0;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-out forwards;
}

/* Span within the interests title for color */
.interests-title span {
    color: #00ff51;
}

/* Grid for displaying interest cards */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Responsive grid */
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Card for each interest */
.interest-card {
    background: #23232b;
    border-radius: 18px;
    box-shadow: 0 2px 16px #00000030;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    animation: .3s ease-in forwards;
}

/* Hover effect for the interest card */
.interest-card:hover {
    transform: translateY(-8px) scale(1.03); /* Lifts the card up */
    box-shadow: 0 8px 32px #00ff5130;
    border-color: #00ff51;
}

/* Icon for the interest */
.interest-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    color: #00ff51;
}

/* Label for the interest */
.interest-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

/* Description of the interest */
.interest-desc {
    font-size: 1rem;
    color: #bdbdbd;
    text-align: center;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

/* Main container for the portfolio section */
.portfolio-section{
    padding: 30px;
    background-color: #d48166;
}

/* Title of the portfolio section */
.portfolio-section h2{
    text-align: center;
    margin: 20px 0;
    letter-spacing: 2px;
    padding-top: 20px;
    font-size: 2.5rem;
    font-weight: 1000;
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
}

/* Span within the portfolio title for color */
.portfolio-section h2 span{
    color: blueviolet;
}

/* Individual project box */
.project-box{
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: .3s ease-in forwards;
}

/* Hover effect for the project box */
.project-box:hover{
    box-shadow: 0 0 10px #00ff51,
                0 0 20px #00ff51; /* Glowing effect */
    transform: translateY(-8px) scale(1.03);
}

/* Content overlay for the project box */
.project-content{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(99, 182, 251, 0.85);
    opacity: 7;
    padding: 20px;
    transform: translateY(100%); /* Hides the content by default */
    transition: .5s ease;
    align-items: center;
}

/* Slides up the project content on hover */
.project-box:hover .project-content{
    transform: translateY(0);
}

/* Project title */
.project-content h3{
    font-size: 20px;
    margin-top: 0;
}

/* Project description */
.project-content p{
    margin: 10px 0;
}

/* Button within the project content */
.project-content button{
    background-color: #00ff51;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
}

/* Hover effect for the project button */
.project-content button:hover{
    cursor: pointer;
    box-shadow: 0 0 5px #00ff51,
                0 0 20px #00ff51,
                0 0 60px #00ff51,
                0 0 150px #00ff51;
}

/* Link inside the project button */
.project-content button a{
    text-decoration: none;
    color: #000000;
}

/* First grid container for projects */
.project-container-1{
    display: grid;
    gap: 1rem;
    grid-auto-rows: 220px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
}

/* General styling for project boxes in the first container */
.project-container-1 .project-box{
    border-radius: 1rem;
    text-align: center;
    transition: .5s ease;
    border: 1px solid #00ff51;
}

/* Specific styling for each project box, including background images and grid placement */
.project-container-1 .project-box:nth-child(1){
    background-image: url(https://witaba.vercel.app/pexels-pixabay-264636.jpg);
    grid-area: 1 / 1 / 3 / 2; /* Spans 2 rows and 1 column */
    margin-left: 140px;
    margin-top: 20px;
}

.project-container-1 .project-box:nth-child(2){
    background-image: url('Eugene project 2.jpg');
    margin-right: 140px;
    margin-top: 20px;
}

.project-container-1 .project-box:nth-child(3){
    background-image: url('Eugene project 3.jpg');
    margin-right: 140px;
}

/* Second grid container for projects */
.project-container-2{
    display: grid;
    gap: 1rem;
    grid-auto-rows: 250px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
}

/* General styling for project boxes in the second container */
.project-container-2 .project-box{
    border-radius: 1rem;
    text-align: center;
    transition: .5s ease;
    border: 1px solid #00ff51;
}

/* Specific styling for each project box in the second container */
.project-container-2 .project-box:nth-child(1){
    background-image: url('Eugene project 4.jpg');
    grid-area: 1 / 1 / 2 / 3; /* Spans 1 row and 2 columns */
    margin-left: 140px;
    margin-right: 140px;
}

.project-container-2 .project-box:nth-child(2){
    background-image: url('Eugene project 5.jpg');
    margin-left: 140px;
}

.project-container-2 .project-box:nth-child(3){
    background-image: url('Eugene project 6.jpg');
    margin-right: 140px;
}

/* Adjusting the height and padding of project content on hover for better readability */
.project-container-1 .project-box:nth-child(1):hover .project-content { 
    height: 60%; 
    overflow: hidden; 
}

.project-container-1 .project-box:nth-child(2):hover .project-content { 
    height: 100%; 
    overflow: hidden; 
}

.project-container-1 .project-box:nth-child(3):hover .project-content { 
    height: 100%; 
    overflow: hidden; 
}

.project-container-2 .project-box:nth-child(1):hover .project-content { 
    height: 100%; 
    overflow: hidden; 
}

.project-container-2 .project-box:nth-child(2):hover .project-content { 
    height: 100%; 
    overflow: hidden; 
}

.project-container-2 .project-box:nth-child(3):hover .project-content { 
    height: 100%; 
    overflow: hidden; 
}

/* Custom padding for project descriptions on hover */
.project-container-2 .project-box:nth-child(1):hover .project-content p{ 
    width: 100%; 
    padding: 2rem 6rem; 
}

.project-container-2 .project-box:nth-child(2):hover .project-content p{ 
    width: 100%; 
    padding: 2rem 6rem; 
}

.project-container-2 .project-box:nth-child(3):hover .project-content p{ 
    width: 100%; 
    padding: 2rem 6rem; 
}

.project-container-1 .project-box:nth-child(1):hover .project-content p{ 
    width: 100%; 
    padding: 1rem 2rem; 
}

.project-container-1 .project-box:nth-child(2):hover .project-content p{ 
    width: 100%; 
    padding: 0.5rem 3rem; 
}

.project-container-1 .project-box:nth-child(3):hover .project-content p{ 
    width: 100%; 
    padding: 0.5rem 1rem; 
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

/* Main container for the contact section */
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  background: #F2BFA4;
  padding: 43px 0;
  width: 100vw;
  height: 100vh;
  background-image: url(image.png);
  filter: brightness(0.9);
}

/* Contact card container */
.contact-card {
  display: flex;
  width: 800px;
  height: 600px;
  max-width: 100vw;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  overflow: hidden;
  animation: .3s ease-in forwards;
}

/* Left side of the contact card (profile information) */
.contact-left {
  background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
  color: #fff;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-width: 280px;
}

/* Wrapper for the profile image */
.contact-profile-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  border: 6px solid #fff3;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
}

/* Profile image */
.contact-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile name */
.contact-profile-name {
  font-family: 'Poppins', 'Alegreya Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 4px 0;
  letter-spacing: 0.5px;
}

/* Profile role */
.contact-profile-role {
  font-size: 1rem;
  font-weight: 400;
  margin: 15px 0;
  opacity: 0.92;
  text-align: center;
}

/* Profile description */
.contact-profile-desc {
  font-size: 0.95rem;
  color: black;
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* Container for social icons */
.contact-social-icons {
  display: flex;
  gap: 14px;
  margin: 11px 0;
}

/* Individual social icon link */
.contact-social-icons a {
  background: #23242a;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

/* Hover effect for social icon link */
.contact-social-icons a:hover {
  background: #fff;
}

/* SVG icon within the link */
.contact-social-icons svg {
  fill: #fff;
  width: 22px;
  height: 22px;
  transition: fill 0.2s;
}

/* Hover effect for the SVG icon */
.contact-social-icons a:hover svg {
  fill: #ff4e50;
}

/* Right side of the contact card (contact form) */
.contact-right {
  flex: 2 1 400px;
  background: #fff;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-width: 320px;
  align-self: center;
}

/* Title for the contact form */
.contact-title {
  font-family: 'Poppins', 'Alegreya Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #23242a;
  margin: 20px 0;
  text-align: left;
}

/* The contact form itself */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}

/* Input and textarea fields */
.contact-input, .contact-textarea {
  width: 100%;
  height: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #23242a 0%, #444 100%);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

/* Placeholder text styling */
.contact-input::placeholder, .contact-textarea::placeholder {
  color: #ccc;
  opacity: 1;
}

/* Focus effect for input and textarea */
.contact-input:focus, .contact-textarea:focus {
  background: linear-gradient(90deg, #444 0%, #23242a 100%);
  color: #fff;
}

/* Textarea specific styling */
.contact-textarea {
  min-height: 280px;
  resize: none; /* Disables resizing */
}

/* Send button */
.contact-send-btn {
  background: #23242a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s;
}

/* Hover effect for the send button */
.contact-send-btn:hover {
  background: #ff4e50;
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
    background-color: black;
}

footer p {
    margin: 10px 0;
    flex: 1;
    text-align: center;
}

/* ==========================================================================
   Media Queries for Responsive Design
   ========================================================================== */

/* For tablets and smaller desktops (max-width: 992px) */
@media (max-width: 992px) {
    html {
        overflow-x: hidden;
    }

    .header-container { 
        padding: 0.75rem 1rem; 
    }

    .main-nav { 
        gap: 1rem; 
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        text-align: center;
        padding: 1rem 0;
    }

    .menu-icon {
        display: block;
    }

    .close-icon {
        display: none;
    }

    .nav-toggle:checked ~ .icon .menu-icon {
        display: none;
    }

    .nav-toggle:checked ~ .icon .close-icon {
        display: block;
    }

    .header-btn { 
        display: none; 
    } /* Hides the button on smaller screens */

    /* Stacks hero section content vertically */
    .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        min-height: 150vh;
    }

    .hero-text {
        align-items: center;
        text-align: center;
        margin: 0 auto;
        order: 1;
    }

    .hero-text h1 { 
        font-size: 36px; 
        margin-right: 2rem; 
    }

    .hero-text h3 { 
        font-size: 22px; 
        margin-right: 2rem; 
    }

    .hero-section button { 
        margin: 15px auto; 
        align-items: center;
    }

    .profile-card { 
        width: 70%;
        margin: 2rem; 
        height: fit-content;
        order: 2; 
    }

    /* Stacks about section content vertically */

     .about-main-section {
        height: auto; /* REMOVE fixed height */
        padding: 4rem 1rem; /* Add vertical padding for spacing */
    }

    .about-content-row { 
        flex-direction: column; 
        align-items: center; 
        gap: 3rem; 
        height: auto;
    }

    .about-img { 
        margin: 0; 
        width: 100%; 
        max-width: 500px; 
        order: 1; 
        height: auto; 
    }

    .about-info { 
        padding: 0 1rem; 
        margin: 0; 
        order: 2; 
        text-align: center; /* Center all text content */
        max-width: 850px; /* Prevent text lines from being too wide */
    }

     .info-grid {
        text-align: left; /* Keep grid text aligned to the left for clarity */
    }

    /* Adjusts interests grid */
    .interests-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 910px;
        height: 100%;
        grid-auto-rows: 1fr;
        flex-grow: 1;
    }

    .interests-section { 
        padding: 50px 1rem; 
    }

    .interest-card { 
        justify-content: center; 
    }

    /* Stacks portfolio projects into a single column */
    .project-container-1, .project-container-2 {
        grid-template-columns: 1fr;
        margin: 0 2rem;
    }

    .project-container-1 .project-box:nth-child(n),
    .project-container-2 .project-box:nth-child(n) {
        margin: 0;
        grid-area: auto;
    }

    .project-container-1 .project-box:nth-child(1):hover .project-content { 
        height: 100%; 
    }

    /* Stacks journey columns vertically */
    .journey-columns { 
        flex-direction: column; 
        gap: 2rem; 
        padding: 0 1rem; 
        height: 100%; 
    }
    
    /* Stacks contact card vertically */
    .contact-card { 
        width: 90%; 
        flex-direction: column; 
        height: auto; 
    }

    .contact-left { 
        border-radius: 20px 20px 0 0; 
    }

    .contact-right { 
        padding: 2rem; 
        width: 100%; 
    }
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile navigation becomes a toggleable menu */
    body {
        overflow-x: hidden;
    }

    .main-nav {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem 0;
        align-items: center;
        transform: translateY(-150%);
        transition: 0.3s ease;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

     .header-logo {
        height: 40px;
        width: 80px;
    }

    .main-nav.active { 
        display: flex; 
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .icon { 
        display: block; 
    } /* Shows the hamburger icon */

    .menu-icon { 
        display: block; 
    }

    .close-icon {
        display: none;
    }

     .menu-icon, .close-icon {
        width: 24px;
        height: 24px;
    }

    /* Logic for showing/hiding the menu with a checkbox hack */
    .nav-toggle:checked ~ .main-nav { 
        display: flex; 
    }

    .nav-toggle:checked ~ .icon .menu-icon { 
        display: none; 
    }

    .nav-toggle:checked ~ .icon .close-icon { 
        display: block; 
    }

    .header-btn {
        display: none;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        height: 150vh;
        padding: 2rem 1rem;
    }

    .hero-text {
        order: 1;
        align-items: center;
        text-align: center;
        margin-top: 2rem;
    }

    /* Reordering and resizing hero section for mobile */
    .hero-section img { 
        order: -2; 
        margin: 1rem auto; 
        height: 8rem;
        width: 8rem; 
    }

    .hero-section h1 {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    .hero-section h3 {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    
    .hero-section h3 span::before {
        font-size: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

     .hero-section button {
        margin: 1rem auto;
        width: 80%;
    }

     .social-icons {
        margin: 1rem auto;
    }

    /* Adjusting layouts for smaller screens */
    .profile-card { 
        width: 90%; 
        margin: 0.5rem auto; 
        height: auto; 
        order: 2; 
    }

    .profile-skills {
        height: 100%;
    }

    .about-main-section { 
        height: auto; 
        padding: 2rem 1rem; 
    }

     .about-content-row {
        flex-direction: column;
    }

    .about-title { 
        font-size: 1.2rem; 
    }

    .about-img {
        order: 1;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .about-info {
        order: 2;
        padding: 0;
    }

     .info-grid {
        grid-template-columns: 1fr;
    }

    .journey-section { 
        height: auto; 
        padding: 2rem 1rem; 
    }

     .journey-columns {
        flex-direction: column;
    }
    
    .journey-column {
        width: 100%;
    }
    
    .journey-title {
        font-size: 1.8rem;
    }

    .interests-grid { 
        grid-template-columns: 1fr;
    }

    .interests-section { 
        padding: 2rem 1rem; 
        height: auto; 
    }

    .portfolio-section { 
        padding: 2rem 1rem; 
    }

    .project-container-1, .project-container-2 {
        grid-template-columns: 1fr; 
        margin: 0; 
    }

     .project-box {
        margin: 0.5rem 0 !important;
    }

    .project-container-1 .project-box:nth-child(1):hover .project-content {
        height: 100%;
    }

     .project-content p {
        padding: 0.5rem !important;
    }

    .contact { 
        padding: 2rem 1rem; 
        height: auto; 
    }

    .contact-card { 
        width: 100%; 
        flex-direction: column;
        height: auto;
    }

    .contact-left, 
    .contact-right {
        flex: none;
        width: 100%;
    }

     .contact-textarea {
        min-height: 150px;
    }

    .contact-title { 
        font-size: 1.3rem; 
    }

    footer p { 
        font-size: 0.9rem; 
    }
}

/* ==========================================================================
   Very Small Screens (under 400px)
   ========================================================================== */

@media (max-width: 400px) {
    html {
        font-size: 14px;
        overflow-x: hidden;
    }

    .hero-section {
        height: 150vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h3 {
        font-size: 1rem;
    }
    
    .profile-card {
        width: 95%;
        padding: 1.5rem 1rem;
    }
    
    .about-title {
        font-size: 1.1rem;
        margin: 2rem 1rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .contact-profile-img-wrap {
        width: 100px;
        height: 100px;
    }
}