/* Global Styles & Reset */
:root {
    --bg-color: #111111;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --accent-blue: #3b82f6;
    --accent-pink: #f472b6;
    --font-main: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle, .menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.theme-toggle:hover, .menu-toggle:hover {
    color: var(--text-secondary);
}

.brand-logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Cards Section */
.cards-section {
    padding: 2rem 0;
}
/* Specifically add padding to top for the first section below hero, and bottom for the last */
.cards-section:first-of-type {
    padding-top: 4rem;
}
.cards-section:last-of-type {
    padding-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Sub-card / Inner Grid */
.sub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.sub-card {
    background: #252525;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.sub-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Icon Grid */
.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #ccc;
    background: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.icon-item:hover {
    background: #444;
    color: #fff;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #333;
    color: #bbb;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #222;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-brand-name {
        font-size: 2.5rem;
    }
}

/* Disabled Card Style */
.card-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
    /* Ensure no hover effect */
    transform: none !important;
    box-shadow: none !important;
    border-color: #333 !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Accent Color Mapping & Refinements */

/* Variables per card type (scoped by ID or class) */
#card-solutions:hover {
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(96, 165, 250, 0.3);
}

/* Sub-cards specific hover effects if needed, or inherit from parent hover?
   "Internet Services -> Soft Blue"
   "Design Studio -> Soft Pink / Purple"
*/
.sub-card-internet:hover {
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
}
.sub-card-internet:hover .icon-item {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.sub-card-design:hover {
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.4);
}
.sub-card-design:hover .icon-item {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
}

/* Portfolio -> Neutral White / Silver */
.card-portfolio:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}
.card-portfolio:hover .icon-item {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* PromtoEngine -> Cyan / Teal */
.card-promto:hover {
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
}
.card-promto:hover .icon-item {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

/* UT.ac -> Soft Green / Yellow (Using Green/Teal mix for consistency or strict per request?)
   Request says "Soft Green / Yellow"
*/
.card-ut:hover {
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 222, 128, 0.3);
}
.card-ut:hover .icon-item {
    color: #4ade80; /* Soft Green */
    background: rgba(74, 222, 128, 0.1);
}

/* Tech Guide Hub -> Soft Orange / Amber */
.card-techguide:hover {
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 146, 60, 0.3);
}
.card-techguide:hover .icon-item {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
}

/* What Next -> Soft Violet */
.card-whatnext:hover {
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
}
.card-whatnext:hover .icon-item {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

/* RoadRiders -> Soft Red / Rose */
.card-roadriders:hover {
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 63, 94, 0.3);
}
.card-roadriders:hover .icon-item {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* Hindu Encyclopedia -> Soft Saffron / Gold */
.card-hindu:hover {
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 204, 21, 0.3);
}
.card-hindu:hover .icon-item {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

/* Nav Menu */
.main-nav {
    display: none; /* Hidden by default */
    background: var(--bg-color);
    border-bottom: 1px solid #333;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

/* Light Theme Variables (Restored) */
[data-theme="light"] {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
}

/* Ensure Hero & Header are ALWAYS dark */
[data-theme="light"] .header,
[data-theme="light"] #hero-container {
    background-color: #111111;
    color: #ffffff;
}
[data-theme="light"] .brand-logo,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .menu-toggle {
    color: #ffffff;
}
/* Ensure links in dark header on light theme stay white or handle via specific class */

/* Skills Connected Timeline Styles */
.skills-timeline-wrapper {
    position: relative;
    overflow-x: auto;
    padding: 2rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.skills-timeline-wrapper::-webkit-scrollbar {
    display: none;
}
.skills-timeline-track {
    display: flex;
    align-items: center;
    position: relative;
    min-width: max-content;
    padding: 0 1rem;
    gap: 3rem;
}
/* The continuous horizontal connecting line */
.skills-timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 0;
}
[data-theme="light"] .skills-timeline-track::before {
    background: #ddd;
}
.skills-timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}
.skills-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.skills-top i {
    color: var(--text-muted);
}
.skills-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--text-muted);
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.skills-bottom {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}
