/* General Styles */ * { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; border: none; outline: none; scroll-behavior: smooth; font-family: 'poppins', sans-serif; } html{ font-size: 62.5%; overflow-x: hidden; } body { background: rgba(2, 2, 59, 0.993); } section{ min-height: 100vh; padding: 10rem 9% 2rem; } .h1{ position: fixed; top: 0; left: 0; width: 100%; padding: 2rem 9%; display: flex; justify-content: space-between; align-items: center; z-index: 100; } /* Basic styling for the text */ h3 { font-size: 24px; font-family: Arial, sans-serif; } /* Animation for the text */ @keyframes fadeInOut { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } #dynamic-text { color: rgb(109, 219, 255); /* Tomato color */ font-weight: bold; animation: fadeInOut 10s infinite; } .logo{ font-size: 2.5rem; font-weight: 500; cursor: default; color: #ffff; } .navbar a{ font-size: 1.7rem; margin-left: 4rem; color: #ffff; transition: .3s; } .navbar a:hover, .navbar a.active { color: rgb(96, 215, 255); margin-left: 4rem; } #menu-icon{ font-size: 3.6rem; color: #ffff; display: none; } #home-image img{ position: absolute; align-items: end; display: flex; bottom: 0; float:right; left: 60%; } .home-content h3{ font-size: 3.6rem; font-weight: 600; } .home-content h3:nth-of-type(2){ margin-bottom: 2rem; } span{ color: rgb(109, 219, 255); } .home-content h1{ font-size: 5.5rem; font-weight: 600; line-height: 1.3; } .home-content p{ font-size: 2.0rem; } .quotes{ text-align: center; padding: 50px 30px; font-size: 2.0rem; } .socials { background: rgba(2, 2, 59, 0.993); padding: 50px 20px; text-align: center; } .heading { font-size: 2.5rem; margin-bottom: 30px; } .heading span:first-child { color: whitesmoke; } .heading span:last-child { color: #3498db; /* Change this color to your preference */ } .social-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; } .social-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; background-color: rgb(21, 183, 236); /* Button background color */ color: white; box-shadow: 0 0 1 rem rgb(109, 219, 255); text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease; } .social-btn i { margin-right: 10px; } .social-btn:hover { background-color: rgb(21, 183, 236); box-shadow: 0 0 1 rem rgb(109, 219, 255); /* Hover background color */ } /* Responsive Styles */ @media (max-width: 768px) { .heading { font-size: 2rem; } .social-buttons { flex-direction: column; align-items: center; } .social-btn { width: 80%; margin-bottom: 10px; } } @media (max-width: 480px) { .heading { font-size: 1.5rem; } .social-btn { width: 100%; } } .btn{ display: inline-block; padding: 1rem 2.8rem; background: rgb(109, 219, 255) ; border-radius: 4rem; box-shadow: 0 0 1rem rgb(109, 219, 255); font-size: 1.5rem; letter-spacing: .1rem; font-weight: 600; transition: .5s ease; } .btn:hover{ box-shadow: none; } .about{ display: flex; justify-content: center; align-items: center; gap: 18rem; background: rgba(7, 7, 109, 0.993) ; } .about-img img{ width: 35vw; } .heading{ text-align: center; font-size: 4.5rem; } .about-content{ text-align: center; line-height: 2.5; font-size: 2.4rem; margin: 2rem 0 3rem; padding-bottom: 50px; } .services h2 { margin-bottom: 5rem; } .services-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10rem; } .services-container .services-box { flex: 1 1 30rem; background: rgb(5, 5, 5); padding: 3rem 2rem 4rem; border-radius: 2rem; text-align: center; border: .2rem solid rgb(109, 219, 255) ; transition: .5s ease; } .services-box { flex: 1 1 30rem; background: rgb(5, 5, 5); padding: 3rem 2rem 4rem; border-radius: 2rem; text-align: center; border: .2rem solid rgb(109, 219, 255) ; transition: .5s ease; } .services-box:hover { border-color: rgb(109, 219, 255) ; transform: scale(1.05); } .services-box h3 { font-size: 2.6rem; } .services-box p { font-size: 1.6rem ; margin: 1rem 0 3rem; } /* General Styles */ .projects { padding: 30px 20px; background: rgba(7, 7, 109, 0.993) ; /* Dark background for the section */ text-align: center; } .projects .heading { font-size: 4.5rem; margin-bottom: 20px; } .portfolio-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */ gap: 20px; /* Space between items */ padding: 20px; } .portfolio-container { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .portfolio-box img { width: 100%; /* Make images responsive */ height: 100%; /* Ensure images fill the container */ object-fit: cover; /* Maintain aspect ratio and cover the container */ display: block; transition: .7s ease; cursor: pointer; } .portfolio-box:hover img{ transform: scale(1.5); } .portfolio-layer { position: absolute; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */ color: white; padding: 20px; transform: translateY(100%); /* Hide by default */ transition: transform 0.3s ease-in-out; } .portfolio-container:hover .portfolio-layer { transform: translateY(0); /* Show on hover */ } /* Mobile-Specific Styles */ @media (max-width: 768px) { .portfolio-wrapper { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for smaller screens */ } .portfolio-box img { height: auto; /* Ensure images scale properly on mobile */ } } .footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 2rem 9%; font-size: 1.5rem; } .footer{ background: rgba(2, 2, 59, 0.993) ; } .footer-icon a { display: inline-flex; justify-content: center; align-items: center; padding: .8rem; background: rgb(109, 219, 255); border-radius: .8rem; transition: .5s ease; } .footer-icon a:hover { box-shadow: 0 0 1rem rgb(109, 219, 255) ; } .footer-icon a i { font-size: 2.4rem; } /* Navigation container */ .nav { position: fixed; /* Changed from absolute to fixed */ top: 20px; right: 20px; z-index: 1000; /* Ensure it stays on top of other elements */ } /* Hamburger button */ .menu-btn { font-size: 28px; background: rgba(0, 0, 0, 0.4); color: white; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(5px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .menu-btn:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.05); } /* Menu content */ .menu-content { position: absolute; top: 60px; /* Position below the hamburger button */ right: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); padding: 15px 25px; border-radius: 15px; display: none; /* Hidden by default */ flex-direction: column; min-width: 200px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); transform-origin: top right; animation: menuFade 0.3s ease; z-index: 1001; } /* Animation for menu fade-in */ @keyframes menuFade { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } /* Show menu when active */ .menu-content.active { display: flex; } @keyframes menuFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .menu-content a { color: white; text-decoration: none; margin: 12px 0; font-size: 16px; letter-spacing: 1px; transition: all 0.3s ease; position: relative; padding: 5px 0; } .menu-content a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: rgb(96, 215, 255); transition: width 0.3s ease; } .menu-content a:hover { color: rgb(96, 215, 255); transform: translateX(5px); } .menu-content a:hover::after { width: 100%; } .menu-content.show { display: flex; } /* Search Bar and Moving Text */ .search-container { text-align: center; position: absolute; top: 40%; left: 50%; transform: translateX(-50%); } .moving-text { font-size: 24px; color: white; margin-bottom: 20px; animation: moveAndFade 5s ease-in-out forwards; } @keyframes moveAndFade { 0% { opacity: 0; transform: translateX(100%); } 50% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translateX(-100%); } } /* Date Search Bar */ .date-search { display: flex; flex-direction: column; align-items: center; gap: 15px; } .date-search input[type="date"] { width: 300px; padding: 15px; font-size: 16px; border: none; border-radius: 25px; background: rgba(255, 255, 255, 0.2); color: white; text-align: center; outline: none; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); transition: background 0.3s ease; } .date-search input[type="date"]:hover { background: rgba(255, 255, 255, 0.3); } .date-search input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); } .date-search button { padding: 15px 30px; background: rgb(96, 215, 255); border: none; color: white; font-size: 16px; border-radius: 25px; cursor: pointer; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); transition: background 0.3s ease, box-shadow 0.3s ease; } .date-search button:hover { background: rgb(96, 215, 255); box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5); } /* Astronomy Facts Animation */ .discovery-container { display: none; text-align: center; margin-top: 30px; } @keyframes fadeInOut { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } } /* Add this to your style.css file */ .social-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; } .social-btn { display: inline-flex; align-items: center; padding: 10px 20px; background-color: #0077b5; /* LinkedIn blue */ color: white; text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease; } .social-btn i { margin-right: 10px; } .social-btn:hover { background-color: #005f8b; /* Darker LinkedIn blue */ } /* Customize colors for each platform */ .social-btn.github { background-color: #333; /* GitHub black */ } .social-btn.github:hover { background-color: #24292e; /* Darker GitHub black */ } .social-btn.twitter { background-color: #1da1f2; /* Twitter blue */ } .social-btn.twitter:hover { background-color: #1991db; /* Darker Twitter blue */ }