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

body {
    height: 100%;
    min-height: 100%;
    background-color: #040404 !important;
    color: #ffffff;
    background-image: url('/assets/gradients/blue-gradient.png'), url('/assets/gradients/orange-gradient.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top left, bottom center;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.container,
.nav,
.section-container,
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.card-base {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-base:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(4, 4, 4, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    user-select: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-lang {
    position: relative;
}

#lang-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

#lang-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

#lang-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

#lang-select option {
    background: #040404;
    color: #ffffff;
    padding: 8px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    scroll-margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.title {
    display: block;
    font-size: 1.5rem;
    color: #b0b0b0;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ffffff;
    color: #040404;
    border-color: #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #040404;
}

.code-animation {
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: none;
    transition: all 0.6s ease;
    overflow: hidden;
    animation: keyFloat 2.5s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateX(6deg) rotateY(-2deg) translateY(-8px);
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    pointer-events: none;
    border-radius: 12px;
}

.code-animation::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 30%, 
        rgba(0, 0, 0, 0.2) 100%);
    border-radius: 10px;
    pointer-events: none;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 24px 4px rgba(80, 120, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.048),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

@keyframes keyFloat {
    0%, 100% {
        transform: perspective(1000px) rotateX(8deg) rotateY(-4deg) translateY(0px);
    }
    25% {
        transform: perspective(1000px) rotateX(6deg) rotateY(-3deg) translateY(-8px);
    }
    50% {
        transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) translateY(-12px);
    }
    75% {
        transform: perspective(1000px) rotateX(7deg) rotateY(-2deg) translateY(-6px);
    }
}

.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }

.indent { margin-left: 1.5rem; }
.keyword { 
    color: #569CD6;
}
.variable { 
    color: #9CDCFE;
}
.string { 
    color: #CE9178;
}

.code-char {
  position: absolute;
  user-select: none;
  pointer-events: none;
  transition: color 0.3s, opacity 0.3s;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.recent-activity h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
}

.activity-content {
    flex: 1;
}

.activity-title,
.activity-text {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-description,
.activity-time,
.activity-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.activity-time,
.activity-date {
    font-size: 0.8rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #b0b0b0;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.projects {
    padding: 100px 0;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 1.5rem;
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-image {
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: #b0b0b0;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
}

.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-text {
    flex: 1;
    min-width: 250px;
}

.contact-methods {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    text-align: right;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.contact-method i {
    width: 20px;
    color: #ffffff;
}

.contact-form {
    backdrop-filter: blur(500px);
    -webkit-backdrop-filter: blur(500px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.footer {
    margin-top: 3vh;
    margin-bottom: 3vh;
    background: transparent;
    padding: 1rem 0 0.5rem 0;
    border-top: none;
}

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

.footer-text p {
    color: #888;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.social-link {
    color: #888;
    font-size: 1rem;
    transition: color 0.2s;
    text-decoration: none;
}

.social-link:hover {
    color: #bbb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        scroll-margin-top: 100px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-placeholder {
        font-size: 2.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-tech {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .tech-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-link {
        font-size: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .contact-content {
        flex-direction: column;
        gap: 20px;
    }
    .contact-text, .contact-methods {
        min-width: unset;
    }
    .contact-methods {
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-method {
        justify-content: center;
    }
    .contact-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .about-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .code-animation, .code-line {
        text-align: left !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .code-animation {
        padding: 1.5rem;
        font-size: 0.8rem;
        transform: perspective(800px) rotateX(6deg) rotateY(-2deg);
        animation: keyFloatMobile 3s ease-in-out infinite;
    }
    
    .code-animation:hover {
        transform: perspective(800px) rotateX(4deg) rotateY(-1deg) translateY(-4px);
    }
    
    @keyframes keyFloatMobile {
        0%, 100% {
            transform: perspective(800px) rotateX(6deg) rotateY(-2deg) translateY(0px);
        }
        25% {
            transform: perspective(800px) rotateX(4deg) rotateY(-1deg) translateY(-6px);
        }
        50% {
            transform: perspective(800px) rotateX(8deg) rotateY(-3deg) translateY(-8px);
        }
        75% {
            transform: perspective(800px) rotateX(5deg) rotateY(-1.5deg) translateY(-4px);
        }
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .code-animation {
        transform: perspective(600px) rotateX(4deg) rotateY(-1deg);
        animation: keyFloatSmall 4s ease-in-out infinite;
        padding: 1rem;
        font-size: 0.7rem;
    }
    
    .code-animation:hover {
        transform: perspective(600px) rotateX(2deg) rotateY(-0.5deg) translateY(-3px);
    }
    
    @keyframes keyFloatSmall {
        0%, 100% {
            transform: perspective(600px) rotateX(4deg) rotateY(-1deg) translateY(0px);
        }
        25% {
            transform: perspective(600px) rotateX(2deg) rotateY(-0.5deg) translateY(-4px);
        }
        50% {
            transform: perspective(600px) rotateX(6deg) rotateY(-1.5deg) translateY(-6px);
        }
        75% {
            transform: perspective(600px) rotateX(3deg) rotateY(-0.75deg) translateY(-2px);
        }
    }
}

#star-background {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 6px 2px white;
  will-change: transform;
}

#star-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

.testimonials {
    padding: 80px 0;
    background: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem 1rem 1.5rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, border 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.testimonial-card:hover {
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.15);
}

.testimonial-text p {
    font-size: 1.1rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    font-size: 1rem;
    color: #b0b0b0;
    margin-top: auto;
}

.author-name {
    font-weight: 600;
    color: #ffe66d;
    display: block;
    margin-bottom: 0.2rem;
}

.author-role {
    font-weight: 400;
    color: #b0b0b0;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b0b0b0;
    opacity: 0.5;
    border: none;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.carousel-dot.active {
    background: #ffe66d;
    opacity: 1;
}

@media (max-width: 700px) {
    .testimonials-carousel {
        max-width: 95vw;
    }
}

.testimonials-slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 2rem;
}

@keyframes testimonials-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonials-slider-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    justify-content: flex-start;
    animation: testimonials-scroll 40s linear infinite;
}

.testimonials-slider-track {
    width: max-content;
}

.testimonial-card {
    min-width: 320px;
    max-width: 360px;
    flex: 0 0 32%;
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 45%;
    }
}
@media (max-width: 700px) {
    .testimonial-card {
        flex: 0 0 80%;
        min-width: 240px;
    }
}

.contact-link {
    color: rgb(177, 177, 177); 
    text-decoration: none
}
.contact-link-email {
    color: #ffffff; 
    text-decoration: none;
}