:root {
    --primary: #ff6b4a;
    --accent: #9fff4a;
    --dark: #111;
    --gray: #333;
    --light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-card {
    background: var(--gray);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    color: var(--light);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--gray);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--dark);
    background: var(--primary);
    transform: translateY(-3px);
}

.cv-button {
    background: var(--primary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    border: none;
    cursor: pointer;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--gray);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--gray);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.project-desc {
    font-size: 0.95rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.project-tech img {
    height: 24px;
    width: auto;
}

.project-link-icon {
    color: var(--primary);
    font-size: 1.3rem;
    background: rgba(255,107,74,0.08);
    border-radius: 50%;
    padding: 0.4rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.project-link-icon:hover {
    background: var(--primary);
    color: var(--dark);
}

.project-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 0.5rem 1.2rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #ff8c6b;
    transform: translateY(-2px) scale(1.04);
}

.premium-tools {
    margin: 4rem 0;
}

.tools-header h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--gray);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.tool-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tool-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light);
}

.honors-awards {
    margin: 4rem 0;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-item {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
}

.award-icon {
    min-width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
}

.award-details h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.award-institution {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.award-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer {
    background: var(--gray);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-radius: 2rem;
}

.footer-year {
    margin-top: 0.5rem;
    color: #888;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-content {
        padding: 1rem;
    }

    .cv-button {
        margin: 1rem 0 0 0;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-card {
        padding: 1rem;
    }

    .award-item {
        flex-direction: column;
        text-align: center;
    }

    .award-icon {
        align-self: center;
    }

}
