/*style.css*/

:root {
    --pine: #3a5a40;
    --sage: #588157;
    --sand: #dad7cd;
    --slate: #344e41;
    --gold: #d4a017;
    --modal-shadow: 0 0 50px rgba(212, 160, 23, 0.5);
    --modal-bg: rgba(0,0,0,0.9);
    --transition-base: 0.3s ease;
}
body {
    height: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--pine);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}
.particle {
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 0 10px currentColor;
}
/* Header styles */
header {
    position: relative;
    background: linear-gradient(rgba(58,90,64,0.4), rgba(58,90,64,0.4)),
                url('images/bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212,160,23,0.3), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--sand);
    margin: 20px auto;
    display: block;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}
.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--gold);
}

/* CANVAS MODAL STYLES */
.canvas-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.canvas-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.canvas-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 70vh;
    background: url('images/paper_texture.jpeg') center/cover;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 160, 23, 0.5);
    overflow: hidden;
}
.handwritten-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    padding: 40px;
    background: rgba(255, 253, 240, 0.85);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    font-family: 'Bradley Hand', cursive, sans-serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
    overflow-y: auto;
}
@media (max-width: 480px) {
       .handwritten-text { font-size: 1rem; }
   }

.close-canvas {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.close-canvas:hover {
    transform: scale(1.2);
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}
.tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.btn {
    display: inline-block;
    background: var(--sage);
    color: white;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 30px;
    margin: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.3s;
}
.btn:hover {
    background: var(--slate);
    transform: translateY(-3px);
}
.btn:hover::after {
    left: 100%;
}
section {
    padding: 60px 20px;
    background: white;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
h2 {
    color: var(--pine);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--sage);
}
.services-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.services-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.services-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background: white;
    padding: 40px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.5);
}

.close-services {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.3s;
}

.close-services:hover {
    transform: scale(1.2);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.skill-card {
    background: var(--sand);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--gold);
}
.icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--pine);
    transition: all 0.3s ease;
}
.skill-card:hover .icon {
    transform: scale(1.1);
    color: var(--gold);
}

.gallery-item {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    padding: 40px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: var(--modal-shadow);
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.3s;
}

.close-gallery:hover {
    transform: scale(1.2);
}

/*Contact Modal*/
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-content {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 60vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 160, 23, 0.5);
    overflow: hidden;
}

.close-contact {
    position: relative;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.close-contact:hover {
    transform: scale(1.2);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 1px solid var(--sand);
    border-radius: 4px;
    font-family: 'Bradley Hand', cursive, sans-serif;
    font-size: 1.2rem;
    background: url('images/paper_texture.jpeg') center/cover;
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form button {
    align-self: center;
    margin-top: 20px;
}
footer {
    position: relative;
    background-color: var(--slate);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 40px;

}

footer.container {
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--sage), var(--gold));
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 200%;
    opacity: 0.3;
    clip-path: polygon(
        0% 100%,
        20% 60%,
        40% 90%,
        60% 40%,
        80% 70%,
        100% 100%
    );
    background: linear-gradient(to bottom, var(--gold), var(--sage));
    mix-blend-mode: multiply;
    z-index: 0;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.social-icons {
    display: flex;
    gap: 50px;
    margin: 20px auto;
    justify-content: center;
    z-index: 10;
}

.social-icon {
    color: var(--sand);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20
    cursor: pointer;
    z-index: 10;
}

.social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
    filter: brightness(1.2);
    z-index: 10;
}

/* Instagram specific */
#instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* LinkedIn specific */
#linkedin:hover {
    color: #0077b5;
}

/* Strava specific */
#strava:hover {
    color: #fc4c02;
}

.sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 5px currentColor;
    transform-origin: center;
}
