/* ========== COMPONENT STYLES ========== */

/* ========== CARD COMPONENTS ========== */
.card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 80px;
}

.card-content {
    line-height: 1.7;
    color: #555;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== BUTTON COMPONENTS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #4ecdc4;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: #4ecdc4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-outline {
    background: transparent;
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
}

.btn-outline:hover:not(:disabled) {
    background: #4ecdc4;
    color: white;
}

.btn-ghost {
    background: transparent;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-sm {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

/* ========== BADGE COMPONENTS ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.badge-primary {
    background: linear-gradient(45deg, #ff6b6b, #e73c7e);
    color: white;
}

.badge-secondary {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
}

.badge-success {
    background: linear-gradient(45deg, #34a853, #0f9d58);
    color: white;
}

.badge-warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.badge-danger {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

.badge-info {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid #e1e8ed;
    color: #666;
}

/* ========== FORM COMPONENTS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 1);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: #ff6b6b;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-error {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* ========== NAVIGATION COMPONENTS ========== */
.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.nav-link.active {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

/* ========== SKILL BADGE COMPONENTS ========== */
.skill-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skill-badge:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.4);
}

.skill-badge i {
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-badge:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.5));
}

.skill-badge span {
    position: relative;
    z-index: 2;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-badge:hover span {
    color: #ff6b6b;
}

/* ========== PROJECT CARD COMPONENTS ========== */
.project-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 1rem 0;
    color: #333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96c93d);
    background-size: 300% 300%;
    animation: gradientMove 3s ease infinite;
    border-radius: 1.5rem 1.5rem 0 0;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
}

.project-card h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.project-card:hover h3::after {
    width: 60px;
}

.project-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.project-card .project-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========== ALERT COMPONENTS ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(52, 168, 83, 0.1);
    border-left-color: #34a853;
    color: #0f9d58;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
    color: #f57c00;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
    color: #d32f2f;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: #2196f3;
    color: #1976d2;
}

.alert-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-message {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ========== LOADING COMPONENTS ========== */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== MODAL COMPONENTS ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}
