/* Base Styles */
:root {
    --background: #f5f0e8; /* Light brown */
    --primary: #4a6741; /* Forest green */
    --secondary: #7a9e6b; /* Lighter green */
    --accent: #8d6e63; /* Warm brown */
    --text: #3c3c3c;
    --light-text: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 1.2rem;
    overflow-x: hidden; 
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Reenie Beanie', cursive;
}
h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
h2 {
    font-size: 2.5rem; 
    position: relative;
    display: inline-block;
    text-transform: lowercase;
    transform: rotate(-1deg);
    margin-bottom: 2rem; 
}
h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    border-radius: 3px;
    transform: rotate(1deg);
}
p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}
.reenie-text {
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.8rem; 
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}
a:hover {
    color: var(--secondary);
    transform: scale(1.05); 
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; 
}
section {
    padding: 5rem 0; 
    position: relative;
    overflow: hidden; 
}

/* Navigation */
nav {
    background-color: rgba(245, 240, 232, 0.8); 
    backdrop-filter: blur(8px); 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem;
    border-bottom: 3px solid var(--primary);
    transform: rotate(-0.5deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    transform: rotate(1deg);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.logo:hover {
    transform: rotate(1deg) scale(1.1);
    color: var(--secondary);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.nav-links li {
    transform: rotate(var(--rotation));
}
.nav-links li:nth-child(1) { --rotation: -1.2deg; } 
.nav-links li:nth-child(2) { --rotation: 0.8deg; }  
.nav-links li:nth-child(3) { --rotation: -1deg; }   
.nav-links li:nth-child(4) { --rotation: 1.3deg; }  
.nav-links li:nth-child(5) { --rotation: -0.7deg; } 
.nav-links li:nth-child(6) { --rotation: 1deg; }    
.nav-links a {
    font-weight: 600;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px dashed var(--primary);
    display: inline-block;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    transform: translateY(-2px) scale(1.05); 
}
.nav-links a.active {
    background-color: var(--primary);
    color: var(--light-text) !important; 
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    border-style: solid;
}
.mobile-menu {
    display: none;
    cursor: pointer;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem; 
}
.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(6px);
    padding: 2.5rem; 
    border-radius: 25px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    border: 2px dashed var(--secondary);
    transform: rotate(-1deg);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}
.hero-title {
    font-size: 4rem; 
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: textFocusIn 1s ease-out 0.5s forwards;
    opacity: 0;
}
.hero-description {
    font-size: 1.3rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 2rem;
    animation: fadeInUp 0.7s ease-out 0.8s forwards;
    opacity: 0;
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    text-transform: lowercase;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Reenie Beanie', cursive; 
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
    border: none;
    transform: rotate(var(--rotation));
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.btn:nth-of-type(1) { --rotation: -1deg; animation-delay: 1s; opacity:0; animation: popInBtn 0.5s ease-out 1s forwards;}
.btn:nth-of-type(2) { --rotation: 1deg;  animation-delay: 1.1s; opacity:0; animation: popInBtn 0.5s ease-out 1.1s forwards;}
.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px) rotate(var(--rotation)) scale(1.05); 
    box-shadow: 5px 5px 0 rgba(0,0,0,0.25);
    color: white;
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}
.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(2deg);
    width: 40%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border: 3px solid white;
    animation: floatImage 12s infinite ease-in-out; 
}

/* Decorative Elements */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    height: 100px;
    width: 300px;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.05);
    animation: float 15s infinite ease-in-out; 
}
.cloud:before, .cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}
.cloud:before { width: 180px; height: 180px; top: -70px; left: 50px; }
.cloud:after { width: 120px; height: 120px; top: -40px; left: 150px; }
.cloud-1 { top: 10%; left: 10%; transform: scale(0.5); opacity: 0.7; animation-delay: -2s; }
.cloud-2 { top: 30%; right: 5%; transform: scale(0.3); opacity: 0.5; animation-delay: -5s; }

