/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - for accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@font-face {
    font-family: 'TerminalCustom';
    src: url('static/terminal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'TerminalCustom', 'JetBrains Mono', 'Courier New', monospace;
    background-color: #091117;
    color: #e6d5c3;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.domain {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.domain a,
.domain a:visited,
.domain a:active {
    color: #ffffff;
    text-decoration: none;
}

.navigation {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #e6d5c3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.header-right {
    text-align: right;
}

.datetime {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 300;
}

/* Separator */
.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e6d5c3, transparent);
    margin: 20px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.3), rgba(230, 213, 195, 0.8), rgba(74, 158, 255, 0.3), transparent);
    animation: flowGradient 6s ease-in-out infinite;
}

@keyframes flowGradient {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Main Content */
.home-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 60px;
}

.profile-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.globe-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#globe-container {
  min-width: 0;
  min-height: 0;
  width: 400px;
  height: 400px;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 600px) {
  .home-flex {
    gap: 10px;
    align-items: stretch;
  }
  .profile-col {
    flex: 1 1 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .globe-col {
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  #globe-container {
    width: 48vw;
    height: 48vw;
    max-width: 220px;
    max-height: 220px;
    margin: 0 auto;
    display: block;
  }
}

.main-content {
  position: relative;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Profile Section */
.profile-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-name {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    text-align: left;
}

.profile-age {
    color: #e6d5c3;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 400;
    width: 100%;
    text-align: left;
    white-space: normal;
    max-width: 200px;
    word-break: break-word;
}

.profile-description {
  margin-top: 10px;
  color: #ccc;
  font-size: 1rem;
  font-family: inherit;
  white-space: pre-line;
  line-height: 1.2;
  max-width: 200px;
  word-break: break-word;
}

.team-link {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.info-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.label {
    color: #888888;
    font-weight: 400;
    min-width: 100px;
}

.value {
    color: #ffffff;
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    margin-bottom: 40px;
}

.quick-links h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #d2691e;
    transition: color 0.3s ease;
    align-items: center;
}

.link-item:hover {
    color: #ffffff;
}

.link-label {
    color: #888888;
    min-width: 80px;
}

.link-value {
    color: #d2691e;
}

.discord-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background-color: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.discord-link:hover .link-value {
    color: #ffffff;
}

.discord-link.copied {
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.discord-link.copied .link-value {
    color: #4caf50;
}

/* Social Media Icons */
.social-media-section {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(230, 213, 195, 0.1);
    border-bottom: 1px solid rgba(230, 213, 195, 0.1);
    justify-content: flex-start;
    align-items: center;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0px solid rgba(230, 213, 195, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.social-icon-link:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.social-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(74%) sepia(11%) saturate(638%) hue-rotate(358deg) brightness(89%) contrast(86%);
    transition: filter 0.3s ease;
}

.social-icon-link:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.discord-icon.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.discord-icon.copied .social-icon {
    filter: brightness(0) saturate(100%) invert(67%) sepia(11%) saturate(638%) hue-rotate(93deg) brightness(89%) contrast(86%);
}

.copy-indicator {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: fadeInOut 2s ease-in-out;
    z-index: 10;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    20% { opacity: 1; transform: translateY(-50%) translateX(0); }
    80% { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
}

/* Skills Section - Bar Style */
.skills-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.skills-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.skill-item {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    transition: none;
    cursor: default;
}

.skill-bar-img {
    height: 25px;
    width: auto;
    display: block;
    border-radius: 1px;
}

/* Remove old icon/text styles */
.skill-icon, .skill-item span {
    display: none !important;
}

/* Footer Message */
.footer-message {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333333;
}

.footer-message p {
    color: #888888;
    font-size: 0.9rem;
}

/* About Section */
.about-content {
    max-width: 800px;
}

.about-content h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-content h3 {
    color: #ffffff;
    margin: 30px 0 15px 0;
    font-size: 1.2rem;
}

.about-content p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.7;
}

.experience-item,
.education-item {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.exp-title,
.edu-degree {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.exp-company,
.edu-school {
    color: #4a9eff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.exp-period,
.edu-period {
    color: #888888;
    font-size: 0.8rem;
}

.exp-description {
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

.edu-description {
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Awards Section */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.award-item {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.award-item:hover {
    border-color: #d2691e;
    transform: translateX(5px);
}

.award-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-info p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.project-link {
    color: #d2691e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-right {
        text-align: left;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .navigation {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .domain {
        font-size: 1rem;
    }
    
    .datetime {
        font-size: 0.7rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #d2691e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Selection Styling */
::selection {
    background: #d2691e;
    color: #ffffff;
}

::-moz-selection {
    background: #d2691e;
    color: #ffffff;
} 

/* Graphics Page Styles */
.graphics-galleries {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.gallery {
    background: #181818;
    border-radius: 12px;
    padding: 0.5rem 0.75rem 1rem 0.75rem; /* Small left/right padding */
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-title {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}
.gallery-image {
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin: 0.5rem;
    display: block;
}


/* Gallery View Styles */
#gallery-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}
#back-to-galleries {
    align-self: flex-start;
    margin-bottom: 1rem;
    background: #222;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#back-to-galleries:hover {
    background: #333;
}
#gallery-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
#gallery-view .gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}
#gallery-view .gallery-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s;
}
#gallery-view .gallery-image:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.25);
} 

.gallery-card {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-card:hover {
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.25);
    transform: translateY(-4px) scale(1.03);
} 

.gallery-card,
.gallery-card:visited,
.gallery-card:active {
    text-decoration: none;
    color: inherit;
}

.gallery-card .gallery-title {
    text-decoration: none;
    color: inherit;
} 

.gallery-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #181818;
}
.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    background: #222;
} 

/* GitHub Activity Feed Styles */
.github-activity-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(230, 213, 195, 0.1);
}

.github-activity-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.github-feed {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888888;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(230, 213, 195, 0.1);
    border-top: 3px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.github-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(230, 213, 195, 0.1);
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

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

.github-activity-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

.github-activity-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #4a9eff;
}

.github-activity-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.github-activity-message {
    color: #e6d5c3;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.github-activity-repo {
    color: #4a9eff;
    font-weight: 500;
    text-decoration: none;
}

.github-activity-repo:hover {
    text-decoration: underline;
}

.github-activity-time {
    color: #888888;
    font-size: 0.8rem;
}

.github-activity-error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.github-activity-empty {
    color: #888888;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive adjustments for GitHub feed */
@media (max-width: 768px) {
    .github-activity-section {
        margin-top: 30px;
        padding: 15px;
    }
    
    .github-activity-item {
        padding: 10px 0;
    }
    
    .github-activity-message {
        font-size: 0.85rem;
    }
    
    .social-media-section {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 15px 0;
        gap: 15px;
    }
    
    .social-icon-link {
        width: 35px;
        height: 35px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
} 