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

:root {
    --primary-color: #2A2A72;
    --secondary-color: #009FFD;
    --text-color: #333;
    --light-text: #fff;
    --background: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a2e;
    position: relative;
    overflow-x: hidden;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(42, 42, 114, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(0, 159, 253, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: gradientMove 20s ease-in-out infinite;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.7;
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    background: linear-gradient(45deg, #2A2A72, #009FFD, #00D4FF);
    animation: morphBackground 12s ease-in-out infinite;
}

.animated-bg::before {
    top: -400px;
    right: -400px;
    animation: morphBackground 12s ease-in-out infinite, moveTopBubble 20s ease-in-out infinite;
}

.animated-bg::after {
    bottom: -400px;
    left: -400px;
    animation: morphBackground 12s ease-in-out infinite reverse, moveBottomBubble 20s ease-in-out infinite;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
}

@keyframes morphBackground {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 40% 60%;
    }
    100% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
}

@keyframes moveTopBubble {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-200px, 200px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(200px, 100px) rotate(240deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

@keyframes moveBottomBubble {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(200px, -200px) rotate(-120deg) scale(1.2);
    }
    66% {
        transform: translate(-200px, -100px) rotate(-240deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(-360deg) scale(1);
    }
}


.container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 159, 253, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 159, 253, 0.3);
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: gradientText 8s ease infinite;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary {
    background: linear-gradient(45deg, #2A2A72, #009FFD, #00D4FF);
    color: var(--light-text);
    border: none;
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

.btn.primary:hover {
    background-position: right center;
    box-shadow: 0 0 20px rgba(0, 159, 253, 0.4);
    transform: translateY(-3px);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.profile-image {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}


.featured-portfolio {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.featured-portfolio-header h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 159, 253, 0.5);
}

.featured-portfolio-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.view-all-portfolio {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #2A2A72, #009FFD, #00D4FF);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 3rem;
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

.view-all-portfolio:hover {
    background-position: right center;
    box-shadow: 0 0 20px rgba(0, 159, 253, 0.4);
    transform: translateY(-3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    text-decoration: none;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(42, 42, 114, 0.9), rgba(0, 159, 253, 0.9));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-image::after {
    content: 'View Project →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 46, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        transition: var(--transition);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding: 8rem 1rem 4rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    .profile-image {
        width: 350px;
        height: 350px;
    }

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

    .portfolio-image {
        height: 240px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
    }

    .profile-image {
        width: 280px;
        height: 280px;
    }

    .portfolio-image {
        height: 200px;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        padding: 0.8rem;
    }
}


.footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1;
    max-width: 400px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-email {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-email:hover {
    color: var(--light-text);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.freelance-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.freelance-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    min-width: 140px;
    justify-content: center;
}

.platform-logo {
    height: 24px;
    width: auto;
    transition: var(--transition);
}

.fiverr-logo {
    filter: brightness(0) invert(1);
}

.freelancer-logo {
    fill: #ffffff;
}

.freelance-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.freelance-link:hover .fiverr-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.freelance-link:hover .freelancer-logo {
    filter: drop-shadow(0 0 3px rgba(41, 178, 254, 0.5));
}

.freelance-link span {
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .footer-section {
        max-width: 100%;
    }

    .social-links,
    .freelance-links {
        justify-content: center;
    }

    .freelance-link {
        padding: 0.6rem 1.2rem;
    }
    
    .platform-logo {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 1rem 1rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .freelance-links {
        flex-direction: column;
        align-items: center;
    }

    .freelance-link {
        width: 100%;
        justify-content: center;
    }
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.skills {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
}

.skills-header h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 159, 253, 0.5);
}

.skills-header p {
    color: rgba(255, 255, 255, 0.8);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skill-category {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.skill-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.skill-item span {
    font-weight: 500;
}


.skill-item:hover i.fa-html5 {
    color: #E44D26;
}


.skill-item:hover i.fa-css3-alt {
    color: #264DE4;
}


.skill-item:hover i.fa-js {
    color: #F7DF1E;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skill-items {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        padding: 0.8rem;
    }
} 