@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --background: #0f172a;
    --background-secondary: #1e293b;
    --text: #ffffff;
    --text-secondary: #94a3b8;
    --gradient-start: #1e293b;
    --gradient-end: #0f172a;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

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

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-brand img:hover {
    transform: scale(1.1);
}

.nav-brand span {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

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

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

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

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

@media (max-width: 1024px) {
    .hero-content {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradient 8s ease infinite;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@keyframes titleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.typed-cursor {
    color: var(--primary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 20rem;
    height: 20rem;
    border-radius: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .hero-image img {
        width: 16rem;
        height: 16rem;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 12rem;
        height: 12rem;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-image img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
}

/* Skills Section */
.skills {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, var(--background-secondary));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-card {
    background: var(--background-secondary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 160px;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--card-hover-shadow);
    background: rgba(59, 130, 246, 0.1);
}

.skill-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 48px !important;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, var(--background-secondary));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

@media (max-width: 768px) {
    .projects-grid {
        gap: 2rem;
    }
}

.project-card {
    background: var(--background-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.project-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.project-button i {
    transition: transform 0.3s ease;
}

.project-button:hover i {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .project-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    transform: rotate(45deg);
}

.project-card:hover::before {
    top: 100%;
    left: 100%;
}

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

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    transform: translateX(10px);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Commands Section */
.commands {
    padding: 8rem 0;
    background: linear-gradient(to top, var(--background), transparent);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 3rem;
}

.command-card {
    background: var(--background-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
}

.command-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .command-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .command-image {
        height: 140px;
    }
}

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

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

.command-content {
    padding: 2rem;
}

.command-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.command-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.command-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.command-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-info-item i {
    color: var(--primary);
}

.command-stars {
    color: #fbbf24;
}

/* Info Box */
.info-box {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(to top, var(--background), transparent);
}

.contact-links {
    max-width: 600px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 1rem;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateX(10px);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.contact-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2);
}

/* Footer */
footer {
    background: var(--background);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}