:root {
    --background-color: #000000;
    --text-color: #FFFFFF;
    --accent-color-aqua: #00FFFF;
    --accent-color-orange: #FFA500;
    --accent-color-green: #28A745;
}

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    /* Increased font size for nav menu */
    padding: 5px 0;
    display: block;
    font-weight: 400;
    /* Keep font weight normal */
}

.nav-menu a:hover {
    color: var(--accent-color-aqua);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .hamburger {
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 5px;
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 5px;
    position: absolute;
    transition: transform 0.3s;
}

.nav-toggle .hamburger::before {
    transform: translateY(-8px);
}

.nav-toggle .hamburger::after {
    transform: translateY(8px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: transparent;
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hero-section {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 0 20px;
    background-image: url('/Chpher1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: calc(100vh - 60px);
    /* Adjust this value to account for header and footer height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: 10%;
    padding-top: 150px;
    /* Adjust this value to move the text down */
}

.hero-section h1 {
    font-size: 4rem;
    margin: 0;
    padding-bottom: 10px;
    color: var(--text-color);
}

.hero-section p {
    font-size: 1.5rem;
    margin: 0 0 20px;
    color: var(--text-color);
}

.btn {
    background-color: var(--accent-color-green);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-color-orange);
}

main {
    flex: 1;
    /* Ensure main content area flexes to fill available space */
}

footer {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    /* Ensure footer stays at the bottom */
}

/* About Page Styles */
.about-page .about-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 200px 20px;
}

.about-content {
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px;
    text-align: left;
}

.about-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.about-content .btn {
    background-color: var(--accent-color-green);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.about-content .btn:hover {
    background-color: var(--accent-color-orange);
}

.about-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-page .contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    flex: 1;
}

.contact-content {
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.contact-content h2 {
    color: var(--accent-color-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-content h3 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-content p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.contact-form span {
    color: var(--accent-color-green);
}

.contact-form button {
    background-color: var(--accent-color-green);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-form button:hover {
    background-color: var(--accent-color-orange);
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1A1A1A;
    /* Match your theme */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: auto;
    color: var(--text-color);
    /* White text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--accent-color-green);
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content button {
    background-color: var(--accent-color-green);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.modal-content button:hover {
    background-color: var(--accent-color-orange);
}


/* Services Page Styles */
.services-page .services-section {
    padding: 100px 20px;
    text-align: center;
    flex: 1;
}

.services-page .services-header h2 {
    color: var(--accent-color-green);
    font-size: 2rem;
    margin-bottom: 20px;
}

.services-page .services-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.services-page .services-header p {
    color: var(--text-color);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-page .service-card {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    height: 350px;
    /* Adjust this value to make the cards more square */
}

.services-page .service-card:hover {
    transform: translateY(-10px);
}

.services-page .service-card-content {
    padding: 20px;
    text-align: left;
}

.services-page .service-card-content h4 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.services-page .service-card-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.services-page .service-card-content a {
    color: #28A745;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.services-page .service-card-content a:hover {
    color: #FFA500;
}

/* Service Card Styles */
.services-page .service-card {
    background-size: cover;
    /* Ensures the image covers the entire card */
    background-position: center;
    /* Centers the background image */
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    height: 350px;
    /* Adjust this value to make the cards more square */
}

/* Add background images to each card */
.service-card.web-development {
    background-image: url('Web_Development.jpg');
}

.service-card.game-development {
    background-image: url('Development.jpg');
}

.service-card.mobile-app-development {
    background-image: url('Mobile_App.jpg');
}

.service-card.ecommerce-development {
    background-image: url('E_Commerce.jpg');
}

.service-card.uiux-design {
    background-image: url('UI_UX.jpg');
}

.service-card.cross-platform-development {
    background-image: url('CrossPlatform.jpg');
}

/* Service Detail Page Styles */
.service-detail-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 50px 20px;
    /* Increased padding at the top */
    background-color: var(--background-color);
    /* Matches your overall theme */
    color: var(--text-color);
    /* White text for contrast */
    text-align: center;
}

.service-content {
    max-width: 800px;
    padding: 40px 30px;
    /* Adjusted padding to add more space at the top */
    background-color: #1A1A1A;
    /* Dark background for content */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    /* Adds spacing from the very top of the page */
}

.service-content h1 {
    font-size: 3rem;
    font-weight: bold;
    font-style: italic;
    color: var(--accent-color-green);
    /* Accent color for the title */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-content h2 {
    font-size: 2rem;
    font-weight: normal;
    color: var(--accent-color-orange);
    /* Another accent color for subheadings */
    margin-bottom: 15px;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--accent-color-aqua);
    /* Accent color for smaller subheadings */
    margin-bottom: 15px;
}

.service-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #CCCCCC;
    /* Slightly lighter text for the body */
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    text-align: center;
    /* Centering the bullet points */
}

.service-content ul li {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #CCCCCC;
    /* Matches the paragraph color */
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-content ul li:before {
    content: "●";
    /* Replacing checkmark with a full red circle */
    color: red;
    /* Full red circle */
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.25rem;
    /* Same size as the text */
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        /* Align menu items to the right */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu.active a {
        color: var(--text-color);
        padding: 10px 0;
        /* Slightly increased padding for mobile nav links */
        font-size: 1.5rem;
        /* Increased font size for nav menu on mobile */
    }

    .nav-menu.active a:hover {
        color: var(--accent-color-aqua);
        /* Retaining hover effect */
    }

    .hero-section {
        justify-content: center;
        text-align: center;
        background-image: url('/Cypher.Mobile.jpg');
        background-size: cover;
    }

    .hero-text {
        margin: 0;
        max-width: 100%;
        padding-top: 200px;
        /* Adjust this value to move the text down */
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.25rem;
    }

    .btn {
        padding: 10px 20px;
    }

    body {
        background-size: cover;
        /* Ensures the image scales correctly on small screens */
    }

    .about-page .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        max-width: 100%;
    }

    .about-image img {
        margin-top: 20px;
    }

    .services-page .services-grid {
        grid-template-columns: 1fr;
    }
}

.contact-page .contact-section {
    padding: 20px;
}

.contact-content {
    padding: 20px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}