/* Portfolio Custom Styles */

:root {
    --primary-color: #3dcfc2;
    --primary-dark: #2bb8ac;
    --primary-light: #5dd8cd;
    --secondary-color: #6c757d;
    --success-color: #00d4aa;
    --warning-color: #ff6b6b;
    --info-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --accent-color: #ff9ff3;
    --gradient-primary: linear-gradient(135deg, #3dcfc2 0%, #00d4aa 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
    --gradient-accent: linear-gradient(135deg, #4ecdc4 0%, #3dcfc2 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-hero: linear-gradient(135deg, #3dcfc2 0%, #00d4aa 25%, #4ecdc4 50%, #2bb8ac 75%, #1a9b8f 100%);
    --shadow-light: 0 4px 20px rgba(61, 207, 194, 0.1);
    --shadow-medium: 0 8px 30px rgba(61, 207, 194, 0.15);
    --shadow-heavy: 0 16px 40px rgba(61, 207, 194, 0.2);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 24px;
    --border-radius-small: 16px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Typography */
.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.works-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-link {
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-color);
}

.header-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.header-nav-item {
    margin: 0;
}

.header-nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.header-nav-link:hover {
    color: var(--primary-color);
}

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

/* Hero Section - Split Screen Layout */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding-top: 80px;
}

.hero-split-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
}

/* Left Side: Name and Profile */
.hero-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-content {
    max-width: 600px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.hero-name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.hero-profile {
    font-size: 1.1rem;
    line-height: 2;
    color: #6c757d;
}

.hero-profile p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Right Side: Image or Content */
.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-image-placeholder {
    color: #adb5bd;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Section Spacing */
section {
    padding: 8rem 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

section.bg-light {
    background: #f8f9fa;
}

/* About Section */
.about-card {
    background: var(--white-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(61, 207, 194, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.about-card i {
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.about-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Skills Section */
.skill-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(61, 207, 194, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-card h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.skill-tags .badge {
    margin: 0.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.skill-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Section Title Simple */
.section-title-simple {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #2c3e50;
    letter-spacing: 0.05em;
}

/* Skills Section - Simple Style */
.skill-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.skill-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #6c757d;
    margin: 0;
}

/* Works Section - Simple Style */
.work-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    box-sizing: border-box;
}

.work-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.work-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.work-image a {
    display: block;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.work-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-info {
    flex: 1;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.work-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
}

.work-title-link:hover {
    color: var(--primary-color);
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.work-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(61, 207, 194, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.work-tags {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.work-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
    margin: 1rem 0 0 0;
}

/* Contact Section - Simple Style */
.contact-content {
    margin-top: 2rem;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #6c757d;
    margin-bottom: 2rem;
}

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

.contact-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.contact-link-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-link-item:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Modal Customization */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(61, 207, 194, 0.1);
    background: var(--gradient-primary);
    color: var(--white-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(61, 207, 194, 0.1);
    padding: 1.5rem 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        max-width: 100%;
        padding: 1rem 2rem;
    }

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

@media (max-width: 992px) {
    .header-container {
        padding: 1rem;
    }

    .header-nav-list {
        gap: 1.5rem;
    }

    .hero-split-container {
        flex-direction: column;
        min-height: auto;
    }

    .hero-section {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-left,
    .hero-right {
        flex: none;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 2.5rem 1.5rem;
    }

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

    .hero-name {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .hero-profile {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 250px;
    }

    .hero-profile-img {
        max-width: 250px;
    }

    .work-item {
        gap: 1.5rem;
    }

    .work-image {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-nav-link {
        font-size: 0.85rem;
    }

    .section-title-simple {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 90px;
    }

    .hero-left,
    .hero-right {
        padding: 2rem 1rem;
    }

    .hero-name {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-profile {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .hero-profile p {
        margin-bottom: 0.75rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .hero-profile-img {
        max-width: 200px;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    .work-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .work-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .work-img {
        object-fit: cover;
    }

    .work-title {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .work-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .work-description {
        font-size: 0.9rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .skill-name {
        font-size: 1.2rem;
    }

    .skill-description {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-link-item {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
        overflow-x: hidden;
    }

    .hero-split-container {
        min-height: auto;
        overflow-x: hidden;
    }

    .hero-left,
    .hero-right {
        padding: 2rem 0.75rem;
        min-width: 0;
        overflow-x: hidden;
    }

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

    .hero-name {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-profile {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .hero-profile p {
        margin-bottom: 0.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

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

    .hero-profile-img {
        max-width: 150px;
        width: 100%;
    }

    .section-title-simple {
        font-size: 1.5rem;
        word-break: break-word;
    }

    section {
        padding: 2.5rem 0;
        overflow-x: hidden;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-lg-8 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .work-item {
        padding-bottom: 1.5rem;
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    .work-image {
        width: 50%;
        max-width: 50%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-width: 0;
        flex-shrink: 0;
        margin: 0 auto;
    }

    .work-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .work-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .work-title {
        font-size: 1rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .work-title-link {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .work-tags {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .work-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        word-break: break-word;
    }

    .work-description {
        font-size: 0.8rem;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .skill-item {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .skill-name {
        font-size: 1rem;
        word-break: break-word;
    }

    .skill-description {
        font-size: 0.85rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: break-word;
    }

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

    .contact-text {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .contact-link-item {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Loading animation for work cards */
.work-card.loading {
    position: relative;
}

.work-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 207, 194, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced hover effects */
.work-card:hover .work-card-header h4 {
    color: var(--primary-color);
}

.skill-card:hover h5 {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
