/* General Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } /* Body Styles */ body { font-family: 'Arial', sans-serif; color: #eaeaea; background: linear-gradient(135deg, #1e1e1e, #121212); line-height: 1.6; overflow-x: hidden; } /* Center Text Utility */ .center-text { text-align: center; } /* Header */ header#hero { background: linear-gradient(135deg, #333, #1a1a1a); color: #fff; padding: 4rem 2rem; text-align: center; border-bottom: 4px solid #444; } header#hero .hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; font-weight: bold; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); } header#hero .hero-content p { font-size: 1.5rem; } header nav ul { list-style: none; display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; } header nav ul li a { text-decoration: none; color: #bbb; font-weight: bold; transition: color 0.3s; } header nav ul li a:hover { color: #fff; } /* Section Styles */ section { margin: 4rem 0; padding: 2rem; text-align: center; } /* Section Titles */ section h2 { font-size: 2.5rem; margin: 2rem 0 1rem 0; color: #fff; border-bottom: 2px solid #444; display: inline-block; padding-bottom: 0.3rem; } /* About Section */ #about .container { max-width: 800px; margin: 0 auto; padding: 2rem; background: linear-gradient(135deg, #292929, #222); border: 1px solid #333; border-radius: 6px; text-align: center; } #about a { color: #46d9ff; text-decoration: none; border-bottom: 1px dotted #46d9ff; transition: color 0.3s, border-bottom 0.3s; } #about a:hover { color: #1cb6e0; border-bottom: 1px solid #1cb6e0; } /* Projects Section */ .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 0 auto; max-width: 1200px; text-align: left; } .project { background: linear-gradient(135deg, #292929, #222); padding: 1.5rem; border: 1px solid #333; border-radius: 6px; transition: transform 0.3s, box-shadow 0.3s; } .project:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); } .project h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; } /* Reviews Section */ .reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 0 auto; max-width: 1200px; text-align: left; } .review { background: linear-gradient(135deg, #292929, #222); padding: 1.5rem; border: 1px solid #333; border-radius: 6px; } .review h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #fff; } /* Footer */ footer { text-align: center; padding: 1.5rem; background: linear-gradient(135deg, #1a1a1a, #121212); border-top: 2px solid #333; color: #bbb; } footer a { color: #46d9ff; text-decoration: none; } footer a:hover { color: #1cb6e0; } /* Hyperlink Styles */ a { color: #46d9ff; text-decoration: none; font-weight: bold; border-bottom: 2px solid transparent; transition: color 0.3s, border-bottom 0.3s; } a:hover { color: #1cb6e0; border-bottom: 2px solid #1cb6e0; } /* Header Navigation Links */ header nav ul li a { color: #bbb; font-weight: bold; border-bottom: none; transition: color 0.3s, background-color 0.3s; } header nav ul li a:hover { color: #fff; background-color: rgba(70, 217, 255, 0.2); padding: 0.2rem 0.5rem; border-radius: 4px; } /* Highlight Links in Specific Sections */ #about a, #projects a { font-weight: bold; background: linear-gradient(135deg, rgba(70, 217, 255, 0.2), rgba(28, 182, 224, 0.2)); padding: 0.2rem 0.3rem; border-radius: 4px; } #about a:hover, #projects a:hover { background: linear-gradient(135deg, rgba(70, 217, 255, 0.4), rgba(28, 182, 224, 0.4)); color: #fff; } .project { background: linear-gradient(135deg, #292929, #222); padding: 1.5rem; border: 1px solid #333; border-radius: 6px; transition: transform 0.3s, box-shadow 0.3s; text-align: center; position: relative; overflow: hidden; } .project .image-container { width: 100%; height: 0; padding-top: 100%; position: relative; overflow: hidden; margin-bottom: 1rem; } .project img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(8px); z-index: -1; } /* Add a gradient fade-out effect over the image */ .project::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)); z-index: 0; /* Place the gradient overlay behind the text */ } /* Ensure the text is above the blurred image */ .project h3, .project p { position: relative; z-index: 1; /* Make sure text appears above the blurred background */ color: #fff; } .project a { text-decoration: none; color: #46d9ff; font-weight: bold; transition: color 0.3s; } .project a:hover { color: #1cb6e0; } .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 0 auto; max-width: 1200px; text-align: left; }.project { background: linear-gradient(135deg, #292929, #222); /* Fallback gradient */ padding: 1.5rem; border: 1px solid #333; border-radius: 6px; transition: transform 0.3s, box-shadow 0.3s; text-align: center; position: relative; overflow: hidden; } .project .image-container { width: 100%; height: 0; padding-top: 100%; /* This keeps the container square */ position: relative; overflow: hidden; margin-bottom: 1rem; } /* Apply the blur to the image */ .project img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(4px); /* Slight blur effect */ z-index: -1; /* Keep the image behind the text */ } /* Add a gradient fade-out effect over the image */ .project::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)); z-index: 0; /* Place the gradient overlay behind the text */ } /* Ensure the text is above the blurred image */ .project h3, .project p { position: relative; z-index: 1; /* Make sure text appears above the blurred background */ color: #fff; } .project a { text-decoration: none; color: #46d9ff; font-weight: bold; transition: color 0.3s; } .project a:hover { color: #1cb6e0; } .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 0 auto; max-width: 1200px; text-align: left; } .past-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 0 auto; max-width: 1200px; text-align: left; } @media (max-width: 768px) { header#hero { padding: 2rem 1rem; } header#hero .hero-content h1 { font-size: 2rem; } header#hero .hero-content p { font-size: 1rem; } header nav ul { gap: 1rem; flex-wrap: wrap; } header nav ul li a { font-size: 0.9rem; } } /* Blog Section */ #blog { padding: 2rem 1rem; background-color: transparent; display: flex; flex-direction: column; align-items: center; } #blog h2 { color: #fff; text-align: center; font-size: 2rem; margin-bottom: 1.5rem; } #blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; padding: 1rem; width: 80%; max-width: 1200px; place-items: center; } .blog-post { background: linear-gradient(135deg, #292929, #222); padding: 1rem; margin: 0; border-radius: 6px; border: 1px solid #333; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; width: 100%; max-width: 300px; position: relative; opacity: 0; animation: fadeIn 0.5s forwards; } @keyframes fadeIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s forwards; } .blog-post:hover { transform: translateY(-3px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); } .blog-post h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: #fff; font-weight: bold; } .blog-post p { font-size: 1rem; color: #bbb; margin-bottom: 1rem; } .blog-post .image-container { width: 100%; height: 0; padding-top: 60%; position: relative; overflow: hidden; margin-bottom: 1rem; } .blog-post img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px); z-index: -1; } .blog-post .image-container::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); z-index: 0; border-radius: 10px; } .blog-post .blog-date, .blog-post .blog-author { font-size: 0.9rem; color: #bbb; margin: 0.4rem 0; } .blog-post .blog-author { font-weight: bold; } .blog-fade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 0; } #show-more-btn { display: block; background-color: #46d9ff; color: #fff; font-weight: bold; border: none; padding: 0.6rem 1.2rem; margin: 1rem auto; border-radius: 5px; cursor: pointer; text-align: center; transition: background-color 0.3s ease; } #show-more-btn:hover { background-color: #1cb6e0; } a { color: #46d9ff; text-decoration: none; font-weight: bold; border-bottom: 2px solid transparent; transition: color 0.3s, border-bottom 0.3s; } a:hover { color: #1cb6e0; border-bottom: 2px solid #1cb6e0; } @media (max-width: 1024px) { #blog-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 768px) { #blog h2 { font-size: 1.8rem; } .blog-post h3 { font-size: 1.2rem; } .blog-post p { font-size: 0.9rem; } .blog-post { width: 100%; max-width: 90%; } #blog-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 480px) { #blog-grid { grid-template-columns: 1fr; } } .project-date { font-style: italic; margin-bottom: 0.5em; } .present-overlay { background-color: rgba(255, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5em; cursor: pointer; transition: background-color 0.3s ease; z-index: 10; } .present-overlay:hover { background-color: rgba(255, 0, 0, 1); } .fade-out { opacity: 0; transition: opacity 0.5s ease; }