/* About Section & General Section Title/Text Animation */
#about .container > h2, 
#projects .container > h2,
#gallery .container > h2,
#blog .container > h2,
#socials .container > h2,
#contact .container > h2 { 
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.2s forwards;
}
#about .container > .glass-panel > p:first-of-type, 
#gallery .container > p:first-of-type,
#blog .container > p:first-of-type,
#socials .container > p:first-of-type {
    opacity: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInUp 0.7s ease-out 0.4s forwards;
}
.glass-panel {
    background-color: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(8px); 
    border-radius: 25px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 0 1rem; 
    border: 2px dashed var(--secondary);
    transform: rotate(-0.5deg); 
    opacity: 0; 
    animation: popIn 0.6s ease-out 0.3s forwards; 
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-grid p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
    border: 3px solid white;
    transform: rotate(1deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-image:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.25);
}
.skill-tag {
    display: inline-block;
    background-color: rgba(122, 158, 107, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px dashed var(--primary);
    transform: rotate(var(--rotation));
    transition: all 0.3s ease;
}
.skill-tag:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px) rotate(var(--rotation)) scale(1.1);
    border-color: var(--primary);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}
.skill-tag:nth-child(1) { --rotation: -1deg; }
.skill-tag:nth-child(2) { --rotation: 1deg; }
.skill-tag:nth-child(3) { --rotation: -0.5deg; }
.skill-tag:nth-child(4) { --rotation: 0.8deg; }
.skill-tag:nth-child(5) { --rotation: -0.7deg; }

/* Projects, Gallery, Socials, Blog Cards - Common Animation */
.project-card, .gallery-item, .social-card, .blog-card {
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; 
    animation-delay: var(--delay, 0.2s); 
}

/* Projects Section */
.project-card {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    border: 2px dashed var(--accent);
    transform: rotate(var(--rotation));
    transition: all 0.3s ease;
}
.project-card .project-content { position: relative; z-index: 2; }
.project-card:nth-child(odd) { --rotation: -0.8deg; } 
.project-card:nth-child(even) { --rotation: 0.8deg; }
.project-card:hover, .gallery-item:hover, .social-card:hover, .blog-card:hover {
    transform: translateY(-8px) rotate(var(--rotation, 0deg)) scale(1.03); 
    box-shadow: 12px 12px 0 rgba(0,0,0,0.18);
}
.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary);
}
.project-content { padding: 2rem; }
.project-content p { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.project-title { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.featured-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}
.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Reenie Beanie', cursive;
    transition: all 0.3s ease;
}
.project-link:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    transform: rotate(var(--rotation));
    transition: all 0.3s ease;
    border: 3px solid white;
}
.gallery-item:nth-child(1) { --rotation: -1.5deg; }
.gallery-item:nth-child(2) { --rotation: 1deg; }
.gallery-item:nth-child(3) { --rotation: -0.5deg; }
.gallery-item:nth-child(4) { --rotation: 1.2deg; }
.gallery-item:nth-child(5) { --rotation: -0.8deg; }
.gallery-item:nth-child(6) { --rotation: 0.7deg; }
.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; 
}
.gallery-item:hover .gallery-image {
    transform: scale(1.1); 
}

