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

:root {
    --yellow: #FFC54B;
    --dark-blue: #202F39;
    --mint: #D5E3D2;
    --dark-gray: #333;
    --off-white: #F5F0E9;
    --background: #000000;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--background);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 197, 75, 0.3);
    margin-bottom: 30px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--mint);
    margin-right: 10px;
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--off-white);
    position: relative;
    transition: color 0.3s;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--yellow);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1000;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--yellow);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--off-white);
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 150px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.hero-content {
    max-width: 90%;
    width: 100%;
    padding-left: 5%;
}

/* Code Block Styling */
.code-container {
    margin-bottom: 40px;
    text-align: left;
    padding: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    max-width: 90%;
    margin-left: 0;
    margin-right: auto;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--off-white);
    margin: 0;
    white-space: pre-wrap;
    position: relative;
    z-index: 2;
}

.line-number {
    display: inline-block;
    width: 25px;
    color: rgba(213, 227, 210, 0.3); /* More transparent */
    margin-right: 15px;
    user-select: none;
    text-align: right;
    font-size: 0.9rem;
}

.code-line {
    position: relative;
}

/* Larger font size for specific lines */
.code-line.large-text {
    font-size: 4rem;
    line-height: 1.3;
    margin: 15px 0;
    font-weight: 800;
}

.keyword {
    color: var(--yellow);
    font-weight: 600;
}

.function {
    color: var(--mint);
    font-weight: 600;
}

.curly-bracket {
    color: var(--yellow);
    font-weight: 600;
}

.comment {
    color: #6c7a89;
    font-style: italic;
}

.terminus-font {
    font-family: 'Dina', monospace;
    font-size: 1rem;
    line-height: 1.5;
    margin: 6px 0;
    font-weight: normal;
}

.empty-line {
    height: 1.5em;
    display: inline-block;
}

.info {
    color: var(--mint);
}

.changing-text {
    color: var(--yellow);
    border-right: 3px solid var(--yellow);
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    min-width: 20px;
}

/* Chipset background effect */
.code-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><rect x="50" y="50" width="300" height="300" stroke="%23FFC54B22" stroke-width="2" fill="none"/><rect x="80" y="80" width="240" height="240" stroke="%23FFC54B22" stroke-width="1" fill="none"/><path d="M50,120 L20,120 M50,200 L20,200 M50,280 L20,280 M120,50 L120,20 M200,50 L200,20 M280,50 L280,20 M350,120 L380,120 M350,200 L380,200 M350,280 L380,280 M120,350 L120,380 M200,350 L200,380 M280,350 L280,380" stroke="%23FFC54B22" stroke-width="2"/><circle cx="120" cy="120" r="5" fill="%23FFC54B22"/><circle cx="120" cy="200" r="5" fill="%23FFC54B22"/><circle cx="120" cy="280" r="5" fill="%23FFC54B22"/><circle cx="200" cy="120" r="5" fill="%23FFC54B22"/><circle cx="200" cy="200" r="5" fill="%23FFC54B22"/><circle cx="200" cy="280" r="5" fill="%23FFC54B22"/><circle cx="280" cy="120" r="5" fill="%23FFC54B22"/><circle cx="280" cy="200" r="5" fill="%23FFC54B22"/><circle cx="280" cy="280" r="5" fill="%23FFC54B22"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* Light track effect */
.light-track {
    position: absolute;
    bottom: 120px;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(255,197,75,0) 0%, 
        rgba(255,197,75,0.05) 20%, 
        rgba(255,197,75,0.4) 50%, 
        rgba(255,197,75,0.05) 80%, 
        rgba(255,197,75,0) 100%);
    opacity: 0;
    z-index: 1;
    animation: trackLight 3s linear infinite;
}

@keyframes trackLight {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--off-white);
}

.highlight {
    color: var(--yellow);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--mint);
}

/* Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.primary-btn {
    background-color: var(--yellow);
    color: var(--dark-blue);
    border: 2px solid var(--yellow);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--yellow);
}

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

.secondary-btn:hover {
    background-color: var(--mint);
    color: var(--dark-blue);
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding: 0 5%;
}

.section-title {
    font-size: 3rem;
    color: var(--yellow);
    position: relative;
    display: inline-block;
    margin: 0;
    line-height: 1;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

.terminal-tabs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tab {
    padding: 8px 15px;
    background-color: #1E1E1E;
    color: var(--off-white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab.active, .tab:hover {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 0 5%;
}

/* Project Card */
.project-card {
    display: flex;
    gap: 50px;
    position: relative;
}

