/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Caveat', cursive;
    background: #F8F6F0;
    color: #2C2C2C;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Paper Background Texture */
.paper-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 69, 19, 0.02) 0%, transparent 50%);
    z-index: -2;
}

/* Coffee Stains */
.coffee-stain {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.05) 50%, transparent 100%);
    z-index: -1;
}

.coffee-stain-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 10%;
    transform: rotate(15deg);
}

.coffee-stain-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 8%;
    transform: rotate(-20deg);
}

/* Main Container */
.sketchbook-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

/* Spiral Binding */
.spiral-binding {
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: 
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 30px,
            #ccc 30px,
            #ccc 35px
        );
    z-index: -1;
}

.spiral-binding::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #999;
}

/* Typography */
.handwritten-title {
    font-family: 'Kalam', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 10px;
    position: relative;
    transform: rotate(-1deg);
}

.underline-sketch {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20'%3E%3Cpath d='M5,15 Q75,5 150,12 Q225,18 295,8' stroke='%23CD5C5C' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 300px 20px;
}

.handwritten-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #4682B4;
    margin-bottom: 20px;
    transform: rotate(0.5deg);
}

.handwritten-description {
    font-size: 1.3rem;
    color: #2C2C2C;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
}

.section-title {
    font-family: 'Kalam', cursive;
    font-size: 2.8rem;
    color: #2C2C2C;
    margin-bottom: 20px;
    position: relative;
    transform: rotate(-0.5deg);
}

.title-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 200px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'%3E%3Cpath d='M5,5 Q50,2 100,6 Q150,8 195,4' stroke='%238B4513' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat;
    background-size: 200px 10px;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sketch-avatar {
    position: relative;
    flex-shrink: 0;
}

