@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Indie+Flower&family=Patrick+Hand&display=swap');

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

body {
    font-family: 'Patrick Hand', cursive;
    background-color: #ede4d3;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 3px);
    background-blend-mode: multiply;
    min-height: 100vh;
    color: #2d2d2d;
    position: relative;
    overflow-x: hidden;
    filter: contrast(1.1) saturate(1.15);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(0,0,0,0.015) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 45% 85%, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(139, 119, 101, 0.008) 1px,
            rgba(139, 119, 101, 0.008) 2px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

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

.main-heading {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(3.5rem, 10vw, 7rem);
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 60px;
    text-shadow: 
        3px 3px 0px #ff6b9d,
        6px 6px 0px #4ecdc4,
        -2px -2px 0px rgba(255, 200, 100, 0.5);
    letter-spacing: -2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transform: rotate(-2deg);
    line-height: 1.1;
    position: relative;
    display: inline-block;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.3));
}

.main-heading .cap {
    font-size: 1.15em;
    font-weight: bold;
}



.main-heading::before {
    content: 'BeAnAmateur';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    text-shadow: 
        -3px -3px 0px #4ecdc4,
        3px 3px 0px #222;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-heading::after {
    display: none;
}

.main-heading:hover::before {
    opacity: 1;
    animation: glitch 0.3s infinite;
}

.main-heading:hover::after {
    opacity: 0;
}

.main-heading:hover {
    transform: scale(1.08) rotate(-3deg) translateY(-5px);
    color: #111;
    padding: 20px 40px;
    filter: drop-shadow(0 0 24px #4ecdc4) drop-shadow(0 0 8px #222);
    background: none;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

.project-card {
    background: #fff;
    padding: 30px 35px;
    border-radius: 15px;
    border: 3px solid #2d2d2d;
    box-shadow: 
        8px 8px 0px rgba(0, 0, 0, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    transform: rotate(-0.5deg);
    filter: contrast(1.1);
}

.project-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #fff;
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, #000 2px, transparent 2px);
    background-size: 8px 8px;
    background-position: 0 0;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.1) 90%,
        transparent 100%
    );
    mask-image: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.1) 90%,
        transparent 100%
    );
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 0.5;
}

.project-card:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    box-shadow: 
        14px 14px 0px rgba(0, 0, 0, 0.9),
        0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #000;
    border-width: 8px;
}

@keyframes rotateGradient {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}


.project-card h3 {
    font-family: 'Indie Flower', cursive;
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 12px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #ff6b9d;
    position: relative;
    z-index: 1;
}

.project-card:hover h3 {
    color: #000;
    text-shadow: 3px 3px 0px #ff6b9d, -1px -1px 0px rgba(0, 0, 0, 0.3);
}

.metadata {
    font-size: 1.18rem;
    color: #333;
    margin-bottom: 18px;
    font-style: normal;
    line-height: 1.6;
    font-family: 'Patrick Hand', cursive;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.project-link {
    display: inline-block;
    color: #fff;
    background: #2d2d2d;
    text-decoration: none;
    border: 3px solid #000;
    padding: 8px 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    font-size: 1.05rem;
    filter: contrast(1.1);
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 0;
}

.project-link:hover::after {
    opacity: 1;
    transform: translateX(0);
    margin-left: 8px;
}

.project-link:hover {
    background: #000;
    transform: translate(-2px, -2px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 157, 0.5);
    border-color: #ff6b9d;
}

.project-link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.links-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

footer {
    border-top: 3px dashed #2d2d2d;
    padding-top: 40px;
    margin-top: 20px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    background: #2d2d2d;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 12px 20px;
    border-radius: 50px;
    position: relative;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    filter: contrast(1.1);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translate(-2px, -2px) scale(1.05);
    background: #000;
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(78, 205, 196, 0.5),
        0 0 30px rgba(255, 107, 157, 0.3);
    border-color: #4ecdc4;
}

.social-link:active {
    transform: translate(2px, 2px) scale(1);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.social-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.8));
}

.social-link:hover .social-icon svg {
    fill: #4ecdc4;
}

.social-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    font-family: 'Patrick Hand', cursive;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .main-heading {
        margin-bottom: 40px;
    }

    .projects {
        gap: 20px;
        margin-bottom: 60px;
    }

    .project-card {
        padding: 20px;
    }

    .socials {
        gap: 20px;
    }

    .links-group {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .project-link {
        width: auto !important;
        min-width: 120px;
        max-width: 320px;
        box-sizing: border-box;
        display: inline-block;
    }
}

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

.project-card {
    animation: fadeInUp 0.6s ease backwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.main-heading {
    animation: fadeInUp 0.8s ease;
}

.social-link {
    animation: fadeInUp 0.6s ease backwards;
}

.social-link:nth-child(1) { animation-delay: 0.4s; }
.social-link:nth-child(2) { animation-delay: 0.5s; }
.social-link:nth-child(3) { animation-delay: 0.6s; }
.social-link:nth-child(4) { animation-delay: 0.7s; }
.social-link:nth-child(5) { animation-delay: 0.8s; }
