/* General Styles - awmbilisim.com inspired */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #007bff;
}

/* Header - awmbilisim.com inspired */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; /* For mega menu positioning */
    z-index: 1001; /* Ensure header is above other content */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
}

nav {
    flex-grow: 1;
    text-align: right;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #343a40;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 15px 0;
    display: block;
}

nav ul li a:hover {
    color: #007bff;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    left: 0; /* Align to left edge of viewport */
    width: 100vw; /* Full viewport width */
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 3px solid #007bff;
    padding: 20px 0; /* Adjusted padding */
    box-sizing: border-box;
}

.mega-menu-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px; /* Constrain content width */
    margin: 0 auto; /* Center content */
}

.mega-menu-col {
    flex: 1;
    min-width: 180px; /* Adjusted minimum width for columns */
    padding: 0 15px;
}

.mega-menu-col h4 {
    color: #007bff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.mega-menu-col ul li {
    margin-left: 0;
    padding: 5px 0;
}

.mega-menu-col ul li a {
    color: #555 !important;
    font-weight: normal !important;
    padding: 5px 0;
    display: block;
    white-space: nowrap;
}

.mega-menu-col ul li a:hover {
    color: #007bff !important;
}

.dropdown:hover .mega-menu {
    display: block;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.auth-buttons .btn-auth {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
}

.auth-buttons .btn-auth:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: url("../img/hero-bg.jpg") no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.domain-search {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.domain-search input {
    width: 60%;
    max-width: 450px;
    padding: 18px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1.1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.domain-search button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.domain-search button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Slider Section - Full Width */
.slider-section {
    padding: 0;
    background-color: #f8f9fa;
    overflow: hidden;
    width: 100%; /* Ensure it takes full width of its parent */
}

.slider-wrapper {
    position: relative;
    width: 100vw; /* Full viewport width */
    max-width: 100%; /* Ensure it doesn't exceed parent */
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.slider-item {
    display: none;
    width: 100%;
    position: relative;
}

.slider-item.active {
    display: block;
}

.slider-item img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area without distortion */
    display: block;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.slider-content h2 {
    margin-top: 0;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #fff;
}

.slider-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.slider-content .btn {
    background-color: #17a2b8;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-content .btn:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 18px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
    border: none;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0,0,0,0.9);
}

/* Services Section */
.services {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
}

.services h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #007bff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fefefe;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #343a40;
}

.service-item p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-item a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-item a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Features Section (About Section) */
.about {
    padding: 60px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.about h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #007bff;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-item {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.about-item h3 {
    font-size: 1.9em;
    margin-bottom: 15px;
    color: #343a40;
}

.about-item p {
    font-size: 1.05em;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
    font-size: 0.95em;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/hero-bg.jpg") no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 50px;
    border-radius: 0 0 10px 10px;
}

.page-hero h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #fff;
}

.page-hero p {
    font-size: 1.2em;
}

/* Content Section for inner pages */
.content-section {
    padding: 50px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    text-align: center;
    color: #007bff;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.package-item {
    background-color: #fefefe;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.package-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package-item h3 {
    font-size: 2.1em;
    margin-bottom: 20px;
    color: #343a40;
}

.package-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.package-item ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.package-item ul li:last-child {
    border-bottom: none;
}

.package-item .price {
    font-size: 2.8em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 25px;
}

.package-item .btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.package-item .btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-form, .contact-info {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.contact-form h2, .contact-info h2 {
    color: #007bff;
    margin-bottom: 25px;
    font-size: 2.2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    background-color: #28a745;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
    }
    nav {
        width: 100%;
        margin-left: 0;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin-left: 0;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    .mega-menu {
        position: static;
        box-shadow: none;
        min-width: unset;
        padding-left: 20px;
        width: 100%;
        border-top: none;
    }
    .mega-menu-content {
        flex-direction: column;
    }
    .mega-menu-col {
        min-width: unset;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    .mega-menu-col:last-child {
        border-bottom: none;
    }
    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .domain-search input {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .domain-search button {
        width: 100%;
        border-radius: 5px;
    }
    .domain-search {
        flex-direction: column;
    }
    .content-section .container {
        grid-template-columns: 1fr;
    }
    .package-grid {
        grid-template-columns: 1fr;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .slider-content h2 {
        font-size: 1.8em;
    }
    .slider-content p {
        font-size: 1em;
    }
    .contact-form, .contact-info {
        padding: 30px;
    }
}

/* Fix for mega menu to be full width relative to viewport */
.dropdown .mega-menu {
    left: 0;
    right: 0;
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Center the mega menu */
}

/* Ensure slider is truly full width */
.slider-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
}

.slider-wrapper {
    width: 100%;
    max-width: 100%;
}