/* Blog Section Styles */
#blog { position: relative; padding-bottom: 6rem; }
.blog-scroll-container { position: relative; overflow: hidden; padding: 1rem 0; margin: 2rem 0; }
.blog-posts-wrapper { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem; padding-bottom: 2rem; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.blog-posts-wrapper::-webkit-scrollbar { display: none; }
.blog-card {
    flex: 0 0 300px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    border: 2px dashed var(--secondary);
    transform: rotate(var(--random-rotation)); 
    transition: all 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.blog-image-container { height: 160px; overflow: hidden; border-bottom: 2px dashed var(--secondary); }
.blog-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-image { transform: scale(1.1); }
.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-content p, .blog-content div { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.blog-title { font-size: 1.6rem; margin-bottom: 0.5rem; line-height: 1.2; }
.blog-date { color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem; }
.blog-excerpt { font-size: 1.4rem; margin-bottom: 1rem; flex-grow: 1; }
.blog-link {
    align-self: flex-start; padding: 0.5rem 1rem; background-color: var(--primary); color: white;
    border-radius: 15px; font-size: 1.2rem; transition: all 0.3s ease; font-family: 'Reenie Beanie', cursive;
}
.blog-link:hover { background-color: var(--secondary); transform: translateY(-3px) scale(1.05); box-shadow: 3px 3px 0 rgba(0,0,0,0.1); color: white; }
.loading-posts { width: 100%; text-align: center; padding: 2rem; font-size: 1.5rem; color: var(--accent); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}
.scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
    background-color: var(--primary); color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; opacity: 0.7;
    transition: all 0.3s ease; z-index: 10; box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}
.scroll-arrow:hover { opacity: 1; box-shadow: 5px 5px 0 rgba(0,0,0,0.2); transform: translateY(-50%) scale(1.1); }
.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* Blog Filters (used on /blog) */
.blog-filters { display: flex; align-items: center; flex-wrap: wrap; margin: 2rem 0; gap: 1rem; }
.filter-label { font-size: 1.4rem; color: var(--primary); font-weight: 600; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag-filter {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    border: 1px dashed var(--secondary);
    transition: all 0.3s ease;
}
.tag-filter:hover { background-color: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }
.tag-filter.active { background-color: var(--primary); color: white; border: 1px solid var(--primary); }

/* Socials Section */
.social-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2rem; }
.social-card {
    display: flex; flex-direction: column; align-items: center;
    background-color: rgba(255, 255, 255, 0.75); backdrop-filter: blur(6px);
    border-radius: 20px; padding: 1.5rem; box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    border: 2px dashed var(--secondary); transform: rotate(var(--rotation));
    transition: all 0.3s ease; width: 200px; text-align: center;
}
.social-card .btn { font-size: 1.1rem; padding: 0.6rem 1.2rem; margin-top: 0.5rem;}
.social-card p, .social-card div {font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}
.social-card:nth-child(1) { --rotation: -1.5deg; }
.social-card:nth-child(2) { --rotation: 1deg; }
.social-card:nth-child(3) { --rotation: -0.5deg; }
.social-card:nth-child(4) { --rotation: 1.2deg; } 
.social-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; transition: transform 0.3s ease; }
.social-card:hover .social-icon { transform: scale(1.2) rotate(5deg); }
.social-name { font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem; font-family: 'Reenie Beanie', cursive; }
.social-username { color: var(--secondary); font-size: 1.1rem; margin-bottom: 1rem; }

/* Contact Section Styles */
#contact {
    position: relative;
    padding-bottom: 4rem;
}
#contact .container > p:first-of-type { 
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.contact-form-container { 
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(8px); 
    border-radius: 25px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    padding: 2.5rem; 
    margin: 0 1rem; 
    border: 2px dashed var(--accent); 
    transform: rotate(0.5deg); 
}
.contact-form-container p {font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}
.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out forwards; 
    opacity: 0;
}
.form-group:nth-child(1) { animation-delay: 0.4s; } 
.form-group:nth-child(2) { animation-delay: 0.5s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group label {
    display: block;
    font-family: 'Reenie Beanie', cursive;
    font-size: 2rem; 
    color: var(--primary);
    margin-bottom: 0.5rem;
    transform: rotate(-1.5deg); 
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border: 2px dashed var(--secondary);
    background-color: rgba(255, 255, 255, 0.85);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-size: 1.3rem;
    color: var(--text);
    transition: all 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    border-style: solid;
    box-shadow: 0 0 10px rgba(74, 103, 65, 0.3);
    background-color: white;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
#contact .btn { 
    margin-top: 1rem;
    font-size: 1.4rem; 
    opacity: 0;
    animation: popInBtn 0.5s ease-out 0.7s forwards; 
}
#contact .btn i { 
    transition: transform 0.3s ease;
    display: inline-block; 
}
#contact .btn:hover i {
    transform: translateX(5px) rotate(15deg);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light-text); 
    padding: 3rem 0; 
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}
footer p { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--light-text); }
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.visitor-counter {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}
.visitor-counter:hover {
    transform: rotate(0deg) scale(1.05);
}
.visitor-counter p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
    animation: footerShine 4s linear infinite;
}
.footer-text { position: relative; z-index: 1; }
.copyright { font-size: 1rem; opacity: 0.8; margin-top: 1rem; }

