/* Base Styles */
* {
    box-sizing: border-box;
    cursor: none;
}
/* CSS Variables for Theming */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #fff;
    --bg-card: #fff;
    --bg-input: #fafafa;
    --bg-tag: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #666;
    --border-primary: #1a1a1a;
    --border-secondary: #e5e5e5;
    --accent-color: #1a1a1a;
    --hover-bg: #1a1a1a;
    --hover-text: #fff;
    --shadow-color: rgba(0,0,0,0.1);
    --shadow-color-strong: rgba(0,0,0,0.2);
    --shadow-color-heavier: rgba(0,0,0,0.15);
    --doodle-color: #1a1a1a;
    --doodle-opacity: 0.1;
    --notebook-lines: #e5e5e5;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #1f1f1f;
    --bg-input: #2a2a2a;
    --bg-tag: #2d2d2d;
    --text-primary: #fafafa;
    --text-secondary: #b0b0b0;
    --text-muted: #999;
    --border-primary: #444;
    --border-secondary: #333;
    --accent-color: #fafafa;
    --hover-bg: #fafafa;
    --hover-text: #1a1a1a;
    --shadow-color: rgba(0,0,0,0.3);
    --shadow-color-strong: rgba(0,0,0,0.5);
    --shadow-color-heavier: rgba(0,0,0,0.4);
    --doodle-color: #fafafa;
    --doodle-opacity: 0.08;
    --notebook-lines: #333;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    background-color: transparent;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-color: #fff;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #1a1a1a;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    background-color: #fff;
}

/* Floating Doodles */
.floating-doodles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.doodle-shape {
    position: absolute;
    color: #1a1a1a;
}

.shape-1 { top: 10%; left: 5%; width: 80px; animation: float 8s ease-in-out infinite; }
.shape-2 { top: 30%; right: 10%; width: 60px; animation: float 10s ease-in-out infinite 1s; }
.shape-3 { bottom: 20%; left: 15%; width: 50px; animation: float 7s ease-in-out infinite 0.5s; }
.shape-4 { bottom: 40%; right: 5%; width: 70px; animation: float 9s ease-in-out infinite 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Notebook Lines Background */
.notebook-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        #e5e5e5 31px,
        #e5e5e5 32px
    );
    opacity: 0.3;
    z-index: 0;
}

/* Sketchy Elements */
.sketch-underline {
    position: relative;
    display: inline-block;
}

.sketch-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transform: rotate(-1deg);
}

.sketch-underline-heavy {
    position: relative;
    display: inline-block;
}

.sketch-underline-heavy::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5px;
    width: 105%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 3px;
    transform: rotate(-2deg);
}

.sketch-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #1a1a1a;
    border-radius: 20px 15px 25px 18px;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    transform: rotate(-2deg);
    background: #fff;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.doodle-accent {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    color: #1a1a1a;
    opacity: 0.5;
}

/* Buttons */
.sketch-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 25px 20px 30px 22px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.sketch-button:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.sketch-button-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 22px 28px 20px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.sketch-button-outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px) rotate(1deg);
}

/* Section Labels */
.sketch-section-label {
    display: inline-block;
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 8px;
}

.doodle-highlight {
    position: absolute;
    bottom: -5px;
    left: -10px;
    width: calc(100% + 20px);
    height: 20px;
    color: #1a1a1a;
}

/* Skills Section */
.sketch-card {
    padding: 24px;
    border: 2px solid #1a1a1a;
    border-radius: 15px 25px 20px 18px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.sketch-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15);
}

.skill-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #1a1a1a;
    border-radius: 12px 16px 14px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.skill-badge:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.05) rotate(-2deg);
}

/* Experience Timeline */
.timeline-line {
    position: absolute;
    left: 25%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 10px,
        #fafafa 10px,
        #fafafa 20px
    );
}

.timeline-dot {
    position: absolute;
    left: -3%;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border: 3px solid #fafafa;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.sketch-date {
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.sketch-experience-card {
    padding: 24px;
    border: 2px solid #e5e5e5;
    border-radius: 12px 18px 15px 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.sketch-experience-card:hover {
    border-color: #1a1a1a;
    transform: translateX(10px);
    box-shadow: -5px 5px 0 rgba(0,0,0,0.1);
}

.sketch-company {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
}

.sketch-bullet {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    color: #1a1a1a;
}

/* Projects */
.sketch-project-border {
    border: 2px solid #1a1a1a;
    border-radius: 18px 12px 22px 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.sketch-project-border:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
}

.project-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sketch-arrow {
    transition: transform 0.3s ease;
}

.project-card:hover .sketch-arrow {
    transform: translate(5px, -5px) rotate(15deg);
}

.sketch-link {
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.sketch-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.sketch-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contact Form */
.sketch-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid #1a1a1a;
    border-radius: 20px 15px 25px 18px;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.sketch-label {
    display: block;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.sketch-input,
.sketch-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px 14px 12px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.sketch-input:focus,
.sketch-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
    transform: rotate(-0.5deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.sketch-textarea {
    resize: vertical;
    min-height: 120px;
}

.sketch-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 25px 20px 30px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.sketch-submit-btn:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
}

.sketch-email {
    font-family: 'Kalam', cursive;
    font-size: 1.3rem;
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.sketch-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.sketch-email:hover::after {
    height: 6px;
    bottom: -6px;
}

/* Footer */
.sketch-footer-text {
    font-family: 'Kalam', cursive;
    font-size: 0.95rem;
}

.sketch-heart {
    display: inline-block;
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}


/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-icon {
    width: 22px;
    height: 22px;
}

.theme-icon.sun {
    display: none;
}

[data-theme="dark"] .theme-icon.sun {
    display: block;
}

[data-theme="dark"] .theme-icon.moon {
    display: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid var(--border-secondary);
}

.mobile-menu-title {
    font-family: 'Kalam', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
    transform: rotate(90deg);
}

.mobile-menu-nav {
    flex: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-link:hover {
    color: var(--accent-color);
    padding-left: 10px;
    border-bottom-color: var(--border-primary);
}

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sketch-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.sketch-social-link:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-3px) rotate(10deg);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Doodle Squiggle */
.doodle-squiggle {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    color: #1a1a1a;
    opacity: 0.6;
}

/* Success Icon Animation */
.sketch-success-icon {
    color: #27ae60;
    animation: drawCheck 0.6s ease-out forwards;
}

@keyframes drawCheck {
    0% { stroke-dasharray: 100; stroke-dashoffset: 100; }
    100% { stroke-dasharray: 100; stroke-dashoffset: 0; }
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s ease;
}

.mobile-menu-drawer {
    display: none;
}

.hamburger-display {
    display: none;
}

/* Mobile Cursor */
@media (pointer: coarse) {
    .cursor, .cursor-dot { display: none; }
    * { cursor: auto; }
}

/* Responsive */
@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    * { cursor: auto; }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .timeline-line { display: none; }
    .timeline-dot { display: none; }
    
    .sketch-form-container {
        padding: 24px;
        margin: 0 16px;
    }
}

@media (max-width: 992px) {
    /* Mobile Menu Drawer */

.hamburger-display {
    display: block;
}   
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    right: 0;
}

}
