@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0ef;
    --primary-gradient: linear-gradient(135deg, #0ef, #06c5f7);
    --secondary-color: #7510F7;
    --secondary-gradient: linear-gradient(135deg, #7510F7, #9b59b6);
    --accent-color: #FF6B00;
    --accent-gradient: linear-gradient(135deg, #FF6B00, #ff9ff3);
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #222;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(117, 16, 247, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

h1, h2, h3, h4, button, .btn, nav a {
    font-family: 'Poppins', sans-serif;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    transition: var(--transition);
}

.logo h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(117, 16, 247, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    font-size: 1.05rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 5px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.back-btn {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.25);
    border: 2px solid transparent;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 238, 255, 0.4);
}

.back-btn i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 5% 5rem;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero-bg-shape {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeUp 1s ease-out forwards;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeUp 1.2s ease-out forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    animation: fadeUp 1.4s ease-out forwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-out forwards;
}

.hero-image img {
    width: 80%;
    max-width: 400px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(117, 16, 247, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(117, 16, 247, 0.1);
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.4);
}

.btn.secondary:hover {
    color: var(--white);
    background: var(--secondary-gradient);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(117, 16, 247, 0.3);
}

/* Section Styles */
section {
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1.5rem;
    animation: fadeUp 0.8s ease-out forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 5px;
}

.section-bg-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-bg-shape.top-right {
    top: -100px;
    right: -100px;
}

.section-bg-shape.bottom-left {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(117, 16, 247, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: var(--hover-shadow);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 238, 255, 0.2), rgba(117, 16, 247, 0.2));
    opacity: 0;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.skill {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.25);
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.work-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
}

.work-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.08);
}

.work-details {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.work-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.work-details p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.work-tech span {
    background-color: rgba(0, 238, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.work-tech span:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.work-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.work-link i {
    margin-left: 5px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.work-link:hover {
    color: var(--primary-color);
}

.work-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.contact-item:nth-child(2)::before {
    background: var(--secondary-gradient);
}

.contact-item:nth-child(3)::before {
    background: var(--accent-gradient);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-item:nth-child(2) i {
    color: var(--secondary-color);
}

.contact-item:nth-child(3) i {
    color: var(--accent-color);
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--secondary-color);
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    top: 100%;
    left: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-links a:hover::before {
    top: 0;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--hover-shadow);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 13px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -12px;
    left: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 238, 255, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #251a41, #1d0b38);
    color: var(--white);
    padding: 2.5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.back-to-main {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.back-to-main i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.back-to-main:hover {
    color: var(--white);
}

.back-to-main:hover i {
    transform: translateX(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes reveal {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
        padding-top: 5rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text h3 {
        text-align: center;
        display: block;
    }
    
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    section {
        padding: 4rem 5%;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Hero particles */
.hero-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(2px);
    animation: float-particle 15s infinite linear;
    z-index: 0;
}

.hero-particle:nth-child(odd) {
    background: var(--secondary-color);
}

/* Form error state */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff3860;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Form success message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: #00c853;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Mobile touch hover effect */
.btn.hover-effect {
    transform: scale(0.97);
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
} 