/*-----------------
    basic rules
-----------------*/
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    transition:all .2s ease-in-out;
}
.nicescroll-cursors{
    transition:none;
}
a,a:hover,a:active,a:focus{
    text-decoration: none;
    border:none;
    color:inherit;
}
body{
    width:80%;
    margin:auto;
    font-family: Tahoma;
    padding:40px 0;
    color:#444;
    overflow-x: hidden;
}
ul{
    list-style: none;
}
html{
    background:url("../images/bg.png");
}
.clear{
    clear:both;
}
h1,h2{
    font-size:50px;
}
h2{
    color:#aaa;
    margin-bottom: 50px;
}
p{
    line-height: 1.3;
}
h4{
    margin-bottom:30px;
}
/*---------------
    header
---------------*/
header h1{
    width:60px;
    line-height: .8;
}
.containexr h2{
    width:60px;
    line-height: .8;
    margin-bottom:70px;
    display: inline-block;
}
header, h2, h4{
    text-transform: uppercase;
}
header li:last-of-type .ico{
    padding:10px 6px;
}
header nav{
    float:right;
}
header ul li{
    float:left;
    margin-left:10px;
}
header li:nth-of-type(3) .ico div:not(.ico-top){
    line-height:normal;
    margin:5px auto;
}
header li:first-of-type .ico{
    color:white;
}


.ico .ico-top{
    position: absolute;
    right:0;
    top:0;
    border-top:15px solid #aaa;
    border-right:15px solid #aaa;
    border-bottom:15px solid transparent;    
    border-left:15px solid transparent;
    content:"";
    height:0;
    width:0;    
}
.ico{
    position: relative;
    background:#aaa;
    border-radius: 50%;
    text-align: center;
    width:60px;
    height:60px;
    padding:10px;
}
.ico div{
    width:40px;
    height:40px;
    line-height: 40px;
    font-size:12px;
}
.ico:hover{
    color:white;
}

