/* Smooth scrolling with offset for fixed nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


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

:root {
    --bg-color: #282c34;
    --text-color: #abb2bf;
    --comment-color: #7f848e;
    --keyword-color: #c678dd;
    --function-color: #61afef;
    --string-color: #98c379;
    --number-color: #d19a66;
    --variable-color: #e06c75;
    --property-color: #e5c07b;
    --class-color: #e5c07b;
    --highlight: #528bff;
    --line-number: #495162;
    --selection: rgba(128, 203, 196, 0.2);
    --border-color: #3e4451;
    --font-code: 'Recursive', monospace;

}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(40, 44, 52, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 70px;
}

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

/* Logo Styling */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo svg {
    height: 65px;
    width: auto;
    display: block;
}

.logo svg .cls-1 {
    fill: #61afef;
}

.logo a:hover svg {
    filter: brightness(1.2);
}

.logo a img {
    max-height: 35px; /* Use max-height instead of fixed height */
    width: auto; /* Maintain aspect ratio */
    display: block;
}


.logo a:hover img {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    align-items: center;
    height: 100%; /* Take full height */
    gap: 2rem; /* Use gap instead of margin-left on individual links */
}

.nav-links a {
    height: 100%; /* Make links take full height */
    display: flex; /* Make links flex containers */
    align-items: center; /* Center content vertically */
    font-weight: 500;
    color: var(--function-color);
    margin-left: 0; /* Remove margin-left since we're using gap */
    padding: 0; /* Remove vertical padding */
    transition: none;
}

.nav-links a::before, .nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--highlight);
    border-bottom: 2px solid var(--highlight);
    transition: none;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px; /* Account for fixed nav */
    position: relative;
}

.intro-text {
    max-width: 600px;
    position: relative;
}

.greeting {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--comment-color);
}

.greeting::before {
    content: '// ';
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--class-color);
}

h2 {
    font-size: 1.8rem;
    color: var(--function-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--function-color);
}

.social-links a::before, .social-links a::after {
    display: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.btn::before, .btn::after {
    display: none;
}

.primary-btn {
    background-color: var(--function-color);
    color: var(--bg-color);
}

.primary-btn:hover {
    background-color: var(--highlight);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--function-color);
    color: var(--function-color);
}

