* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background: linear-gradient(to bottom, #2c1a1a, #f5e8c7);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

nav {
    position: sticky;
    top: 0;
    background: #4a2c2a;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li:first-child {
    margin-right: auto;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #f4c430;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    padding: 5px 10px;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #f5e8c7;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a.active {
    color: #f5e8c7;
    border-bottom: 2px solid #f5e8c7;
}

nav ul li a:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
    border-radius: 4px;
}

.dev-emoji {
    font-size: 24px;
    margin-left: 8px;
    display: inline-block;
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.main-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(245, 232, 199, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    scroll-snap-align: start;
    overflow-y: auto;
}

section.active {
    display: block;
    opacity: 1;
}

h1, h2 {
    color: #4a2c2a;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
}

h1 {
    font-size: 36px;
    border-bottom: 2px solid #f4c430;
    display: inline-block;
    padding-bottom: 10px;
}

h2 {
    font-size: 28px;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: url('https://www.transparenttextures.com/patterns/old-map.png');
    background-size: cover;
    color: #4a2c2a;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
    color: #333;
}

.hero-content {
display: flex;
justify-content: space-between;
align-items: center;
}

.hero-text, .hero-image-container {
flex: 1;
padding: 20px;
box-sizing: border-box;
}

/* Optional: Style to keep image from stretching */
.hero-image {
width: 100%;
height: auto;
max-width: 300px;
border-radius: 8px;
}


.about-content, .skills-grid, .projects-grid, .contact-content {
    margin-top: 20px;
}

.about-content p {
    text-align: justify;
    font-size: 16px;
    margin-bottom: 15px;
}

.skills-categories {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    font-size: 20px;
    color: #4a2c2a;
    margin-bottom: 15px;
    border-bottom: 2px solid #f4c430;
    padding-bottom: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: center;
}

.skill-card {
    background: #6b7280;
    color: #f5e8c7;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 14px;
}

.skill-card:hover,
.skill-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-card:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #f5e8c7;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(244, 196, 48, 0.3);
}

.project-card:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.project-title {
    font-size: 20px;
    color: #4a2c2a;
    margin-bottom: 10px;
    font-weight: bold;
}

.project-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-hackathon {
    font-size: 13px;
    color: #4a2c2a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-role {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: #4a2c2a;
    color: #f5e8c7;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .tech-tag {
    opacity: 1;
    transform: translateY(0);
}

.project-outcome {
    font-size: 13px;
    color: #4a2c2a;
    font-weight: bold;
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-link {
    background: #4a2c2a;
    color: #f5e8c7;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s, color 0.3s;
}

.project-link:hover,
.project-link:focus {
    background: #f4c430;
    color: #4a2c2a;
}

.project-link:focus {
    outline: 2px solid #f5e8c7;
    outline-offset: 2px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #f5e8c7;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #4a2c2a;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
}

.modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #4a2c2a;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #f4c430;
}

.contact-content {
    text-align: center;
}

.contact-content a {
    color: #f4c430;
    text-decoration: none;
    font-weight: bold;
}

.contact-content a:hover,
.contact-content a:focus {
    text-decoration: underline;
    color: #4a2c2a;
    
}

.contact-content a:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 24px;
    color: #4a2c2a;
    transition: color 0.3s;
}

.social-icons a:hover,
.social-icons a:focus {
    color: #f4c430;
}

.social-icons a:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.download-cv {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #4a2c2a;
    color: #f5e8c7;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.download-cv:hover,
.download-cv:focus {
    background: #f4c430;
    color: #4a2c2a;
}

.download-cv:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.contact-form-container {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form label {
    display: block;
    font-size: 16px;
    color: #4a2c2a;
    margin-bottom: 8px;
    text-align: left;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #4a2c2a;
    border-radius: 5px;
    font-size: 14px;
    background: #f5e8c7;
    color: #333;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
    border-color: #f4c430;
    box-shadow: 0 0 5px rgba(244, 196, 48, 0.5);
}

.contact-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234a2c2a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.contact-form button {
    background: #4a2c2a;
    color: #f5e8c7;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.contact-form button:hover,
.contact-form button:focus {
    background: #f4c430;
    color: #4a2c2a;
}

.contact-form button:focus {
    outline: 2px solid #f4c430;
    outline-offset: 2px;
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
    color: #4a2c2a;
    display: none;
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #d32f2f;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li:first-child {
        margin-left: 0;
        margin-right: 0;
    }

    .hero {
        padding: 60px 20px;
    }

    .skills-categories {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 0 10px;
    }
}
