/* 
 * Color Palette: Modern Blue & Gray Theme
 * Palette inspired by: https://coolors.co/4a9eff-f8f9fa-202124-5f6368-ffffff
 * 
 * Primary: #4a9eff
 * Secondary: #f8f9fa
 * Text Primary: #202124
 * Text Secondary: #5f6368
 * Background: #ffffff
 * 
 * Typography: Share Tech Mono from Google Fonts (https://fonts.google.com/specimen/Share+Tech+Mono)
 */

/* Theme Variables and Toggle Functionality */
:root {
    --primary-color: #4a9eff;
    --secondary-color: #f8f9fa;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --background-color: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #e0e0e0;
}

:root[data-theme="dark"] {
    --primary-color: #4a9eff;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --border-color: #2d2d2d;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    font-family: 'Share Tech Mono', monospace;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, div, button, input {
    font-family: 'Share Tech Mono', monospace;
}

body, button, input, select, textarea {
    font-family: 'Share Tech Mono', monospace;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #135cc5;
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Hero section styling */
#hero {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: left;
}

#hero .section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
}

#hero .section-container > div:first-child {
    flex: 1;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-left: 40px;
    object-fit: cover;
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
    width: auto;
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    margin: 0;
    width: 21ch;
    animation: typing 2.0s steps(21, end), blink-caret 1.5s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 21ch }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

/* About section styling */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Contact section styling */
#contact {
    background-color: var(--secondary-color);
}

.contact-intro {
    text-align: left;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: 20px;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-left: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Classes section styling */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.class-item {
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
}

.class-item h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.class-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Footer styling */
footer {
    background-color: var(--card-background);
    padding: 30px 0;
    text-align: left;
}

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

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .typing-effect {
        width: auto;
        white-space: normal;
        border-right: none;
        animation: none;
        word-wrap: break-word;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
}
/* Navbar Component Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #2980e5;
    transform: scale(1.1);
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile navigation */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    /* For a mobile menu implementation */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
}
/* Skills Component Styles */
.skills-container {
  margin-top: 20px;
}

.skills-container h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-category {
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-item {
  margin-bottom: 8px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 15px;
}

.skill-item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
/* Projects Component Styles */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    font-weight: 500;
}

/* Project scanner-specific styles */
#token-scanner {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.scanner-intro {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scanner-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scanner-form {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.scanner-results {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* Form styling for scanner */
.form-group {
    margin-bottom: 20px;
}

.search-transfers-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.scan-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.scan-button:hover {
    background-color: #3a7eca;
}

.scan-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* Table styling for scanner results */
.results-table-container {
    margin-top: 20px;
    overflow: auto;
}

.table-scroll-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.results-table th,
.results-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

.results-table tbody tr:hover {
    background-color: rgba(74, 158, 255, 0.05);
}

.truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.results-stats p {
    margin: 0;
    font-size: 0.9rem;
}

.no-results {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Utility class for hiding elements */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .scanner-container {
        flex-direction: row;
    }
    .scanner-form {
        flex: 1;
    }
    .scanner-results {
        flex: 2;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .truncate {
        max-width: 120px;
    }
}
/* Experience Component Styles */

.experience-timeline {
    position: relative;
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding-bottom: 40px;
    position: relative;
}

.experience-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(33.33% - 1px);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    z-index: -1;
}

.experience-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
}

.date {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.experience-description p {
    color: var(--text-secondary);
}

@media screen and (max-width: 768px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .experience-item:not(:last-child)::after {
        left: 0;
    }
}
