/* General Setup */
:root {
    --primary-color: #39b54a;
    --dark-bg: #111;
    --text-color: #f0f0f0;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --font-primary: 'Roboto', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 1) Header */
.main-header {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    margin-right: 10px;
    height: 32px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #2fa33c;
    transform: translateY(-2px);
}

/* 2) Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header height */
    background: var(--dark-bg) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect fill="%231a1a1a" width="1" height="1"/></svg>') repeat;
}

.hero-content h1 {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-content .tagline {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content .subline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons .btn {
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-secondary {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--dark-bg);
}

.hero-animation {
    margin-top: 2rem;
    background: #0d0d0d;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 100px;
    white-space: pre-wrap;
}

/* Sections General */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* 3) Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(57, 181, 74, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #fff;
}

.text-center {
    text-align: center;
}

.cta-link {
    font-weight: 700;
}

/* 4) Projects Section */
.projects-section {
    background: #141414;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: background 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    background: #222;
    box-shadow: 0 0 15px rgba(57, 181, 74, 0.2);
}

.project-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #333; /* Placeholder */
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.tech-stack {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #aaa;
    margin: 5px 0 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
}

/* 5) Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    font-family: var(--font-mono);
}

.team-member-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.2rem;
    color: #fff;
}

.team-member p {
    color: #aaa;
}

.social-links a {
    color: #aaa;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* 6) Contact Section */
.contact-section {
    background: #141414;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-form textarea {
    width: 100%;
    height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* 7) Footer */
.main-footer {
    padding: 20px 0;
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

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

.main-footer p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links a {
    margin: 0 10px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin: 15px 0;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content .tagline {
        font-size: 1.4rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
