:root {
    --bg-dark: #0a0e27;
    --bg-darker: #05071a;
    --primary: #6366f1;
    --primary-glow: #818cf8;
    --accent: #ec4899;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Blobs */
body::before {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    gap: 2rem;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* Custom Cursor */
.cursor-ring, .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-glow);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 100;
    transition: all 0.4s ease;
    background: transparent;
}

.nav.nav-scrolled {
    background: rgba(5, 7, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 4rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-line-container {
    overflow: hidden;
}

.hero-line span {
    display: block;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -1px;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-section {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
}

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

.about-image {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    transition: transform 0.6s ease;
}

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

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    opacity: 0.3;
    z-index: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.about-highlights {
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.highlight-item:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    transform: translateX(10px);
}

.highlight-item i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.about-extra {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Skills Section */
.skills-section {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.skills-categories {
    display: grid;
    gap: 4rem;
}

.skill-category {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
}

.skill-category:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
}

.skill-card:hover .skill-icon {
    transform: scale(1.3) rotate(10deg);
    background: rgba(99, 102, 241, 0.2);
}

.skill-card span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Projects Section */
.projects-section {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
}

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

.project-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    overflow: hidden;
    position: relative;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-card:hover .project-image img,
.project-card:hover .project-placeholder {
    transform: scale(1.15);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-weight: 800;
}

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

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.4);
}

.see-more {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.see-more h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8rem 0;
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-email {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 3rem;
    display: inline-block;
    transition: transform 0.3s;
}

.contact-email:hover {
    transform: scale(1.05);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav.nav-scrolled {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 0 1.5rem;
        margin-top: 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .highlight-item:hover {
        transform: none;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .skill-category {
        padding: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .contact-email {
        font-size: 1.8rem;
    }
}