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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo and Theme Switch */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
}

.theme-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch-label:hover {
    background-color: #bbb;
}

.switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch input[type="checkbox"]:checked + .switch-label {
    background-color: #333;
}

.theme-switch input[type="checkbox"]:checked + .switch-label .switch-slider {
    transform: translateX(26px);
}

body.dark-mode .theme-switch input[type="checkbox"]:checked + .switch-label {
    background-color: #666;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #333;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.cta-button:hover {
    background-color: transparent;
    color: #333;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: #ffffff;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.skill-category p {
    color: #666;
    line-height: 1.6;
}

.languages-section {
    text-align: center;
}

.languages-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.language-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-tag:hover {
    background-color: #dee2e6;
    transform: scale(1.05);
}

/* Demo Offer Section */
.demo-offer {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.demo-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-offer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.demo-offer p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.demo-feature {
    background-color: #e9ecef;
    color: #495057;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.demo-feature:hover {
    background-color: #dee2e6;
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.submit-button:hover {
    background-color: transparent;
    color: #333;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 30px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #333;
    color: white;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .skills h2,
    .contact h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .languages-list {
        gap: 0.5rem;
    }

    .language-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .demo-offer {
        margin: 0 auto 2rem;
        padding: 1.5rem;
    }

    .demo-offer h3 {
        font-size: 1.5rem;
    }

    .demo-offer p {
        font-size: 1rem;
    }

    .demo-features {
        gap: 0.5rem;
    }

    .demo-feature {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .email-link {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .skills h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .skill-category {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Add some spacing for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

body.dark-mode header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo {
    color: #e0e0e0;
}

body.dark-mode .nav-menu a {
    color: #b0b0b0;
}

body.dark-mode .nav-menu a:hover {
    color: #e0e0e0;
}

body.dark-mode .hero h1,
body.dark-mode .hero h2 {
    color: #e0e0e0;
}

body.dark-mode .hero p {
    color: #b0b0b0;
}

body.dark-mode .skills {
    background-color: #1a1a1a;
}

body.dark-mode .skills h2 {
    color: #e0e0e0;
}

body.dark-mode .skill-category {
    background-color: #2d2d2d;
}

body.dark-mode .skill-category h3 {
    color: #e0e0e0;
}

body.dark-mode .skill-category p {
    color: #b0b0b0;
}

body.dark-mode .languages-section h3 {
    color: #e0e0e0;
}

body.dark-mode .language-tag {
    background-color: #2d2d2d;
    color: #b0b0b0;
}

body.dark-mode .language-tag:hover {
    background-color: #3d3d3d;
}

body.dark-mode .demo-offer {
    background-color: #2d2d2d;
    border-color: #e0e0e0;
}

body.dark-mode .demo-offer h3 {
    color: #e0e0e0;
}

body.dark-mode .demo-offer p {
    color: #b0b0b0;
}

body.dark-mode .demo-feature {
    background-color: #3d3d3d;
    color: #b0b0b0;
}

body.dark-mode .demo-feature:hover {
    background-color: #4d4d4d;
}

body.dark-mode .contact {
    background-color: #2d2d2d;
}

body.dark-mode .contact h2 {
    color: #e0e0e0;
}

body.dark-mode .contact p {
    color: #b0b0b0;
}

body.dark-mode .contact-form {
    background-color: #1a1a1a;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #e0e0e0;
    background-color: #1a1a1a;
}

body.dark-mode .email-link {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .email-link:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #3d3d3d;
}

body.dark-mode footer p {
    color: #b0b0b0;
}

/* Visitor Counter */
.visitor-counter {
    background-color: rgba(0, 0, 0, 0.1);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

body.dark-mode .visitor-counter {
    background-color: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

/* User Greeting */
.user-greeting {
    background-color: rgba(51, 51, 51, 0.1);
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

body.dark-mode .user-greeting {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Name Modal */
.name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

body.dark-mode .modal-content {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

body.dark-mode .modal-content h3 {
    color: #e0e0e0;
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
}

body.dark-mode .modal-content input {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button:first-child {
    background-color: #333;
    color: white;
}

.modal-buttons button:first-child:hover {
    background-color: #555;
}

.modal-buttons button:last-child {
    background-color: #e9ecef;
    color: #333;
}

.modal-buttons button:last-child:hover {
    background-color: #dee2e6;
}

/* Responsive Design for Drawing Board */
@media (max-width: 768px) {
    .email-link {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}
