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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0B0F1A;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Starfield Background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 126, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4a7eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #ffffff;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #4a7eff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7eff;
    transition: width 0.3s ease;
}

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

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

.nav-social a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 126, 255, 0.1);
}

.nav-social a:hover {
    color: #4a7eff;
    transform: scale(1.1);
    background: rgba(74, 126, 255, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.menu-label {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.profile-picture {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #4a7eff;
    box-shadow: 0 0 30px rgba(74, 126, 255, 0.3);
    background: transparent;
    position: relative;
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #0B0F1A;
    border-radius: 50%;
    z-index: -1;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.3s ease;
}

.profile-picture:hover img {
    transform: scale(1.05);
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #4a7eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #b0b8c5;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #4a7eff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 126, 255, 0.3);
}

.btn-primary:hover {
    background: #3a6eef;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 126, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #4a7eff;
}

.btn-secondary:hover {
    background: #4a7eff;
    transform: translateY(-2px);
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-profile {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4a7eff;
    background: transparent;
    position: relative;
}

.about-profile::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: #0B0F1A;
    border-radius: 50%;
    z-index: -1;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-intro {
    font-size: 1.2rem;
    color: #b0b8c5;
    max-width: 600px;
    margin: 0 auto;
}

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

/* Projects Section */
.projects {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.projects-intro {
    font-size: 1.2rem;
    color: #b0b8c5;
    max-width: 600px;
    margin: 0 auto;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(74, 126, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 126, 255, 0.3);
    border-color: #4a7eff;
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4a7eff;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    background: #ffffff;
    color: #4a7eff;
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-content p {
    color: #b0b8c5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-intro {
    font-size: 1.2rem;
    color: #b0b8c5;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(74, 126, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.02);
    background: rgba(74, 126, 255, 0.1);
    border-color: #4a7eff;
    box-shadow: 0 10px 30px rgba(74, 126, 255, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 126, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7eff;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #4a7eff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(74, 126, 255, 0.5);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(74, 126, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 126, 255, 0.3);
    border-color: #4a7eff;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 126, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7eff;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card p {
    color: #b0b8c5;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: rgba(74, 126, 255, 0.2);
    color: #4a7eff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(74, 126, 255, 0.3);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideLeft 0.8s ease forwards;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideRight 0.8s ease forwards;
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: scale 0.6s ease forwards;
}

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

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Delays */
[data-delay="0"] {
    animation-delay: 0ms;
}

[data-delay="100"] {
    animation-delay: 100ms;
}

[data-delay="200"] {
    animation-delay: 200ms;
}

[data-delay="300"] {
    animation-delay: 300ms;
}

[data-delay="400"] {
    animation-delay: 400ms;
}

[data-delay="500"] {
    animation-delay: 500ms;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 15, 26, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-social {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-cards,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-item {
        flex: none;
        width: 100%;
        max-width: 400px;
        padding: 1.5rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon svg {
        width: 32px;
        height: 32px;
    }

    .about-title,
    .projects-title,
    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .about-cards,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .project-card {
        padding: 1.5rem;
    }

    .project-image {
        height: 160px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid #4a7eff;
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {

    .card,
    .project-card,
    .contact-item {
        border: 2px solid #4a7eff;
    }

    .tech-tags span {
        border: 1px solid #4a7eff;
    }
}