
:root {
    --font-body: 'Montserrat', sans-serif;
    --font-handwriting: 'Kalam', cursive;
    --color-text: #333;
    --color-background: #fdfdfa;
    --color-primary: #3498db;
    --color-highlight-yellow: #fff8b3;
    --color-highlight-cyan: #d4f8ff;
    --color-highlight-pink: #ffd6f5;
    --paper-shadow: 0 4px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); background-color: var(--color-background); cursor: default; overflow-x: hidden; }

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fly-in-up {
    transform: translateY(80px);
}
.animate-on-scroll.fly-in-left {
    transform: translateX(-100px);
}
.animate-on-scroll.fly-in-right {
    transform: translateX(100px);
}
.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }


.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M 50 0 L 50 100 M 0 50 L 100 50" stroke="%23e0e0e0" stroke-width="1" fill="none" opacity="0.3"/></svg>');
    z-index: -2;
}

#scroll-marker {
    position: fixed;
    top: 0;
    left: 5px;
    width: 6px;
    background: linear-gradient(to bottom, var(--color-primary), #9b59b6);
    height: 0;
    z-index: 1000;
    border-radius: 3px;
    transition: height 0.1s linear;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { font-family: var(--font-handwriting); font-size: 3rem; font-weight: 700; text-align: center; margin-bottom: 60px; color: var(--color-primary); }
.subsection-title { font-family: var(--font-handwriting); font-size: 2rem; text-align: center; margin: 40px 0 20px; }
section { padding: 80px 0; position: relative; }
.highlight-yellow, .highlight-cyan, .highlight-pink { position: relative; display: inline-block; }
.highlight-yellow::before, .highlight-cyan::before, .highlight-pink::before {
    content: ''; position: absolute; width: 105%; height: 60%; left: -2.5%; bottom: 0; z-index: -1; transform: rotate(-1deg); transition: var(--transition);
}
.highlight-yellow::before { background-color: var(--color-highlight-yellow); }
.highlight-cyan::before { background-color: var(--color-highlight-cyan); }
.highlight-pink::before { background-color: var(--color-highlight-pink); }
.main-header { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-icon { width: 45px; height: 45px; margin-right: 15px; }
.logo-text { font-weight: 700; font-size: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--color-text); font-weight: 500; padding: 10px 15px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 5px; left: 10px; width: 0; height: 8px; background-color: var(--color-highlight-yellow); z-index: -1; transition: width 0.3s ease; }
.nav-links a:hover::after { width: calc(100% - 20px); }
.hero { padding: 60px 0; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; max-width: 500px; margin-bottom: 30px; }
.hero-image-area { text-align: center; position: relative; }
.hero-image { width: 250px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: var(--paper-shadow); transform: rotate(3deg); transition: var(--transition); }
.hero-image-area:hover .hero-image { transform: rotate(0deg) scale(1.05); }
.handwritten-note { font-family: var(--font-handwriting); font-size: 1.2rem; color: #555; transform: rotate(-5deg); }
.hero-image-area .handwritten-note { position: absolute; bottom: -20px; right: 0; }
.btn { background-color: var(--color-primary); color: #fff; padding: 15px 30px; text-decoration: none; border-radius: 50px; font-weight: 700; display: inline-block; transition: var(--transition); border: none; box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5); }
.features { background-color: rgba(249, 249, 249, 0.7); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-card { 
    background-color: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--paper-shadow); 
    text-align: center; 
    position: relative; 
}
.feature-card:hover { transform: scale(1.05) !important; z-index: 10; }
.pin { 
    width: 30px; 
    height: 30px; 
    background-color: #e74c3c; 
    border-radius: 50%; 
    position: absolute; 
    top: -15px; 
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    z-index: 2;
}
.pin::after { 
    content: ''; 
    width: 8px; 
    height: 8px; 
    background: #c0392b; 
    border-radius: 50%; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}
.feature-card h3 { 
    font-family: var(--font-handwriting); 
    font-size: 1.8rem; 
    margin-bottom: 10px; 
    color: var(--color-primary); 
}


.introduction { text-align: center; }
.video-wrapper { max-width: 800px; margin: auto; padding: 20px; background: #fff; box-shadow: var(--paper-shadow); border-radius: 12px; transform: rotate(-1.5deg); position: relative; }
.video-note { position: absolute; top: -10px; right: -10px; background: var(--color-highlight-yellow); padding: 5px 10px; border-radius: 4px; }
.video-container { border-radius: 8px; overflow: hidden; }
.video-container video { width: 100%; display: block; }
.intro-text { max-width: 600px; margin: 40px auto 0; }
.intro-text p { margin-bottom: 20px; font-size: 1.1rem; }
.feedback-section { background-color: rgba(249, 249, 249, 0.7); }
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feedback-card { padding: 25px; background-color: var(--color-highlight-yellow); box-shadow: var(--paper-shadow); transform: rotate(calc(var(--rotate-deg, 0) * 1deg)); transition: transform 0.3s ease; }
.feedback-card:hover { transform: scale(1.05) rotate(0) !important; z-index: 10; }
.feedback-card p { font-size: 1.1rem; margin-bottom: 15px; }
.feedback-card h3 { font-family: var(--font-handwriting); font-weight: 700; }
.feedback-card .rating { color: var(--color-primary); font-size: 1.2rem; }
.contact-card-wrapper { position: relative; max-width: 700px; margin: auto; }
.paperclip { position: absolute; top: -20px; left: 20px; width: 50px; height: 100px; border: 5px solid #bdc3c7; border-radius: 25px; transform: rotate(-20deg); border-left-color: transparent; border-bottom-color: transparent; }
.contact-card { background: #fff; padding: 50px; border-radius: 12px; text-align: center; box-shadow: var(--paper-shadow); border: 1px solid #eee; }
.contact-card h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-card p { margin-bottom: 30px; }
.main-footer { background-color: #f0f0f0; padding: 40px 0; border-top: 5px solid #e0e0e0; text-align: center; position: relative; }
.visitor-counter-wrapper { position: absolute; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 10px; background: #fff; padding: 5px 10px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.visitor-counter-wrapper .handwritten-note { transform: none; }
.footer-content a { margin: 0 15px; text-decoration: none; color: #555; font-weight: 500; }
.footer-bottom { margin-top: 20px; color: #777; font-size: 0.9rem; }
.footer-bottom p { font-family: var(--font-handwriting); }
.progress-intro-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: var(--paper-shadow); margin-bottom: 40px; }
.progress-intro-card p { margin-bottom: 1em; line-height: 1.8; }
.progress-intro-card p:last-child { margin-bottom: 0; }
.todo-list { max-width: 800px; margin: auto; }
.todo-item { display: flex; align-items: center; background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: var(--paper-shadow); transition: var(--transition); }
.todo-item .checkbox { width: 25px; height: 25px; border: 2px solid #ccc; border-radius: 5px; margin-right: 20px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #2ecc71; flex-shrink: 0; }
.todo-item.done { color: #999; }
.todo-item.done p { text-decoration: line-through; }
.todo-item.done .checkbox { border-color: #2ecc71; background-color: #2ecc71; color: #fff; }
.todo-item.in-progress { border-left: 5px solid var(--color-primary); }
.todo-item.in-progress .handwritten-note { margin-left: auto; color: var(--color-primary); }
.newsletter-card { background: var(--color-background); padding: 50px; border-radius: 12px; text-align: center; border-top: 10px solid var(--color-highlight-pink); box-shadow: var(--paper-shadow); }
.newsletter-card h2 { font-size: 2.5rem; margin-bottom: 20px; }
.newsletter-form { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { width: 100%; max-width: 350px; padding: 15px; border: 2px solid #ddd; border-radius: 50px; font-size: 1rem; }
.feedback-btn { position: fixed; bottom: 30px; right: 30px; background-color: var(--color-primary); color: white; border: none; border-radius: 50px; padding: 15px 25px; font-family: var(--font-handwriting); font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; z-index: 999; transition: var(--transition); }
.feedback-btn:hover { transform: translateY(-3px) rotate(5deg); }
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.modal.active { display: flex; justify-content: center; align-items: center; }
.modal-content { background-color: #fff; margin: auto; padding: 40px; border-radius: 12px; box-shadow: var(--paper-shadow); max-width: 500px; width: 90%; position: relative; animation: slide-in 0.5s ease; }
@keyframes slide-in { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover { color: #333; }
.modal-content h2 { font-family: var(--font-handwriting); text-align: center; margin-bottom: 20px; }
.modal .form-group { margin-bottom: 15px; }
.modal input, .modal textarea { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; }
.modal textarea { min-height: 100px; resize: vertical; }
.rating-container { display: flex; justify-content: center; margin-bottom: 20px; }
.stars { display: flex; flex-direction: row-reverse; }
.stars input { display: none; }
.stars label { cursor: pointer; font-size: 2.5rem; color: #ddd; transition: color 0.2s; }
.stars label::before { content: '★'; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f1c40f; }
.software-deep-dive { background-color: #f7f9fc; }
.software-deep-dive .section-intro { text-align: center; max-width: 800px; margin: -40px auto 60px; font-size: 1.1rem; line-height: 1.7; }
.software-versions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.software-card { background: #fff; border-radius: 12px; box-shadow: var(--paper-shadow); overflow: hidden; transition: var(--transition); }
.software-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.software-card-header { background-color: var(--color-primary); color: #fff; padding: 25px; text-align: center; }
.software-card-header h3 { font-family: var(--font-handwriting); font-size: 2rem; margin-bottom: 5px; }
.software-card-header p { font-weight: 500; opacity: 0.9; }
.features-list { list-style: none; padding: 30px; }
.features-list li { padding-left: 35px; position: relative; margin-bottom: 15px; font-size: 1rem; line-height: 1.6; }
.features-list li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #fff; background: #2ecc71; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-weight: bold; }
.tech-stack-info { text-align: center; background: #fff; padding: 30px; max-width: 700px; margin: auto; border-radius: 12px; box-shadow: var(--paper-shadow); position: relative; }
.tech-stack-info .handwritten-note { position: absolute; top: -15px; left: 20px; background: var(--color-highlight-yellow); padding: 5px 15px; }
.hamburger { display: none; cursor: pointer; background: transparent; border: none; padding: 0; z-index: 101; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--color-text); transition: all 0.3s ease-in-out; }
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; margin-bottom: 40px; word-break: break-word; }
    .hero-container { flex-direction: column; text-align: center; gap: 60px; }
    .hero-text h1 { font-size: 2.6rem; word-break: break-word; }
    .hero-text p { font-size: 1.1rem; }
    .legal-card { word-break: break-word; padding: 25px !important; }
    .legal-card h1 { font-size: 1.8rem; }
    .software-versions-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 40px 25px; }
    .contact-card h2 { font-size: 2rem; }
    .newsletter-card { padding: 40px 25px; }
    .newsletter-card h2 { font-size: 2rem; }
    .nav-links { position: fixed; left: -100%; top: 80px; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); flex-direction: column; width: 100%; height: calc(100vh - 80px); transition: left 0.3s ease; padding-top: 40px; gap: 20px; display: flex; align-items: center; }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    .nav-links a:hover::after { width: 50%; left: 25%; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.newsletter-message { padding: 10px; border-radius: 5px; color: #fff; max-width: 450px; margin-left: auto; margin-right: auto; display: block; }
.newsletter-message.success { background-color: #2ecc71; }
.newsletter-message.error { background-color: #e74c3c; }