.secondary-btn:hover {
    background-color: var(--function-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.profile-image {
    flex-shrink: 0;
    position: relative;
}

.profile-image::before {
    content: 'const profileImage = ';
    position: absolute;
    top: -25px;
    left: 0;
    color: var(--keyword-color);
}

.profile-image img {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Sections */
section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-decorator {
    width: 40px;
    height: 4px;
    background-color: var(--function-color);
    margin-right: 1rem;
    border-radius: 2px;
}

section h2 {
    font-size: 2rem;
    color: var(--class-color);
}

section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Skills Grid Responsive Behavior */
@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}

.skill-category {
    background-color: rgba(62, 68, 81, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.skill-category::before {
    content: 'const ';
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--bg-color);
    padding: 0 8px;
    color: var(--keyword-color);
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--variable-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--property-color);
}

.skill-category li::before {
    content: '• ';
    color: var(--string-color);
    margin-right: 0.5rem;
}

.skill-category i {
    margin-right: 0.75rem;
    color: var(--property-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}
.project-card {
    background-color: rgba(62, 68, 81, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--string-color);
}

.project-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

/* Remove description label */
.project-card p::before {
    content: none;
    display: none;
}

.project-card p::after {
    content: none;
    display: none;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-links a::before, .project-links a::after {
    display: none;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background-color: rgba(97, 175, 239, 0.1);
    color: var(--string-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Remove quotes from tags */
.project-tags span::before {
    content: none;
    display: none;
}

.project-tags span::after {
    content: none;
    display: none;
}

/* Contact Section */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(62, 68, 81, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.contact-option::before {
    content: attr(data-type) ': ';
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--bg-color);
    padding: 0 8px;
    color: var(--property-color);
}

.contact-option:hover {
    background-color: var(--function-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.contact-option i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: rgba(40, 44, 52, 0.95);
    color: var(--comment-color);
    border-top: 1px solid var(--border-color);
}

/* Terminal cursor effect */
.terminal-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

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

/* Media Queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .intro-text {
        margin-bottom: 3rem;
    }
    
    .social-links, .cta-buttons {
        justify-content: center;
    }
    
    .profile-image img {
        width: 250px;
        height: 250px;
    }
    
    .nav-links {
        display: none; /* Would need a mobile menu */
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.photo-gallery img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--function-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 5px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--class-color);
    margin-bottom: 0.3rem;
}

.timeline-content span {
    display: block;
    font-size: 1.0rem;
    color: var(--comment-color);
    margin-bottom: 0.2rem;
}

.timeline-content time {
    font-size: 0.8rem;
    color: var(--string-color);
    font-weight: 500;
}

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content span,
    .timeline-content time {
        font-size: 0.85rem;
    }
}

/* Add styling for "My Current Time" in the clock */
.clock-container .timezone {
    white-space: nowrap; /* Prevent wrapping */
}

/* Clock styling */
.clock-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to the right */
    justify-content: center;
    margin-left: 1.5rem;
    margin-right: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background-color: rgba(62, 68, 81, 0.3); /* Slightly more transparent */
    transition: all 0.1s ease;
}

.clock-container:hover {
    background-color: rgba(62, 68, 81, 0.7);
}

.timezone {
    font-size: 0.65rem; /* Smaller font */
    color: var(--comment-color);
    margin-bottom: 0;
    line-height: 1;
}

.time {
    font-size: 0.65rem; /* Smaller font */
    font-weight: 500;
    color: var(--function-color);
    font-family: var(--font-code);
    line-height: 1.2;
}

/* Animation for the seconds */
@keyframes pulseSeconds {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.time span.seconds {
    display: inline-block;
    animation: pulseSeconds 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clock-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Email Copy Button Styles */
.copy-email {
    cursor: pointer;
    position: relative;
}

.copy-email:active {
    transform: scale(0.97);
}

/* Animation for the copy confirmation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.copy-email .fa-check {
    color: var(--string-color);
    animation: fadeIn 3.0s ease;
}

/* Purple gradient for resume link */
.nav-links a.resume-link {
    position: relative;
    padding: 0 0.6rem;
    margin: 0 0.2rem;
    background: linear-gradient(90deg, var(--keyword-color), var(--property-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    border: none;
    font-weight: 900;
    transition: none;
}

.nav-links a.resume-link:hover {
    border-bottom: 2px solid var(--highlight);
    transition: none;
}

.photo-gallery-container {
    margin-top: 3rem;
}

.photo-gallery-container h3 {
    font-size: 1.4rem;
    color: var(--variable-color);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

/* Add a code-like syntax before the heading */
.photo-gallery-container h3::before {
    color: var(--keyword-color);
    font-size: 0.9rem;
    position: absolute;
    top: -1.2rem;
    left: 0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */

    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 0;
    padding-bottom: 100%; /* Creates a square aspect ratio */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
html {
    scrollbar-width: none;
}

/* Alternative method - hide scrollbar but keep functionality */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

body::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

/* GitHub link styling in section header */
.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(62, 68, 81, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--function-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.github-link:hover {
    background-color: var(--function-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(97, 175, 239, 0.3);
}

.github-link i {
    font-size: 1.1rem;
}

.github-link::before, 
.github-link::after {
    display: none;
}

/* Light theme adjustments for GitHub link */
[data-theme="light"] .github-link {
    background-color: rgba(225, 228, 232, 0.4);
    color: var(--function-color);
}

[data-theme="light"] .github-link:hover {
    background-color: var(--function-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.3);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .github-link span {
        display: none;
    }
    
    .github-link {
        padding: 0.5rem;
        min-width: auto;
    }
}

/* Cat dance gif in bottom right corner */
.cat-dance {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 130px;
    height: auto;
    z-index: 1000;
    opacity: 1.0;
    transition: opacity 0.3s ease;
}

.cat-dance:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Make it smaller on mobile */
@media (max-width: 768px) {
    .cat-dance {
        width: 60px;
        bottom: 15px;
        right: 15px;
    }
}

