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

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

#vote-button {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#vote-button:hover {
    background-color: var(--secondary-color);
}

/* Ticker Styles */
.ticker-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
    background-color: var(--accent-color);
    padding-left: 100%;
    z-index: 999;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1.2rem;
    color: white;
    line-height: 40px;
}

/* Adjust nav position for ticker */
nav {
    top: 40px;
}

/* Main Styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #000;
    --background-color: #fff;
    --text-color: #333;
    --border-color: #ddd;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Welcome Video Section */
.welcome {
    padding: 5rem 1rem;
    background-color: var(--background-color);
}

.video-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.video-link-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.video-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF0000;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.video-button:hover {
    background: #CC0000;
}

.video-button i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
    background: linear-gradient(to bottom, #f8f8f8, #fff);
}

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

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: var(--background-color);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tags span {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Experience Section */
.experience {
    padding: 5rem 1rem;
    background-color: #f8f8f8;
}

.timeline {
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline-item {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.duration {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 1rem;
    background-color: var(--background-color);
}

.project-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p {
    padding: 1rem;
}

/* Interactive Section */
.interactive {
    padding: 5rem 1rem;
    background-color: #f8f8f8;
}

.interactive-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#tic-tac-toe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 2rem auto;
    max-width: 300px;
}

.cell {
    background: white;
    aspect-ratio: 1;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
}

.quote-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#quote-display {
    margin: 1rem 0;
    font-style: italic;
}

/* Instagram Section */
.instagram {
    padding: 5rem 1rem;
    background-color: var(--background-color);
}

.instagram-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.instagram-link-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.instagram-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E1306C;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.instagram-button:hover {
    background: #C13584;
}

.instagram-button i {
    font-size: 1.2rem;
}

/* Blog Section */
.blog {
    padding: 5rem 1rem;
    background-color: var(--background-color);
}

.blog-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background-color: #f8f8f8;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 3rem 1rem 1rem;
}

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

.footer-links a {
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Section Headers */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}
