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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 300;
    letter-spacing: 4px;
}

.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about strong {
    color: #ffd700;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.linktree-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    color: #ffd700;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.linktree-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #ffd700;
    transition: width 0.3s ease;
    z-index: -1;
}

.linktree-btn:hover::before {
    width: 100%;
}

.linktree-btn:hover {
    color: #0a0a0a;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.linktree-btn i {
    font-size: 1.5rem;
}

.social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    color: #ffd700;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #ffd700;
    color: #0a0a0a;
    transform: translateY(-5px) scale(1.1);
}

.projects-section, .skills {
    margin-bottom: 80px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffd700;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    width: calc(33.333% - 20px);
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.click-indicator {
    margin-top: 15px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .click-indicator {
    opacity: 1;
    transform: translateX(0);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: #ffd700;
    transform: translateX(5px);
}

.skill-icon {
    font-size: 2.5rem;
}

.skill-item span:last-child {
    font-size: 1.1rem;
}

/* 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.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 40px;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    border: 2px solid #ffd700;
    animation: slideUp 0.4s ease;
}

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

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #fff;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.modal-left img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-role {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-right h2 {
    font-size: 2.5rem;
    margin: 0;
    text-align: left;
    color: #fff;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.modal-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-link {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.modal-link:hover {
    background: #ffd700;
    color: #0a0a0a;
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.1);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #e0e0e0;
    font-size: 1rem;
}

.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 1rem;
}

.contact i {
    color: #ffd700;
    font-size: 1.2rem;
}

.contact a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .about {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 60px;
    }

    .social-links {
        flex-direction: row;
        align-items: center;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .linktree-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .linktree-btn i {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card img {
        height: 180px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        margin: 5% 15px;
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-right h2 {
        font-size: 1.8rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-item {
        padding: 20px;
        gap: 15px;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-item span:last-child {
        font-size: 1rem;
    }

    .container {
        padding: 40px 15px;
    }

    .close {
        right: 15px;
        top: 10px;
        font-size: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .projects-section, .skills {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    header {
        margin-bottom: 40px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .about {
        font-size: 0.95rem;
        margin-bottom: 50px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .project-card img {
        height: 160px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .click-indicator {
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 5% 10px;
        padding: 25px 15px;
    }

    .modal-right h2 {
        font-size: 1.5rem;
    }

    .modal-role {
        font-size: 0.8rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .linktree-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .linktree-btn i {
        font-size: 1.2rem;
    }

    .skill-item {
        padding: 15px;
        gap: 10px;
    }

    .skill-icon {
        font-size: 1.5rem;
    }

    .skill-item span:last-child {
        font-size: 0.95rem;
    }

    .footer {
        padding: 30px 15px;
    }

    .copyright,
    .contact {
        font-size: 0.9rem;
    }

    .container {
        padding: 30px 15px;
    }
}
