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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #8338ec);
    --gradient-secondary: linear-gradient(135deg, #ff006e, #8338ec);
    --gradient-accent: linear-gradient(135deg, #00d4ff, #ff006e);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%2300d4ff" stroke="white" stroke-width="2"/></svg>'), auto;
}

/* Floating Cloud Animation */
.floating-cloud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-cloud a {
    pointer-events: auto;
}

.cloud-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    opacity: 0.8;
    transition: all 0.1s ease;
    will-change: transform, opacity;
    text-decoration: none;
}

.cloud-particle:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.cloud-particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.cloud-particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.cloud-particle:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; }
.cloud-particle:nth-child(4) { top: 30%; left: 70%; animation-delay: 3s; }
.cloud-particle:nth-child(5) { top: 80%; left: 25%; animation-delay: 4s; }
.cloud-particle:nth-child(6) { top: 15%; left: 50%; animation-delay: 5s; }
.cloud-particle:nth-child(7) { top: 70%; left: 85%; animation-delay: 1.5s; }
.cloud-particle:nth-child(8) { top: 40%; left: 40%; animation-delay: 2.5s; }
.cloud-particle:nth-child(9) { top: 90%; left: 60%; animation-delay: 3.5s; }
.cloud-particle:nth-child(10) { top: 50%; left: 5%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* Main Container with Inverted Gravity Effect */
.main-container {
    position: relative;
    z-index: 2;
    transform: rotateX(0deg);
    perspective: 1000px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.profile-image-container {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.profile-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 350px;
    height: 350px;
    top: -25px;
    left: -25px;
    animation-duration: 15s;
}

.ring-2 {
    width: 400px;
    height: 400px;
    top: -50px;
    left: -50px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    width: 450px;
    height: 450px;
    top: -75px;
    left: -75px;
    animation-duration: 25s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: block;
    animation: slideInUp 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

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

/* Section Styles */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.skill-tag:nth-child(even) {
    animation-delay: 1s;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.morphing-shape {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.project-image {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-link {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-darker);
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-method:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.nav-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.nav-item:hover,
.nav-item.active {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}


/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-nav {
        right: 1rem;
    }
    
    .cloud-particle {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-content {
        padding: 0 1rem;
    }
}