<!-- Start Navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">MAZ</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li class="active"><a href="#" data-value="home">Home</a></li>
                    <li><a href="#" data-value="about">About</a></li>
                    <li><a href="#" data-value="portfolio">Portfolio</a></li>
                    <li><a href="#" data-value="contact">Contact</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <!-- End Navbar -->
    <!-- Start Home Section -->
    <section id="home" class="home text-center">
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <div class="home-info">
                        <h1>Hi Web Designers</h1>
                        <p>We Coding Websites Using HTML, CSS, Javascript.</p>
                        <button class="btn btn-primary btn-lg" href="#" data-value="about" role="button">Learn more</button>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- End Home Section -->
    <!-- Start About Section -->
    <section id="about" class="about">
        <div class="container">
            <h2 class="heading">Who i am:</h2>
            <div class="row">
                <div class="col-sm-7 text-center info">
                    <p class="lead">Front-End Developer and UX/UI designer, with practical experience in project management, branding strategy, and creative direction; devoted to functional programming and information architecture.</p>
                    <span>Front-End Developer - Graphic Designer</span>
                </div>
                <div class="col-sm-5 img"><img src="https://res.cloudinary.com/dgcqqzsro/image/upload/v1482353973/me_ptemi6.png" alt="avatar" /></div>
            </div>
        </div>
    </section>
    <!-- End About Section -->
    <!-- Start Portfolio Section -->
    <section id="portfolio" class="portfolio">
        <div class="container">
            <h2 class="heading">What i made:</h2>
            <div class="row">
                <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                    <div class="carousel-inner" role="listbox">
                        <div class="item active">
                            <img src="https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354510/1-thump_tf6wlw.gif" alt="gallery-item" />
                        </div>
                        <div class="item">
                            <img src="https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354523/2-thump_x7wbgj.gif" />
                        </div>
                        <div class="item">
                            <img src="https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354534/3-thump_lf5uip.gif" />
                        </div>
                        <div class="item">
                            <img src="https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354548/4-thump_mlld9o.gif" alt="gallery-item" />
                        </div>
                    </div>
                    <a class="carousel-left control" href="#carousel-example-generic" role="button" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                        <span class="sr-only">Previous</span>
                    </a>
                    <a class="carousel-right control" href="#carousel-example-generic" role="button" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                        <span class="sr-only">Next</span>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <!-- End Portfolio Section -->
    <!-- Start Contact Section -->
    <section id="contact" class="contact">
        <div class="container">
            <h2 class="heading">Contact Me:</h2>
            <form method="post" id="cform" autocomplete="on">
                <div class="row">
                    <div class="col-sm-3 col-sm-push-2">
                        <input type="text" id="name" name="name" placeholder="Name:" />
                    </div>
                    <div class="col-sm-3 col-sm-push-2">
                        <input type="email" id="email" name="email" placeholder="E-mail:" />
                    </div>
                    <div class="col-sm-3 col-sm-push-2">
                        <input type="tel" id="tel" name="tel" placeholder="Phone:" />
                    </div>

                    <div class="col-sm-9 col-sm-push-2">
                        <textarea id="message" name="message"></textarea>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-3 col-md-1 col-sm-push-2">
                        <input type="submit" value="SEND" name="send" />
                    </div>
                    <div class="col-xs-3 col-md-1 col-sm-push-2">
                        <input type="reset" value="RESET" name="reset" />
                    </div>
                </div>
            </form>
        </div>
    </section>
    <!-- End Contact Section -->
    <!-- Start Footer -->
    <footer class="text-center">
        <div class="upper">
            <div class="container">
                <div class="row">
                    <div class="col-xs-6">
                        <h2>ABOUT THIS PAGE</h2>
                        <h2>Made with <span class="glyphicon glyphicon-heart"></span> by <a href="#">Mostafa Zaki.</a></h2>
                    </div>
                    <div class="col-xs-6">
                        <h2>Keep In Touch</h2>
                        <ul>
                            <li><a href="https://twitter.com/mostafazke" title="Twitter"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="https://github.com/mostafazke" title="Facebook"><i class="fa fa-github"></i></a></li>
                            <li><a href="https://linkedin.com/mostafazke" title="Linkedin"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="https://googleplus.com/mostafazke" title="Google plus"><i class="fa fa-google-plus"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <h2>All Rights Reserved - <a href="https://www.freecodecamp.com">Free Code Camp</a></h2>
                </div>
            </div>
        </div>
    </footer>
    <!-- backToTop Link -->
    <button class="scroll trans" data-value="home">&gt;</i>
    </button>
    <!-- End Footer -->
/* Start Global Style */

.heading {
    position: relative;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 27px;
    font-weight: 300;
    margin: 0 0 27px
}

.heading:after {
    background-color: #fff;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 40px;
    width: 55px
}

.scroll {
    position: fixed;
    bottom: 15px;
    right: -60px;
    width: 42px;
    height: 42px;
    line-height: 21px;
    border: 2px solid #4385f5;
    background-color: #4385f5;
    font-size: 38px;
    z-index: 9999;
    color: #fff;
    transition: all .3s ease-in-out;
    transform: rotate(-90deg)
}

.scroll:hover {
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4385f5;
}


/* End Global Style */


/* Start Navbar */

.navbar {
    background-color: transparent;
    border: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all .5s ease-in-out
}

.navbar li a {
    color: #fff !important;
    margin-left: 10px;
    font-size: 20px
}

.navbar .navbar-brand {
    color: #fff;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 24px;
    transition: all .5s ease-in-out
}

.navbar .navbar-brand:hover {
    color: #fff;
}

.navbar li:nth-child(1) a {
    background: #4385f5 !important;
}

