/*--
    Common CSS
--*/

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #E0E0E0; /* Light text color */
    background-color: #121212; /* Dark background */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    margin: 0;
    color: #FFFFFF; /* White headings */
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 18px;
}

h3 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
}

h4 {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 14px;
}

p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 15px 0;
    color: #CCCCCC; /* Light grey text */
}

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

a {
    color: #BB86FC; /* Accent color */
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #3700B3; /* Slightly darker on hover */
    text-decoration: none;
}

a:focus,
.btn:focus,
.btn:active:focus {
    box-shadow: none;
    outline: none;
}

.section {
    padding: 80px 0;
    background-color: #1E1E1E; /* Slightly lighter than body background */
}

/*--
    Custom Heading
--*/

.heading {
    text-align: center;
    color: #CCCCCC;
    padding-bottom: 50px;
}

.heading h2 {
    color: #FFFFFF;
    padding-bottom: 20px;
    text-transform: capitalize;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2;
}

.heading p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
    color: #B0B0B0;
}

.sub-heading {
    margin-bottom: 30px;
}

.sub-heading h3 {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.sub-heading h3 small {
    font-weight: 300;
}

.sub-heading h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.sub-heading > p {
    font-size: 16px;
    color: #B0B0B0;
}

.btn {
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

.btn-home {
    background-color: #BB86FC;
    border: none;
    color: #121212;
    margin-top: 30px;
}

.btn-home:hover,
.btn-home:focus {
    background-color: #3700B3;
    color: #FFFFFF;
}

.btn-border {
    border: 2px solid #BB86FC;
    background-color: transparent;
    color: #BB86FC;
    padding: 12px 30px;
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: none;
}

.btn-border:hover,
.btn-border:focus {
    background-color: #BB86FC;
    color: #121212;
}

/* Hover Effects */

.hover-right {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: #BB86FC;
    overflow: hidden;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.hover-right::before {
    content: "";
    position: absolute;
    background-color: #BB86FC;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    z-index: -1;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
}

.hover-right:hover,
.hover-right:focus {
    color: #121212;
}

.hover-right:hover::before,
.hover-right:focus::before {
    left: 0;
}

/* Preloader */

#preloader {
    background-color: #121212;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.book {
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    position: relative;
    margin: 0 auto;
    border: 5px solid #1E1E1E;
    width: 100px;
    height: 60px;
}

.book__page {
    position: absolute;
    left: 50%;
    top: -5px;
    margin: 0 auto;
    border-top: 5px solid #1E1E1E;
    border-bottom: 5px solid #1E1E1E;
    border-right: 5px solid #1E1E1E;
    background: #BB86FC;
    width: 50px;
    height: 60px;
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-animation: flip 1.2s infinite linear;
    animation: flip 1.2s infinite linear;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.book__page:nth-child(1) {
    z-index: -1;
    -webkit-animation-delay: 1.4s;
    animation-delay: 1.4s;
}

.book__page:nth-child(2) {
    z-index: -2;
    -webkit-animation-delay: 2.8s;
    animation-delay: 2.8s;
}

.book__page:nth-child(3) {
    z-index: -3;
    -webkit-animation-delay: 4.2s;
    animation-delay: 4.2s;
}

@-webkit-keyframes flip {
    0% {
        -webkit-transform: perspective(600px) rotateY(0deg);
        transform: perspective(600px) rotateY(0deg);
    }
    20% {
        background: #BB86FC;
    }
    30% {
        -webkit-transform: perspective(200px) rotateY(-90deg);
        transform: perspective(200px) rotateY(-90deg);
        background: #BB86FC;
    }
    55% {
        opacity: 0;
    }
    60% {
        -webkit-transform: perspective(200px) rotateY(-180deg);
        transform: perspective(200px) rotateY(-180deg);
        background: #BB86FC;
    }
    100% {
        -webkit-transform: perspective(200px) rotateY(-180deg);
        transform: perspective(200px) rotateY(-180deg);
        background: #BB86FC;
    }
}

@keyframes flip {
    0% {
        -webkit-transform: perspective(600px) rotateY(0deg);
        transform: perspective(600px) rotateY(0deg);
    }
    20% {
        background: #BB86FC;
    }
    30% {
        -webkit-transform: perspective(200px) rotateY(-90deg);
        transform: perspective(200px) rotateY(-90deg);
        background: #BB86FC;
    }
    55% {
        opacity: 0;
    }
    60% {
        -webkit-transform: perspective(200px) rotateY(-180deg);
        transform: perspective(200px) rotateY(-180deg);
        background: #BB86FC;
    }
    100% {
        -webkit-transform: perspective(200px) rotateY(-180deg);
        transform: perspective(200px) rotateY(-180deg);
        background: #BB86FC;
    }
}

/*--
    #hero-area start
--*/

#hero-area {
    padding: 150px 0;
    background: url('your-image-path.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #FFFFFF;
}

#hero-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8); /* Dark overlay */
}

#hero-area .block {
    padding-top: 100px;
    text-align: center;
}

#hero-area .block h1 {
    margin-bottom: 35px;
    text-transform: uppercase;
    font-size: 48px;
    letter-spacing: 2px;
    position: relative;
    color: #FFFFFF;
}

