@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spectral', serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: rgb(254,253,247);
    color: #333;
}



nav {
    width: 240px;
    padding: 7rem;
    background-color: rgb(254,253,247);
    height: 100vh;
    position: fixed;
}

.profile-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: #000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.social-links {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #000;
}

main {
    flex: 1;
    margin-left: 240px;
    padding: 3rem;
}

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

section {
    margin-bottom: 5rem;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eaeaea;
}

p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.project-img {
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    object-fit: contain;
}

.project-img img {
  
        height: 100%;
        width: 100%;
          
  } 
  
.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.skill-badge {
    background: #e9f5ff;
    color: #0066cc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s;
    cursor: default;
}

.skill-badge:hover {
    transform: translateY(-2px);
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Spectral', serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #0066cc;
    outline: none;
}

button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Spectral', serif;
}

button:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #000;
    background: none;
    transform: none;
}

/* Dark mode toggle */
.dark-mode-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode nav {
    background-color: #121212;
}

body.dark-mode .nav-links a {
    color: #aaa;
}

body.dark-mode .nav-links a:hover, 
body.dark-mode .nav-links a.active {
    color: #fff;
}

body.dark-mode .nav-links a::after {
    background-color: #fff;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #fff;
}

body.dark-mode p {
    color: #bbb;
}

body.dark-mode .project-card,
body.dark-mode .contact-form,
body.dark-mode .chart-container {
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .tag {
    background: #333;
    color: #ddd;
}

body.dark-mode .social-links a {
    color: #aaa;
}

body.dark-mode .social-links a:hover {
    color: #fff;
}

body.dark-mode input, 
body.dark-mode textarea {
    background: #333;
    border-color: #444;
    color: #eee;
}

body.dark-mode h2 {
    border-bottom-color: #444;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    
    .profile-container {
        margin-bottom: 1rem;
    }
    
    .profile-pic {
        width: 80px;
        height: 80px;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-links {
        position: relative;
        margin-top: 1rem;
        bottom: auto;
    }
    
    main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .dark-mode-toggle {
        top: 1rem;
        right: 1rem;
    }
}