:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #5daced;
    --background-color: #ffffff;
    --orbit-speed: 20s;
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    max-width: 800px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    margin-bottom: 15px;
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.sun-icon {
    display: none;
}

/* Dark Mode Styles */
body.dark-mode,
html.dark-mode body {
    --primary-color: #ffffff;
    --secondary-color: #b0b0b0;
    --background-color: #1a1a1a;
    --accent-color: #7dbdff; /* Lighter blue for better contrast in dark mode */
}

body.dark-mode .sun-icon,
html.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon,
html.dark-mode .moon-icon {
    display: none;
}

/* Light Mode Styles (default) */
body:not(.dark-mode) .sun-icon,
html:not(.dark-mode) .sun-icon {
    display: none;
}

body:not(.dark-mode) .moon-icon,
html:not(.dark-mode) .moon-icon {
    display: block;
}

/* Add transitions for smooth theme switching */
body.dark-mode,
html.dark-mode body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-icons {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content Styles */
main {
    text-align: center;
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.profile-link {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
}

.profile-link:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* .profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.orbit-container {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate var(--orbit-speed) linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.social-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: counter-rotate var(--orbit-speed) linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.social-icon svg {
    width: 30px;
    height: 30px;
}

.social-icon:hover {
    transform: scale(1.1);
}

.github { top: -2%; left: 35%; transform: translateX(50%); }
.linkedin { top: 19%; right: 0%; transform: translateY(-50%); }
.twitter { bottom: -1%; left: 28%; transform: translateX(-50%); }
.envelope { top: 73%; right: 5%; transform: translateY(-50%); }
.kaggle { top: 42%; left: -4%; transform: translateY(-50%); }

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.description {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Game Styles */
#game {
    margin-bottom: 50px;
}

.game-question {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#game-input {
    font-size: 1rem;
    padding: 10px;
    width: 200px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#game-result {
    margin-top: 10px;
    font-weight: bold;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
}

/* ************************************************************************** */

/* Fun Fact Styles */
.fun-fact-container {
    margin: 25px 0;
    position: relative;
    overflow: hidden;
  }
  
  .fun-fact-trigger {
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    display: inline-block;
    text-decoration: none; /* Remove default underline */
  }
  
  /* Animated underline effect */
  .fun-fact-trigger::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
  }
  
  .fun-fact-trigger:hover::after {
    width: 100%;
  }
  
  .fun-fact-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease-out;
    overflow: hidden;
    background-color: rgba(93, 172, 237, 0.05);
    border-radius: 8px;
    margin-top: 10px;
    transform: translateX(-100%);
  }
  
  .fun-fact-content p {
    padding: 15px;
    margin: 0;
  }
  
  /* Dark mode adjustment */
  body.dark-mode .fun-fact-content,
  html.dark-mode .fun-fact-content {
    background-color: rgba(125, 189, 255, 0.08);
  }
  
  /* States for when content is visible */
  .fun-fact-content.active {
    max-height: 200px;
    opacity: 1;
    transform: translateX(0);
  }
  
  .fun-fact-trigger.active {
    opacity: 0.8;
  }
  
  /* Keep the underline visible when active */
  .fun-fact-trigger.active::after {
    width: 100%;
  }
/* ************************************************************************** */

/* About Page Styles */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.profile-info p {
    margin: 5px 0;
}

.about-section, .recent-news, .contact-section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Timeline Styles */
.timeline {
    list-style-type: none;
    padding-left: 50px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    background: white;
}

.timeline-date {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.timeline-content {
    display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline li::before {
        left: -36px;
    }
}


.about-page a {
    text-decoration: none; /* Removes underline */
    color: var(--accent-color); /* Use your accent color for links */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.about-page a:visited {
    color: var(--accent-color); /* Keeps the color the same for visited links */
}

.about-page a:hover,
.about-page a:focus {
    color: var(--secondary-color); /* Change color on hover/focus for better UX */
}

/* Contact Button Styles */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white !important; /* Force white text color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none !important; /* Force no underline */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.contact-button:visited {
    color: white !important; /* Ensure visited state also has white text */
}

.contact-button:hover,
.contact-button:focus {
    background-color: var(--secondary-color);
    color: white !important; /* Maintain white text on hover/focus */
    transition: color 0.3s ease;
}

.contact-button svg {
    margin-left: 10px;
    fill: white; /* Ensure SVG is white */
    stroke: white; /* For outlined icons */
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image {
        margin-bottom: 20px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* *********************************************************************** */

/* Blog List Styles */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-container .subtitle {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tag:hover, .tag.active {
    background-color: var(--secondary-color);
}

.search-container {
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
}

.blog-list {
    display: grid;
    gap: 30px;
}

.blog-item {
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 20px;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-item .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-item .tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.blog-item .tag {
    background-color: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

@media screen and (max-width: 600px) {
    .blog-container h1 {
        font-size: 2rem;
    }
    .blog-item h2 {
        font-size: 1.5rem;
    }
}

/* ************************************************************************* */


/* Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
    }

    .logo {
        margin-bottom: 0;
    }

    .dark-mode-toggle {
        margin-bottom: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: 300px;
    }

    nav a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px rgba(0,0,0,0.1);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

    .github { top: -2%; left: 35%; }
    .linkedin { top: 19%; right: 0%; }
    .twitter { bottom: -1%; left: 28%; }
    .envelope { top: 73%; right: 5%; }
    .kaggle { top: 42%; left: -4%; }

    h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .game-question {
        font-size: 1.2rem;
    }

    #game-input {
        width: 80%;
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .profile-container {
        width: 250px;
        height: 250px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .game-question {
        font-size: 1rem;
    }
}

/* Dark Mode Styles */
body.dark-mode,
html.dark-mode body {
    --primary-color: #ffffff;
    --secondary-color: #b0b0b0;
    --background-color: #1a1a1a;
}