@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);
@import 'https://fonts.googleapis.com/css?family=Fauna+One';

/*---------- Global Style ----------*/

body {
    color: #222;
    font-family: 'Fauna One', serif;
    font-size: 17px;
    line-height: 1.8 !important;
}

html {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 200;
    color: #111;
    line-height: 1.5em;
    margin-top: 0;
}

p {
    font-family: 'Fauna One', serif;
    font-weight: 300;
    margin-top: 1px;
}

p,
ul,
li {
    color: #666;
}

section {
    padding-top: 185px;
    padding-bottom: 185px;
}

.no-gutter {
    padding-right: 0;
    padding-left: 0;
}

a,
a:link {
    color: #666;
}

a:hover,
a:focus,
a:visited {
    color: #666;
    text-decoration: none;
}

.vcenter {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.fill {
    height: 100vh;
}

.margin-top-05 {
    margin-top: 0.5em;
}

.margin-top-10 {
    margin-top: 1.0em;
}

.margin-top-15 {
    margin-top: 1.5em;
}

.margin-top-20 {
    margin-top: 2.0em;
}

.margin-top-25 {
    margin-top: 2.5em;
}

.margin-top-30 {
    margin-top: 3.0em;
}

.margin-top-35 {
    margin-top: 3.5em;
}

.margin-top-40 {
    margin-top: 4.0em;
}

.margin-top-45 {
    margin-top: 4.5em;
}

/*---------- Navbar ----------*/

.nav {
    position: relative;
    width: auto;
    display: inline-block;
    border: none;
    float: right;
    z-index: 99999;
}

.navbar-fixed-top {
    padding-top: 10px;
}

.navbar-brand {
    padding-top: 25px;
}

.navbar-brand>img {
    max-width: 127px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .navbar-brand {
        padding-left: 0px;
    }
}

.navbar-default {
    background-color: transparent;
    border-color: transparent;
}

.navbar-default.color-fill {
    background-color: #fff;
    border-color: transparent;
}

.btn-nav {
    background: transparent;
    border: none;
    padding: 15px;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -ms-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    cursor: pointer;
    z-index: 99999;
}

@media (max-width: 768px) {
    .btn-nav {
        padding: 15px 0;
    }
}

.btn-nav:focus {
    outline: 0;
}

.icon-bar {
    display: block;
    margin: 6px 0;
    width: 30px;
    height: 3px;
    background-color: #222;
}

.icon-bar.inverted {
    background-color: #fff;
}

@media (max-width: 992px) {
    .icon-bar.inverted {
        background-color: #222;
    }
}

.opaque {
    background-color: #fff !important;
}

.btn-nav:hover .icon-bar {
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    background-color: #555;
}

.nav-content {
    position: fixed;
    top: -100%;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
    display: block;
    height: 100%;
    z-index: 9;
}

.nav-list {
    list-style: none;
    padding: 0;
    position: relative;
}

.item-anchor {
    color: #fff;
    font-size: 30px;
    font-weight: 100;
    position: relative;
    text-decoration: none;
    padding: 10px;
}

.item-anchor:hover,
.item-anchor:focus {
    color: #ffffff;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.item-anchor:hover:after,
.item-anchor:focus:after {
    width: 100%;
    background: #f7f7f7;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.nav-item {
    font-family: 'Open Sans', sans-serif;
    margin: 10px auto;
    text-align: center;
    color: #222;
}

.nav-item a:link,
.nav-item a:hover,
.nav-item a:focus {
    color: #222;
}

.nav-item a:hover,
.nav-item a:focus {
    border-bottom: 2px solid #222;
}

.animated {
    display: block;
    margin: 0 auto;
}

.animated:hover .icon-bar,
.animated:focus .icon-bar {
    background-color: #fff;
}

.animated:focus {
    cursor: pointer;
    z-index: 9999;
}

.middle {
    margin: 0 auto;
}

.icon-bar {
    -webkit-transition: all .7s ease;
    -moz-transition: all .7s ease;
    -ms-transition: all .7s ease;
    -o-transition: all .7s ease;
    transition: all .7s ease;
    z-index: 999999;
}

.animated .icon-bar {
    z-index: 999999;
    background-color: #222 !important;
}

.animated .top {
    -webkit-transform: translateY(7px) rotateZ(45deg);
    -moz-transform: translateY(7px) rotateZ(45deg);
    -ms-transform: translateY(7px) rotateZ(45deg);
    -o-transform: translateY(7px) rotateZ(45deg);
    transform: translateY(7px) rotateZ(45deg);
}

.animated .bottom {
    -webkit-transform: translateY(-11px) rotateZ(-45deg);
    -moz-transform: translateY(-11px) rotateZ(-45deg);
    -ms-transform: translateY(-11px) rotateZ(-45deg);
    -o-transform: translateY(-11px) rotateZ(-45deg);
    transform: translateY(-11px) rotateZ(-45deg);
}

.animated .middle {
    width: 0;
}

@keyframes showNav {
    from {
        top: -100%;
    }

    to {
        top: 0;
    }
}

@-webkit-keyframes showNav {
    from {
        top: -100%;
    }

    to {
        top: 0;
    }
}

@-moz-keyframes showNav {
    from {
        top: -100%;
    }

    to {
        top: 0;
    }
}

@-o-keyframes showNav {
    from {
        top: -100%;
    }

    to {
        top: 0;
    }
}

.showNav {
    -webkit-animation: showNav 1s ease forwards;
    -moz-animation: showNav 1s ease forwards;
    -o-animation: showNav 1s ease forwards;
    animation: showNav 1s ease forwards;
}

@keyframes hideNav {
    from {
        top: 0;
    }

    to {
        top: -100%;
    }
}

@-webkit-keyframes hideNav {
    from {
        top: 0;
    }

    to {
        top: -100%;
    }
}

@-moz-keyframes hideNav {
    from {
        top: 0;
    }

    to {
        top: -100%;
    }
}

@-o-keyframes hideNav {
    from {
        top: 0;
    }

    to {
        top: -100%;
    }
}

.hideNav {
    -webkit-animation: hideNav 1s ease forwards;
    -moz-animation: hideNav 1s ease forwards;
    -o-animation: hideNav 1s ease forwards;
    animation: hideNav 1s ease forwards;
}

.hidden {
    display: none;
}

/*---------- Menu Icon Animation ----------*/

.navbar-toggle * {
    -ms-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.navbar-toggle {
    border: medium none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    height: 50px;
    padding: 16px;
    width: 50px;
    float: right;
    margin-top: 0px;
    margin-bottom: 0px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #fff;
}

.navbar-default .navbar-toggle,
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
    border-color: #fff;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: #222;
    display: block;
}

.navbar-toggle span.bar1 {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    -ms-transform-origin: 1px 3px;
    -webkit-transform-origin: 1px 3px;
    -moz-transform-origin: 1px 3px;
    -o-transform-origin: 1px 3px;
    transform-origin: 1px 3px;
    width: 31px;
}

.navbar-toggle span.bar2 {
    -ms-transform: rotate(-360deg) scale(0);
    -webkit-transform: rotate(-360deg) scale(0);
    -moz-transform: rotate(-360deg) scale(0);
    -o-transform: rotate(-360deg) scale(0);
    transform: rotate(-360deg) scale(0);
}

.navbar-toggle span.bar3 {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -ms-transform-origin: 8px 2px;
    -webkit-transform-origin: 8px 2px;
    transform-origin: 8px 2px;
    width: 31px;
}

.navbar-toggle.collapsed span.bar1,
.navbar-toggle.collapsed span.bar2,
.navbar-toggle.collapsed span.bar3,
.navbar-toggle.collapsed span.bar4 {
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
    width: 30px;
}

/*---------- Header ----------*/

#header {
    height: 50%;
    margin: 0 auto;
    position: relative;
    color: #fff;
    text-align: center;
    background-size: cover;
}

#headslide {
    position: relative;
}

#headslide .img-responsive,
#headslide .thumbnail>img,
#headslide .thumbnail a>img,
#headslide .carousel-inner>.item>img,
#headslide .carousel-inner>.item>a>img {
    height: 100vh;
    max-width: none;
    object-fit: cover;
    width: 100%;
}

#header h1,
#header p {
    color: #fff;
}

#header h1 {
    font-size: 3.5em;
}

#header p {
    font-size: 1.5em;
}

/*---------- Portfolio ----------*/

#portfolio {
    padding-top: 185px;
}

.background-image-holder {
    background-attachment: scroll;
    background-clip: border-box;
    background-origin: padding-box;
    background-position: 50% 50% !important;
    background-repeat: repeat;
    background-size: cover !important;
    height: 100%;
    left: 0;
    top: 0;
    transition: all 0.3s ease 0s;
    width: 100%;
    z-index: 1;
}

.background-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.square-thumbs li {
    height: 285px;
}

.lightbox-grid li {
    padding: 8px;
    float: left;
    opacity: 1;
    transition: all 0.3s ease 0s;
}

@media (max-width: 992px) {
    .lightbox-grid li {
        padding: 8px 0;
    }
}

.lightbox-grid,
.lightbox-grid ul,
.lightbox-grid li {
    overflow: hidden;
    position: relative;
}

