:root {
    --royal-purple: #4B0082;
    --light-purple: #8A2BE2;
    --dark-purple: #2A004C;
    --white: #FFFFFF;
    --gray: #F0F0F0;
    --gradient-1: linear-gradient(135deg, var(--royal-purple), var(--dark-purple));
    --gradient-2: linear-gradient(45deg, var(--light-purple), var(--royal-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: var(--white);
    color: #333;
    overflow-x: hidden;
}

/* Floating Symbols */
.floating-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.floating-symbols i, .floating-symbols img {
    position: absolute;
    font-size: 3rem;
    animation: float 20s linear infinite;
    color: var(--royal-purple);
}

.floating-symbols .lua-icon {
    width: 48px;
    height: 48px;
    filter: grayscale(100%) brightness(0.5);
}

.floating-symbols i:nth-child(1) { left: 10%; animation-duration: 15s; }
.floating-symbols i:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: -5s; }
.floating-symbols i:nth-child(3) { left: 30%; animation-duration: 20s; animation-delay: -10s; }
.floating-symbols i:nth-child(4) { left: 40%; animation-duration: 22s; animation-delay: -7s; }
.floating-symbols img:nth-child(5) { left: 50%; animation-duration: 25s; animation-delay: -12s; }
.floating-symbols i:nth-child(6) { left: 60%; animation-duration: 17s; animation-delay: -3s; }
.floating-symbols i:nth-child(7) { left: 70%; animation-duration: 19s; animation-delay: -8s; }

@keyframes float {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    padding: 6rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    animation: backgroundShift 30s linear infinite;
}

@keyframes backgroundShift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
    100% { transform: translate(0, 0); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--white);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    opacity: 0.1;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

/* Profile Image Styling */
.profile-image {
    flex-shrink: 0;
    position: relative;
}

.profile-frame {
    width: 220px;
    height: 220px;
    border-radius: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--gradient-2);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Profile Info Styling */
.profile-info {
    flex-grow: 1;
}

.status-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.status-badge[data-status="available"] .status-dot {
    background: #2ecc71;
}

.status-badge[data-status="busy"] .status-dot {
    background: #f1c40f;
}

.status-badge[data-status="unavailable"] .status-dot {
    background: #e74c3c;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-green 2s infinite;
    opacity: 0.5;
}

/* Header Content */
.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.name-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.name-badge h1 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(to right, #fff, var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.badge-tag {
    background: var(--light-purple);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.quick-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat i {
    color: var(--light-purple);
    font-size: 1rem;
}

/* Skills Section */
.skills-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-category h3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-section .tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.skills-section .tech-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.skills-section .tech-badge.learning {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--light-purple);
    color: var(--white);
}

.skills-section .tech-badge:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Project Tech Stack (to keep them separate from skills) */
.project-info .tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.project-info .tech-badge {
    background: rgba(75,0,130,0.1);
    color: var(--royal-purple);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.project-info .tech-badge:hover {
    background: var(--royal-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(75,0,130,0.3);
}

/* Contact Section */
.contact-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-btn {
    background: linear-gradient(135deg, var(--light-purple), var(--royal-purple));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn i {
    font-size: 1.1rem;
    color: white;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-btn.hidden {
    display: none;
}

.tagline {
    font-size: 1.3rem;
    color: var(--light-purple);
    margin-bottom: 1.5rem;
    animation: slideIn 1s ease-out;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 500;
}

.bio-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--white);
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    animation: slideIn 1.4s ease-out;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-purple);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--light-purple);
}

.social-link:hover::before {
    transform: translateY(0);
}

.social-link:hover i {
    animation: bounceIcon 0.3s ease-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.portfolio {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(75, 0, 130, 0.12) 0%, transparent 50%),
        linear-gradient(to bottom, var(--white) 0%, rgba(138, 43, 226, 0.08) 100%);
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(45deg, rgba(75, 0, 130, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(138, 43, 226, 0.03) 25%, transparent 25%);
    background-size: 60px 60px, 40px 40px, 40px 40px;
    opacity: 0.1;
    z-index: -1;
    animation: patternShift 30s linear infinite;
}

.portfolio::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 35%);
    pointer-events: none;
    z-index: -1;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 6rem;
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--royal-purple), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 0 2rem;
}

.portfolio h2::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 25px;
    background: var(--light-purple);
    bottom: -10px;
    left: -20%;
    opacity: 0.1;
    transform: skew(-20deg);
    transition: all 0.3s ease;
}

.portfolio h2::after {
    content: '{ code }';
    position: absolute;
    font-size: 1rem;
    top: -1.5rem;
    right: -3rem;
    color: var(--light-purple);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transform: rotate(5deg);
    animation: float 6s ease-in-out infinite;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 2000px;
    position: relative;
}

.projects-container::before {
    content: '<projects>';
    position: absolute;
    top: -3rem;
    left: 0;
    font-family: 'Courier New', monospace;
    color: var(--light-purple);
    opacity: 0.5;
    font-size: 0.9rem;
}

.projects-container::after {
    content: '</projects>';
    position: absolute;
    bottom: -3rem;
    left: 0;
    font-family: 'Courier New', monospace;
    color: var(--light-purple);
    opacity: 0.5;
    font-size: 0.9rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 0;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 100px rgba(138,43,226,0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    border: 1px solid rgba(75,0,130,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 
        0 30px 60px rgba(138,43,226,0.2),
        0 0 120px rgba(138,43,226,0.1);
}

.project-preview {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.project-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(75,0,130,0.2) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-preview::before {
    opacity: 1;
}

.project-card:hover .project-preview img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-info {
    padding: 3.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: relative;
}

.project-title {
    color: var(--royal-purple);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--light-purple), transparent);
    transition: width 0.4s ease;
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.project-card:hover .project-description {
    color: #333;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(75,0,130,0.1);
    position: relative;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 15px;
    background: rgba(75,0,130,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.detail-item i {
    color: var(--royal-purple);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.detail-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.detail-item:hover {
    background: rgba(75,0,130,0.08);
    transform: translateY(-3px);
}

.detail-item:hover i {
    transform: scale(1.2);
    color: var(--light-purple);
}

.project-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--royal-purple);
    color: var(--white);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(75,0,130,0.2);
    min-width: 200px;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    background: var(--light-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(75,0,130,0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tech-badge {
    background: rgba(75,0,130,0.1);
    color: var(--royal-purple);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.tech-badge:hover {
    background: var(--royal-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(75,0,130,0.3);
}

@media (max-width: 768px) {
    .project-preview {
        height: 300px;
    }

    .project-info {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1.1rem;
    }

    .project-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .detail-item {
        padding: 1rem;
    }

    .detail-item i {
        font-size: 1.1rem;
    }

    .detail-item span {
        font-size: 0.85rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

footer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    color: var(--royal-purple);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

footer:hover {
    opacity: 1;
} 