:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ffffff;
    --text-color: #2c3e50;
    --section-bg: #f8f9fa;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 4px;
}

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

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.15);
    transition: all 0.3s ease;
}

.logo-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.logo-text {
    transform: rotate(-45deg);
    color: var(--background-color);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    z-index: 1;
}

.name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.terminal-text {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.prompt {
    color: var(--success-color);
}

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

.hero-about {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.tech-stack {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-stack h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-icon span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.tech-icon:hover i {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    padding-top: 4rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-stack {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Experience Section */
.experience-section {
    background: var(--section-bg);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .period {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content .location {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content .description {
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-section {
    background: var(--section-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.project-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-card .period {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-card .role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card .description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-card .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: var(--section-bg);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--secondary-color);
}

/* Skills Section */
.skills-section {
    background: var(--background-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.skill-category {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.skill-category li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    background: var(--section-bg);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.contact-info {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

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

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

/* Footer */
footer {
    background: var(--section-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--background-color);
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .nav-container.active {
        right: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
        gap: 1rem;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .lang-btn {
        padding: 0.5rem 1.5rem;
        font-size: 1.1rem;
        width: 80px;
        -webkit-appearance: none;
        appearance: none;
    }

    .menu-toggle.active i::before {
        content: "\f00d";
    }

    .logo {
        margin-right: 0;
    }

    .name {
        font-size: 1.2rem;
    }

    .logo-container {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-section {
        padding: 5rem 1rem 2rem 1rem;
    }

    .hero-about {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tech-stack {
        padding: 1.5rem;
    }

    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 1rem;
    }

    .tech-icon i {
        font-size: 1.75rem;
    }

    .tech-icon span {
        font-size: 0.8rem;
    }

    .terminal-text {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin: 0 1rem 2rem 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
        padding-top: 3rem;
    }

    .timeline-item {
        padding: 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .project-card,
    .skill-category {
        margin: 0;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card .description {
        font-size: 0.95rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .name {
        display: none;
    }

    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .tech-icon i {
        font-size: 1.5rem;
    }

    .tech-icon span {
        font-size: 0.75rem;
    }

    .projects-grid,
    .skills-grid {
        padding: 0.5rem;
        gap: 1rem;
    }

    .project-card,
    .skill-category {
        padding: 1rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card .description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-category li {
        font-size: 0.9rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-color),
                     -0.05em -0.025em 0 var(--secondary-color);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--primary-color),
                     -0.05em -0.025em 0 var(--secondary-color);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color),
                     0.025em 0.025em 0 var(--secondary-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color),
                     0.025em 0.025em 0 var(--secondary-color);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--primary-color),
                     0.05em 0 0 var(--secondary-color);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--primary-color),
                     0.05em 0 0 var(--secondary-color);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--primary-color),
                     -0.025em -0.025em 0 var(--secondary-color);
    }
}

.glitch {
    animation: glitch 500ms infinite;
}

.logo:hover .logo-container {
    transform: rotate(225deg);
}

.logo:hover .logo-text {
    transform: rotate(-225deg);
}

.logo:hover .name {
    color: var(--secondary-color);
} 