/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a3a52 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.nav-menu a {
    color: #b2a59f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4a9eff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a1929 0%, #1a3a52 50%, #0a1929 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid #4a9eff;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4a9eff 0%, #b2a59f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: #b2a59f;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: #4a9eff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid #4a9eff;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.social-link:hover {
    background: #4a9eff;
    color: #0a1929;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section-alt {
    background: rgba(15, 30, 50, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #b2a59f);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.8rem;
    color: #b2a59f;
    margin: 3rem 0 2rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: #c0c0c0;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: #c0c0c0;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(20, 40, 60, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.skill-card h3 {
    color: #4a9eff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: #e0e0e0;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(74, 158, 255, 0.1);
    border-left: 4px solid #4a9eff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.skill-list li:hover {
    background: rgba(74, 158, 255, 0.2);
    transform: translateX(10px);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(20, 40, 60, 0.6);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card.featured {
    border: 2px solid #4a9eff;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #4a9eff;
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.4);
}

.project-card.featured:hover {
    box-shadow: 0 20px 50px rgba(74, 158, 255, 0.5);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2a59f;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid #4a9eff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.project-badge.jam {
    background: rgba(178, 165, 159, 0.2);
    color: #b2a59f;
    border-color: #b2a59f;
}

.project-badge.dev {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: #ffc107;
}

.project-content h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-content h4 a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h4 a:hover {
    color: #6ab0ff;
    text-decoration: underline;
}

.project-langage {
    color: #b2a59f;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.project-content p {
    color: #c0c0c0;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    color: #b2a59f;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 2px solid #b2a59f;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    background: #b2a59f;
    color: #0a1929;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 165, 159, 0.3);
}

.project-link.primary {
    background: linear-gradient(135deg, #4a9eff 0%, #6ab0ff 100%);
    color: #0a1929;
    border-color: #4a9eff;
    font-weight: 600;
}

.project-link.primary:hover {
    background: linear-gradient(135deg, #6ab0ff 0%, #4a9eff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.4);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-link {
    color: #4a9eff;
    text-decoration: none;
    padding: 1.2rem 2rem;
    background: rgba(20, 40, 60, 0.6);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-link:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 40, 60, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 25, 41, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a9eff 0%, #6ab0ff 100%);
    color: #0a1929;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 158, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.form-message-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 2px solid #4caf50;
}

.form-message-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 2px solid #f44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

.field-error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    animation: slideDown 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .profile-img {
        max-width: 250px;
        margin: 0 auto;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .about-text {
        font-size: 1rem;
        text-align: center;
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .project-card img {
        height: 150px;
    }

    .project-placeholder {
        height: 150px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a1929;
}

::-webkit-scrollbar-thumb {
    background: #4a9eff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ab0ff;
}
