:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --card-bg: #ffffff;
    --card-text: #666;
    --shadow: rgba(0, 0, 0, 0.1);
    --bg-image: url('bg.png');
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --card-text: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.3);
    --bg-image: none;
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 60px;
    z-index: 1000;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-label {
    cursor: pointer;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px var(--shadow);
    transition: all 0.3s ease;
}

.theme-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.theme-label .fa-sun {
    display: none;
}

.theme-label .fa-moon {
    display: block;
}

[data-theme="dark"] .theme-label .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-label .fa-moon {
    display: none;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-image: var(--bg-image);
    background-color: var(--bg-color);
    background-size: auto;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
    margin-top: -20px;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
}

.intro h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.intro p {
    font-size: 1.2rem;
    color: var(--card-text);
    max-width: 490px;
    text-align: left;
}

.projects {
    padding: 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    /* border-radius: 12px; */
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2vh;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:last-child {
    margin-bottom: 20vh;
}

.project-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    /* margin-top: 0.5rem; */
    padding: 0 16px;
}

.project-card p {
    font-size: 1.1rem;
    color: var(--card-text);
    margin-bottom: 1rem;
    padding: 0 16px;
}

.project-card .tags {
    display:flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 16px;
}

.tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    /* border-radius: 20px; */
    font-size: 0.8rem;
    color: #666;
}

.project-card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    /* object-position: top; */
    /* border-radius: 8px; */
}

.scroll-down {
    margin-top: 3rem;
    padding: 0.6rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: #333;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bobbing 1.5s ease-in-out infinite;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scroll-down i {
    font-size: 0.9rem;
    /* background-color: #000; */
    color: rgb(28, 28, 28);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

@keyframes bobbing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-down:hover {
    background: transparent;
}

.scroll-down:active {
    transform: translateY(0);
    animation-play-state: paused;
}

.highlight {
    background: linear-gradient(120deg, rgba(233, 251, 72, 0.2), rgba(29, 209, 161, 0.2));
    padding: 0.1em 0.2em;
    border-radius: 4px;
    color: #333;
    display: inline-block;
    transition: all 0.3s ease;
}

.highlight:hover {
    background: linear-gradient(120deg, rgba(72, 219, 251, 0.3), rgba(29, 209, 161, 0.3));
    transform: translateY(-1px);
}

.cool-underline {
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.cool-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #48dbfb, #1dd1a1);
    transform: scaleX(1);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.cool-underline:hover::after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

.card-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.card-actions a {
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-project {
    background-color: #f8f8f8;
    color: #444;
    /* border: 1px solid #e0e0e0; */
    margin-top: -20px;
}

.view-project:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.card-actions i {
    font-size: 0.8rem;
}

[data-theme="dark"] .highlight {
    background: linear-gradient(120deg, rgba(72, 219, 251, 0.3), rgba(29, 209, 161, 0.3));
    color: #ffffff;
}

[data-theme="dark"] .highlight:hover {
    background: linear-gradient(120deg, rgba(72, 219, 251, 0.4), rgba(29, 209, 161, 0.4));
}

[data-theme="dark"] .scroll-down {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .scroll-down i {
    color: #ffffff;
}

[data-theme="dark"] .scroll-down:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .view-project {
    background-color: #1b1b1b;
    color: #ffffff;
}

[data-theme="dark"] .view-project:hover {
    background-color: #1a1a1a;
}

[data-theme="dark"] .tag {
    background: #1b1b1b;
    color: #ffffff;
}

.cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.cta-container.cta-left {
    justify-content: flex-start;
}

.cta-container.cta-right {
    justify-content: flex-end;
}

.cta-button {
    background: linear-gradient(120deg, rgba(233, 251, 72, 0.2), rgba(29, 209, 161, 0.2));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    text-decoration: none;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

[data-theme="dark"] .cta-button {
    background: linear-gradient(120deg, rgba(233, 251, 72, 0.1), rgba(29, 209, 161, 0.1));
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .project-card {
        padding: 1rem;
        margin-bottom: 5vh;
    }
    
    .project-card h2 {
        font-size: 1rem;
    }
    
    .project-card p {
        font-size: 1rem;
    }
    
    .intro h1 {
        font-size: 1.5rem;
    }
    
    .intro p {
        font-size: 1.1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--card-bg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}
.modal-content h2{
    text-align: center;
    margin-bottom: 1rem;
}
.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.close-modal:hover {
    opacity: 0.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--shadow);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

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

.submit-btn {
    background: linear-gradient(120deg, rgba(233, 251, 72, 0.2), rgba(29, 209, 161, 0.2));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    text-decoration: none;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--shadow);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 6px var(--shadow);
}

[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background-color: rgba(29, 209, 161, 0.1);
    color: #1dd1a1;
    opacity: 1;
}

.form-message.error {
    background-color: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    opacity: 1;
} 