/* Base Styles & Reset */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a45b1;
    --text-color: #333;
    --light-text: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
@keyframes float {
    0% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
    100% { transform: translateY(0px) rotateY(0deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 99, 99, 0.15) 0%, transparent 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    transform-style: preserve-3d;
    animation: fadeIn 1s ease-out;
}

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

.profile-container {
    margin-bottom: 30px;
    position: relative;
}

.profile-image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

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

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0.5;
    animation: pulse 4s infinite alternate;
    z-index: 1;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch:hover::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #0ff;
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: #f0f;
    z-index: -2;
}

/* Typewriter Effect */
.typewriter {
    position: relative;
    display: inline-block;
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.typing-text {
    position: relative;
    display: inline-block;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Live Demo Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.2);
}

/* Live Demo specific button */
a[href*="youbsite-demo"] {
    background: linear-gradient(45deg, var(--primary-color), #8a2be2);
    border: none;
    position: relative;
    z-index: 1;
}

a[href*="youbsite-demo"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8a2be2, var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href*="youbsite-demo"]:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.wheel {
    width: 6px;
    height: 8px;
    background: white;
    border-radius: 3px;
    margin: 5px auto 0;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

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

#hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 30px 0 20px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    animation: slideIn 1s ease-out;
}

#hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.tagline {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0 40px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeInUp 1s 0.3s both;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(20px);
    animation: floatSocial 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.social-icon::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;
}

.social-icon:hover::before {
    left: 100%;
}

@keyframes floatSocial {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(10deg); }
}

.social-icon:nth-child(1) { animation-delay: 0s; }
.social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-icon:nth-child(3) { animation-delay: 0.4s; }

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.service-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.service-card.featured .price {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0 25px;
    position: relative;
    display: inline-block;
}

.price::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    color: var(--light-text);
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

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

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    transform: translateY(30px);
    transition: var(--transition);
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Contact Section */
.contact-text {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--light-text);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-method i {
    font-size: 1.5rem;
}

.contact-method:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-social {
    margin-top: 20px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer .social-icon:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
}
    color: #0097a7;
}
        font-size: 2em;
    }

    .skills-grid, .project-grid {
        grid-template-columns: 1fr;
    }

    .skill-item, .project-item {
        padding: 20px;
        margin: 0 10px;
    }

    .social-icons a {
        font-size: 2em;
    }

    footer .social-icons a {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    section {
        padding: 60px 0;
    }

    .hero-content .profile-image {
        width: 120px;
        height: 120px;
    }

    .social-icons a {
        font-size: 1.8em;
        margin: 0 10px;
    }

    footer .social-icons a {
        font-size: 1.5em;
    }
}
