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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 50%, #f0f8ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 4rem;
}

.avatar {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: translateY(-5px);
}

.initials {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.name {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2rem;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    max-width: 600px;
}

.welcome-text {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto 4rem;
    align-items: start;
}

.card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    transform: translate(4rem, -4rem);
    opacity: 0.1;
}

.resume-bg {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.git-bg {
    background: linear-gradient(135deg, #10b981, #059669);
}

.website-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.demos-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-content {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.resume-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.git-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.website-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.demos-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-text {
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.resume-card:hover .card-title {
    color: #3b82f6;
}

.git-card:hover .card-title {
    color: #10b981;
}

.website-card:hover .card-title {
    color: #8b5cf6;
}

.demos-card:hover .card-title {
    color: #f59e0b;
}

.card-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.card-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.git-card .card-link {
    color: #10b981;
}

.website-card .card-link {
    color: #8b5cf6;
}

.demos-card .card-link {
    color: #f59e0b;
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .arrow {
    transform: translateX(5px);
}

/* Contact Information */
.contact-info {
    text-align: center;
}

.contact-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.contact-item {
    display: inline-block;
    margin: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: bold;
}

.close {
    color: #6b7280;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

.demo-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-item:hover {
    background: #f3f4f6;
    transform: translateX(10px);
}

.demo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

.angular-color {
    background: linear-gradient(135deg, #dd0031, #c50025);
}

.nextjs-color {
    background: linear-gradient(135deg, #000000, #333333);
}

.nestjs-color {
    background: linear-gradient(135deg, #e0234e, #d01e44);
}

.laravel-color {
    background: linear-gradient(135deg, #ff2d20, #e02e1b);
}

.java-color {
    background: linear-gradient(135deg, #f89820, #e68900);
}

.demo-info h3 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item {
        display: block;
        margin: 0.5rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .demo-item {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
