/* style.css */

/* Root variables for the Nerdy Theme */
:root {
    --primary-color: #00ff41; /* bright green */
    --secondary-color: #051a05; /* dark green */
    --text-color: #00ff41; /* bright green */
    --background-color: #0a0a0a; /* near black */
    --hover-text-color: #0a0a0a; /* black for hover states */
    --transition-speed: 0.2s;
}

/* Global reset and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'VT323', monospace, 'Courier New', Courier, monospace;
}

/* General styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.7);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    background-color: #000;
}
main, header, footer {
    position: relative;
    z-index: 2;
}


/* --- Navigation --- */
.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
}

.logo {
    font-weight: bolder;
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-container .links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-container .links .link a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition-speed) linear;
    position: relative;
}

/* Underline Hover Effect */
.nav-container .links .link a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease-in-out;
}

.nav-container .links .link a:hover::before {
    width: 100%;
}

.nav-container .links .link a:hover {
    text-shadow: 0 0 12px var(--primary-color);
}

/* Contact Button Style */
.nav-container .links .contact-btn a {
    background-color: transparent;
    padding: 8px 18px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all var(--transition-speed) linear;
}

.nav-container .links .contact-btn a:hover {
    background-color: var(--primary-color);
    color: var(--hover-text-color);
    border-color: var(--primary-color);
}

/* Disabled Link Style */
.nav-container .links .link a.disabled-link {
    color: grey;
    pointer-events: none;
    cursor: default;
    text-shadow: none;
}
.nav-container .links .link a.disabled-link::before {
    width: 0;
}

/* Hamburger Menu Icon */
.hamburg {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    border-bottom: 1px solid var(--primary-color);
}
/* ... (rest of dropdown styles are mostly fine) ... */

/* --- Main Page Content --- */
.center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 2rem;
  gap: 2rem;
  text-align: center;
}

.hero-box,
.logo-box {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
  background-color: rgba(0, 20, 0, 0.85);
}

img[src*="your-gif.gif"] {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.gif-caption {
  color: #00ff00;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  text-shadow: 0 0 6px black, 0 0 10px lime;
  font-weight: bold;
}

.hero-box h1 {
    font-size: clamp(2.5em, 6vw, 3.5em);
    margin-bottom: 10px;
    color: var(--text-color);
}

.hero-box h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.typewriter {
    font-size: clamp(1.2em, 3vw, 1.8em);
    font-weight: bold;
    color: #eee;
    margin: 10px 0 20px 0;
    min-height: 1.5em;
}

.typewriter span {
    color: var(--primary-color);
}

.hero-box p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    font-size: 1.4em;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--primary-color); /* All icons are green */
}

.social-links a:hover {
    transform: scale(1.15);
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
.social-links a:hover i {
     color: var(--hover-text-color); /* Icon color changes on hover */
}

/* --- Dashboard & Services --- */
.dashboard-container, .about-page, .services-page, .contact-page, .blogs-page {
    padding: 2rem;
}

.dashboard-container h1, .about-page h1, .services-page h1, .contact-page h1, .blogs-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--secondary-color);
    border-radius: 5px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    border: 1px solid var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.7);
}

/* --- About Page Specifics --- */
.terminal-window {
    border: 2px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 25px;
    background-color: var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.5);
}

.terminal-window h2 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}

pre.ascii-art {
    color: var(--primary-color);
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    margin: 20px 0;
    text-shadow: none;
}

.services-section ul {
    list-style-type: none;
    padding-left: 0;
}

.services-section li::before {
    content: '>> ';
    color: var(--primary-color);
    font-weight: bold;
}

.services-section h3 {
    color: var(--primary-color);
    display: inline-block;
}

.closing-section p {
    font-style: italic;
    color: #9affab;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .center-wrapper {
        padding: 1rem;
    }
}
