/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b6aeb 0%, #1acc56 100%);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1f23e7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    animation: fadeInUp 1s ease-out;
    font-weight: 500;
}

.cta-button:hover {
    background: #2980b9;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.about-image {
    flex: 1;
}

.placeholder-image {
    width: 300px;
    height: 300px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #666;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    animation: fadeInUp 1s ease-out;
}

/* Resume Section */
.resume {
    padding: 100px 0;
    background: white;
}

.resume h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.resume-content {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 3rem;
    align-items: center;
}

.resume-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.resume-note {
    color: #666;
    font-size: 0.95rem;
}

.resume-preview {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.resume-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #dfe6ee;
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

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

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

.projects-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.projects-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.projects-item:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 4px;
}
.projects-image {
    flex: 1;
}
.project-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    object-position: top; /* Focus on the top part of the image */
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-item h3 {
    padding: 1rem;
    font-size: 1.3rem;
}

.projects-item p {
    padding: 0 1rem 1rem;
    color: #666;
}

.project-dialog {
    width: min(95vw, 1000px);
    max-height: 90vh;
    border: none;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    overflow: auto;
}

.project-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.project-dialog-content {
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
}

.dialog-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.dialog-gallery {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.gallery-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.dialog-details {
    flex: 2;
    min-width: 0; /* Allow flex shrinking */
}

.github-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.github-link:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.github-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: #6b7280;
    font-size: 0.9rem;
}

.project-dialog-kicker {
    padding: 0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.25rem;
    width: fit-content;
}

.project-dialog h3 {
    margin-bottom: 1.25rem;
    font-size: 2.2rem;
    color: #2c3e50;
    line-height: 1.2;
}

.project-dialog-summary {
    padding: 0;
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.project-dialog-details {
    padding: 0;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.project-dialog-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-dialog-close:hover {
    color: #111827;
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-dialog {
        width: 95vw;
        max-height: 95vh;
    }
    
    .project-dialog-content {
        padding: 1.5rem;
    }
    
    .dialog-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .dialog-gallery {
        max-width: none;
        order: -1; /* Gallery first on mobile */
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .project-dialog h3 {
        font-size: 1.8rem;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

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

.social-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
    color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Could add mobile menu later */
    }

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

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .resume-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .project-dialog-content {
        padding: 1.5rem;
    }

    .project-dialog h3 {
        font-size: 1.6rem;
    }
}