/*End Header*/
section{
    width:50%;
    margin-bottom:50px;
}
.welcome, .carousel, .skills{
    float:right;
}
.work, .about, .contact{
    float:left;
    padding-right:40px;
}
/*About Section*/
.about{
    margin-top:35px;
}
/*Welcome Section*/
.welcome{
    margin-top:32px;
}
.welcome p:first-of-type, .about p:first-of-type{
    margin-bottom:30px;
}
/*Work Section*/
.work h2::after{
    content:"Sorry, Only the first two links are available to preview.";
    font-size:10px;
    margin-left:10px;
    text-transform: capitalize;
    letter-spacing: 1px;
    color:red;
}
.work h4{
    margin-bottom:20px;
}
.work li{
    margin-bottom:15px;
    text-indent:20px;
    background-image:
        linear-gradient(45deg, #444 50%, transparent 50%),linear-gradient(-45deg, transparent 50%, #444 50%);
    background-position:5px 7px, 5px 12px;
    background-repeat: no-repeat;
    background-size:5px 5px, 5px 5px;
    cursor: pointer;
}
/*Contact Section*/
.contact form{
    position: relative;
    margin-bottom:40px;
}
.contact h4{
    margin-bottom:30px;
}
.contact input{
    margin-bottom:20px;
    width:80%;
    padding:5px;
    border-radius: 3px;
    border:1px solid #CCC;
}
.contact textarea{
    width:80%;
    height:90px;
    resize: none;
    padding:5px;
    border-radius: 3px;
    border:1px solid #CCC;
}
.contact .ico{
    position: absolute;
    bottom:0;
    right:0;
    margin-left:20px;
    line-height: 40px;
    cursor: pointer;
}
.contact .contact-details>div{
    width:50%;
    float:left;
    margin-bottom: 15px;
    font-size:14px;
    min-width:220px;
}
.contact .contact-details>div div{
    height:4em;
    padding:10px
}
.contact .contact-details i{
    display:block;
    float:left;
    line-height: 56px;
}
.contact .contact-details>div div{
    float:right;
    width:calc(100% - 60px);
}
/*--------------------------
        Carousel Section
--------------------------*/
.carousel{
    height:400px;
    overflow: hidden;
    transition:all 1s ease-in-out;
    width:50%;
    margin-bottom:50px;
    position: relative;
}
.carousel > div{
    display:none;
}
.carousel .visit{
    position: absolute;
    top:10px;
    right:10px;
    z-index: 99999;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black;
}
.carousel .visit i {
    margin-right:3px;
}
.carousel .item{
    display:none;
    position: relative;
    width:100%;
    transition:none;
}
.carousel .item .caption {
    line-height: 400px;
    text-align: center;
    padding:10px 25px;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black;
    font-size:50px;
}
.carousel img{
    display:block;
    margin:auto;
    width:100%;
}
.carousel .active{
    display:block;
}
/*Indicators*/
.carousel .indicator {
    position: absolute;
    bottom:10px;
    left:50%;
    margin-left:-28px;
    z-index: 999;    
}
.carousel .indicator li{
    height:10px;
    width:10px;
    margin:0 2px;
    display:inline-block;
    border-radius: 1px;
    background:white;
    border:1px solid black;
    opacity:.5;
    cursor: pointer;
}
.carousel .indicator li:hover{
    opacity: 1;
}
/*controls*/
.carousel .right, .carousel .left{
    position: absolute;
    top:50%;
    text-shadow:1px 1px 1px black, -1px 1px 1px black, -1px -1px 1px black, 1px -1px 1px  black;
    z-index:999;
    opacity:.5;
    cursor: pointer;
}
.carousel .right{
    right:5px;
}
.carousel .left{
    left:5px;
}
.carousel .right:hover, .carousel .left:hover{
    opacity: 1;
}
.carousel .theatre~.right, .carousel .theatre~.left, .carousel .theatre .indicator{
    position: fixed;
    z-index:99999;
}
/*theatre mode start*/
.theatre{
    position: fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    left:0;
    top:0;
    padding:20px 50px 0;
    z-index: 999;
    overflow-y: scroll;
    overflow-x: hidden;
}
.theatre img{
    display:block;
    width:100%;
}
.theatre .visit{
    position: fixed;
    top:50px;
    text-shadow: 1px 1px 1px rgba(0,0,0,.5), -1px 1px 1px rgba(0,0,0,.5), 1px -1px 1px rgba(0,0,0,.5), -1px -1px 1px rgba(0,0,0,.5);
}
.carousel .close{
    position: fixed;
    right:10px;
    top:15px;
    z-index: 9999;
    cursor: pointer;
    display: none;
    color:white;
}
/*theatre mode end*/
.carousel+.clear{
    clear:left;
}
/*Skills Section*/
.skills{
    height:570px;
}
.skills .chart{
    border-top:1px solid #ccc;
    border-left:1px solid #ccc;
    padding-top:20px;    
}
.skills .chart div{
    background:#ddd;
    height:50px;
    margin-bottom:20px;
}
.skills .chart div>span{
    display:block;
    height:100%;
    text-indent: 15px;
    line-height: 50px;
    background:#aaa;
    position: relative;
}
.skills .chart span span{
    position: absolute;
    right:15px;
    color:white;
}
.skills .chart div:nth-of-type(2n){
    color:white;
}
/*Help Section*/
.help{
    width: 100%;
    margin-bottom:60px;
}
.help h2{
    text-align: center;
}
.help>div{
    width:700px;
    margin:auto;
}
.help .img{
    width:200px;
    height:200px;
    float:left;
    margin-right:40px;
    position: relative;
}
.help .img div{
    width:200px;
    height:200px;
    position:absolute;
}
.help .img1{
    background:white;
    box-shadow:1px 1px 1px 1px #ccc, 1px -1px 1px 1px #ccc, -1px 1px 1px 1px #ccc, -1px -1px 1px 1px #ccc;
    transform:rotate(10deg);
}
.help .img2{
    background:white;
    box-shadow:1px 1px 1px 1px #ccc, 1px -1px 1px 1px #ccc, -1px 1px 1px 1px #ccc, -1px -1px 1px 1px #ccc;
    transform:rotate(-10deg);
}
.help .img3{
    background:url('../images/profile.jpg');
    background-position: center;
    box-shadow:1px 1px 1px 1px #444, 1px -1px 1px 1px #444, -1px 1px 1px 1px #444, -1px -1px 1px 1px #444;
    background-size:cover;
}
.help .img+div>ul {
    float:left;
    margin-left:20px;
}
.help .img+div li{
    margin-bottom:10px;
}
.help .img:hover .img1, .help .img:hover .img2{
    transform: rotate(360deg);
}
/*Back to Top*/
.ico.top{
    position: fixed;
    line-height: 40px;
    right:10px;
    bottom:90px;
    display:none;
    cursor: pointer;
}
/*Tool Box*/
.tools{
    position: absolute;
    top:40px;
    right:calc(50% - 21px);
}
.tools span{
    height:20px;
    width:20px;
    margin:1px;
    display: inline-block;
    border:1px solid black;
}
/*loading screen*/
.loading{
    position: fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index: 999999;
    background:rgba(255,255,255,.9);
    transition: all 1s ease-in-out;
}
.loading i{
    left:47%;
    top:43%;
    position: absolute;
    transition: all 1s ease-in-out;
}
/*Footer*/
.last{
    margin-top:20px;
    padding-top:30px;
    border-top:2px solid #aaa;
    text-align: center;
    font-size:12px;
}
.update{
    top:5px;
    right:5px;
    color:red;
    font-size:12px;
    position: absolute;
}
/*Media Queries*/
@media(max-width:1100px){
    h2{
        font-size:40px;
    }
}
@media(max-width:991px){
    .contact textarea, .contact input, .contact .ico{
        width:100% !important;
    }
    .contact .ico{
        border-radius: 25px;
        position: relative;
        margin-left:0;
        margin-top:20px;
    }
    .help>div{
        width:600px;
    }
    .help .img{
        margin-right:0;
    }
}
@media(max-width:768px){
    h2{
        margin-bottom:30px;
    }
    h4{
        margin-bottom:20px;
    }
    header ul li{
        float:none;
        margin-right:0;
        margin-bottom:10px;
    }
    section, .carousel{
        width:100%;
        float:none;
        margin-bottom:30px;
    }
    .welcome{
        margin-top:-70px;
    }
    .help>div{
        width:400px;
    }
    .help .img{
        float:none;
        margin:0 auto 40px;
    }
    .help .img+div{
        width:auto;
        margin:auto;
    }
    .tools{
        top:40px;
        right:10px;
    }
    .tools span{
        display: block;
        margin-right:0;
        margin-bottom:5px;
    }
    .help .img+div>ul {
        margin-left:80px;
    }
}