/* Base Styles */ :root { --primary-color: #2c3e50; --secondary-color: #3498db; --accent-color: #e74c3c; --background-color: #f8f9fa; --text-color: #333333; --white: #ffffff; --light-gray: #e9ecef; --medium-gray: #dee2e6; --dark-gray: #6c757d; } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--background-color); } .container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; } h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 600; margin-bottom: 1rem; color: var(--primary-color); } a { text-decoration: none; color: var(--secondary-color); transition: color 0.3s ease; } a:hover { color: var(--accent-color); } ul { list-style-type: none; } img { max-width: 100%; height: auto; border-radius: 5px; } /* Header Styles */ header { background-color: var(--primary-color); color: var(--white); padding: 2rem 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .header-content { display: flex; flex-direction: column; gap: 1.5rem; } .profile-info h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--white); } .profile-info .degrees { font-size: 1.1rem; color: var(--light-gray); } .contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; } .contact-info p { display: flex; align-items: center; gap: 0.5rem; color: var(--light-gray); } .contact-info i { color: var(--secondary-color); } /* Navigation Styles */ nav { background-color: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .nav-links { display: flex; justify-content: center; flex-wrap: wrap; } .nav-links li { padding: 1rem; } .nav-links a { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary-color); transition: all 0.3s ease; } .nav-links a:hover { color: var(--accent-color); transform: translateY(-2px); } .nav-links i { font-size: 1.1rem; } /* Section Styles */ .section { padding: 4rem 0; border-bottom: 1px solid var(--medium-gray); } .section:last-child { border-bottom: none; } .section-title { font-size: 1.8rem; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--secondary-color); display: inline-flex; align-items: center; gap: 0.5rem; } .section-title i { color: var(--secondary-color); } .section-content { background-color: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); } /* About Section */ #about .section-content p { font-size: 1.1rem; line-height: 1.8; } /* Education Section */ .education-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--light-gray); } .education-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .education-item h3 { color: var(--secondary-color); font-size: 1.3rem; } .education-details { color: var(--dark-gray); font-style: italic; } /* Skills Section */ .skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; } .skill-category { background-color: var(--light-gray); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; } .skill-category:hover { transform: translateY(-5px); } .skill-category h3 { display: flex; align-items: center; gap: 0.5rem; color: var(--primary-color); font-size: 1.2rem; margin-bottom: 1rem; } .skill-category h3 i { color: var(--secondary-color); } .skill-category ul li { padding: 0.3rem 0; position: relative; padding-left: 1rem; } .skill-category ul li::before { content: "•"; color: var(--accent-color); position: absolute; left: 0; } /* Projects Section */ .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; } .project-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; } .project-card:hover { transform: translateY(-10px); } .project-image { height: 200px; overflow: hidden; } .project-image img { width: 50%; height: auto; /* Maintain aspect ratio */ object-fit: cover; display: block; /* Needed to center with margin */ margin: 0 auto; /* Horizontally center */ transition: transform 0.5s ease; } .project-card:hover .project-image img { transform: scale(1.05); } .project-info { padding: 1.5rem; } .project-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--secondary-color); } /* Footer Styles */ footer { background-color: var(--primary-color); color: var(--white); padding: 3rem 0; } .footer-content { display: flex; flex-direction: column; gap: 2rem; } .contact-section h3 { color: var(--white); margin-bottom: 1rem; } .contact-section p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--light-gray); } .contact-section i { color: var(--secondary-color); } .copyright-section { text-align: center; color: var(--medium-gray); padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); } /* Responsive Styles */ @media (min-width: 768px) { .header-content { flex-direction: row; justify-content: space-between; align-items: center; } .footer-content { flex-direction: row; justify-content: space-between; align-items: center; } } @media (max-width: 767px) { .section { padding: 3rem 0; } .section-title { font-size: 1.5rem; } .skills-grid { grid-template-columns: 1fr; } .projects-grid { grid-template-columns: 1fr; } .nav-links { justify-content: space-between; } .nav-links li { padding: 0.8rem; } .nav-links a { font-size: 0.9rem; } } @media (max-width: 480px) { .profile-info h1 { font-size: 2rem; } .section-content { padding: 1.5rem; } .nav-links a span { display: none; } .nav-links i { font-size: 1.3rem; } }