/* Base Styles */
:root {
    --primary: #0468D7;
    --secondary: #19B8FA;
    --dark: #212121;
    --light: #F3F7FA;
    --accent: #01C7FF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Container and Layout */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

section {
    padding: 6rem 0;
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.cta {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 104, 215, 0.2);
}

.primary:hover {
    box-shadow: 0 6px 15px rgba(4, 104, 215, 0.4);
    transform: translateY(-2px);
}

.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(243, 247, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-left: 20px;
}

#desktop-nav ul {
    display: flex;
}

#desktop-nav li {
    margin: 0 1.2rem;
}

#desktop-nav a {
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

#desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

#desktop-nav a:hover,
#desktop-nav a.active {
    color: var(--primary);
}

#desktop-nav a:hover::after,
#desktop-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav.show {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav li {
    width: 100%;
    text-align: center;
    margin: 0.8rem 0;
}

.mobile-nav a {
    display: block;
    padding: 0.8rem 0;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Header active state when scrolling */
.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero .name {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 45px;
    color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background-color: var(--dark);
    border-radius: 40px;
    position: relative;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-demo {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    animation: appDemo 10s infinite alternate;
    position: relative;
}

@keyframes appDemo {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* About Section */
.about {
    background-color: white;
    padding: 1.2rem 1.0rem;
}

.about-text {
    flex: 3;
    padding-right: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.stats {
    display: flex;
    margin-top: 2.5rem;
}

.stat-item {
    margin-right: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.about-image {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-placeholder i {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.7;
}
.profile-picture {
    border-radius: 50px;
}

/* Projects Section */
.projects {
    background-color: var(--light);
}

.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.2rem;
    margin: 0 0.5rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 20px;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: flex-m;
}

.project-card {
    width: 320px;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    height: 200px;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Details Modal */
.project-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-details-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-details-container {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-details-overlay.active .project-details-container {
    transform: translateY(0);
}

.project-details-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.back-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

.back-button:hover {
    opacity: 0.8;
}

.project-details-content {
    padding: 2rem;
}

.project-details-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.project-details-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.project-details-description h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.project-details-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.project-tech span {
    background-color: var(--light);
    padding: 0.3rem 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    justify-content: flex-start;
}

.project-link {
    margin-right: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary);
}

.section-cta {
    text-align: center;
    margin-top: 1rem;
}

/* Skills Section */
.skills {
    background-color: white;
}

.skills-content {
    display: flex;
    padding: 1.5rem 1.0rem;
    gap: 3rem;
    flex-wrap: wrap;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
    padding-left: 1rem;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-info span {
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    position: relative;
    width: 0%;
    transition: width 1.5s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-badge {
    background-color: var(--light);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-content {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1.2rem;
    margin-top: 0.3rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-link:hover i {
    color: white;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 104, 215, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    border: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    width: 100%;
    left: 0;
    right: 0;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .section-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        transform: perspective(800px) rotateY(0) rotateX(0);
    }
}

@media screen and (max-width: 768px) {
    #desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .stats {
        justify-content: space-between;
    }
    
    .stat-item {
        margin-right: 0;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .skills-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        width: 45%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

/* Animation delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}