/* --- CSS 2.1: Modern Design with Neon Effects & Gradients --- */
/* Reset default browser styles for consistency */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Define consistent box-sizing for all elements */
*,
*:before,
*:after {
    box-sizing: border-box;
}

/* Define base styles for the entire document */
html {
    font-size: 18px;
    line-height: 1.5;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #0a0a0a, #1a2a1d, #0d1d19, #0f1f21);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Animated gradient background */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
}

/* --- Modern Background Container Styles --- */
.container {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    /* Glassmorphism effect */
    background: linear-gradient(145deg, rgba(13, 29, 33, 0.2), rgba(29, 37, 33, 0.15));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(126, 196, 74, 0.1);
}

/* --- Top heading styles (above tabs) --- */
.top-heading {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    z-index: 20;
    padding: 20px 30px;
    background: rgba(13, 29, 33, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(126, 196, 74, 0.3);
    box-shadow: 0 0 20px rgba(126, 196, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.top-heading::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7ec44a, #ffffff, #7ec44a);
    z-index: -1;
    border-radius: 18px;
    animation: borderAnimation 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#typewriter-main-title {
    font-size: 36px;
    color: white;
    text-shadow: 0 0 10px rgba(126, 196, 74, 0.7);
    margin: 0;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

#cursor {
    display: inline-block;
    width: 6px;
    height: 1.4em;
    background: linear-gradient(to top, transparent, #7ec44a, #7ec44a, transparent);
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 1s infinite, glow 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 10px #7ec44a;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #7ec44a; }
    to { box-shadow: 0 0 20px #7ec44a, 0 0 30px #7ec44a; }
}

/* --- Center content styles --- */
.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    z-index: 10;
    margin-top: 50px;
}

/* --- Modern Tab Styles --- */
.tabs {
    display: flex;
    margin-bottom: 25px;
    background: rgba(13, 29, 33, 0.6);
    border-radius: 14px;
    padding: 10px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(126, 196, 74, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tabs::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(45deg, transparent, rgba(126, 196, 74, 0.1), transparent);
    transform: rotate(45deg);
    z-index: -1;
}

.tab-button {
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    cursor: pointer;
    font-size: 1.2em;
    color: rgba(224, 240, 224, 0.95);
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(224, 240, 224, 0.3);
}

.tab-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(126, 196, 74, 0);
    z-index: -1;
    transition: background 0.4s ease;
}

.tab-button:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tab-button:hover::after {
    background: rgba(126, 196, 74, 0.2);
}

.tab-button.active {
    color: white;
    background: rgba(126, 196, 74, 0.3);
    box-shadow: 0 0 15px rgba(126, 196, 74, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tab-button.active::after {
    background: rgba(126, 196, 74, 0.3);
}

.tab-content {
    display: none;
    color: white;
    text-align: center;
    max-width: 650px;
    padding: 30px;
    background: rgba(13, 29, 33, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(126, 196, 74, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7ec44a, #a0f0a0, #7ec44a);
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
}

.tab-content.active {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.content-card h1,
.content-card h2 {
    color: #e0f0e0;
    text-shadow: 0 0 15px rgba(126, 196, 74, 0.7);
    margin-top: 0;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-card p {
    color: #e0f0e0;
    text-shadow: 0 0 8px rgba(224, 240, 224, 0.3);
    line-height: 1.7;
    font-size: 1.3em;
    margin-bottom: 15px;
    position: relative;
}

/* Link styles inside the content card */
.content-card a {
    color: #a0f0a0;
    text-shadow: 0 0 10px rgba(160, 240, 160, 0.5);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.3em;
    position: relative;
}

.content-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #a0f0a0;
    transition: width 0.3s ease;
}

.content-card a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.content-card a:hover::after {
    width: 100%;
}

/* Highlight styles for specific content */
.distro-fedora {
    color: #7ec44a; /* Green for Fedora */
    font-weight: bold;
    text-shadow: 0 0 10px rgba(126, 196, 74, 0.7);
    position: relative;
}

.distro-kali {
    color: #4285f4;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

.distro-parrot {
    color: #ea4335;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

.highlight-name {
    color: #7ec44a; /* Green for name highlighting */
    font-weight: bold;
    text-shadow: 0 0 15px rgba(126, 196, 74, 0.7);
    position: relative;
}

.highlight-green {
    color: #7ec44a; /* Green text */
    font-weight: bold;
    text-shadow: 0 0 15px rgba(126, 196, 74, 0.7);
}

.heart-ascii {
    color: #ff6b6b; /* Heart in red/pink */
    font-size: 1.4em;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Typewriter & Cursor Styles --- */
/* Animation for the blinking cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Style for the typewriter effect on the titles */
#typewriter-title,
#typewriter-contact-title {
    overflow: hidden;
    white-space: nowrap;
    animation: none;
    font-size: 1.3em;
}

/* --- Fade In Animation for Text Blocks --- */
.fade-in {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Browser tab specific styles */
#browser-info p {
    text-align: left;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(29, 37, 33, 0.4);
    border-radius: 8px;
    font-size: 1.1em;
}

.browser-info-label {
    font-weight: bold;
    color: #a0f0a0;
}