Advertisement
albela

style

Oct 6th, 2022
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 11.72 KB | None | 0 0
  1. :root {
  2.   --customColor: #0044FF;
  3.   --purple: #CE00FF;
  4.   --orange: #FF4600;
  5.   --blue: #0044FF;
  6.   --cyan: #03FFC7;
  7. }
  8.  
  9. *,
  10. *::before,
  11. *::after {
  12.   margin: 0;
  13.   padding: 0;
  14.   box-sizing: inherit;
  15. }
  16.  
  17. html {
  18.   scroll-behavior: smooth;
  19.   box-sizing: border-box;
  20.   font-size: 62.5%;
  21. }
  22.  
  23. body {
  24.   font-family: "Poppins", sans-serif;
  25.   font-size: 1.6rem;
  26.   font-weight: 400;
  27.   background-color: #fff;
  28.   color: #000;
  29.   position: relative;
  30.   z-index: 1;
  31. }
  32.  
  33. h1,
  34. h2,
  35. h3,
  36. h4 {
  37.   font-weight: 500;
  38. }
  39.  
  40. a {
  41.   text-decoration: none;
  42. }
  43.  
  44. img {
  45.   max-width: 100%;
  46. }
  47.  
  48. li {
  49.   list-style: none;
  50. }
  51.  
  52. .container {
  53.   max-width: 114rem;
  54.   margin: 0 auto;
  55. }
  56.  
  57. @media only screen and (max-width: 1200px) {
  58.   .container {
  59.     padding: 0 3rem;
  60.   }
  61. }
  62.  
  63. /* Header */
  64. .header {
  65.   position: relative;
  66.   width: 100%;
  67.   min-height: 100vh;
  68.   background: rgb(0, 0, 19);
  69.   z-index: 1;
  70.   overflow: hidden;
  71. }
  72.  
  73. .header img {
  74.   position: absolute;
  75.   right: -5%;
  76.   bottom: 0;
  77.   width: 100rem;
  78.   z-index: -1;
  79. }
  80.  
  81. @media only screen and (max-width: 996px) {
  82.   .header {
  83.     min-height: 60vh;
  84.   }
  85.  
  86.   .header img {
  87.     width: 50rem;
  88.   }
  89. }
  90.  
  91. @media only screen and (max-width: 768px) {
  92.   .header img {
  93.     width: 40rem;
  94.   }
  95. }
  96.  
  97. @media only screen and (max-width: 567px) {
  98.   .header {
  99.     min-height: 100vh;
  100.   }
  101.  
  102.   .header img {
  103.     width: 35rem;
  104.   }
  105. }
  106.  
  107. .nav {
  108.   padding: 1.6rem 0;
  109. }
  110.  
  111. .nav.fix-nav {
  112.   position: fixed;
  113.   top: 0;
  114.   left: 0;
  115.   width: 100%;
  116.   background-color: var(--customColor);
  117.   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  118.   z-index: 999;
  119. }
  120.  
  121. .nav.fix-nav .logo h1 span {
  122.   color: #fff;
  123. }
  124.  
  125. .navigation {
  126.   display: flex;
  127.   align-items: center;
  128.   justify-content: space-between;
  129. }
  130.  
  131. .logo h1 {
  132.   font-size: 2.5rem;
  133.   color: #fff;
  134. }
  135.  
  136. .logo h1 span {
  137.   font-weight: bold;
  138.   color: var(--customColor);
  139. }
  140.  
  141. .nav-list {
  142.   display: flex;
  143.   align-items: center;
  144. }
  145.  
  146. .nav-item:not(:last-child) {
  147.   margin-right: 0.5rem;
  148. }
  149.  
  150. .nav-link:link,
  151. .nav-link:visited {
  152.   color: #fff;
  153.   padding: 0.8rem 1rem;
  154.   transition: all 300ms ease-in-out;
  155. }
  156.  
  157. .nav-link:hover {
  158.   border-radius: 0.3rem;
  159.   background-color: var(--customColor);
  160. }
  161.  
  162. .top-nav {
  163.   display: none;
  164. }
  165.  
  166. .hamburger {
  167.   display: none;
  168. }
  169.  
  170. @media only screen and (max-width: 768px) {
  171.   .menu {
  172.     position: fixed;
  173.     top: 0;
  174.     left: -100%;
  175.     width: 80%;
  176.     max-width: 40rem;
  177.     height: 100%;
  178.     background-color: #fff;
  179.     transition: all 500ms ease-in-out;
  180.     z-index: 100;
  181.   }
  182.  
  183.   .menu.show {
  184.     left: 0;
  185.   }
  186.  
  187.   .top-nav {
  188.     display: flex;
  189.     align-items: center;
  190.     justify-content: space-between;
  191.     background-color: var(--customColor);
  192.     padding: 1rem 1.6rem;
  193.   }
  194.  
  195.   .logo h1 span {
  196.     color: #fff;
  197.   }
  198.  
  199.   .top-nav .close {
  200.     color: #fff;
  201.     font-size: 2.3rem;
  202.     padding: 1rem;
  203.     cursor: pointer;
  204.   }
  205.  
  206.   .hamburger {
  207.     display: block;
  208.     color: #fff;
  209.     font-size: 2.3rem;
  210.     padding: 0.5rem;
  211.     cursor: pointer;
  212.   }
  213.  
  214.   .nav-link:link,
  215.   .nav-link:visited {
  216.     display: block;
  217.     font-size: 1.7rem;
  218.     color: #222;
  219.     padding: 1rem 0;
  220.   }
  221.  
  222.   .nav-list {
  223.     flex-direction: column;
  224.     align-items: start;
  225.     padding: 1rem 1.6rem;
  226.   }
  227.  
  228.   body.show::before {
  229.     content: "";
  230.     position: absolute;
  231.     top: 0;
  232.     left: 0;
  233.     width: 100%;
  234.     height: 100%;
  235.     background-color: rgba(0, 0, 0, 0.8);
  236.     z-index: 1;
  237.   }
  238.  
  239.   .nav.show {
  240.     background-color: rgba(0, 0, 0, 0.8);
  241.   }
  242. }
  243.  
  244. /* Hero */
  245. .hero {
  246.   position: absolute;
  247.   top: 50%;
  248.   transform: translate(30%, -50%);
  249.   color: #fff;
  250. }
  251.  
  252. .hero h3 {
  253.   font-weight: 400;
  254.   font-size: 2rem;
  255. }
  256.  
  257. .hero h1 {
  258.   font-size: 6rem;
  259. }
  260.  
  261. .hero h4 {
  262.   font-size: 2rem;
  263. }
  264.  
  265. .hero h4 span {
  266.   color: var(--customColor);
  267.   /* text-decoration: underline; */
  268. }
  269.  
  270. .hero a:link,
  271. .hero a:visited {
  272.   display: inline-block;
  273.   padding: 0.8rem 2.5rem;
  274.   border: 1px solid var(--customColor);
  275.   background-color: var(--customColor);
  276.   color: #fff;
  277.   margin-top: 2rem;
  278. }
  279.  
  280. .hero a:hover {
  281.   background-color: transparent;
  282. }
  283.  
  284. @media only screen and (max-width: 996px) {
  285.   .hero {
  286.     transform: translate(10%, -50%);
  287.   }
  288. }
  289.  
  290. @media only screen and (max-width: 768px) {
  291.   .hero h1 {
  292.     font-size: 4rem;
  293.   }
  294. }
  295.  
  296. @media only screen and (max-width: 567px) {
  297.   .hero {
  298.     top: 35%;
  299.     transform: translate(10%, -50%);
  300.   }
  301.  
  302.   .hero h3 {
  303.     font-size: 1.6rem;
  304.   }
  305.  
  306.   .hero h1 {
  307.     font-size: 3rem;
  308.   }
  309.  
  310.   .hero h4 {
  311.     font-size: 1.6rem;
  312.   }
  313. }
  314.  
  315. .icons {
  316.   position: absolute;
  317.   bottom: 5%;
  318.   left: 10%;
  319.   color: #fff;
  320. }
  321.  
  322. .icons span:not(:last-child) {
  323.   margin-right: 1rem;
  324. }
  325.  
  326. .icons span {
  327.   font-size: 2rem;
  328.   cursor: pointer;
  329.   transition: all 300ms ease-in-out;
  330. }
  331.  
  332. .icons span:hover {
  333.   color: var(--customColor);
  334. }
  335.  
  336. @media only screen and (max-width: 567px) {
  337.   .icons {
  338.     display: none;
  339.   }
  340. }
  341.  
  342.  
  343. /* Color Controls */
  344.  
  345. .control {
  346.   position: fixed;
  347.   right: -4rem;
  348.   top: 15%;
  349.   transition: all 300ms ease-in-out;
  350.   z-index: 1000;
  351. }
  352.  
  353. @keyframes spin {
  354.   0% {
  355.     transform: rotate(0deg);
  356.   }
  357.  
  358.   100% {
  359.     transform: rotate(360deg);
  360.   }
  361. }
  362.  
  363. .control.open {
  364.   right: 0;
  365. }
  366.  
  367. .control .widget {
  368.   position: absolute;
  369.   left: -3.4rem;
  370.   border-radius: 1rem 0 0 1rem;
  371.   padding: .5rem .7rem;
  372.   margin-right: .1rem;
  373.   box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  374.   cursor: pointer;
  375.   background-color: #fff;
  376.   text-align: center;
  377. }
  378.  
  379. .control .widget i {
  380.   font-size: 2rem;
  381.   animation: spin 2s linear infinite;
  382.   color: #000;
  383. }
  384.  
  385. .control .colors {
  386.   background-color: #fff;
  387.   padding: 1rem .8rem;
  388.   box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  389. }
  390.  
  391. .control .colors span {
  392.   display: block;
  393.   width: 1.9rem;
  394.   height: 1.9rem;
  395.   padding: .7rem;
  396.   border-radius: 50%;
  397.   box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  398.   cursor: pointer;
  399. }
  400.  
  401. .control .colors span:not(:last-child) {
  402.   margin-bottom: .7rem;
  403. }
  404.  
  405. .control .colors span:nth-child(1) {
  406.   background-color: var(--blue);
  407. }
  408.  
  409. .control .colors span:nth-child(2) {
  410.   background-color: var(--orange);
  411. }
  412.  
  413. .control .colors span:nth-child(3) {
  414.   background-color: var(--purple);
  415. }
  416.  
  417. .control .colors span:nth-child(4) {
  418.   background-color: var(--cyan);
  419. }
  420.  
  421. /* About */
  422.  
  423. .section {
  424.   padding: 5rem 0 7rem 0;
  425.   overflow-x: hidden;
  426. }
  427.  
  428. .about {
  429.   margin-top: 5rem;
  430. }
  431.  
  432. .about-center {
  433.   display: grid;
  434.   grid-template-columns: 1fr 1.5fr;
  435.   gap: 3rem 5rem;
  436. }
  437.  
  438. .title {
  439.   margin: 4rem 0 7rem 0;
  440.   text-align: center;
  441. }
  442.  
  443. .title h1 {
  444.   font-size: 3rem;
  445.   display: inline-block;
  446.   position: relative;
  447.   z-index: 0;
  448. }
  449.  
  450. .title h1::after {
  451.   content: "";
  452.   position: absolute;
  453.   left: 50%;
  454.   bottom: -20%;
  455.   transform: translate(-50%, -50%);
  456.   /* background-color: var(--customColor); */
  457.   width: 50%;
  458.   height: 0.4rem;
  459.   z-index: 1;
  460. }
  461.  
  462. .left img {
  463.   height: 40rem;
  464.   max-width: 35rem;
  465.   object-fit: cover;
  466. }
  467.  
  468. .right h1 {
  469.   margin-bottom: 2rem;
  470. }
  471.  
  472. .right p {
  473.   line-height: 2;
  474.   margin-bottom: 2rem;
  475.   color: #333;
  476. }
  477.  
  478. .right h1 span {
  479.   color: var(--customColor);
  480. }
  481.  
  482. a.btn {
  483.   display: inline-block;
  484.   padding: 1rem 2rem;
  485.   background: var(--customColor);
  486.   color: #fff;
  487.   border-radius: 0.5rem;
  488.   border: 2px solid var(--customColor);
  489.   box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  490.   transition: all 300ms ease-in-out;
  491. }
  492.  
  493. a.btn:hover {
  494.   transform: translateY(-3px);
  495.   background-color: transparent;
  496.   color: inherit;
  497. }
  498.  
  499. a.btn:active {
  500.   transform: translateY(0px);
  501. }
  502.  
  503. @media only screen and (max-width: 996px) {
  504.   .right h1 {
  505.     font-size: 2rem;
  506.   }
  507.  
  508.   .right p {
  509.     font-size: 1.5rem;
  510.   }
  511.  
  512.   a.btn {
  513.     padding: 0.7rem 1.8rem;
  514.   }
  515.  
  516.   .left img {
  517.     height: 40rem;
  518.     max-width: 25rem;
  519.   }
  520. }
  521.  
  522. @media only screen and (max-width: 768px) {
  523.   .about-center {
  524.     grid-template-columns: 1fr;
  525.     gap: 3rem 0rem;
  526.   }
  527.  
  528.   .left {
  529.     text-align: center;
  530.   }
  531.  
  532.   .left img {
  533.     height: 40rem;
  534.     max-width: 90%;
  535.   }
  536. }
  537.  
  538. /* Services */
  539. .theme {
  540.   background-color: #000;
  541. }
  542.  
  543. .theme .title {
  544.   color: #fff;
  545. }
  546.  
  547. .services-center {
  548.   display: grid;
  549.   grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  550.   gap: 3rem;
  551. }
  552.  
  553. .service {
  554.   color: #fff;
  555.   background-color: #111;
  556.   padding: 2rem;
  557.   text-align: center;
  558.   border-radius: 1rem;
  559.   transition: all 300ms ease-in-out;
  560. }
  561.  
  562. .service span {
  563.   color: var(--customColor);
  564.   font-size: 4rem;
  565.   transition: all 300ms ease-in-out;
  566. }
  567.  
  568. .service h2 {
  569.   font-size: 1.8rem;
  570.   margin-bottom: 1rem;
  571. }
  572.  
  573. .service p {
  574.   font-size: 1.4rem;
  575.   color: #f1f1f1;
  576. }
  577.  
  578. .service:hover {
  579.   background-color: var(--customColor);
  580. }
  581.  
  582. .service:hover span {
  583.   color: #fff;
  584. }
  585.  
  586. /* Skills */
  587.  
  588. .skills-box:not(:last-child) {
  589.   margin-bottom: 2rem;
  590. }
  591.  
  592. .skills-box h4 {
  593.   font-size: 1.8rem;
  594.   color: #888;
  595.   font-size: 500;
  596. }
  597.  
  598. .skills-box .skills-ilt {
  599.   width: 100%;
  600.   position: relative;
  601.   height: 0.4rem;
  602.   background-color: #ccc;
  603.   border-radius: 0.5rem;
  604. }
  605.  
  606. .skills-box .skills-bar {
  607.   background-color: var(--customColor);
  608.   height: 0.4rem;
  609. }
  610.  
  611. .skills-box .html {
  612.   width: 95%;
  613. }
  614.  
  615. .skills-box .css {
  616.   width: 85%;
  617. }
  618.  
  619. .skills-box .javascript {
  620.   width: 90%;
  621. }
  622.  
  623. .skills-box .nodejs {
  624.   width: 80%;
  625. }
  626.  
  627. .skills-box .mongodb {
  628.   width: 95%;
  629. }
  630.  
  631. .skills-box span {
  632.   position: absolute;
  633.   bottom: 10%;
  634.   right: 0;
  635.   font-size: 1.4rem;
  636. }
  637.  
  638. .skills-center {
  639.   display: grid;
  640.   grid-template-columns: 1fr 1fr;
  641.   gap: 6rem;
  642. }
  643.  
  644. .right h3 {
  645.   margin-bottom: 1rem;
  646. }
  647.  
  648. .right p {
  649.   margin-bottom: 2rem;
  650. }
  651.  
  652. @media only screen and (max-width: 768px) {
  653.   .skills-center {
  654.     grid-template-columns: 1fr;
  655.   }
  656. }
  657.  
  658. /* Teams */
  659. .team {
  660.   color: #fff;
  661.   background-color: #111;
  662.   padding: 3rem;
  663.   text-align: center;
  664.   border-radius: 1rem;
  665.   border-bottom: 4px solid transparent;
  666.   transition: all 300ms ease-in-out;
  667. }
  668.  
  669. .team .img-cover {
  670.   overflow: hidden;
  671.   border-radius: 100%;
  672.   border: 4px solid var(--customColor);
  673.   height: 13rem;
  674.   width: 13rem;
  675.   margin: 0 auto;
  676.   transition: all 300ms ease-in-out;
  677. }
  678.  
  679. .team .img-cover img {
  680.   height: 100%;
  681.   object-fit: cover;
  682. }
  683.  
  684. .team h3 {
  685.   font-size: 1.6rem;
  686.   margin: 1rem 0;
  687. }
  688.  
  689. .team p {
  690.   font-size: 1.5rem;
  691.   color: #ccc;
  692.   width: 80%;
  693.   margin: 0 auto 1rem auto;
  694. }
  695.  
  696. .team:hover {
  697.   border-bottom: 4px solid #fff;
  698.   background-color: var(--customColor);
  699. }
  700.  
  701. .team:hover .img-cover {
  702.   border-color: #fff;
  703. }
  704.  
  705. /* Contact */
  706. .contact-center {
  707.   display: grid;
  708.   grid-template-columns: 1fr 1fr;
  709.   gap: 3rem;
  710. }
  711.  
  712. .left h2 {
  713.   font-size: 2rem;
  714. }
  715.  
  716. .left p {
  717.   font-size: 1.5rem;
  718.   margin-bottom: 2rem;
  719. }
  720.  
  721. .left div {
  722.   display: flex;
  723.   align-items: center;
  724.   margin-bottom: 1.5rem;
  725. }
  726.  
  727. .left div .content {
  728.   text-align: left;
  729. }
  730.  
  731. .left .icon {
  732.   margin-right: 2rem;
  733.   font-size: 2.3rem;
  734.   color: var(--customColor);
  735. }
  736.  
  737. .form h2 {
  738.   font-size: 2rem;
  739.   margin-bottom: 1rem;
  740. }
  741.  
  742. .form input,
  743. .form textarea {
  744.   font-family: "Poppins", sans-serif;
  745.   font-size: 1.6rem;
  746.   padding: 1rem 0;
  747.   text-indent: 1rem;
  748.   border: 1px solid #ccc;
  749.   border-radius: 0.5rem;
  750.   margin-bottom: 1rem;
  751.   width: 100%;
  752.   outline: none;
  753. }
  754.  
  755. .form .right div {
  756.   display: flex;
  757. }
  758.  
  759. .form .right div input {
  760.   flex: 1 1 50%;
  761. }
  762.  
  763. .form textarea {
  764.   width: 100%;
  765.   resize: vertical;
  766.   margin-bottom: 3rem;
  767. }
  768.  
  769. @media only screen and (max-width: 768px) {
  770.   .contact-center {
  771.     grid-template-columns: 1fr;
  772.   }
  773.  
  774.   .contact-center .left {
  775.     text-align: left;
  776.   }
  777.  
  778.   .left div .content h3 {
  779.     font-size: 1.6rem;
  780.   }
  781.  
  782.   .left div .content span {
  783.     font-size: 1.5rem;
  784.   }
  785. }
  786.  
  787. footer {
  788.   background-color: #000;
  789.   padding: 1.6rem 1rem;
  790.   text-align: center;
  791. }
  792.  
  793. footer p {
  794.   color: #fff;
  795. }
  796.  
  797. footer p span {
  798.   color: var(--customColor);
  799. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement