/* Base styles */
@font-face {
    font-family: 'MyCustomFont';
    src: url('your-font.ttf') format('truetype');
}

body {
    font-family: 'MyCustomFont', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
    background-size: 24px 24px;
    margin: 0;
    padding: 0;
    transition: background 0.2s linear;
}

/* Light and dark mode variables */
:root {
    --bg-color: white;
    --grid-line-color: rgba(0, 0, 255, 0.2); /* Blue for light mode */
    --text-color: black;
}

body.dark-mode {
    --bg-color: #292c35;
    --grid-line-color: rgba(255, 255, 0, 0.4); /* Light yellow for dark mode */
    --text-color: white;
}

/* Toggle button styling */
.toggle-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}


.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 6px;
    top: 6px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

/* Content styling */
h1 {
    text-align: center;
    margin-top: 1%;
    font-size: 48px;
    color: var(--text-color);
}

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2%;
}

.left {
  display: flex;
  flex-direction: column;   /* stack items top → bottom */
  gap: 10px;                /* space between photo and LinkedIn */
  margin-right: 20px;
}

.photo {
    width: 250px;
    height: auto;
    border-radius: 10px;
    border: 2px solid transparent;
}

.right {
    font-size: 30px;
    color: var(--text-color);
}

.right h2 {
    margin-top: 0;
    line-height: 0.6;
}

.right p {
    margin-top: 5px;
    line-height: 0.2;
}

/* Button styles */
.resume-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.resume-button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Light mode styles */
.resume-button.one-page {
    background-color: lightcoral; /* Light red for light mode */
    color: rgb(255, 255, 255);
}

.resume-button.two-page {
    background-color: lightcoral; /* Light red for light mode */
    color: rgb(255, 255, 255);
}

.resume-button.one-page:hover,
.resume-button.two-page:hover {
    background-color: #e74c3c; /* Darker red on hover */
}

/* Dark mode styles */
body.dark-mode .resume-button.one-page,
body.dark-mode .resume-button.two-page {
    background-color: #e74c3c; /* A lighter red for dark mode */
    color: white;
}

body.dark-mode .resume-button.one-page:hover,
body.dark-mode .resume-button.two-page:hover {
    background-color: lightcoral; /* Darker red on hover */
}

/* Navigation Menu Styles */
.nav-menu {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 20px 0;
}

.nav-menu li {
    display: inline; /* Display items inline */
    margin: 0 15px; /* Spacing between items */
}

.nav-button {
    padding: 10px 20px;
    background-color: #3498db; /* Blue background */
    color: white; /* White text */
    text-decoration: none; /* No underline */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Transition effect */
}

.nav-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* Notes Button Styles */
.note-button {
    padding: 15px 30px;
    background-color: #2ecc71; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s ease; /* Transition effect */
    font-size: 20px; /* Font size */
    display: block; /* Block display for centering */
    margin: 20px auto; /* Center the button */
}

.note-button:hover {
    background-color: #27ae60; /* Darker green on hover */
}

.terminal-heading {
    font-family: 'Courier New', monospace;
    color: #333;
    /* Keeps the height fixed so the page doesn't jump when text is deleted */
    min-height: 1.2em; 
}

.prompt {
    color: #3498db;
    margin-right: 5px;
}

.cursor {
    display: inline-block;
    background-color: #333;
    width: 10px;
    animation: blink 1s infinite;
}

.prompt {
    color: #3498db; /* Blue prompt color */
    margin-right: 10px;
}
.cursor {
    animation: blink 1s step-end infinite;
}

