:root {
    --primary-purple: #7C3AED;
    --primary-purple-hover: #6D28D9;
    --background: #FAFAFA;
    --white: #FFFFFF;
    --dark-background: #1A1A1A;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --divider: #D1D5DB;
    --container-max-width: 1200px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2.5px solid var(--primary-purple);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.6) translateY(5px);
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-purple);
}

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('assets/images/bgportfolio.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1.2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.social-sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 20px;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link:hover {
    color: var(--primary-purple);
    transform: scale(1.1);
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1.2px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text h3, .about-skills h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text a:not(.btn) {
    color: var(--primary-purple);
    text-decoration: underline;
}

.about-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-badge {
    background: rgba(229, 231, 235, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-badge:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    background: var(--white);
}

.project-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 6;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.project-item:hover .project-image img {
    transform: scale(1.02);
}

.project-details {
    flex: 4;
}

.project-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Contact Section */
.contact {
    background: var(--background);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.half-width {
    flex: 1;
    min-width: 0; 
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
}

/* Fix for select box text color when unselected */
.form-group select:invalid {
    color: var(--text-light);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    border-width: 2px;
}

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-background);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-info {
    max-width: 400px;
}

.footer-info h3 {
    font-size: 1.5rem;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social h3 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social-links a:hover {
    color: var(--primary-purple);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-purple-hover);
    box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3);
}

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

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.05);
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translate(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.open {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        text-align: center;
    }
    
    .project-item:nth-child(even) {
        flex-direction: column;
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .nav-links, .social-sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}