/* Text utility */
.text-center { text-align: center; }

/* Animations */
@keyframes float { 0% {transform: translateY(0);} 50% {transform: translateY(-20px);} 100% {transform: translateY(0);} }
@keyframes floatImage { 0% {transform: translateY(-50%) rotate(2deg);} 50% {transform: translateY(-50%) translateY(-15px) rotate(1.5deg);} 100% {transform: translateY(-50%) rotate(2deg);} }
@keyframes rotate { 0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);} } 
@keyframes marquee { 0% {transform: translateX(100%);} 100% {transform: translateX(-100%);} } 
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px) rotate(-0.2deg); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); } 
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) rotate(var(--panel-rotation, -0.5deg)); }
    to { opacity: 1; transform: scale(1) rotate(var(--panel-rotation, -0.5deg)); }
}
.glass-panel { --panel-rotation: -0.5deg; } 
.contact-form-container { --panel-rotation: 0.5deg; }
@keyframes popInBtn { 
    from { opacity: 0; transform: scale(0.8) rotate(var(--rotation, 0deg)); }
    to { opacity: 1; transform: scale(1) rotate(var(--rotation, 0deg)); }
}
@keyframes textFocusIn {
    0% { filter: blur(12px); opacity: 0; transform: scale(1.1); }
    100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}
/* Removed @keyframes wiggle as SVGs are removed */
@keyframes footerShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
footer::before {
    background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), var(--accent), transparent);
    background-size: 50% 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Tablet and smaller desktop adjustments */
    .container { padding: 0 1.5rem; }
    
    h1 { font-size: 3.2rem; }
    .hero-title { font-size: 2.8rem; }
    h2 { font-size: 2.3rem; }
    .hero-image { width: 50%; opacity: 0.4; animation: none; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } 
    .scroll-arrow { width: 40px; height: 40px; }
    .blog-card { flex: 0 0 250px; }
    .contact-form-container { margin: 0 0.5rem; }
    
    /* Better spacing for medium screens */
    .social-links { gap: 1.2rem; }
    .project-card { margin-bottom: 2.5rem; }
}

