/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --accent-color: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #0000FF;
    text-decoration: none;
    border-bottom: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.logo:hover {
    text-decoration: none;
    color: #0000FF;
}

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

.nav-links li {
    padding: 0 1rem;
}

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

.nav-links a:hover {
    color: #0000FF;
}

.nav-links li:not(:last-child)::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.highlight {
    color: var(--primary-color);
}

.typing-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.skills h3 {
    margin-bottom: 1rem;
}

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

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

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #333;
}

.project-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1rem;
    }
    
    .nav-content {
        padding: 1rem;
    }

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

    .typing-text {
        font-size: 1.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.popup-content h3 {
    color: #2ecc71;
    margin-bottom: 1rem;
}

.popup-content button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.popup-content button:hover {
    background-color: #27ae60;
}

/* Project Details Page Styles */
.project-details {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-description {
    color: #444;
}

.project-description h2 {
    font-size: 1.8em;
    color: #333;
    margin: 30px 0 15px;
}

.project-description h2:first-child {
    margin-top: 0;
}

.project-description p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.tech-stack li {
    background-color: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-stack li:hover {
    transform: scale(1.1);
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.project-description ul:not(.tech-stack) {
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-description ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-description li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-description ul ul,
.project-description ol ul {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .project-details {
        padding: 100px 5% 40px;
    }
    
    .project-header h1 {
        font-size: 2em;
    }
    
    .project-description h2 {
        font-size: 1.5em;
    }
}

.partners-section {
    margin-top: 2rem;
}

.partners-group {
    margin-bottom: 2rem;
}

.partners-group h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.partner-logo {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.partner-logo img {
    max-width: 150px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.partner-logo span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .partner-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .partner-logo img {
        max-width: 120px;
        height: 60px;
    }
}

.project-title {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title:hover {
    color: var(--primary-color);
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-info h3 a:hover {
    color: var(--primary-color);
}

/* Remove underlines from links */
a, a:visited {
    text-decoration: none;
}

.nav-links a:visited,
.project-title:visited,
.logo:visited {
    text-decoration: none;
    border-bottom: none;
}

.tech-item {
    position: relative;
}

.tech-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-bottom: 10px;
}

.tech-popup img {
    width: 150px;
    height: auto;
    border-radius: 4px;
}

.tech-item:hover .tech-popup {
    display: block;
}

/* Add a small arrow at the bottom of the popup */
.tech-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent;
} 