.project-card.alt-layout {
    flex-direction: row-reverse;
}

.project-terminal {
    flex: 1;
    max-width: 550px;
    background-color: #1E1E1E;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .project-terminal {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: linear-gradient(180deg, #3A3A3A 0%, #2D2D2D 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close-btn {
    background-color: #FF5F56;
}

.minimize-btn {
    background-color: #FFBD2E;
}

.maximize-btn {
    background-color: #27C93F;
}

.terminal-title {
    color: #E0E0E0;
    font-size: 0.9rem;
    text-align: center;
    flex-grow: 1;
}

.project-preview {
    position: relative;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.terminal-prompt {
    font-family: 'JetBrains Mono', monospace;
    color: var(--off-white);
}

.prompt {
    color: var(--yellow);
    margin-right: 10px;
}

.project-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-details h3 {
    color: var(--yellow);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.project-details h3::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--yellow);
    bottom: -10px;
    left: 0;
}

.project-details p {
    color: var(--off-white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 90%;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-stack .tech-item {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.tech-stack .tech-item i {
    margin-right: 8px;
    font-size: 1rem;
}

.tech-stack .tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Technology-specific styles */
.js-tech {
    border-color: #F7DF1E;
}

.js-tech i {
    color: #F7DF1E;
}

.react-tech {
    border-color: #61DAFB;
}

.react-tech i {
    color: #61DAFB;
}

.mapbox-tech {
    border-color: #4264FB;
}

.mapbox-tech i {
    color: #4264FB;
}

.geo-tech {
    border-color: #6FC55F;
}

.geo-tech i {
    color: #6FC55F;
}

.html-tech {
    border-color: #E44D26;
}

.html-tech i {
    color: #E44D26;
}

.css-tech {
    border-color: #2965F1;
}

.css-tech i {
    color: #2965F1;
}

.wp-tech {
    border-color: #21759B;
}

.wp-tech i {
    color: #21759B;
}

.php-tech {
    border-color: #777BB3;
}

.php-tech i {
    color: #777BB3;
}

.python-tech {
    border-color: #3776AB;
}

.python-tech i {
    color: #3776AB;
}

.pandas-tech {
    border-color: #130654;
}

.pandas-tech i {
    color: #130654;
}

.numpy-tech {
    border-color: #4DABCF;
}

.numpy-tech i {
    color: #4DABCF;
}

.api-tech {
    border-color: #25A768;
}

.api-tech i {
    color: #25A768;
}

.aws-tech {
    border-color: #FF9900;
}

.aws-tech i {
    color: #FF9900;
}

.canva-tech {
    border-color: #00C4CC;
}

.canva-tech i {
    color: #00C4CC;
}

.matplotlib-tech {
    border-color: #11557c;
}

.matplotlib-tech i {
    color: #11557c;
}

.seaborn-tech {
    border-color: #4c72b0;
}

.seaborn-tech i {
    color: #4c72b0;
}

.backtrader-tech {
    border-color: #264653;
}

.backtrader-tech i {
    color: #264653;
}

.sql-tech {
    border-color: #F29111;
}

.sql-tech i {
    color: #F29111;
}

.git-tech {
    border-color: #F05032;
}

.git-tech i {
    color: #F05032;
}

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

/* Skills Section Styles */
.skills-section {
    padding: 80px 20px;
}

.skills-container {
    margin-top: 25px;
    padding-left: 50px; /* Added left padding to align with headers */
}

.skills-category {
    margin-bottom: 25px;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.skill-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Skill backgrounds */
.skill-python {
    background-color: rgba(53, 114, 165, 0.3);
}

.skill-javascript {
    background-color: rgba(240, 219, 79, 0.3);
}

.skill-html {
    background-color: rgba(228, 77, 38, 0.3);
}

.skill-css {
    background-color: rgba(41, 101, 241, 0.3);
}

.skill-sql {
    background-color: rgba(47, 115, 186, 0.3);
}

.skill-bash {
    background-color: rgba(131, 148, 150, 0.3);
}

.skill-pandas {
    background-color: rgba(38, 137, 223, 0.3);
}

.skill-numpy {
    background-color: rgba(76, 175, 80, 0.3);
}

.skill-matplotlib {
    background-color: rgba(17, 85, 124, 0.3);
}

.skill-seaborn {
    background-color: rgba(76, 114, 176, 0.3);
}

.skill-backtrader {
    background-color: rgba(38, 70, 83, 0.3);
}

.skill-ml {
    background-color: rgba(162, 155, 254, 0.3);
}

.skill-arcgis {
    background-color: rgba(37, 150, 190, 0.3);
}

.skill-qgis {
    background-color: rgba(251, 158, 0, 0.3);
}

.skill-remote-sensing {
    background-color: rgba(239, 71, 111, 0.3);
}

.skill-spatial {
    background-color: rgba(84, 160, 255, 0.3);
}

.skill-git {
    background-color: rgba(240, 80, 50, 0.3);
}

.skill-aws {
    background-color: rgba(255, 153, 0, 0.3);
}

.skill-canva {
    background-color: rgba(0, 196, 204, 0.3);
}

.skill-docker {
    background-color: rgba(66, 133, 244, 0.3);
}

.skill-cicd {
    background-color: rgba(77, 77, 77, 0.3);
}

.skill-react {
    background-color: rgba(97, 218, 251, 0.3);
}

/* Media query for skills grid on smaller screens */
@media (max-width: 768px) {
    .skills-container {
        padding-left: 10px; /* Adjusted for smaller screens */
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .skill-item {
        padding: 6px 8px;
    }
    
    .skill-item i {
        font-size: 0.75rem;
        margin-right: 5px;
        width: 12px;
    }
    
    .skill-item span {
        font-size: 0.75rem;
    }
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 0.85rem;
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.skill-item span {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 20px;
}

.contact-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.contact-card {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--mint);
}

.contact-header p {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}

.contact-links {
    padding: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-link i {
    font-size: 1.8rem;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.link-text {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.link-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contact link specific styles */
.email-link {
    background-color: rgba(25, 195, 125, 0.1);
    border-left-color: #19C37D;
}

.email-link i, .email-link .link-title {
    color: #19C37D;
}

.email-link:hover {
    background-color: rgba(25, 195, 125, 0.15);
    transform: translateY(-3px);
}

.linkedin-link {
    background-color: rgba(0, 119, 181, 0.1);
    border-left-color: #0077B5;
}

.linkedin-link i, .linkedin-link .link-title {
    color: #0077B5;
}

.linkedin-link:hover {
    background-color: rgba(0, 119, 181, 0.15);
    transform: translateY(-3px);
}

.github-link {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #FFFFFF;
}

.github-link i, .github-link .link-title {
    color: #FFFFFF;
}

.github-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.instagram-link {
    background-color: rgba(193, 53, 132, 0.1);
    border-left-color: #C13584;
}

.instagram-link i, .instagram-link .link-title {
    color: #C13584;
}

.instagram-link:hover {
    background-color: rgba(193, 53, 132, 0.15);
    transform: translateY(-3px);
}

.cv-link {
    background-color: rgba(234, 67, 53, 0.1);
    border-left-color: #EA4335;
}

.cv-link i, .cv-link .link-title {
    color: #EA4335;
}

.cv-link:hover {
    background-color: rgba(234, 67, 53, 0.15);
    transform: translateY(-3px);
}

.contact-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(20, 20, 20, 0.5);
}

.contact-footer p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .contact-link {
        padding: 15px;
    }
    
    .contact-link i {
        font-size: 1.5rem;
        margin-right: 15px;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
}

.terminal-btn {
    background-color: transparent;
    color: var(--mint);
    border: 1px solid var(--mint);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.terminal-btn:hover {
    background-color: var(--mint);
    color: #151515;
}

.terminal-btn i {
    margin-left: 8px;
}

/* Animations */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

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

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

/* Footer */
footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 197, 75, 0.3);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-links a {
    color: var(--off-white);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--yellow);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .project-card, .project-card.alt-layout {
        flex-direction: column;
    }
    
    .project-terminal {
        max-width: 100%;
    }
    
    .project-details h3 {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        z-index: 20;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .projects-container {
        gap: 70px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