.portfolio-sorting {
    padding-left: 15px;
    font-family: 'Open Sans', sans-serif;
}

.portfolio-sorting li a:hover,
.portfolio-sorting li a.active {
    border-bottom: 2px solid #222;
}

.portfolio-item {
    margin-bottom: 30px;
}

.item {
    height: 100vh;
}

.item img {
    width: 100%;
    height: 100vh !important;
    object-fit: cover;
}



.education-section {
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.education-section h2 {
    font-size: 28px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;


}

.education-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fafafa;
}

.education-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0056b3;
    font-weight: 600;
}

.education-item p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

.education-item p strong {
    color: #333;
}

/* Add Hover Effect */
.education-item:hover {
    background-color: #f0f8ff;
    border-color: #0056b3;
    transition: all 0.3s ease-in-out;
}

.experience-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.experience-section h2 {
    font-size: 28px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;

}

/* Timeline Styles */
#timeline-container {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #0056b3;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
}

.timeline-item h3 {
    font-size: 20px;
    color: #0056b3;
    margin-bottom: 10px;
}

.timeline-item .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.timeline-item .meta span {
    display: inline-block;
    margin-right: 10px;
}

.timeline-item p {
    margin: 0;
    color: #444;
}

.timeline-item ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.timeline-item ul li {
    margin-bottom: 5px;
    color: #555;
}

.timeline-item .details {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.timeline-item:hover .details {
    background: #f0f8ff;
    border-color: #0056b3;
    transform: scale(1.02);
}



/* Skills Section */
.skills-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.skills-section h2 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Skill Card */
.skill-card {
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-card h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

.skill-card p {
    font-size: 16px;
    color: #666;
}

.skill-icon {
    font-size: 40px;
    color: #0056b3;
    margin-bottom: 10px;
}



/* Profile Section */
.profile-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    text-align: center;
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Left and Right Parts */
.profile-part {
    flex: 1;
    min-width: 300px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-part:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.profile-part h3 {
    font-size: 22px;
    color: #0056b3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-part ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-part ul li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.profile-part ul li strong {
    color: #333;
}

.profile-part ul li i {
    margin-right: 5px;
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
}

/* About Section */
.about-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    /* Adjusted padding for better spacing */
    margin: 30px auto;
    max-width: 1200px;
    /* Ensures the section doesn’t exceed this width */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    /* Ensures long words break properly */
    word-break: break-word;
    /* For better support across browsers */
    overflow: hidden;
    /* Hides any potential overflow */
}

/* Header */
.about-header h1 {
    text-align: center;
    font-size: 28px;
    /* Reduced font size to ensure fit */
    color: #0056b3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content */
.about-content {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    /* Reduced font size for better fit */
    color: #555;
    margin: 0 10px;
    /* Adjusted margin for smaller viewports */
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Hover Effect on Section */
.about-section:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.about-section h2 {
    font-size: 28px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;

}



.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    /* Dark background */
    color: #ffffff;
    /* White icon */
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
    background-color: #ffffff;
    /* Lighter shade on hover */
}



/* Projects Section */




.projects-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.projects-section h2 {
    font-size: 28px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;


}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
    text-align: left;
}

.project-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0056b3;
}

.project-content p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.project-links a {
    text-decoration: none;
    font-size: 16px;
    color: #0056b3;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #003f7f;
}

/* Sorting Bar */
.portfolio-sorting {
    margin-bottom: 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

.portfolio-sorting a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.portfolio-sorting a.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.portfolio-sorting a:hover {
    background-color: #007bff;
    color: white;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}