/* ============================================
   COLOR VARIABLES
   Change these to customize the site's look
   ============================================ */
:root {
    --primary: #00ff88;        /* Main accent color - that tech green */
    --bg: #0a0a0a;             /* Dark background */
    --card-bg: #161616;        /* Slightly lighter background for cards */
    --card-hover: #1c1c1c;     /* Even lighter when hovering over cards */
    --text: #ffffff;           /* Main text color */
    --text-dim: #a0a0a0;       /* Dimmed text for subtitles and descriptions */
}

/* ============================================
   BASIC SETUP
   Resets browser defaults and sets up fonts
   ============================================ */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg);
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 136, 0.05) 25%, rgba(0, 255, 136, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.05) 75%, rgba(0, 255, 136, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 136, 0.05) 25%, rgba(0, 255, 136, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.05) 75%, rgba(0, 255, 136, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    color: var(--text); 
    line-height: 1.6; 
}

/* ============================================
   HEADER & NAVIGATION
   Top bar with logo and menu links
   ============================================ */
header { 
    padding: 2rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-weight: 700; 
    font-size: 1.5rem; 
    letter-spacing: -1px; 
}

.logo span { 
    color: var(--primary); /* Makes "SOLUTIONS" green */
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}

nav a { 
    text-decoration: none; 
    color: var(--text); 
    font-weight: 500; 
}

/* ============================================
   HERO SECTION
   Big headline and call-to-action buttons
   ============================================ */
.hero {
    text-align: center;
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero p { 
    color: var(--text-dim); 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
}

.hero-btns { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-top: 30px; 
}

/* ============================================
   BUTTONS
   Primary and secondary button styles
   ============================================ */
.btn {
    background: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn.secondary { 
    background: transparent; 
    color: var(--text); 
    border: 1px solid var(--text-dim); 
}

.btn:hover { 
    opacity: 0.8; /* Slight fade on hover */
}

/* ============================================
   LAYOUT CONTAINERS
   Wrappers for content sections
   ============================================ */
.container { 
    padding: 80px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

h2 { 
    font-size: 2rem; 
    margin-bottom: 40px; 
    text-align: center; 
}

/* ============================================
   TWO-COLUMN LAYOUT (Expertise + FAQ)
   Side-by-side sections on desktop
   ============================================ */
.expertise-faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.expertise-column,
.faq-column {
    min-width: 0; /* Prevents overflow issues */
}

.column-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

/* ============================================
   SERVICE CARDS (CLICK-EXPANDABLE)
   The three main service offerings with + icon expansion
   ============================================ */
.services-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.service-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}

.service-card[open] {
    border-color: var(--primary);
    background: var(--card-hover);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 15px rgba(0, 255, 136, 0.05);
}

.service-card summary {
    padding: 20px 25px;
    user-select: none;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 45px;
    list-style: none;
}

.service-card summary::-webkit-details-marker {
    display: none;
}

.service-card summary::before {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.service-card[open] summary::before {
    transform: translateY(-50%) rotate(45deg);
}

.service-card summary:hover {
    color: var(--primary);
}

.service-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.service-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.service-content {
    padding: 0 25px 25px 25px;
    border-top: 1px solid #222;
}

.service-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.service-content li {
    margin-bottom: 10px;
    color: var(--text-dim);
}

.service-content strong {
    color: var(--text);
}

/* ============================================
   PORTFOLIO/CASE STUDIES SECTION
   Grid layout for project cards
   ============================================ */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 40px; 
}

.card { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 10px; 
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.card h3 { 
    color: var(--primary); 
    margin-bottom: 15px; 
}

/* Alternative card style with green left border */
.card-alt { 
    border-left: 4px solid var(--primary); 
    padding: 20px; 
    background: #111;
    transition: all 0.3s ease;
}

.card-alt:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

/* ============================================
   FAQ SECTION
   Expandable questions and answers
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}

.faq-item[open] {
    border-color: var(--primary);
    background: var(--card-hover);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 15px rgba(0, 255, 136, 0.05);
}

.faq-item summary {
    padding: 20px 25px;
    font-weight: 200;
    color: var(--text);
    user-select: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 45px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item[open] summary::before {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 25px 25px 25px;
    color: var(--text-dim);
    line-height: 1.7;
    border-top: 1px solid #222;
    margin-top: 0;
}

/* ============================================
   FOOTER
   Copyright and contact info at bottom
   ============================================ */
footer { 
    text-align: center; 
    padding: 40px; 
    color: var(--text-dim); 
    font-size: 0.9rem; 
}

/* ============================================
   MOBILE RESPONSIVENESS
   Adjustments for phones and tablets
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 50px 15px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* Stack expertise and FAQ vertically on mobile */
    .expertise-faq-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .column-title {
        font-size: 1.3rem;
    }
    
    nav ul { 
        display: none; /* Hide nav menu on mobile - consider adding a burger menu later */
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .hero-btns { 
        flex-direction: column; /* Stack buttons vertically on mobile */
        align-items: center; 
    }
    
    /* Disable scale effect on mobile to prevent sticky states */
    .card:hover,
    .card-alt:hover {
        transform: none;
    }
    
    .service-card summary,
    .faq-item summary {
        padding: 18px 20px;
        padding-right: 40px;
        font-size: 0.95rem;
    }

    .service-card summary::before,
    .faq-item summary::before {
        right: 20px;
        font-size: 1.3rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-content,
    .faq-item p {
        padding: 0 20px 20px 20px;
        font-size: 0.9rem;
    }
}