#hero-area .block h1::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    background: #BB86FC;
    height: 3px;
    width: 80px;
}

#hero-area .block p {
    color: #E0E0E0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

#hero-area .btn-home {
    background-color: #BB86FC;
    border: none;
    color: #121212;
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
}

#hero-area .btn-home:hover {
    background-color: #3700B3;
    color: #FFFFFF;
}

/* Navbar */

.navbar {
    background-color: #1E1E1E;
    padding: 15px 30px;
    border-bottom: 1px solid #333333;
    position: fixed;
    width: 100%;
    z-index: 999;
}

.navbar-brand {
    color: #BB86FC;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav li {
    padding: 0 15px;
}

.navbar-nav li a {
    color: #E0E0E0;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
}

.navbar-nav li a:hover,
.navbar-nav li a:focus {
    color: #BB86FC;
}

.navbar-nav li.active a {
    color: #BB86FC;
    position: relative;
}

.navbar-nav li.active a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 100%;
    background-color: #BB86FC;
}

/*--
    Service Section
--*/

#service {
    text-align: center;
    background: #121212;
    padding: 80px 0;
}

.service {
    text-align: center;
    margin-bottom: 40px;
}

.service .icon-box {
    margin-bottom: 20px;
}

.service .icon-box .icon {
    background-color: #BB86FC;
    color: #121212;
    font-size: 40px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service .caption h3 {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 500;
}

.service .caption p {
    color: #CCCCCC;
    font-size: 16px;
    line-height: 1.6;
}

/*--
    About Section
--*/

#about {
    background-color: #1E1E1E;
    padding: 80px 0;
}

#about h3 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    color: #E0E0E0;
    margin-top: 20px;
}

#about .heading p {
    font-size: 18px;
    color: #B0B0B0;
}

#about .block p {
    font-size: 16px;
    color: #CCCCCC;
    line-height: 1.7;
    margin-bottom: 20px;
}

#about .block img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/*--
    Call-to-Action Section
--*/

#call-to-action {
    padding: 80px 0;
    background: url('call-to-action-image.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #FFFFFF;
}

#call-to-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.8);
}

#call-to-action .block {
    position: relative;
    text-align: center;
    z-index: 1;
}

#call-to-action .block h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

#call-to-action .block p {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 30px;
}

#call-to-action .block input[type="email"] {
    width: 50%;
    height: 50px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: none;
    vertical-align: middle;
    padding: 0 15px;
    font-size: 16px;
    margin-right: 10px;
    border: 1px solid #333333;
    background-color: #2C2C2C;
    color: #FFFFFF;
}

#call-to-action .block .btn {
    background-color: #03DAC6;
    border: none;
    color: #121212;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

#call-to-action .block .btn:hover {
    background-color: #018786;
    color: #FFFFFF;
}

/*--
    Contact Section
--*/

#contact {
    background-color: #121212;
    padding: 80px 0;
}

#contact .address p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #CCCCCC;
}

#contact .form-group {
    margin-top: 20px;
}

.input-field .form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #333333;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    box-shadow: none;
    background-color: #1E1E1E;
    color: #FFFFFF;
}

.input-field textarea.form-control {
    height: 160px;
    resize: vertical;
}

.btn-send {
    background-color: #BB86FC;
    border: none;
    color: #121212;
    padding: 14px 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
}

.btn-send:hover {
    background-color: #3700B3;
    color: #FFFFFF;
}

#success,
#error {
    display: none;
}

/*--
    Footer Section
--*/

footer {
    text-align: center;
    background: #1E1E1E;
    padding: 30px 0;
}

footer p {
    font-weight: 300;
    font-size: 14px;
    color: #777777;
}

footer p a {
    color: #BB86FC;
}

footer p a:hover {
    color: #3700B3;
}

/* Additional Styles for Better UX */

hr {
    border: none;
    border-top: 1px solid #333333;
    margin: 40px 0;
    width: 100%;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col {
    padding: 15px;
    flex: 1;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    #hero-area {
        padding: 100px 0;
    }

    .navbar-nav {
        flex-direction: column;
        margin-left: 0;
    }

    .navbar-nav li {
        padding: 10px 0;
    }

    #call-to-action .block input[type="email"] {
        width: 100%;
        margin-bottom: 20px;
    }

    #call-to-action .block .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    #hero-area .block p {
        font-size: 18px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .navbar-brand {
        font-size: 20px;
    }
}
