/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #080808;
    --foreground: #f0f0f0;
    --card: #0d0d0d;
    --muted: #141414;
    --muted-foreground: #a0a0a0;
    --primary: #e5e5e5;
    --primary-foreground: #0d0d0d;
    --secondary: #141414;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 0.625rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Northern Lights Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 150, 0.12) 25%,
        rgba(100, 50, 255, 0.10) 50%,
        rgba(0, 200, 100, 0.08) 75%,
        transparent 100%
    );
    animation: northernLights 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent 0%,
        rgba(150, 0, 255, 0.10) 25%,
        rgba(0, 255, 150, 0.12) 50%,
        rgba(120, 50, 200, 0.08) 75%,
        transparent 100%
    );
    animation: northernLights 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes northernLights {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(-10%, 10%) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, -10%) rotate(-5deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(-5%, -5%) rotate(3deg);
        opacity: 0.6;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background-color: rgba(8, 8, 8, 0.85);
    animation: slideDown 0.5s ease-out;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 150, 0.15) 25%,
        rgba(150, 50, 255, 0.12) 50%,
        rgba(0, 200, 100, 0.10) 75%,
        transparent 100%
    );
    animation: headerLights 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerLights {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(50%);
        opacity: 0.6;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    transition: transform 0.2s;
    cursor: pointer;
}

.logo:hover .logo-text {
    transform: scale(1.05);
}

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

.social-icon {
    color: var(--foreground);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.profile-image-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: scaleIn 0.6s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 4px solid rgba(235, 235, 235, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-subdescription {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 235, 235, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* Skills Section */
.skills-section {
    margin-bottom: 5rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.section-subtitle {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-icon {
    cursor: pointer;
    transition: all 0.3s;
    animation: scaleIn 0.4s ease-out both;
}

.skill-icon:nth-child(1) { animation-delay: 0.6s; }
.skill-icon:nth-child(2) { animation-delay: 0.65s; }
.skill-icon:nth-child(3) { animation-delay: 0.7s; }
.skill-icon:nth-child(4) { animation-delay: 0.75s; }
.skill-icon:nth-child(5) { animation-delay: 0.8s; }
.skill-icon:nth-child(6) { animation-delay: 0.85s; }
.skill-icon:nth-child(7) { animation-delay: 0.9s; }
.skill-icon:nth-child(8) { animation-delay: 0.95s; }
.skill-icon:nth-child(9) { animation-delay: 1s; }
.skill-icon:nth-child(10) { animation-delay: 1.05s; }

.skill-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

.skill-icon img {
    width: 3.5rem;
    height: 3.5rem;
}

@media (min-width: 640px) {
    .skill-icon img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* About Section */
.about-section {
    margin-bottom: 5rem;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Expertise Section */
.expertise-section {
    margin-bottom: 5rem;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: var(--foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s;
    animation: scaleIn 0.3s ease-out both;
}

.tag:nth-child(1) { animation-delay: 1.1s; }
.tag:nth-child(2) { animation-delay: 1.12s; }
.tag:nth-child(3) { animation-delay: 1.14s; }
.tag:nth-child(4) { animation-delay: 1.16s; }
.tag:nth-child(5) { animation-delay: 1.18s; }
.tag:nth-child(6) { animation-delay: 1.2s; }
.tag:nth-child(7) { animation-delay: 1.22s; }
.tag:nth-child(8) { animation-delay: 1.24s; }
.tag:nth-child(9) { animation-delay: 1.26s; }
.tag:nth-child(10) { animation-delay: 1.28s; }

.tag:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    animation: fadeIn 0.6s ease-out 1.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-icon {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-icon:hover {
    color: var(--foreground);
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .main-content {
        padding: 2rem 1rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-subdescription {
        font-size: 1rem;
    }

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

    .about-content p {
        font-size: 1rem;
    }

    .skills-grid {
        gap: 1.5rem;
    }

    .skill-icon img {
        width: 2.5rem;
        height: 2.5rem;
    }
}