.sketch-avatar img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    transform: rotate(-2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.doodle-arrow {
    position: absolute;
    top: -30px;
    right: -50px;
    transform: rotate(15deg);
}

.arrow-text {
    font-family: 'Amatic SC', cursive;
    font-size: 1.2rem;
    color: #8B4513;
    position: absolute;
    top: -25px;
    left: 10px;
}

.hero-text {
    flex: 1;
    min-width: 400px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sketch-button {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 3px solid #2C2C2C;
    border-radius: 0;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.sketch-button:hover {
    transform: rotate(0deg) scale(1.05);
    background: rgba(139, 69, 19, 0.1);
}

.sketch-button.primary {
    background: #4682B4;
    color: white;
    border-color: #4682B4;
}

.sketch-button.primary:hover {
    background: #5a9bd4;
    border-color: #5a9bd4;
}

.button-doodle {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5,10 L15,5 L10,15 Z' stroke='%23CD5C5C' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Floating Doodles */
.floating-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.doodle {
    position: absolute;
    font-size: 2rem;
    color: #CD5C5C;
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.heart {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.squiggle {
    top: 80%;
    left: 30%;
    font-size: 3rem;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Page Dividers */
.page-divider {
    margin: 10px 0 10px;
    position: relative;
}

.torn-edge {
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20'%3E%3Cpath d='M0,10 Q50,5 100,12 Q150,18 200,8 Q250,15 300,10 Q350,5 400,12 Q450,18 500,8 Q550,15 600,10 Q650,5 700,12 Q750,18 800,8 Q850,15 900,10 Q950,5 1000,12 Q1050,18 1100,8 Q1150,15 1200,10' stroke='%23ccc' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 20px;
}

/* About Section */
.about-section {
    padding: 20px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Sticky Note */
.sticky-note {
    position: relative;
    background: #FFEB3B;
    padding: 25px;
    transform: rotate(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 10px 10px;
}

.sticky-note-content h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #2C2C2C;
    margin-bottom: 15px;
}

.sticky-note-content p {
    font-size: 1.2rem;
    color: #2C2C2C;
    line-height: 1.6;
}

/* Skills Section */
.skills-sketch {
    background: white;
    padding: 30px;
    border: 2px dashed #ccc;
    transform: rotate(1deg);
    position: relative;
}

.skills-title {
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #2C2C2C;
    margin-bottom: 25px;
    text-align: center;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-left: 3px solid #4682B4;
    background: rgba(70, 130, 180, 0.05);
}

.skill-icon {
    flex-shrink: 0;
}

.skill-text h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #2C2C2C;
    margin-bottom: 5px;
}

.skill-text p {
    font-size: 1.1rem;
    color: #666;
}

/* Progress Bars */
.skills-progress {
    grid-column: 1 / -1;
    margin-top: 20px;
    background: white;
    padding: 30px;
    border: 2px solid #ccc;
    transform: rotate(-0.5deg);
}

.skills-progress h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #2C2C2C;
    margin-bottom: 25px;
    text-align: center;
}

.progress-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #2C2C2C;
}

.skill-percent {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #2C2C2C;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border: 2px solid #2C2C2C;
    position: relative;
    border-radius: 0;
}

.progress-fill {
    height: 100%;
    background: #4682B4;
    width: 0%;
    transition: width 2s ease-in-out;
}

/* Projects Section */
.projects-section {
    padding: 20px 0;
}

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

/* Polaroid Cards */
.polaroid {
    background: white;
    padding: 20px 20px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.polaroid:nth-child(2n) {
    transform: rotate(1deg);
}

.polaroid:nth-child(3n) {
    transform: rotate(-1deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: #666;
}

.polaroid-caption h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.6rem;
    color: #2C2C2C;
    margin-bottom: 10px;
}

.polaroid-caption p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.tag {
    background: #4682B4;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-family: 'Caveat', cursive;
}

/* Tape Effects */
.tape {
    position: absolute;
    width: 60px;
    height: 25px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(45deg);
}

.tape-1 {
    top: -10px;
    right: 20px;
}

.tape-2 {
    top: -10px;
    left: 20px;
    transform: rotate(-45deg);
}

.tape-3 {
    top: -10px;
    right: 50%;
    transform: translateX(50%) rotate(30deg);
}

/* Contact Section */
.contact-section {
    padding: 20px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px dashed #ccc;
    transform: rotate(-1deg);
}

.contact-item:nth-child(2n) {
    transform: rotate(1deg);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-family: 'Kalam', cursive;
    font-size: 1.4rem;
    color: #2C2C2C;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 1.2rem;
    color: #666;
}

/* Contact Form */
.contact-form-container {
    position: relative;
}

.sketch-form {
    background: white;
    padding: 30px;
    border: 3px solid #2C2C2C;
    transform: rotate(1deg);
    position: relative;
}

.sketch-form h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #2C2C2C;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #2C2C2C;
    border-radius: 0;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    background: #F8F6F0;
    color: #2C2C2C;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4682B4;
    background: white;
}

.paper-airplane {
    position: absolute;
    top: -30px;
    right: -30px;
    animation: fly 4s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -10px) rotate(5deg); }
}

/* Social Links */
.social-doodles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.social-link {
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Footer */
.footer-doodles {
    text-align: center;
    padding: 60px 0 40px;
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 20px;
}

.doodle-line {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sketchbook-container {
        padding: 15px;
    }
    
    .handwritten-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        min-width: auto;
    }
    
    .sketch-avatar img {
        width: 200px;
        height: 200px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .skills-progress {
        grid-column: 1;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-name {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .handwritten-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sketch-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .sketch-button {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
}




/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .skills-progress .progress-percent {
        font-size: 10px; /* Reduce font size on smaller screens */
        right: 5px; /* Adjust position from the right */
    }
}










/* Font Awesome Icon Styling */
.skill-icon i,
.contact-icon i {
    font-size: 2rem;
    color: #4682B4; /* Adjust color to match your theme */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-doodles .doodle i {
    font-size: 2rem;
    color: #CD5C5C;
}

.social-link i {
    font-size: 1.5rem;
    color: #2C2C2C;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: #4682B4;
}

.footer-text i {
    color: #CD5C5C;
    font-size: 1rem;
}



/* Disable text selection */
body {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* Optionally, disable context menu for right-click copy */
body {
    -webkit-user-context-menu: none; /* Chrome, Safari, Opera */
    -moz-user-context-menu: none;    /* Firefox */
    user-context-menu: none;         /* Standard */
}

/* Prevent dragging of images */
img {
    -webkit-user-drag: none; /* Safari */
    -moz-user-drag: none;    /* Firefox */
    -ms-user-drag: none;     /* Internet Explorer/Edge */
    user-drag: none;         /* Standard */
}



/* Additional Protection Measures */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable highlighting */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

/* Disable image saving */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
}

/* Hide scrollbars to prevent easy navigation */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Disable outline on focus */
*:focus {
    outline: none !important;
}

/* Add copyright notice */
body::before {
    content: "© Badarudheen VK Portfolio - All Rights Reserved";
    position: fixed;
    top: -100px;
    left: -100px;
    font-size: 1px;
    opacity: 0.01;
    pointer-events: none;
    z-index: -1;
}

/* Disable print styles */
@media print {
    body {
        display: none !important;
    }
    
    body::before {
        content: "Printing is not allowed. © Badarudheen VK";
        display: block !important;
        font-size: 20px !important;
        color: red !important;
        text-align: center !important;
        margin-top: 50px !important;
    }
}

