/* Base Styles */
:root {
    --primary-color: #64ffda;
    --secondary-color: #0a192f;
    --dark-color: #020c1b;
    --light-color: #ccd6f6;
    --text-color: #8892b0;
    --text-light: #a8b2d1;
    --highlight-color: #1e90ff;
    --terminal-bg: #011627;
    --terminal-text: #d6deeb;
    --terminal-green: #7fdbca;
    --terminal-red: #ff7b85;
    --terminal-yellow: #ecc48d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--light-color);
}

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

a:hover {
    color: var(--highlight-color);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-icon {
    margin-right: 8px;
}

.section-title {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
}

.section-number {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    margin-right: 10px;
    font-size: 1.5rem;
}

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

/* Terminal Header */
.terminal-header {
    background-color: var(--terminal-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.terminal-prompt {
    font-family: 'Fira Code', monospace;
    color: var(--terminal-green);
}

.terminal-prompt .user {
    color: var(--terminal-red);
}

.terminal-prompt .path {
    color: var(--terminal-yellow);
}

.terminal-prompt .cursor {
    color: var(--terminal-green);
    animation: blink 1s infinite;
}

.terminal-menu ul {
    display: flex;
    list-style: none;
}

.terminal-menu li {
    margin-left: 30px;
}

.nav-command {
    font-family: 'Fira Code', monospace;
    color: var(--terminal-text);
    position: relative;
}

.nav-command:hover {
    color: var(--terminal-green);
}

.nav-command::before {
    content: '$';
    margin-right: 5px;
    color: var(--terminal-green);
}

.terminal-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--terminal-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--secondary-color);
}

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

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.typewriter {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.console-prefix {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.code-window {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin-left: auto;
}

.window-header {
    background-color: #1d3b53;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.window-buttons .red {
    background-color: var(--terminal-red);
}

.window-buttons .yellow {
    background-color: var(--terminal-yellow);
}

.window-buttons .green {
    background-color: var(--terminal-green);
}

.window-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--terminal-text);
}

.window-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.window-content code {
    color: var(--terminal-text);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.info-item {
    display: flex;
}

.info-label {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 500;
}

.info-value {
    color: var(--text-light);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    filter: grayscale(100%) contrast(1);
    transition: all 0.3s ease;
}

.image-container:hover img {
    filter: none;
}

.image-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    top: 20px;
    left: 20px;
    z-index: 0;
    transition: all 0.3s ease;
}

.image-container:hover .image-frame {
    top: 15px;
    left: 15px;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 5px;
    padding: 30px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-category-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.skill-category-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.skill-items {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    color: var(--light-color);
    font-size: 0.9rem;
}

.skill-percent {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Experience Section */
.experience-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    position: absolute;
    top: 20px;
    width: 120px;
    padding: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -150px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -150px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
    color: var(--text-color);
}

.timeline-content li {
    margin-bottom: 8px;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

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

.project-card {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 5px;
    padding: 25px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.folder-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
}

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

.project-links a {
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.project-tech span {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Resume Section */
.resume-section {
    padding: 100px 0;
    background-color: var(--dark-color);
    text-align: center;
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-content p {
    color: var(--text-color);
    margin-bottom: 30px;
}

.btn-resume {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    color: var(--light-color);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    padding: 30px 0;
    background-color: var(--dark-color);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.logo-code {
    color: var(--primary-color);
    margin-right: 10px;
    font-family: 'Fira Code', monospace;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy {
    color: var(--text-color);
    font-size: 0.9rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-content {
        flex-direction: column;
    }

    .code-window {
        margin: 0 auto;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 70px;
        right: auto;
        top: -15px;
    }
}

@media (max-width: 768px) {
    .terminal-menu ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--terminal-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .terminal-menu.active ul {
        display: flex;
    }

    .terminal-menu li {
        margin: 15px 0;
    }

    .terminal-menu-toggle {
        display: block;
    }

    .typewriter {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .typewriter {
        font-size: 1.8rem;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-number {
        font-size: 1.2rem;
    }
}