/* General Styling */
:root {
    --primary-color: #00ff00; /* Neon Green for accents */
    --secondary-color: #00cc00; /* Slightly darker green */
    --dark-bg: #0a0a0a; /* Very dark background */
    --darker-bg: #050505; /* Even darker for sections */
    --text-color: #e0e0e0; /* Light grey for readability */
    --border-color: #1a1a1a; /* Subtle border for sharp edges */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* Subtle glow */
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: skewX(-30deg); /* Sharp edge effect */
}

h3 {
    font-size: 1.5em;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%); /* Sharp edge button */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-speed);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Header */
.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Mysterious blur effect */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2em;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    transform: skewX(-30deg);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: url('../img/dark-tech-bg.jpg') no-repeat center center/cover; /* Assume you have a background image */
    background-attachment: fixed; /* Parallax effect */
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--primary-color);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

/* Section Styling */
.section-dark {
    background-color: var(--darker-bg);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section-dark::before, .section-dark::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-color);
    opacity: 0.1;
    z-index: 0;
}

.section-dark::before {
    top: -20px;
    left: -20px;
    transform: rotate(45deg);
}

.section-dark::after {
    bottom: -20px;
    right: -20px;
    transform: rotate(45deg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) skewX(-30deg);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: var(--dark-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%); /* Sharp edge effect */
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: skewX(-20deg);
}

.service-item ul {
    margin-top: 15px;
    padding-left: 20px;
    list-style: disc; /* Use a disc for sub-points */
    color: #aaa;
}

.service-item ul li {
    margin-bottom: 5px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    clip-path: polygon(0% 5%, 95% 0%, 100% 95%, 5% 100%); /* Another sharp edge variation */
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: #ccc;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    color: #ccc;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--text-color);
}

.contact-info a {
    font-weight: 700;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1em;
    outline: none;
    transition: border-color var(--transition-speed);
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%); /* Subtle sharp input fields */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: center;
}

/* Footer */
.main-footer {
    background-color: var(--darker-bg);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    color: #888;
}

.footer-tagline {
    color: var(--primary-color);
    font-style: italic;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 15px 10px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .service-item, .portfolio-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .logo {
        font-size: 1.8em;
    }
}

/* Optional: Subtle background pattern for deeper mystery */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMwMzAzMDMiIGZpbGwtb3BhY2l0eT0iMC41IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0wIDBjMjEuNjY3IDAgNDAgMTguMzMzIDQwIDQwYzAgMjEuNjY3LTE4LjMzMyA0MC00MCA0MEMxOC4zMzMgNjAgMCA0MS42NjcgMCAyMEMwIDE4LjMzMyAxOC4zMzMgMCA0MCAwWiIvPjxwYXRoIGQ9Ik00MCA0MGMtMjEuNjY3IDAtNDAgMTguMzMzLTQwIDQwczE4LjMzMyA0MCA0MCA0MGMwLTIxLjY2NyAxOC4zMzMtNDAgNDAtNDBDNjEuNjY3IDQwIDQwIDIxLjY2NyA0MCA0MFoiLz48L2c+PC9nPg=='); /* Very subtle dark geometric pattern */
    background-repeat: repeat;
    opacity: 0.05; /* Barely visible */
    z-index: -1;
}