/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    isolation: isolate;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(5px);
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.2);
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(90deg);
    }
    50% {
        transform: translate(0, 40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    padding: 0 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.cta-button {
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4);
}

/* Projects Section */
#projects {
    padding: 100px 0;
    background-color: #0f0f0f;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.project-card {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.5);
    z-index: 2;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-preview {
    transform: scale(1.05);
    filter: brightness(1);
}

.image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    font-size: 1.5rem;
    font-weight: 600;
    color: #8a2be2;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-description {
    color: #b0b0b0;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-item {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.visit-button {
    display: inline-block;
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.visit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* About Section */
#about {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29, #302b63);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bio {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.skills {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 25px;
}

.skill-name {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #fff;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    border-radius: 5px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background-color: #0f0f0f;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(30, 30, 46, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.submit-button {
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: rgba(30, 30, 46, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: #8a2be2;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    position: relative;
}

footer p {
    color: #888;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    #projects,
    #about,
    #contact {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        width: 95%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-info {
        padding: 20px;
    }
}

/* Luxury button hover effects */
.cta-button::before,
.visit-button::before,
.submit-button::before,
.social-link::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: left 0.5s;
}

.cta-button:hover::before,
.visit-button:hover::before,
.submit-button:hover::before,
.social-link:hover::before {
    left: 100%;
}

/* Enhanced project card */
.project-card {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 191, 255, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.5);
    z-index: 2;
}

/* Luxury cursor */
.luxury-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #8a2be2;
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    mix-blend-mode: difference;
    background-color: transparent;
}

/* Luxury message */
.luxury-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8a2be2, #00bfff);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.5s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
