/* Base Styles */
:root {
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #333;
    --light-gray: #4d4d4d;
    --white: #ffffff;
    --yellow: #e6db74;
    --blue: #66d9ef;
    --green: #a6e22e;
    --red: #f92672;
    --purple: #ae81ff;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Terminal Loader Styles */
.terminal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.terminal-header {
    width: 80%;
    max-width: 600px;
    background-color: var(--dark-gray);
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: var(--white);
    font-family: 'Ubuntu Mono', monospace;
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background-color: var(--red);
}

.control.minimize {
    background-color: var(--yellow);
}

.control.maximize {
    background-color: var(--green);
}

.terminal-body {
    width: 80%;
    max-width: 600px;
    background-color: var(--gray);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    font-family: 'Ubuntu Mono', monospace;
}

.terminal-text {
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.5;
}

.loading-percent {
    color: var(--yellow);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--dark-gray);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background-color: var(--yellow);
    transition: width 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

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

.text-blue {
    color: var(--blue);
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-purple {
    color: var(--purple);
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

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

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

.btn-outline-yellow:hover {
    background-color: var(--yellow);
    color: var(--black);
}

.btn-filter {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--light-gray);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-filter.active {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1.2rem;
}

.nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    text-transform: lowercase;
    font-family: 'Ubuntu Mono', monospace;
    position: relative;
    padding: 5px 0 !important;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content h6 {
    font-family: 'Ubuntu Mono', monospace;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    min-height: 60px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hexagon-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hexagon {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--yellow), var(--green));
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-inner {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--dark-gray);
    overflow: hidden;
}

.hexagon-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hexagon-border {
    position: absolute;
    width: 320px;
    height: 320px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--yellow), var(--green));
    z-index: -1;
    top: -10px;
    left: -10px;
    animation: rotate 10s linear infinite;
}

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

.terminal-box {
    background-color: var(--dark-gray);
    border-radius: 8px;
    margin-top: 30px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-box-header {
    padding: 8px 15px;
    background-color: var(--gray);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: var(--red);
}

.dot.yellow {
    background-color: var(--yellow);
}

.dot.green {
    background-color: var(--green);
}

.terminal-box-body {
    padding: 15px;
    font-family: 'Ubuntu Mono', monospace;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.5;
}

.cursor {
    animation: blink 1s infinite;
}

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

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Ubuntu Mono', monospace;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.bg-black {
    background-color: var(--black);
}

/* About Section */
.about-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.linux-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background-color: var(--yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-content h3 {
    margin-bottom: 20px;
}

.about-details p {
    margin-bottom: 10px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-count {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* Skills Section */
.skill-bars {
    margin-top: 30px;
}

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

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

.skill-percent {
    font-family: 'Ubuntu Mono', monospace;
}

.progress {
    height: 8px;
    background-color: var(--dark-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background-color: var(--yellow);
    width: 0;
    transition: width 1.5s ease;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    width: 70px;
    height: 70px;
    background-color: var(--dark-gray);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--yellow);
}

.tech-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--yellow);
    color: var(--black);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Projects Section */
.projects-grid {
    transition: all 0.3s ease;
}

.project-card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-link {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--yellow);
    transform: scale(1.2);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
}

.project-info h4 {
    margin-bottom: 10px;
}

.project-tags {
    margin-top: 15px;
}

.project-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: var(--gray);
    color: var(--white);
    font-weight: 400;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.contact-text h6 {
    margin-bottom: 5px;
}

.form-control {
    background-color: var(--dark-gray);
    border: 1px solid var(--gray);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--dark-gray);
    border-color: var(--yellow);
    color: var(--white);
    box-shadow: none;
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

.terminal-response {
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-response-header {
    padding: 8px 15px;
    background-color: var(--gray);
    display: flex;
    align-items: center;
}

.terminal-response-body {
    padding: 15px;
    font-family: 'Ubuntu Mono', monospace;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 20px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--black);
    color: var(--yellow);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        margin-top: 40px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hexagon-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .hexagon-border {
        width: 270px;
        height: 270px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom .text-md-end {
        text-align: left !important;
        margin-top: 15px;
    }
}