:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #bfdbfe;
    --text-color: #1e293b;
    --text-color-light: #64748b;
    --background-color: #ffffff;
    --background-color-alt: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #1e40af;
    --text-color: #f1f5f9;
    --text-color-light: #cbd5e1;
    --background-color: #0f172a;
    --background-color-alt: #1e293b;
    --card-background: #1e293b;
    --border-color: #334155;
}

.dark-theme .logo img {
    filter: brightness(1.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

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

.nav-links li {
    margin-left: 30px;
}

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

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

.theme-toggle {
    cursor: pointer;
    font-size: 18px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--background-color-alt);
    padding-top: 70px;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.primary {
    background-color: var(--primary-color);
    color: white;
}

.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

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

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--background-color-alt);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 15px;
    color: var(--text-color-light);
}

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

.project-tags span {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Project Overlay Styles */
.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background-color: var(--background-color);
    color: var(--text-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-overlay.active .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease;
}

.overlay-close:hover {
    background-color: var(--secondary-color);
}

.overlay-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.overlay-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.overlay-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.overlay-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.overlay-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-card {
    cursor: pointer;
    position: relative;
}

.project-card .github-link {
    position: relative;
    z-index: 5;
}

.project-card .github-link:hover + .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: var(--text-color-light);
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-color);
    width: 250px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hidden-content {
    margin-top: 15px;
    display: none;
    text-align: center;
}

.hidden-content.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.hidden-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hidden-content a:hover {
    text-decoration: underline;
}

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

/* Footer Styling */
footer {
    padding: 30px 0;
    background-color: var(--background-color-alt);
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .overlay-content {
        width: 95%;
        padding: 20px;
    }
    
    .overlay-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}
