:root {
    --primary-color: #00ff41;
    --secondary-color: #0d1117;
    --accent-color: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --background-primary: #0d1117;
    --background-secondary: #161b22;
    --background-card: #21262d;
    --border-color: #30363d;
    --gradient-primary: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    --shadow-glow: 0 0 20px rgba(0, 255, 65, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.terminal-loader {
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.terminal-loader .text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    animation: loadingProgress 2s ease-in-out forwards;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-bracket {
    color: var(--primary-color);
}

.logo-text {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.typing-text {
    position: relative;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    animation: typing 3s steps(13, end), blink-caret 0.75s step-end infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.accent-text {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-primary);
    transform: translateY(-2px);
}

/* Terminal Window */
.terminal-window {
    background-color: var(--background-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.terminal-header {
    background-color: var(--background-secondary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background-color: #ff5f57;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #28ca42;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--primary-color);
}

.command {
    color: var(--text-primary);
    margin-left: 5px;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

.terminal-output {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Sections */
section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-mono);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-number {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* About Section */
.about {
    background-color: var(--background-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-container {
    margin-top: 40px;
}

.skills-container h3 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--background-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.skill-item span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: url(Badge\ Photo.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 1.5s ease;
}

.image-placeholder:hover {
    border-color: var(--primary-color);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        ),
        linear-gradient(
            45deg,
            rgba(0, 255, 65, 0.1) 0%,
            rgba(13, 17, 23, 0.9) 50%,
            rgba(0, 255, 65, 0.1) 100%
        );
    opacity: 1;
    transition: opacity 1.5s ease;
    z-index: 2;
}

.image-placeholder:hover::before {
    opacity: 0;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.2) 50%,
        transparent 100%
    );
    animation: matrixScan 3s ease-in-out infinite;
    z-index: 3;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    opacity: 1;
    transition: opacity 1.5s ease;
    z-index: 4;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.image-placeholder:hover i {
    opacity: 0;
}

.image-placeholder p {
    opacity: 1;
    transition: opacity 1.5s ease;
    z-index: 4;
    position: relative;
    font-family: var(--font-mono);
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

.image-placeholder:hover p {
    opacity: 0;
}

/* Experience Section */
.experience-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tab-btn {
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 255, 65, 0.1);
}

.experience-panels {
    position: relative;
}

.experience-panel {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.experience-panel.active {
    display: block;
}

.experience-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.company {
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.duration {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background-color: var(--background-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--background-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 5px 12px;
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-form {
    background-color: var(--background-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* Footer */
.footer {
    background-color: var(--background-secondary);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-tech {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes loadingProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes matrixScan {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--background-primary);
        flex-direction: column;
        padding: 30px;
        border-top: 1px solid var(--border-color);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .experience-content {
        grid-template-columns: 1fr;
    }

    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        border-left: none;
        border-bottom: 3px solid var(--border-color);
        white-space: nowrap;
    }

    .tab-btn.active,
    .tab-btn:hover {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}
