/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ccd6f6;
    background-color: #0a192f;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Highlighted important words */
.highlight {
    color: #64ffda; /* Use the same color as your other highlighted elements */
    font-weight: bold; /* Optional: make the highlighted words bold */
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    overflow: visible; /* Ensure container doesn't hide overflow content */
}

/* Header */
header {
    background: #0a192f;
    padding: 15px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

/* Navigation Links */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links ul li {
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-links ul li:nth-child(1) {
    transition-delay: 0.5s;
}

.nav-links ul li:nth-child(2) {
    transition-delay: 1s;
}

.nav-links ul li:nth-child(3) {
    transition-delay: 1.5s;
}

.nav-links ul li:nth-child(4) {
    transition-delay: 2s;
}

.nav-links ul li.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.nav-links ul li a {
    color: #ccd6f6;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    transition: color 0.3s ease;
}

.nav-links ul li a span {
    color: #64ffda;
    font-family: inherit;
    font-size: 0.8rem;
    margin-right: 5px;
}

.nav-links ul li a:hover {
    color: #64ffda;
}

/* Resume Button */
.resume-button a {
    border: 1px solid #64ffda;
    color: #64ffda; /* Text color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    position: relative;
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: 1;
}

.resume-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: #0a192f; /* Background color matches the body color */
    transform: scale(1.05); /* Scale slightly larger */
    z-index: -1; /* Behind the actual button */
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* Start with no shadow */
}

.resume-button a:hover::before {
    transform: scale(1.15); /* Increase the scale on hover */
    box-shadow: 0px 8px 20px rgba(100, 255, 218, 0.5); /* Create the popping shadow */
    background-color: #64ffda; /* Background color changes to light green */
}

.resume-button a:hover {
    background-color: #64ffda; /* Match the hover state with the background color */
    color: #0a192f; /* Text color changes to match the background */
}

/* Section adjustments */
.intro, .education, .skills, .experience, .projects, .publications, .research-experience {
    padding: 100px 0; /* Adjust padding to ensure enough space between sections */
    margin-top: 60px; /* Reduced margin-top to better accommodate the fixed header */
    opacity: 0;
    transform: translateY(-50px); /* Move sections slightly upward */
    transition: opacity 1s ease-in-out 1s, transform 1s ease-in-out 1s; /* Delayed transition */
}

.content.visible header {
    opacity: 1;
}

.content.visible .intro, .content.visible .education, .content.visible .skills, .content.visible .experience, .content.visible .projects, .content.visible .publications, .content.visible .research-experience {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2s; /* Delay content fade-in to follow the header */
}

/* Content within sections */
.intro .container, .education .container, .skills .container, .experience .container, .projects .container, .publications .container, .research-experience .container {
    opacity: 0;
    transform: translateY(50px); /* Move content slightly downward */
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s; /* Delay for a smooth transition */
}

.content.visible .intro .container, .content.visible .education .container, .content.visible .skills .container, .content.visible .experience .container, .content.visible .projects .container, .content.visible .publications .container, .content.visible .research-experience .container {
    opacity: 1;
    transform: translateY(0); /* Move content back to its original position */
}

/* Project-specific styles */
.contact {
    margin-bottom: 40px; /* Spacing between each contact.contact */
}

.contact h3 {
    margin-bottom: 10px; /* Spacing below contact.contact titles */
}

.contact-duration {
    margin-bottom: 15px; /* Spacing below contact.contact duration */
}

.contact-details {
    margin-bottom: 20px; /* Spacing below contact.contact details */
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a192f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

#logo {
    width: 100px;  /* Adjust the size of the SVG */
    height: 100px; /* Adjust the size of the SVG */
    transition: transform 1s ease, top 1s ease, left 1s ease;
}

.hidden #logo {
    transform: scale(0.5) translate(-400%, -400%); /* Adjust this value to fine-tune the final position */
    position: absolute;
    top: 0;
    left: 0;
    width: 0px;  /* Adjust the size for the final position */
    height: 0px; /* Adjust the size for the final position */
}

#logo polygon {
    animation: drawHexagon 2s ease forwards;
}

@keyframes drawHexagon {
    0% {
        stroke-dasharray: 300;
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dasharray: 300;
        stroke-dashoffset: 0;
    }
}

#logo text {
    fill-opacity: 0;
    animation: fadeInText 2s ease forwards 1s; /* Delay text fade-in */
}

@keyframes fadeInText {
    to {
        fill-opacity: 1;
    }
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

/* Social Icons */
.social-icons {
    position: fixed;
    bottom: 20px; /* Adjust this to control the distance from the bottom */
    left: 20px; /* Adjust this to control the distance from the left */
    z-index: 1000;
}

.social-icons ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between the icons */
}

.social-icons ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-icons ul li a {
    color: #ccd6f6;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons ul li a:hover {
    color: #64ffda;
}