.navbar li:nth-child(1) a:hover,
.navbar li:nth-child(1).active a {
    color: #376ecc !important;
}

.navbar li:nth-child(2) a {
    background: #dc4437 !important;
}

.navbar li:nth-child(2) a:hover,
.navbar li:nth-child(2).active a {
    color: #ad2f26 !important;
}

.navbar li:nth-child(3) a {
    background: #fcbe1f !important;
}

.navbar li:nth-child(3) a:hover,
.navbar li:nth-child(3).active a {
    color: #cc8916 !important;
}

.navbar li:nth-child(4) a {
    background: #109d59 !important;
}

.navbar li:nth-child(4) a:hover,
.navbar li:nth-child(4).active a {
    color: #1f6e3e !important;
}


/* End Navbar */


/* Start Home Section */

.home {
    background-image: url(https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354517/home-bg_e76hkv.jpg);
    background-size: cover;
    color: #eee;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    width: 100%
}

.home .home-info {
    margin-top: 50%;
    transform: translateY(-50%)
}

.home .home-info p {
    margin-top: 20px;
    margin-bottom: 50px;
}

.home .home-info button {
    background-color: #4385f5;
    color: #fff;
    border: 0;
    transition: all .3s ease-in-out
}

.home .home-info button:hover {
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}


/* End Home Section */


/* Start About Section */

.about {
    padding-top: 50px;
    background-color: #7f8c8d;
    color: #fff
}

.about .info span {
    color: #dc4437
}

.about .img {
    height: 200px;
    width: 200px;
    float: right;
    margin-top: 10px
}

.about .img img {
    height: 100%;
    width: 100%
}


/* End About Section */


/* Start Portfolio */

.portfolio {
    padding: 50px 0;
    background-color: #fff;
}

.portfolio .heading {
    color: #2c3e50
}

.portfolio .heading:after {
    background-color: #2c3e50
}

.portfolio .carousel-inner {
    background: url(https://res.cloudinary.com/dgcqqzsro/image/upload/v1482354378/screen-graphics_o26rrh.png) no-repeat;
    background-size: 100% 100%;
}

.portfolio .carousel-inner .item {
    margin: 0 auto;
}

.portfolio .carousel-inner .item img {
    width: 78%;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 10%;
}

.control {
    position: absolute;
    bottom: 11%;
    right: 20%;
    color: #fff
}

.control:hover {
    color: #fcbe1f;
}

.control:focus {
    color: #fcbe1f;
    text-decoration: none;
}

.carousel-right {
    right: 17%;
}
/* End Portfolio */

/* Start Contact */
.contact {
    background-color: #34495e;
    min-height: 600px;
    padding: 50px 0;
    position: relative
}

.contact input[placeholder] {
    background: none;
    border: 1px solid #109d59;
    border-radius: 5px;
    color: #fff;
    margin-top: 50px;
    padding: 10px;
    width: 100%;
}

.contact textarea {
    background: none;
    border-color: #109d59;
    border-radius: 5px;
    color: #fff;
    height: 300px;
    margin-top: 15px;
    padding: 10px;
    resize: none;
    width: 100%;
}

.contact input[value] {
    background-color: #109d59;
    border: 0;
    color: #fff;
    margin-top: 10px;
    padding: 10px
}

.contact input[value="RESET"] {
    background-color: #dc4437
}


/* End Contact */


/* Start Footer */

footer {
    background-color: #000;
}

footer .upper {
    background-color: #bdc3c7;
    padding: 20px 0
}

footer h2 {
    color: #fff;
    font-size: 18px
}

footer .upper h2 {
    color: #2c3e50;
}

footer a {
    color: #2980b9;
    font-size: 18px
}

footer h2 span {
    color: #BA3A39
}

footer ul {
    margin: 20px 0 10px;
    padding: 0
}

footer ul li {
    display: inline-block;
    margin-right: 10px;
    list-style: none
}

footer ul li a:hover {
    color: #fff
}


/* End Footer */
/*global $, alert, console*/
$(function () {
    'use strict';
  
    // nav animate
    $('.navbar .nav li a').click(function () {
        $(this).parent().addClass('active').siblings().removeClass('active');
        if ($(this).data() !== '') {
            $('html, body').animate({
                scrollTop: $('#' + $(this).data('value')).offset().top - 70
            }, 1000);
        }
    });
    $('.home-info button, .scroll').click(function () {
            $('html, body').animate({
                scrollTop: $('#' + $(this).data('value')).offset().top - 70
            }, 1000)
    });
    $(window).scroll(function () {
        if ($(this).scrollTop() > 50) {
            $(".navbar").css("background", "#ecf0f1");
            $(".navbar-brand").css("color", "#2c3e50");
        } else {
            $(".navbar").css("background", "transparent");
            $(".navbar-brand").css("color", "#ecf0f1");
        }
        if ($(this).scrollTop() >= $('#home').offset().top - 70) {
            $('.navbar .nav li:nth-child(1)').addClass('active').siblings().removeClass('active');
        }
        if ($(this).scrollTop() >= $('#about').offset().top - 70) {
            $('.navbar .nav li:nth-child(2)').addClass('active').siblings().removeClass('active');
        }
        if ($(this).scrollTop() >= $('#portfolio').offset().top - 70) {
            $('.navbar .nav li:nth-child(3)').addClass('active').siblings().removeClass('active');
        }
        if ($(this).scrollTop() >= $('#contact').offset().top - 70) {
            $('.navbar .nav li:nth-child(4)').addClass('active').siblings().removeClass('active');
        }
    });
    
    // Go up
    $(window).scroll(function () {
        if ($(this).scrollTop() > 100) {
            $(".scroll").css("right", "20px");
        } else {
            $(".scroll").css("right", "-60px");
        }
    });
    
});

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css
  2. https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js