@media (max-width: 768px) {
    /* Container adjustments for mobile */
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
    
    /* Typography scaling */
    body { font-size: 1.4rem; } 
    p { font-size: 1.3rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    
    /* Hero section mobile optimizations */
    .hero-content { 
        padding: 1.5rem; 
        margin: 0 0.5rem;
        max-width: none;
    }
    .hero-image {
        position: fixed; width: 100%; height: 100%; object-fit: cover;
        opacity: 0.08; top: 0; right: 0; transform: none; border: none;
        box-shadow: none; border-radius: 0; z-index: -1; animation: none;
    }
    
    /* Navigation mobile adjustments */
    .nav-links {
        position: fixed; background-color: rgba(245, 240, 232, 0.98); 
        top: 65px; 
        left: 0; width: 100%; height: 0; overflow: hidden;
        flex-direction: column; align-items: center;
        transition: all 0.5s ease; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 0; z-index: 999; 
    }
    nav { transform: rotate(0deg); } 
    .nav-links.active { height: auto; padding: 2rem 0; }
    .nav-links li { margin: 1rem 0; transform: none !important; } 
    .mobile-menu { display: block; z-index: 1001; } 
    .mobile-menu.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    /* Glass panels and containers */
    .glass-panel, .contact-form-container { 
        padding: 1.5rem; 
        margin: 0 0.5rem; 
        transform: rotate(0deg);
        border-radius: 20px;
    } 
    
    /* Gallery mobile layout */
    .gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .gallery-item {
        margin: 0 auto;
        max-width: 350px;
    }
    
    /* Social cards mobile layout */
    .social-links { 
        flex-direction: column; 
        align-items: center; 
        gap: 1rem;
    }
    .social-card { 
        width: 100%; 
        max-width: 280px; 
        transform: rotate(0deg) !important;
        margin: 0 auto;
    } 
    
    /* Project cards mobile layout */
    .project-card { 
        transform: rotate(0deg) !important; 
        margin: 0 0.5rem 2rem 0.5rem;
        border-radius: 20px;
    }
    .project-image {
        height: 200px;
    }
    .project-content {
        padding: 1.5rem;
    }
    
    /* Blog cards mobile layout */
    .blog-card { 
        flex: 0 0 280px; 
        transform: rotate(0deg) !important;
        margin: 0 0.5rem;
        min-height: 300px;
    } 
    
    /* Blog scroll improvements for mobile */
    .blog-scroll-container {
        margin: 1.5rem 0;
        padding: 0.5rem 0;
    }
    
    .blog-posts-wrapper {
        gap: 1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }
    
    .blog-content {
        padding: 1.2rem;
    }
    
    .blog-title {
        font-size: 1.4rem;
    }
    
    .blog-excerpt {
        font-size: 1.1rem;
    } 
    
    /* Form improvements */
    .form-group label { 
        font-size: 1.6rem; 
        transform: rotate(0deg); 
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1.1rem;
        padding: 0.7rem;
    }
    
    /* About section mobile */
    .about-image {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
    .skill-tag {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        transform: rotate(0deg) !important;
    }
    
    /* Footer mobile */
    .footer-content { 
        flex-direction: column; 
        gap: 0.5rem; 
        text-align: center;
    }
    .visitor-counter { transform: rotate(0deg); }
    
    /* Button adjustments */
    .btn {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Even smaller mobile adjustments */
    .container { padding: 0 0.75rem; }
    section { padding: 2.5rem 0; }
    
    /* Typography for small screens */
    h1 { font-size: 2rem; }
    .hero-title { font-size: 1.8rem; }
    h2 { font-size: 1.7rem; }
    body { font-size: 1.2rem; }
    p { font-size: 1.1rem; }
    
    /* Button adjustments */
    .btn { 
        font-size: 1.1rem; 
        padding: 0.6rem 1rem;
        margin: 0.3rem;
    }
    
    /* Hero content for very small screens */
    .hero-content {
        padding: 1.2rem;
        margin: 0 0.25rem;
    }
    
    /* Blog cards for small screens */
    .blog-card { 
        flex: 0 0 75vw; 
        margin: 0 0.25rem;
    } 
    
    /* Content padding adjustments */
    .project-content, 
    .gallery-content, 
    .blog-content, 
    .social-card { 
        padding: 1.2rem; 
    }
    .contact-form-container { 
        padding: 1.2rem; 
        margin: 0 0.25rem;
    }
    
    /* Form elements for small screens */
    .form-group label {
        font-size: 1.4rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    /* Social cards for very small screens */
    .social-card {
        max-width: 250px;
        padding: 1.2rem;
    }
    .social-icon {
        font-size: 2rem;
    }
    
    /* About image smaller */
    .about-image {
        max-width: 200px;
    }
    
    /* Skill tags smaller */
    .skill-tag {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem;
    }
}

/* Custom Cursor */
.custom-cursor {
    display: none !important; 
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Add subtle shadows and borders for mobile depth */
    .glass-panel {
        border: 1px solid var(--secondary);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .project-card {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid var(--accent);
    }
    
    .social-card {
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        border: 1px solid var(--secondary);
    }
    
    /* Better mobile typography hierarchy */
    .hero-description {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .social-name {
        font-size: 1.3rem;
    }
    
    .social-username {
        font-size: 1rem;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better mobile spacing */
    .skills {
        margin-top: 1.5rem;
    }
    
    .featured-badge {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hide/reduce decorative elements on mobile */
    .cloud {
        display: none;
    }
}