.social-icons ul li.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* Spotlight effect */
.spotlight {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30); /* Increased brightness by raising the alpha value */
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(30px);
    transition: opacity 0.2s ease;
    z-index: 1000;
}

/* Sections */
section {
    padding: 60px 0;
}

.intro, .showcase, .experience, .contact {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.intro.fade-in, .showcase.fade-in, .experience.fade-in, .contact.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for the About section */
.intro {
    padding: 150px 0; /* Add more padding to give it enough space */
    text-align: left;
    color: #ccd6f6; /* Light gray for the overall text */
}

.small-intro {
    font-size: 1.5rem; /* Smaller introductory text */
    font-weight: normal;
    color: #64ffda; /* Light green for the intro text */
    margin-bottom: 1rem;
}

.name-intro {
    font-size: 4.5rem; /* Large name font size */
    font-weight: bold;
    color: #ccd6f6; /* Light gray for the name */
    margin-bottom: 0.5rem;
}

.build-intro {
    font-size: 3.5rem; /* Slightly smaller than name for the next line */
    font-weight: bold;
    color: #8892b0; /* Lighter gray for the second header */
    margin-bottom: 2rem;
}

.description {
    font-size: 1.2rem;
    font-weight: normal;
    color: #8892b0; /* Same gray for the paragraph text */
    line-height: 1.8;
    max-width: 540px; /* Restrict width to make the text easier to read */
}

/* Ensure responsive scaling */
@media (max-width: 768px) {
    .name-intro {
        font-size: 3rem; /* Adjust font size for mobile */
    }
    .build-intro {
        font-size: 2.5rem; /* Adjust font size for mobile */
    }
}


/* About Section Styling */
.about-section {
    padding: 100px 0;
    color: #ccd6f6;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
}

/* About Content Layout */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #8892b0;
}

.about-image img {
    width: 450px;
    height: auto;
    border-radius: 8px;
    margin-left: 20px;
    border: 2px solid #64ffda; /* Optional border effect */
}

/* Technologies List */
.technologies-title {
    font-size: 1.5rem;
    color: #ccd6f6;
    margin-top: 50px;
    margin-bottom: 20px;
}

.technologies-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    color: #8892b0;
    font-size: 1.1rem;
}

.technologies-list li::before {
    content: "▹";
    color: #64ffda;
    margin-right: 10px;
}


/* Experience Section Styles */
.experience-section {
    padding: 100px 0;
    color: #ccd6f6;
}

.experience-section h2 {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
}

/* Layout */
.experience-content {
    display: flex;
}

.experience-nav {
    flex: 0 0 20%;
    border-left: 2px solid #64ffda;
    padding-left: 20px;
}

.experience-nav ul {
    list-style: none;
    padding-left: 0;
}

.experience-nav ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.experience-nav ul li a {
    color: #8892b0;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.experience-nav ul li a.active,
.experience-nav ul li a:hover {
    color: #64ffda;
}

/* Experience Details */
.experience-details {
    flex: 1;
    padding-left: 40px;
}

.job {
    display: none;
}

.active-job {
    display: block;
}

.job h3 {
    font-size: 1.8rem;
    color: #ccd6f6;
    margin-bottom: 10px;
}

.job h3 span {
    color: #64ffda;
}

.job .date {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 15px;
}

.job-details {
    list-style: none;
    padding-left: 0;
    color: #8892b0;
}

.job-details li {
    margin-bottom: 10px;
}

.job-details li::before {
    content: "▹";
    color: #64ffda;
    margin-right: 10px;
}


/* Hide all job details by default */
.job {
    display: none;
    opacity: 0;
    transform: translateY(100px); /* Start below */
    transition: all 0.5s ease-in-out;
}

/* Show active job with slide effect */
.active-job {
    display: block;
    opacity: 1;
    transform: translateY(0); /* Slide to its position */
}


/* Contact Section */
.contact-section {
    text-align: center;
    padding: 100px 0; /* Add some space above and below */
}

.contact-section h1 {
    font-size: 3rem;  /* Large heading size for "Get In Touch" */
    color: #ccd6f6;  /* Light text color */
    margin-bottom: 20px;
}

.contact-section h2 {
    font-size: 1.5rem; /* Sub-heading size */
    color: #64ffda;  /* Green highlight color */
    margin-bottom: 10px;
    letter-spacing: 1px; /* Space out the letters slightly */
}

.contact-section p {
    font-size: 1.2rem;  /* Paragraph font size */
    color: #8892b0;  /* Lighter gray for paragraph */
    margin-bottom: 40px; /* Add space below the paragraph */
    max-width: 600px; /* Limit the width of the paragraph */
    margin-left: auto;
    margin-right: auto;
}

.contact-button a {
    border: 1px solid #64ffda;
    color: #64ffda;  /* Button text color */
    padding: 10px 30px;  /* Button padding */
    border-radius: 5px;  /* Rounded corners */
    font-size: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button a:hover {
    background-color: #64ffda;  /* Change background on hover */
    color: #0a192f;  /* Text color on hover */
}
