* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a9eff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #4a9eff;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    padding: 0 40px;
    z-index: 10;
}

.hero-text {
    flex: 1;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4a9eff, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .title {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff, #7b68ee);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #4a9eff;
}

.btn-secondary:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    flex: 0 0 400px;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.3s forwards;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 158, 255, 0.3);
    transition: transform 0.5s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #4a9eff, #7b68ee);
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4a9eff, #7b68ee);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: #4a9eff;
}

.skill-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #4a9eff;
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4a9eff, #7b68ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.project-content p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.contact-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
    transform: translateY(-3px);
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.shape1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 10%;
    animation-delay: 7s;
}

.shape3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

.card-link {
  text-decoration: none; 
  color: inherit; 
  display: block; 
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: contents; 
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 40px;
        padding: 20px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .title {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .hero-image {
        flex: 0 0 auto;
    }

    .image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        min-width: 0;
    }

    nav ul {
        gap: 15px;
        padding: 0 20px;
    }

    nav a {
        font-size: 0.85rem;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}