/* Component Styles */

/* Buttons (CTA, Contact, etc.) */
.cta-button, .contact-button {
    display: inline-block;
    padding: 12px 28px;
    margin: 10px 15px;
    background-color: transparent;
    color: #6fbe83;
    text-decoration: none;
    border-radius: 7px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #6fbe83;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.2s;
    box-shadow: none;
}

.cta-button:hover, .cta-button:focus, .contact-button:hover {
    background-color: #6fbe83;
    color: #121212;
    border-color: #6fbe83;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(111, 190, 131, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: #6fbe83;
    border: 2px solid #6fbe83;
}

.cta-button.secondary:hover, .cta-button.secondary:focus {
    background-color: #6fbe83;
    color: #121212;
    border-color: #6fbe83;
}

.contact-button { /* Style for general contact links if different from CTA */
    padding: 15px 30px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    cursor: pointer;
    /* Inherits nav link styles, add specific if needed */
}

.dropdown .dropbtn i { /* Arrow icon */
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    min-width: 200px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.4);
    z-index: 2000;
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #00aaff;
    color: #121212;
}

/* Accordion (used for Projects) */
.project-accordion {
    max-width: 900px;
    margin: 30px auto; /* Give some space if it's the main content of #projects */
}

.accordion-item {
    background-color: #1e1e1e;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(56,182,255,0.07);
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    overflow: hidden;
}

.accordion-header {
    background-color: #2a2a2a;
    color: #6fbe83;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3em;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    text-shadow: 0 0 5px rgba(111, 190, 131, 0.25);
    border-radius: 12px 12px 0 0;
}

.accordion-header:hover {
    background-color: #333;
}

.accordion-header.active {
    background-color: #5a9a6a;
    color: #121212;
}

.accordion-icon {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg); /* Or 90deg or other preferred rotation */
}

/* If using FontAwesome, content can be switched via CSS */
.accordion-header .accordion-icon i::before {
    content: "\f067"; /* Default: plus icon */
}

.accordion-header.active .accordion-icon i::before {
    content: "\f068"; /* Active: minus icon */
}

.accordion-content {
    padding: 0 20px; /* Initial padding for transition */
    background-color: #1e1e1e;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(56,182,255,0.04);
}

.accordion-content p { /* Paragraphs within accordion */
    margin: 15px 0;
    font-size: 1em;
    color: #ccc;
    line-height: 1.7; /* Slightly more spacious for readability in collapsed content */
}

.accordion-content p strong {
    color: #e0e0e0;
}

.accordion-content .project-links {
    padding-bottom: 15px; /* Space for links at the end of accordion content */
}

/* Skill Items (if considered components) */
.skills-grid { /* Grid container for skill items */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); /* Capped max width for items */
    gap: 18px; /* Slightly reduced gap */
    justify-content: center; /* Center grid items along the row axis */
    text-align: center;
    padding: 15px 0; /* Add some padding to the grid itself */
}

.skill-item {
    background-color: rgba(42, 42, 42, 0.7); /* Slightly more subtle background */
    color: #e0e0e0; /* Ensure good contrast */
    padding: 12px 10px; /* Adjusted padding */
    border-radius: 6px; /* Softer border-radius */
    text-align: center;
    border: 1px solid rgba(0, 170, 255, 0.15); /* Subtle border */
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 3px 7px rgba(0,0,0,0.25);
}

.skill-item i { /* Icons within skill items */
    display: block; /* Ensure full width usage */
    text-align: center; /* Center the icon glyph */
    font-size: 1.8em; /* Slightly smaller icon */
    margin-bottom: 8px;
    color: #6fbe83; /* Changed from blue to title green */
}

.skill-item p {
    margin: 0;
    font-size: 0.85em; /* Adjusted font size */
    line-height: 1.4;
}

.skill-item:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: rgba(0, 170, 255, 0.1);
    border-color: #00aaff;
    box-shadow: 0 6px 15px rgba(0, 170, 255, 0.3);
}

/* Comparison Table (for Case Studies / Project Pages) */
.table-container {
    overflow-x: auto;
    margin-top: 20px; /* Added margin top */
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.comparison-table {
    width: 100%;
    margin-top: 0; /* Removed margin as container handles it */
    margin-bottom: 0; /* Removed margin as container handles it */
    border-collapse: collapse;
    border: 1px solid #383838; /* Outer border for the table itself */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #333; /* Cell borders */
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background-color: #222930;
    color: #6fbe83;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tr:nth-child(even) td {
    background-color: #1a1a1a;
}
.comparison-table tr:nth-child(odd) td {
    background-color: #161616;
}

.comparison-table td strong {
    color: #6fbe83;
    font-weight: 600;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown in responsive.css */
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.8em;
    cursor: pointer;
}

/* Hero Tagline Animation (if considered a component-like behavior) */
.hero-tagline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
} 