/* Dark mode overrides */
body.dark-mode .terminal-heading { color: #fff; }
body.dark-mode .cursor { background-color: #fff; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* About Me Box Styling */
.bio-box {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    /* Text formatting */
    font-size: 21px; /* Overriding the parent 30px to be more readable */
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px; /* Prevents line length from getting too long */
}

/* Fix for the overlapping text */
.bio-box p {
    line-height: 1.6 !important;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Styling for the Heading inside the Bio Box */
.bio-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 32px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

/* Styling for the Quote */
.bio-box blockquote {
    border-left: 4px solid #4a90e2; /* Blue accent line */
    margin: 25px 0;
    padding: 10px 20px;
    background: rgba(74, 144, 226, 0.1); /* Very faint blue background */
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: #444;
}

/* Dark Mode Adjustments */
body.dark-mode .bio-box h2 {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

body.dark-mode .bio-box blockquote {
    border-left-color: #f39c12; /* Yellow/Orange accent for dark mode */
    background: rgba(243, 156, 18, 0.1); /* Faint yellow background */
    color: #ddd;
}

/* Dark Mode Overrides for Bio Box */
body.dark-mode .bio-box {
    background: rgba(41, 44, 53, 0.85); /* Semi-transparent dark grey */
    color: #ececec;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.LI-profile-badge {
    transform: scale(0.75); /* Shrinks it to roughly 250px */
    transform-origin: top left;
    margin-top: 15px;
}

.linkedin-wrapper {
  position: relative;
  display: inline-block;
}

.linkedin-overlay {
  position: absolute;
  inset: 0;               /* top:0; left:0; right:0; bottom:0 */
  z-index: 10;
  cursor: pointer;
  background: rgba(0,0,0,0); /* invisible */
}

/* Email Button Styling (Purple) */
.resume-button.email-btn {
    background-color: #9b59b6; /* Amethyst Purple */
    color: white;
}

.resume-button.email-btn:hover {
    background-color: #8e44ad; /* Darker Purple on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Dark Mode Override for Email Button */
body.dark-mode .resume-button.email-btn {
    background-color: #8e44ad;
    color: white;
}

body.dark-mode .resume-button.email-btn:hover {
    background-color: #9b59b6; /* Lighter Purple on hover in dark mode */
}






/* Quote Animation Styles */
.quote-text {
    /* font-family: 'Courier New', monospace;  */
    font-weight: 600;
    white-space: pre-wrap;
}

.quote-cursor {
    display: inline-block;
    width: 6px;
    background-color: #4a90e2; /* Matches your blue accent */
    animation: blink 1s infinite;
}

/* Dark mode override for cursor */
body.dark-mode .quote-cursor {
    background-color: #f39c12; /* Matches your dark mode yellow accent */
}

/* Ensure the quote box doesn't collapse when text is deleted */
.bio-box blockquote {
    min-height: 60px; /* Adjust based on your font size */
    display: flex;
    align-items: center; /* Vertically center single-line quotes */
}


/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 12px; /* Smaller base font size for mobile */
    }

    h1 {
        font-size: 24px; /* Smaller title size for mobile */
    }

    .content {
        flex-direction: column; /* Stack the left and right sections vertically */
        align-items: center; /* Center align items */
        padding: 10px; /* Add some padding */
    }

    .left {
        margin: 0 0 6px 0; /* Remove right margin and add bottom margin */
    }

    .photo {
        width: 100%; /* Make the image responsive */
        max-width: 200px; /* Set a max width for the image */
        height: auto; /* Maintain aspect ratio */
    }

    .right {
        font-size: 14px; /* Smaller font size for mobile */
    }

    .right h2 {
        font-size: 18px; /* Adjust heading size */
        margin-top: 5px; /* Add some margin */
    }

    .right p {
        font-size: 12px; /* Adjust paragraph size */
        margin: 5px 0; /* Add some margin for spacing */
    }

    .toggle-container {
        top: 10px; /* Adjust position for smaller screens */
        left: 10px; /* Adjust position for smaller screens */
        z-index: 10; /* Ensure toggle is above other elements */
    }

    /* Add padding to the toggle button */
    .checkbox-label {
        padding: 3px; /* Reduced padding */
    }

    .checkbox-label .ball {
        background-color: #fff;
        width: 22px;
        height: 20px;
        position: absolute;
        left: 5px;
        top: 6px;
        border-radius: 50%;
        transition: transform 0.2s linear;
    }
}