diff --git a/css/dropdown.css b/css/dropdown.css new file mode 100644 index 0000000..fade259 --- /dev/null +++ b/css/dropdown.css @@ -0,0 +1,125 @@ +/* ===== Dropdown Base ===== */ +.dropdown { + position: relative; +} + +.dropdown-toggle { + cursor: pointer; + display: inline-block; +} + +/* Dropdown menu hidden by default */ +.dropdown-menu { + display: none; + position: absolute; + background-color: #333; + top: 100%; + left: 0; + min-width: 180px; + border-radius: 6px; + padding: 10px 0; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); + z-index: 1000; +} + +/* Dropdown menu links */ +.dropdown-menu li { + list-style: none; +} + +.dropdown-menu a { + display: block; + color: #fff; + padding: 8px 16px; + text-decoration: none; + transition: background 0.3s; +} + +.dropdown-menu a:hover { + background-color: #444; +} + +/* Arrow indicator (base) */ +.dropdown-toggle::after { + content: "▾"; + display: inline-block; + margin-left: 6px; + transition: transform 0.3s ease; +} + +/* Rotate arrow upward when open */ +.dropdown.open .dropdown-toggle::after { + transform: rotate(180deg); +} + +/* ===== Desktop Hover Dropdown ===== */ +@media (min-width: 769px) { + .dropdown:hover .dropdown-menu { + display: block; + } + + .dropdown-menu { + position: absolute; + background: #333; + padding: 0.5rem 1rem; + border-radius: 5px; + z-index: 100; + } +} + +/* ===== Mobile Dropdown and Hamburger ===== */ +@media (max-width: 768px) { + .nav-links { + flex-direction: column; + display: none; + } + + .nav-links.active { + display: flex; + } + + .hamburger { + display: block; + font-size: 28px; + cursor: pointer; + } + + .dropdown-menu { + position: static; + /* Prevents overlap */ + background: #333; + padding-left: 16px; + border-radius: 5px; + width: 100%; + overflow: hidden; + max-height: 0; + transition: max-height 0.3s ease; + } + + .dropdown.open .dropdown-menu { + max-height: 500px; + /* Adjust as needed */ + } + + .dropdown-toggle { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + } + + .dropdown-toggle::after { + content: "▾"; + margin-left: 8px; + transition: transform 0.3s; + } + + .dropdown.open .dropdown-toggle::after { + transform: rotate(180deg); + } + + .dropdown-menu li a { + display: block; + padding: 8px 0; + } +} \ No newline at end of file diff --git a/css/main.css b/css/main.css index 20dc181..aa511b5 100644 --- a/css/main.css +++ b/css/main.css @@ -66,30 +66,6 @@ text-align: center; } -/* =================================================== - ===== Teck Stack Section ===== -=================================================== */ -#tech-stack { - text-align: center; - /* height: 20vh; */ -} - -.tech-stack .btn { - display: inline-block; - padding: 12px 25px; - border-radius: 30px; - background: #ff9800; - color: #fff; - text-decoration: none; - font-weight: bold; - transition: background 0.3s, transform 0.3s; -} - -.tech-stack .btn:hover { - background: #e68900; - transform: translateY(-3px); -} - /* =================================================== ===== Skills Section ===== =================================================== */ @@ -151,6 +127,44 @@ box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); } +/* =================================================== + ===== Teck Stack Section ===== +=================================================== */ +#portfolio { + text-align: center; + /* height: 20vh; */ +} + +.portfolio .btn { + display: inline-block; + padding: 12px 25px; + border-radius: 30px; + background: #ff9800; + color: #fff; + text-decoration: none; + font-weight: bold; + transition: background 0.3s, transform 0.3s; +} + +.portfolio .btn:hover { + background: #e68900; + transform: translateY(-3px); +} + +.portfolio-card { + background: rgba(179, 105, 105, 0.3); + backdrop-filter: blur(10px); + border-radius: 20px; + padding: 20px; + margin: 20px 0; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); +} + +body.dark .portfolio-card { + background-color: #467db4; + color: #000; +} + /* =================================================== ===== Dark Mode ===== =================================================== */ @@ -245,7 +259,7 @@ body.dark #darkModeToggle:hover { /* Hover effect for interactivity */ .visitor-count:hover { - transform: translateY(-3px); + transform: translateY(-10px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255, 87, 34, 0.2); /* stronger glow on hover */ } diff --git a/index.html b/index.html index 7147b6b..4fbdd8d 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@
-